.ai-terrace-line-page {
  --line-lp-blue: #155be8;
  --line-lp-blue-2: #0b6ff0;
  --line-lp-blue-dark: #003fbb;
  --line-lp-navy: #061733;
  --line-lp-text: #162747;
  --line-lp-muted: #60708a;
  --line-lp-green: #16b861;
  --line-lp-sky: #eaf5ff;
  --line-lp-line: #dbe8fb;
  --line-lp-shadow: 0 14px 34px rgba(22, 76, 150, 0.1);
  background: #ffffff;
  color: var(--line-lp-text);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

body.page-template-page-line-system #header-container,
body.page-template-page-line-system #navi {
  display: none !important;
}

body.page-template-page-line-system #content,
body.page-template-page-line-system #main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.page-template-page-line-system .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.line-lp,
.line-lp * {
  box-sizing: border-box;
}

.line-lp {
  overflow: hidden;
  background: #ffffff;
  line-height: 1.8;
}

.line-lp-wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.line-lp-section {
  padding: 58px 0;
}

.line-lp-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  border: 1px solid var(--line-lp-blue);
  border-radius: 999px;
  padding: 7px 18px;
  background: #ffffff;
  color: var(--line-lp-blue);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.4;
}

.line-lp-hero {
  position: relative;
  min-height: 560px;
  padding: 0 0 72px;
  background: linear-gradient(105deg, #ffffff 0%, #f8fbff 50%, #eef8ff 100%);
}

.line-lp-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.88fr);
  gap: 44px;
  align-items: center;
  min-height: 500px;
  overflow: hidden;
  border-radius: 0;
}

.line-lp-hero__copy {
  align-self: start;
  padding-top: 0;
}

.line-lp-hero__copy {
  max-width: 650px;
}

.line-lp-hero__grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 34%, rgba(255, 255, 255, 0.46) 56%, rgba(255, 255, 255, 0.05) 78%, rgba(255, 255, 255, 0) 100%),
    url("../images/line-system/line-hero-top.png") center center / 100% auto no-repeat;
}

.line-lp-hero h1 {
  margin: 0;
  color: var(--line-lp-navy);
  font-size: clamp(1.6rem, 2.62vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 900;
  white-space: nowrap;
}

.line-lp-hero h1 span {
  color: var(--line-lp-blue);
}

.line-lp-hero__line-word {
  color: var(--line-lp-navy) !important;
  font-size: 1.62em;
  letter-spacing: 0.055em;
}

.line-lp-lead {
  margin: 48px 0 0;
  color: var(--line-lp-navy);
  font-size: clamp(1.06rem, 1.38vw, 1.28rem);
  font-weight: 900;
  line-height: 1.72;
}

.line-lp-lead strong {
  color: var(--line-lp-green);
  font-size: 1.58em;
}

.line-lp-hero__sub {
  margin: 18px 0 0;
  color: var(--line-lp-navy);
  font-size: clamp(0.96rem, 1.08vw, 1.06rem);
  font-weight: 900;
}

.line-lp-hero__points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 462px;
  margin-top: 30px;
}

.line-lp-hero__points span {
  min-height: 78px;
  border: 1px solid #d7e7ff;
  border-radius: 12px;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(21, 91, 232, 0.08);
  color: var(--line-lp-blue);
  text-align: center;
  font-size: 0.84rem;
  font-weight: 900;
}

.line-lp-hero__points i {
  display: block;
  margin: 0 auto 6px;
  color: var(--line-lp-green);
  font-style: normal;
  font-size: 0.78rem;
}

.line-lp-hero__visual {
  min-height: 360px;
}

.line-lp-photo-card {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid rgba(215, 231, 255, 0.9);
  border-radius: 34px;
  background: #ffffff;
  box-shadow: 0 24px 46px rgba(26, 85, 160, 0.14);
}

.line-lp-person-img {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center top;
}

.line-lp-heading {
  max-width: 850px;
  margin: 0 auto 30px;
  text-align: center;
}

.line-lp-heading h2,
.line-lp-split h2,
.line-lp-cta h2 {
  margin: 0;
  color: var(--line-lp-navy);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.3;
  letter-spacing: 0;
}

.line-lp-heading h2 strong,
.line-lp-heading h2 span {
  color: var(--line-lp-blue);
}

.line-lp-heading p,
.line-lp-split p,
.line-lp-cta p {
  margin: 14px 0 0;
  color: var(--line-lp-muted);
  font-weight: 800;
  line-height: 1.9;
}

.line-lp-intro {
  background: #ffffff;
}

.line-lp-split {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(380px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.line-lp-intro .line-lp-split {
  min-height: 600px;
  overflow: hidden;
  background: url("../images/line-system/line-system-screen.png") left center / 100% auto no-repeat;
}

.line-lp-intro__copy {
  max-width: 620px;
  padding: 8px 0 0;
}

.line-lp-intro__copy h2 {
  margin: 0;
  color: var(--line-lp-navy);
  font-size: clamp(2.18rem, 2.65vw, 2.75rem);
  line-height: 1.38;
  letter-spacing: 0;
  font-weight: 900;
  white-space: nowrap;
}

.line-lp-intro__copy h2 span {
  color: var(--line-lp-blue);
}

.line-lp-intro__copy p {
  margin: 54px 0 0;
  color: var(--line-lp-navy);
  font-size: clamp(1rem, 1.12vw, 1.1rem);
  font-weight: 800;
  line-height: 1.82;
}

.line-lp-mini-grid {
  position: relative;
  top: -12px;
  left: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 34px;
  width: min(100%, 575px);
  margin-top: 58px;
  border-radius: 14px;
  padding: 24px 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(17, 72, 146, 0.08);
}

.line-lp-mini-grid span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60px;
  gap: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--line-lp-navy);
  font-size: 0.95rem;
  font-weight: 900;
}

.line-lp-mini-grid svg {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--line-lp-blue);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-lp-mini-grid span::before,
.line-lp-mini-grid span::after {
  display: none;
}

.line-lp-mini-grid span::before {
  left: 0;
  top: 50%;
  width: 34px;
  height: 34px;
  border: 3px solid var(--line-lp-blue);
  transform: translateY(-50%);
}

.line-lp-mini-grid__chat::before {
  border-radius: 11px;
}

.line-lp-mini-grid__chat::after {
  left: 20px;
  top: 42px;
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--line-lp-blue);
  border-bottom: 3px solid var(--line-lp-blue);
  transform: rotate(24deg);
}

.line-lp-mini-grid__calendar::before {
  border-radius: 5px;
}

.line-lp-mini-grid__calendar::after {
  left: 8px;
  top: 31px;
  width: 20px;
  height: 12px;
  border-top: 3px solid var(--line-lp-blue);
  border-bottom: 3px solid var(--line-lp-blue);
}

.line-lp-mini-grid__mail::before {
  border-radius: 5px;
}

.line-lp-mini-grid__mail::after {
  left: 8px;
  top: 26px;
  width: 20px;
  height: 20px;
  border-left: 3px solid var(--line-lp-blue);
  border-bottom: 3px solid var(--line-lp-blue);
  transform: rotate(-45deg);
}

.line-lp-mini-grid__clipboard::before {
  border-radius: 5px;
}

.line-lp-mini-grid__clipboard::after {
  left: 10px;
  top: 25px;
  width: 18px;
  height: 18px;
  border-top: 3px solid var(--line-lp-blue);
  border-bottom: 3px solid var(--line-lp-blue);
}

.line-lp-mini-grid__tag::before {
  border-radius: 5px 5px 5px 12px;
  transform: translateY(-50%) rotate(-38deg);
}

.line-lp-mini-grid__tag::after {
  left: 19px;
  top: 28px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--line-lp-blue);
  border-radius: 999px;
}

.line-lp-mini-grid__chart::before {
  border: 0;
  border-left: 3px solid var(--line-lp-blue);
  border-bottom: 3px solid var(--line-lp-blue);
  border-radius: 0;
}

.line-lp-mini-grid__chart::after {
  left: 10px;
  top: 29px;
  width: 22px;
  height: 24px;
  background: linear-gradient(90deg, var(--line-lp-blue) 0 4px, transparent 4px 8px, var(--line-lp-blue) 8px 13px, transparent 13px 17px, var(--line-lp-blue) 17px 22px);
}

.line-lp-phone-mock {
  width: 100%;
  min-height: 540px;
  justify-self: end;
  overflow: hidden;
  background: none;
}

.line-lp-phone-mock__screen {
  display: none;
  width: min(310px, 78vw);
  min-height: 440px;
  border: 10px solid #0c1d44;
  border-radius: 34px;
  padding: 18px;
  background: #f7fbff;
  box-shadow: 0 22px 42px rgba(15, 31, 70, 0.18);
}

.line-lp-phone-mock__top {
  margin-bottom: 16px;
  color: var(--line-lp-blue);
  font-size: 0.88rem;
  font-weight: 900;
}

.line-lp-chat {
  margin-bottom: 12px;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.55;
}

.line-lp-chat--left {
  border: 1px solid var(--line-lp-line);
  background: #ffffff;
  color: var(--line-lp-text);
}

.line-lp-chat--right {
  margin-left: auto;
  width: fit-content;
  background: var(--line-lp-green);
  color: #ffffff;
}

.line-lp-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.line-lp-menu span {
  display: grid;
  place-items: center;
  min-height: 56px;
  border: 1px solid #c8dcfb;
  border-radius: 10px;
  background: #ffffff;
  color: var(--line-lp-blue);
  font-size: 0.72rem;
  font-weight: 900;
}

.line-lp-flow {
  background: linear-gradient(180deg, #f5faff 0%, #ffffff 100%);
}

.line-lp-flowline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 32px;
}

.line-lp-flowline::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 8px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--line-lp-blue), #7fd7ff, var(--line-lp-green));
}

.line-lp-flowline article {
  position: relative;
  border: 1px solid var(--line-lp-line);
  border-radius: 16px;
  padding: 18px 10px 20px;
  background: #ffffff;
  text-align: center;
  box-shadow: var(--line-lp-shadow);
}

.line-lp-flowline b,
.line-lp-feature-grid b {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--line-lp-blue);
  color: #ffffff;
  font-size: 0.82rem;
}

.line-lp-flowline h3,
.line-lp-feature-grid h3,
.line-lp-industry-grid h3,
.line-lp-build-grid h3 {
  margin: 0 0 8px;
  color: var(--line-lp-blue);
  font-size: 1rem;
  line-height: 1.45;
}

.line-lp-flowline p,
.line-lp-feature-grid p,
.line-lp-build-grid p {
  margin: 0;
  color: var(--line-lp-muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.7;
}

.line-lp-features {
  background: #ffffff;
}

.line-lp-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.line-lp-feature-grid article {
  min-height: 178px;
  border: 1px solid var(--line-lp-line);
  border-radius: 16px;
  padding: 20px;
  background: #ffffff;
  text-align: center;
  box-shadow: var(--line-lp-shadow);
}

.line-lp-industries {
  background: #ffffff;
  padding-top: 54px;
  padding-bottom: 54px;
}

.line-lp-industries .line-lp-wrap {
  max-width: 1240px;
}

.line-lp-industries__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 0;
}

.line-lp-industry-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.line-lp-industry-grid article {
  overflow: hidden;
  border: 1px solid var(--line-lp-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--line-lp-shadow);
}

.line-lp-industry-photo {
  height: 130px;
  background:
    linear-gradient(135deg, rgba(21, 91, 232, 0.12), rgba(22, 184, 97, 0.12)),
    linear-gradient(120deg, #ffffff, #e8f5ff);
}

.line-lp-industry-photo--salon {
  background:
    radial-gradient(circle at 34% 42%, #203054 0 18px, transparent 19px),
    linear-gradient(135deg, #dff2ff, #ffffff);
}

.line-lp-industry-photo--care {
  background:
    radial-gradient(circle at 56% 35%, #1b5be8 0 16px, transparent 17px),
    linear-gradient(135deg, #e8fff3, #ffffff);
}

.line-lp-industry-photo--food {
  background:
    radial-gradient(circle at 46% 42%, #d97706 0 22px, transparent 23px),
    linear-gradient(135deg, #fff4e5, #ffffff);
}

.line-lp-industry-photo--school {
  background:
    radial-gradient(circle at 50% 37%, #155be8 0 16px, transparent 17px),
    linear-gradient(135deg, #eaf5ff, #ffffff);
}

.line-lp-industry-photo--service {
  background:
    radial-gradient(circle at 50% 37%, #3c4b75 0 16px, transparent 17px),
    linear-gradient(135deg, #f0f4ff, #ffffff);
}

.line-lp-industry-grid h3 {
  padding: 16px 16px 0;
  text-align: center;
}

.line-lp-industry-grid ul {
  margin: 10px 0 0;
  padding: 0 16px 18px;
  list-style: none;
}

.line-lp-industry-grid li {
  position: relative;
  margin-top: 7px;
  padding-left: 18px;
  color: var(--line-lp-muted);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.55;
}

.line-lp-industry-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line-lp-green);
}

.line-lp-band {
  margin: 28px auto 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(90deg, #eaf5ff, #ffffff, #e8fff3);
  color: var(--line-lp-blue);
  text-align: center;
  font-weight: 900;
}

.line-lp-build-flow {
  background: #ffffff;
}

.line-lp-build-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.line-lp-build-grid article {
  border: 1px solid var(--line-lp-line);
  border-radius: 18px;
  padding: 20px 14px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  text-align: center;
  box-shadow: var(--line-lp-shadow);
}

.line-lp-build-grid b {
  display: inline-block;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--line-lp-blue);
  color: #ffffff;
  font-size: 0.72rem;
}

.line-lp-cta {
  padding: 54px 0 70px;
  background: #ffffff;
}

.line-lp-cta__box {
  position: relative;
  display: flex;
  min-height: clamp(250px, 31.8vw, 365px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  padding: clamp(28px, 4.2vw, 46px) clamp(26px, 22vw, 330px);
  background: url("../images/line-system/line-cta-contact.png") center center / cover no-repeat;
  box-shadow: 0 18px 42px rgba(16, 67, 138, 0.1);
  text-align: center;
}

.line-lp-cta__text {
  max-width: 680px;
}

.line-lp-cta h2 {
  margin: 0;
  color: var(--line-lp-navy);
  font-size: clamp(1.34rem, 1.82vw, 1.95rem);
  line-height: 1.38;
  letter-spacing: 0;
}

.line-lp-cta h2::first-line {
  color: var(--line-lp-blue);
}

.line-lp-cta h2 span {
  white-space: nowrap;
}

.line-lp-cta p {
  margin-top: 12px;
  color: var(--line-lp-navy);
  font-size: clamp(0.82rem, 0.96vw, 0.98rem);
  font-weight: 800;
  line-height: 1.7;
}

.line-lp-contact-card {
  width: min(100%, 320px);
  margin-top: 18px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.line-lp-contact-card p {
  display: none;
}

.line-lp-contact-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--line-lp-blue), var(--line-lp-blue-dark));
  color: #ffffff;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(21, 91, 232, 0.24);
}

.line-lp-contact-card small {
  display: block;
  margin-top: 10px;
  color: var(--line-lp-navy);
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .line-lp-hero__grid,
  .line-lp-split,
  .line-lp-cta__box {
    grid-template-columns: 1fr;
  }

  .line-lp-flowline,
  .line-lp-feature-grid,
  .line-lp-build-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .line-lp-industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .line-lp-wrap {
    width: min(100% - 32px, 1120px);
  }

  .line-lp-section {
    padding: 46px 0;
  }

  .line-lp-hero {
    min-height: auto;
    padding: 0 0 54px;
    background: linear-gradient(105deg, #ffffff 0%, #f8fbff 50%, #eef8ff 100%);
  }

  .line-lp-hero__grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .line-lp-hero__grid::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 42%, rgba(255, 255, 255, 0.78) 100%),
      url("../images/line-system/line-hero-top.png") center top / 100% auto no-repeat;
  }

  .line-lp-hero h1 {
    font-size: clamp(1.55rem, 7vw, 2.2rem);
    white-space: normal;
  }

  .line-lp-hero__line-word {
    font-size: 1.35em;
  }

  .line-lp-lead {
    font-size: 1rem;
  }

  .line-lp-hero__points,
  .line-lp-mini-grid,
  .line-lp-flowline,
  .line-lp-feature-grid,
  .line-lp-industry-grid,
  .line-lp-build-grid {
    grid-template-columns: 1fr;
  }

  .line-lp-hero__visual {
    display: none;
  }

  .line-lp-industries {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .line-lp-industries__image {
    margin-top: 0;
  }

  .line-lp-photo-card {
    min-height: 360px;
  }

  .line-lp-person-img {
    height: 360px;
    object-position: center top;
  }

  .line-lp-split {
    gap: 28px;
  }

  .line-lp-intro .line-lp-split {
    min-height: auto;
    background: none;
  }

  .line-lp-intro__copy {
    max-width: none;
    padding-top: 0;
  }

  .line-lp-intro__copy h2 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    line-height: 1.45;
    white-space: normal;
  }

  .line-lp-intro__copy p {
    margin-top: 28px;
    font-size: 1rem;
  }

  .line-lp-mini-grid {
    gap: 4px;
    margin-top: 28px;
    padding: 18px;
  }

  .line-lp-mini-grid span {
    min-height: 58px;
    gap: 14px;
    padding-left: 0;
  }

  .line-lp-mini-grid svg {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .line-lp-phone-mock {
    width: 100%;
    min-height: 380px;
    justify-self: center;
    background-position: center center;
    background: url("../images/line-system/line-system-screen.png") center center / contain no-repeat;
  }

  .line-lp-phone-mock__screen {
    min-height: 380px;
    border-width: 8px;
  }

  .line-lp-flowline::after {
    display: none;
  }

  .line-lp-cta__box {
    min-height: 430px;
    justify-content: flex-start;
    padding: 34px 20px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 48%, rgba(255, 255, 255, 0.45) 100%),
      url("../images/line-system/line-cta-contact.png") center center / cover no-repeat;
  }

  .line-lp-cta h2 {
    font-size: 1.55rem;
  }

  .line-lp-cta h2 span {
    white-space: normal;
  }

  .line-lp-contact-card {
    width: min(100%, 280px);
  }
}
