/* シフト表ページのコンポーネント。
   page.css の後、ページ固有の source-reflow-v84.css の前に読み込む。 */

/* ファーストビュー */
@scope (.shift-wireframe) {
  .hero.hero-separated {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 4vw, 76px) 0 30px;
    color: #082e50;
    background: #edf9ff url("../../images/shift/fv-background-v20.webp") center / cover no-repeat;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  }
  .hero.hero-separated > .wrap { position: relative; inset: auto; width: 92%; max-width: 1760px; margin: auto; }
  .hero.hero-separated .hero-grid { display: grid; position: relative; grid-template-columns: 46% 54%; grid-template-rows: 1fr auto; column-gap: 0; align-items: center; }
  .hero.hero-separated .hero-copy { position: relative; inset: auto; grid-column: 1; grid-row: 1; width: auto; height: auto; margin: 0; padding: 24px 0 0; overflow: visible; clip-path: none; white-space: normal; z-index: 4; }
  .hero.hero-separated .hero-intro { font-size: clamp(16px, 1.75vw, 30px); line-height: 1.7; font-weight: 900; letter-spacing: -.035em; }
  .hero.hero-separated h1 { margin: 0; color: #082e50; font-weight: 900; }
  .hero.hero-separated .keywords { display: flex; gap: clamp(12px, 1.5vw, 26px); align-items: center; margin: 18px 0 12px; }
  .hero.hero-separated .keywords > span { display: block; transform: skew(-10deg); padding: 0 .2em .08em; border: 0; border-radius: 3px; background: #073858; color: #fff; font-size: clamp(46px, 5.9vw, 110px); line-height: 1.35; font-weight: 900; letter-spacing: .015em; white-space: nowrap; }
  .hero.hero-separated .keywords > span > span { display: block; transform: skew(10deg); }
  .hero.hero-separated .keywords > span:last-child { background: #10b5c3; }
  .hero.hero-separated .keywords b { font-size: clamp(34px, 4vw, 72px); line-height: 1; color: #082e50; font-weight: 500; }
  .hero.hero-separated .hero-tail { display: block; margin-top: 4px; font-size: clamp(27px, 3.2vw, 60px); line-height: 1.5; letter-spacing: -.05em; color: #082e50; font-weight: 900; white-space: nowrap; }
  .hero.hero-separated .hero-benefit { margin-top: 22px; color: #082e50; font-size: clamp(20px, 2.1vw, 38px); font-weight: 800; line-height: 1.65; }
  .hero.hero-separated .hero-action { position: relative; inset: auto; grid-column: 1; grid-row: 2; align-self: start; width: auto; height: auto; padding: 26px 0 12px; z-index: 4; }
  .hero.hero-separated .hero-action .cta { display: inline-flex; width: min(100%, 460px); height: auto; min-width: 0; min-height: 72px; justify-content: space-between; gap: 18px; padding: 16px 24px; border: 0; border-radius: 12px; background: linear-gradient(90deg, #cc4545, #bd3d45); color: #fff; font-size: clamp(20px, 1.85vw, 32px); font-weight: 800; cursor: pointer; }
  .hero.hero-separated .hero-action .cta span { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: #fff; color: #bd3d45; font-size: 32px; line-height: 1; }
  .hero.hero-separated .hero-action .cta:hover { background: linear-gradient(90deg, #b83d43, #a8323d); }
  .hero.hero-separated .hero-action .cta:focus-visible { outline: 3px solid #073858; outline-offset: 5px; }
  .hero.hero-separated .hero-time-note { display: block; max-width: 460px; margin: 12px 0 0; color: #36556c; font-size: 11px; line-height: 1.65; }
  .hero.hero-separated .hero-visual { display: block; position: relative; grid-column: 2; grid-row: 1 / 3; width: 100%; height: clamp(480px, 41vw, 720px); margin: 0; }
  .hero.hero-separated .hero-visual > * { display: block; }
  .hero.hero-separated .hero-visual img { width: 100%; height: auto; filter: none; }
  .hero.hero-separated .hero-visual figure { position: absolute; margin: 0; }
  .hero.hero-separated .hero-woman { top: 0; right: -8%; bottom: auto; left: auto; width: 48%; height: 84%; overflow: hidden; opacity: 1; z-index: 1; }
  .hero.hero-separated .hero-woman img { width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: top center; }
  .hero.hero-separated .hero-pc { top: auto; left: -8%; right: auto; bottom: 3%; width: 92%; height: auto; z-index: 2; filter: drop-shadow(0 14px 8px #12395524); }
  .hero.hero-separated .hero-phone { top: auto; right: -1%; left: auto; bottom: 4%; width: 23%; height: auto; z-index: 3; filter: drop-shadow(0 8px 6px #12395530); }
  .hero.hero-separated .phone-note { position: absolute; inset: auto 0 0 auto; color: #173e5c; font-size: 11px; font-weight: 600; line-height: 1.5; text-align: right; }
  /* 時計・文字・白い帯まで一体の透過画像。元画像の傾きを保持する。 */
  .hero.hero-separated .speed-badge { display: block; position: absolute; top: 3%; left: 0; width: 65%; padding: 0; border: 0; background: none; transform: none; z-index: 3; }
  .hero.hero-separated .clock { display: block; width: 100%; height: auto; }
  @media (min-width: 768px) and (max-width: 1100px) {
    .hero.hero-separated { padding: 32px 0 26px; }
    .hero.hero-separated .hero-grid { grid-template-columns: 46% 54%; }
    .hero.hero-separated .hero-copy { padding-top: 0; }
    .hero.hero-separated .hero-intro { font-size: 14px; }
    .hero.hero-separated .hero-visual { height: 430px; }
    .hero.hero-separated .hero-benefit { font-size: 20px; }
    .hero.hero-separated .hero-action { padding-top: 22px; }
    .hero.hero-separated .hero-action .cta { font-size: 19px; min-height: 64px; padding: 14px 18px; }
    .hero.hero-separated .hero-action .cta span { width: 32px; height: 32px; font-size: 26px; }
    .hero.hero-separated .speed-badge { top: 9%; left: 3%; }
    .hero.hero-separated .hero-woman { height: 80%; top: 7%; }
  }
  @media (max-width: 767px) {
    .hero.hero-separated { padding: 28px 0 26px; background-position: 60% center; }
    .hero.hero-separated > .wrap { width: calc(100% - 40px); }
    .hero.hero-separated .hero-grid { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
    .hero.hero-separated .hero-copy { padding: 0; }
    .hero.hero-separated .hero-intro { font-size: clamp(12px, 3.45vw, 22px); letter-spacing: -.04em; }
    .hero.hero-separated .keywords { gap: 12px; margin: 14px 0 10px; }
    .hero.hero-separated .keywords > span { font-size: clamp(38px, 10.2vw, 76px); padding: 0 .2em .08em; }
    .hero.hero-separated .keywords b { font-size: clamp(28px, 7vw, 48px); }
    .hero.hero-separated .hero-tail { font-size: clamp(22px, 6.2vw, 46px); letter-spacing: -.05em; white-space: normal; }
    .hero.hero-separated .hero-benefit { font-size: clamp(18px, 4.8vw, 27px); margin-top: 16px; line-height: 1.6; }
    .hero.hero-separated .hero-visual { width: 100%; height: auto; aspect-ratio: 1.08; margin: 22px 0 0; }
    .hero.hero-separated .hero-woman { top: 0; right: -4%; width: 43%; height: 81%; }
    .hero.hero-separated .hero-pc { width: 94%; bottom: 7%; left: -5%; }
    .hero.hero-separated .hero-phone { width: 23%; right: -1%; bottom: 7%; }
    .hero.hero-separated .speed-badge { top: 2%; left: -2%; width: 70%; }
    .hero.hero-separated .phone-note { font-size: 9px; bottom: 0; }
    .hero.hero-separated .hero-action { width: 100%; padding: 20px 0 0; }
    .hero.hero-separated .hero-action .cta { display: flex; width: 100%; min-height: 62px; padding: 14px 18px; font-size: 20px; }
    .hero.hero-separated .hero-action .cta span { width: 32px; height: 32px; font-size: 27px; }
    .hero.hero-separated .hero-time-note { max-width: none; font-size: 10px; margin-top: 10px; }
  }
  @media (max-width: 359px) {
    .hero.hero-separated > .wrap { width: calc(100% - 32px); }
    .hero.hero-separated .keywords { gap: 10px; }
    .hero.hero-separated .keywords > span { font-size: 34px; }
    .hero.hero-separated .hero-intro { font-size: 12px; }
    .hero.hero-separated .hero-action .cta { font-size: 18px; }
  }
}

/* 基本配色 */
@scope (.shift-wireframe) {
  :is(#pain, #solution, #effects, #voices, #goal) {
    --palette-navy: #123955;
    --palette-body: #28495e;
    --palette-muted: #526a79;
    --palette-paper: #fff;
    --palette-soft: #f3f7fa;
    --palette-panel: #edf4f7;
    --palette-line: #d6e4ea;
    --palette-teal: #087d76;
    /* コーラルレッド系。白文字のコントラストを確保する。 */
    --palette-contact: linear-gradient(90deg, #cc4545, #bd3d45);
    --palette-contact-hover: linear-gradient(90deg, #b83d43, #a8323d);
    color: var(--palette-navy);
    border-color: var(--palette-line);
  }

  #pain.pain-designed { background: var(--palette-soft); }
  #pain #pain-title { color: var(--palette-navy); }
  #pain .pain-card { background: var(--palette-panel); border-color: var(--palette-line); }
  #pain .pain-card h3 { color: var(--palette-paper); background: var(--palette-navy); }
  #pain .pain-card p { color: var(--palette-body); }

  #solution { background: var(--palette-paper); }
  #solution h2 { color: var(--palette-navy); }

  #effects { background: var(--palette-soft); }
  #effects #effects-title { color: var(--palette-navy); }
  #effects .effect-panel { background: var(--palette-panel); border-color: var(--palette-line); }
  #effects .effect-panel-heading { color: var(--palette-navy); background: #e4edf3; }
  #effects .effect-panel-body { background: var(--palette-panel); }
  #effects .effect-description { background: var(--palette-paper); box-shadow: 0 8px 30px #1239550c; }
  #effects .effect-card-heading { border-color: #b3d5d5; }
  #effects .effect-card-heading h3,
  #effects .condition-details dt { color: var(--palette-navy); }
  #effects .effect-card-number { color: var(--palette-paper); -webkit-text-stroke-color: var(--palette-teal); }
  #effects .condition-details dd,
  #effects .effect-description p { color: var(--palette-body); }
  #effects .condition-details > div::before { color: var(--palette-paper); background: var(--palette-teal); }
  #effects .effect-description .source-effect-note { color: var(--palette-muted); }

  #voices { background: #eff6f9; }
  #voices .voices-ref-heading,
  #voices .voices-ref-card-heading { color: var(--palette-navy); }
  #voices .voices-ref-lead,
  #voices .voices-ref-byline,
  #voices .voices-ref-note { color: var(--palette-muted); }
  #voices .voices-ref-card { background: var(--palette-paper); border-top-color: var(--palette-teal); }
  #voices .voices-ref-quote { color: var(--palette-body); }
  #voices .voices-ref-quote strong { color: var(--palette-teal); }
  #voices .voices-ref-byline { border-color: #bccfd9; }
  #voices .voices-ref-byline::before { background: var(--palette-teal); }
  #voices .voices-ref-industries { color: var(--palette-navy); background: var(--palette-soft); border-color: var(--palette-line); }
  #voices .source-industry-list li { color: var(--palette-navy); background: var(--palette-paper); border-color: var(--palette-line); }

  #goal { background: var(--palette-paper); }
  #goal .goal-banner { color: var(--palette-paper); background: #303b96; /* TOP lower CTA banner */ }
  #goal h2 { color: var(--palette-paper); }
  #goal .goal-copy { color: #edf5f8; }
  #goal .goal-contact { color: var(--palette-paper); background: var(--palette-contact); border-color: #ffe3e3; box-shadow: 0 5px 12px #0d293a2e; }
  #goal .goal-contact span { color: inherit; background: none; }
  #goal .goal-contact:hover { color: var(--palette-paper); background: var(--palette-contact-hover); box-shadow: 0 7px 18px #0d293a40; }
  #goal .goal-contact:focus-visible { outline-color: var(--palette-paper); box-shadow: 0 0 0 8px var(--palette-navy); }
}

/* CTAの形と配置 */
.site-header .header-actions {
  width: auto;
  grid-template-columns: max-content;
}
.site-header .header-actions .contact-inquiry {
  border-radius: 999px;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  justify-content: center;
  gap: 0;
}
@scope (.shift-wireframe) {
  .hero.hero-separated .hero-action .cta {
    border-radius: 999px;
    width: fit-content;
    max-width: 100%;
    padding-left: 32px;
    padding-right: 32px;
    justify-content: center;
    gap: 0;
  }
  @media (max-width: 1100px) {
    .hero.hero-separated .hero-action .cta {
      padding-left: 24px;
      padding-right: 24px;
    }
  }
}

/* ファーストビューの説明とCTAの間隔 */
@scope (.shift-wireframe) {
  @media (min-width: 768px) {
    .hero.hero-separated .hero-grid {
      grid-template-rows: auto 1fr;
      row-gap: 0;
    }
    .hero.hero-separated .hero-action {
      padding-top: 28px;
      /* 取り除いた行間はCTAの下へ移し、右側の画像・FV全体の位置を保つ。 */
      padding-bottom: 52px;
    }
  }
  @media (min-width: 768px) and (max-width: 1100px) {
    .hero.hero-separated .hero-action {
      padding-bottom: 32px;
    }
  }
}

/* 見出しの書体と太さ */
@scope (.shift-wireframe) {
  #pain #pain-title,
  #pain .pain-card h3,
  #solution h2,
  #effects #effects-title,
  #effects .effect-panel-heading,
  #effects .effect-card-heading h3,
  #effects .condition-details dt,
  #voices .voices-ref-heading,
  #voices .voices-ref-card-heading,
  #goal h2 {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
  }

  #pain #pain-title,
  #solution h2,
  #effects #effects-title,
  #voices .voices-ref-heading,
  #goal h2 {
    font-weight: 800;
  }
}

/* 課題解決の見出し */
@scope (.shift-wireframe) {
  #solution #solution-title > span { display: block; }
}

/* お悩みと課題解決 */
@scope (.shift-wireframe) {
  #pain.pain-designed {
    --pain-accent: #35a5bd;
    padding: 52px 60px 0;
    border: 0;
    background: #eff5f8;
    color: #173e56;
  }

  #pain > .wrap {
    display: flow-root;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
  }

  #pain .pain-heading {
    margin: 0 0 32px;
    text-align: center;
  }

  #pain .pain-heading .heading-support {
    margin: 0 0 8px;
    color: #173e56;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
  }

  #pain #pain-title {
    margin: 0;
    color: var(--palette-navy);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.6;
    letter-spacing: .04em;
  }

  #pain #pain-title > span {
    display: inline-block;
  }

  #pain .pain-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
    max-width: none;
    margin: 0;
    align-items: stretch;
  }

  #pain .pain-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 10px;
    border: 0;
    border-radius: 7px;
    overflow: visible;
    background: #fff;
    box-shadow: 0 8px 24px #173e560d;
  }

  #pain .pain-illustration {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  #pain .pain-illustration img {
    display: block;
    width: 100%;
    height: 172px;
    max-width: none;
    object-fit: contain;
  }

  #pain .pain-card h3 {
    display: block;
    flex: 1;
    min-height: 0;
    margin: 0 0 10px;
    padding: 0;
    background: none;
    color: #173e56;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.65;
    letter-spacing: normal;
    text-align: center;
    text-wrap: balance;
  }

  #pain .pain-card h3 > span {
    display: inline-block;
    white-space: nowrap;
  }

  #pain .pain-card p {
    margin: 0;
    padding: 0;
    color: #344f60;
    font-size: 15px;
    line-height: 1.95;
    letter-spacing: normal;
  }

  #pain .pain-card p strong {
    color: var(--pain-accent);
    font-weight: 700;
  }

  #pain .pain-solution-arrow {
    width: 110px;
    height: 29px;
    margin: 32px auto 28px;
    background: var(--pain-accent);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
  }

  #solution {
    padding-top: 0;
    border: 0;
    overflow: clip;
    isolation: isolate;
  }

  #solution .solution-message-wrap {
    width: min(1080px, calc(100% - 120px));
  }

  #solution .solution-message {
    position: relative;
    padding: 35px 36px 38px;
    border-top: 5px solid #35a5bd;
    border-radius: 8px;
    background: #35a5bd;
    color: #fff;
    text-align: center;
  }

  /* Extend the pale field partway behind the message, as in the prototype.
     The #solution clip keeps the full-bleed pseudo-element within the page. */
  #solution .solution-message::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -5px;
    left: 50%;
    width: 100vw;
    height: 43%;
    background: #eff5f8;
    transform: translateX(-50%);
  }

  #solution #solution-title {
    margin: 0 0 16px;
    color: #fff;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.65;
    letter-spacing: .025em;
    text-wrap: initial;
  }

  #solution #solution-title > span,
  #solution #solution-title em {
    display: inline-block;
  }

  #solution #solution-title em {
    color: #fff;
    font-style: normal;
    white-space: nowrap;
  }

  #solution .solution-lead {
    max-width: none;
    margin: 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.95;
    text-align: center;
    text-wrap: initial;
  }

  #solution .solution-lead > span {
    display: block;
  }

  #solution .flow-figure {
    margin-top: 34px;
  }

  @media (max-width: 767px) {
    #pain.pain-designed {
      padding: 34px 22px 0;
    }

    #pain .pain-heading { margin-bottom: 26px; }
    #pain .pain-heading .heading-support { font-size: 16px; }
    #pain #pain-title { font-size: 25px; }

    #pain .pain-grid {
      grid-template-columns: 1fr;
      max-width: 390px;
      margin-inline: auto;
    }

    #pain .pain-illustration {
      padding: 0;
    }

    #pain .pain-illustration img {
      height: 170px;
    }

    #pain .pain-card h3 {
      margin-top: 0;
    }

    #pain .pain-solution-arrow {
      width: 76px;
      height: 23px;
      margin: 28px auto 24px;
    }

    #solution .solution-message-wrap {
      width: calc(100% - 44px);
    }

    #solution .solution-message {
      padding: 26px 18px;
    }

    #solution .solution-message::before {
      height: 22%;
    }

    #solution #solution-title {
      font-size: 23px;
    }

    #solution .solution-lead {
      text-align: left;
    }

    #solution .solution-lead > span {
      display: inline;
    }

    #solution .flow-figure {
      margin-top: 24px;
    }
  }
}

/* お悩みから課題解決までの幅 */
@scope (.shift-wireframe) {
  #pain,
  #solution,
  #mechanism {
    --section-gutter: clamp(22px, 3vw, 72px);
  }

  #pain.pain-designed {
    padding-inline: var(--section-gutter);
  }

  #pain > .wrap,
  #pain .pain-grid {
    max-width: none;
  }

  #pain .pain-illustration img {
    height: clamp(172px, 18vw, 320px);
  }

  #solution .solution-message-wrap,
  #mechanism .solution-diagram-wrap {
    width: calc(100% - (var(--section-gutter) * 2));
    max-width: none;
  }

  #mechanism .flow-figure {
    max-width: none;
  }

  @media (max-width: 767px) {
    #pain .pain-illustration img {
      height: clamp(170px, 40vw, 300px);
    }
  }
}

/* 課題解決の見出しの重なり順 */
@scope (.shift-wireframe) {
  #solution .solution-message #solution-title { position: relative; z-index: 1; }
}

/* 課題解決の下端 */
@scope (.shift-wireframe) {
  #solution { padding-bottom: 0; }
}

/* 主な特徴のカード */
@scope (.shift-wireframe) {
  #effects.effects {
    padding: 32px 0;
    border: 0;
    background: #f3f7fa;
    color: #153d55;
  }

  #effects > .wrap {
    width: calc(100% - 64px);
    max-width: 1136px;
    margin: 0 auto;
  }

  #effects .practical-frame {
    padding: 34px 32px 32px;
    border-radius: 12px;
    background: #35a5bd;
  }

  #effects #effects-title.practical-heading {
    margin: 0 0 27px;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: normal;
    text-align: center;
    text-wrap: balance;
  }

  #effects .practical-heading > span {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.7;
  }

  #effects .practical-paper {
    padding: 18px 38px 14px;
    border-radius: 8px;
    background: #fff;
  }

  #effects .practical-point { padding: 18px 0 24px; }
  #effects .practical-point + .practical-point { padding-top: 8px; }

  #effects .practical-separator {
    display: flex;
    align-items: center;
    margin: 0 0 24px;
  }

  #effects .practical-separator::before,
  #effects .practical-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #a8d9e4;
  }

  #effects .practical-badge {
    position: relative;
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #153d55;
    color: #fff;
  }

  #effects .practical-badge::after {
    content: "";
    position: absolute;
    bottom: -5px;
    border-top: 8px solid #153d55;
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
  }

  #effects .practical-badge-label { font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: .045em; }
  #effects .practical-badge-number { font-size: 23px; font-weight: 700; line-height: 1.1; }

  #effects .practical-point-body {
    display: grid;
    grid-template-columns: 31% minmax(0, 1fr);
    align-items: start;
    gap: 36px;
  }

  #effects .practical-visual { min-width: 0; padding-top: 2px; text-align: center; }
  #effects .practical-visual h3 {
    margin: 0 0 18px;
    color: #153d55;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.6;
    text-wrap: balance;
  }
  #effects .practical-visual figure { margin: 0; }
  #effects .practical-visual img { display: block; width: 100%; height: 225px; object-fit: contain; }
  #effects .practical-copy { min-width: 0; }
  #effects .practical-copy h4 {
    margin: 0 0 21px;
    color: #153d55;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: .01em;
  }
  #effects .practical-copy h4 > span { display: block; }
  #effects .practical-details { margin: 0; }
  #effects .practical-details > div { margin: 0 0 21px; }
  #effects .practical-details > div:last-child { margin-bottom: 0; }
  #effects .practical-details dt { margin: 0 0 4px; color: #153d55; font-size: 17px; font-weight: 700; line-height: 1.65; }
  #effects .practical-details dd { margin: 0; color: #344f60; font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
  #effects .practical-note { margin: 20px 0 0; color: #526a79; font-size: 12px; line-height: 1.8; }

  @media (max-width: 700px) {
    #effects.effects { padding: 16px 0; }
    #effects > .wrap { width: calc(100% - 24px); }
    #effects .practical-frame { padding: 26px 12px 12px; border-radius: 9px; }
    #effects #effects-title.practical-heading { margin-bottom: 24px; font-size: 24px; }
    #effects .practical-heading > span { font-size: 16px; }
    #effects .practical-paper { padding: 8px 20px; }
    #effects .practical-point { padding: 16px 0 24px; }
    #effects .practical-point-body { grid-template-columns: 1fr; gap: 22px; }
    #effects .practical-visual h3 { margin-bottom: 12px; font-size: 20px; }
    #effects .practical-visual img { max-width: 270px; height: 195px; margin: auto; }
    #effects .practical-copy h4 { margin-bottom: 18px; font-size: 22px; }
    #effects .practical-copy h4 > span { display: inline; }
    #effects .practical-badge { width: 52px; height: 52px; }
  }
}

/* 主な特徴の図 */
@scope (.shift-wireframe) {
  #effects .practical-point-title {
    margin: 0 0 22px;
    color: #153d55;
    font-family: "Noto Sans JP", sans-serif;
    font-size: clamp(23px, 2.4vw, 32px);
    font-weight: 700;
    line-height: 1.6;
    text-align: left;
    text-wrap: balance;
  }

  #effects .practical-title-chunk { display: inline-block; white-space: nowrap; }

  #effects .practical-point-body.practical-diagram-layout {
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
  }

  #effects .practical-diagram {
    display: block;
    min-width: 0;
    margin: 0;
  }

  #effects .practical-diagram-link { display: block; color: #153d55; }
  #effects .practical-diagram img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: contain;
  }

  #effects .practical-diagram-zoom { display: none; }
  #effects .practical-diagram-layout .practical-copy {
    min-width: 0;
    padding-left: 24px;
    border-left: 1px solid #a8d9e4;
  }

  #effects .practical-summary {
    margin: 0;
    color: #344f60;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.95;
    overflow-wrap: anywhere;
  }

  #effects .practical-diagram-layout .practical-note { font-size: 13px; }

  @media (max-width: 900px) {
    #effects .practical-point-body.practical-diagram-layout {
      grid-template-columns: 1fr;
      gap: 18px;
    }
    #effects .practical-diagram-layout .practical-copy { padding-left: 0; border-left: 0; }
    #effects .practical-summary { font-size: 17px; }
    #effects .practical-diagram-zoom {
      display: block;
      margin-top: 8px;
      color: #153d55;
      font-size: 13px;
      line-height: 1.6;
      text-align: right;
      text-decoration: underline;
    }
  }

  @media (max-width: 700px) {
    #effects .practical-point-title { margin-bottom: 18px; font-size: 23px; }
    #effects .practical-diagram-layout .practical-note { font-size: 12px; }
  }
}

/* 課題解決と主な特徴の外枠 */
@scope (.shift-wireframe) {
  #solution {
    padding-bottom: 32px;
    background: linear-gradient(to bottom, #eff5f8 110px, #f3f7fa 110px);
  }

  #solution > .solution-unified-frame {
    width: calc(100% - var(--section-gutter) * 2);
    max-width: none;
    margin-inline: auto;
    padding: 0 32px 32px;
    overflow: hidden;
    border-radius: 12px;
    background: #35a5bd;
  }

  #solution .solution-message-wrap {
    width: auto;
    max-width: none;
    margin: 0 -32px;
  }

  #solution .solution-message {
    padding: 40px 36px 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  #solution .solution-message::before { content: none; }

  /* Keep the puzzle decoration in the header's right edge, not over the points. */
  #solution .solution-watermark {
    left: auto;
    width: 20%;
    max-width: 260px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 55%);
    mask-image: linear-gradient(to right, transparent, #000 55%);
  }

  #solution #effects.effects {
    padding: 0;
    border: 0;
    background: transparent;
  }

  #effects > .wrap { width: 100%; max-width: none; margin: 0; }
  #effects .practical-frame { padding: 0; border-radius: 0; background: transparent; }

  #effects #effects-title.practical-heading {
    margin: 0 0 24px;
    color: #fff;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.7;
    text-align: center;
    text-wrap: balance;
  }

  /* Equal diagram/copy columns; the existing divider and inter-column gap stay. */
  #effects .practical-point-body.practical-diagram-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  @media (max-width: 900px) {
    #effects .practical-point-body.practical-diagram-layout { grid-template-columns: 1fr; }
  }

  @media (max-width: 767px) {
    #solution { padding-bottom: 16px; }
    #solution > .solution-unified-frame { padding: 0 12px 12px; border-radius: 9px; }
    #solution .solution-message-wrap { margin-inline: -12px; }
    #solution .solution-message { padding: 28px 18px 20px; }
    #solution .solution-watermark { top: 0; bottom: auto; width: 64px; height: 32px; }
    #solution .fit-mark { top: -90px; bottom: auto; right: -130px; }
    #effects #effects-title.practical-heading { margin-bottom: 20px; font-size: 18px; }
    #effects .practical-paper { padding: 8px 20px; }
  }
}

/* 課題解決のカード */
@scope (.shift-wireframe) {
  #solution .solution-overview {
    padding: 40px 32px 32px;
    background: transparent;
  }

  #solution .solution-overview #solution-title {
    margin: 0 0 30px;
    color: #fff;
    font-size: clamp(28px, 3.4vw, 48px);
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: .015em;
    text-align: center;
  }

  #solution .solution-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
  }

  #solution .solution-benefit-card {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 18px;
    min-width: 0;
    margin: 0;
    padding: 20px 18px 24px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #153d55;
  }

  #solution .solution-benefit-illustration {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 3 / 2;
    margin: 0 auto;
  }

  #solution .solution-benefit-illustration img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  #solution .solution-benefit-copy {
    align-self: start;
    margin: 0;
    color: #153d55;
    font-family: "Noto Sans JP", sans-serif;
    font-size: clamp(18px, 1.6vw, 24px);
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: normal;
    text-align: center;
  }

  #solution .solution-benefit-copy > span { display: block; }

  #solution .solution-responsibility {
    margin: 24px 0 0;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.8;
    text-align: center;
  }

  #solution .solution-responsibility > span { display: inline-block; }

  @media (max-width: 900px) {
    #solution .solution-benefit-grid {
      grid-template-columns: 1fr;
      max-width: 560px;
      margin-inline: auto;
    }
  }

  @media (max-width: 767px) {
    #solution .solution-overview { padding: 28px 12px 24px; }
    #solution .solution-overview #solution-title { margin-bottom: 24px; font-size: 28px; }
    #solution .solution-benefit-grid { gap: 18px; }
    #solution .solution-benefit-card { gap: 16px; padding: 16px 16px 20px; border-radius: 10px; }
    #solution .solution-benefit-copy { font-size: 18px; }
    #solution .solution-responsibility { margin-top: 22px; font-size: 16px; text-align: left; }
  }
}

/* 主な特徴の詳細カード */
@scope (.shift-wireframe) {
  #solution {
    padding-bottom: 0;
    background: linear-gradient(to bottom, #eff5f8 110px, #f3f4f5 110px);
  }

  #solution > .solution-unified-frame { padding: 0; }
  #solution .solution-message-wrap { width: 100%; margin: 0; }
  #solution .solution-overview { padding: 32px; }

  #effects.effects {
    --effects-gutter: clamp(22px, 3vw, 72px);
    padding: 56px 0 64px;
    border: 0;
    background: #f3f4f5;
    color: #153d55;
  }

  #effects > .wrap {
    width: calc(100% - var(--effects-gutter) * 2);
    max-width: none;
    margin-inline: auto;
  }

  #effects .practical-frame { padding: 0; background: transparent; }

  #effects #effects-title.practical-heading {
    margin: 0 0 32px;
    color: #153d55;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.6;
  }

  #effects .practical-paper {
    display: grid;
    gap: 32px;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  #effects .practical-point,
  #effects .practical-point + .practical-point {
    min-width: 0;
    padding: 36px clamp(24px, 3vw, 44px) 40px;
    border: 1px solid #d4e5eb;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 24px -6px #153d551a, 0 2px 6px #153d550a;
  }

  @media (max-width: 767px) {
    #solution .solution-overview { padding: 20px; }
    #effects.effects { padding: 36px 0 40px; }
    #effects #effects-title.practical-heading { margin-bottom: 24px; font-size: 25px; }
    #effects .practical-paper { gap: 24px; }
    #effects .practical-point,
    #effects .practical-point + .practical-point { padding: 24px 20px 28px; border-radius: 18px; }
  }
}

/* 詳細カードの番号と見出し */
@scope (.shift-wireframe) {
  #effects .practical-point-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 32px;
  }

  #effects .practical-number {
    display: flex;
    flex: 0 0 96px;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #e5f3f7;
    color: #153d55;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }

  #effects .practical-point-header .practical-point-title {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    color: #153d55;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.6;
    text-align: left;
  }

  @media (min-width: 768px) and (max-width: 1100px) {
    #effects .practical-number { flex-basis: 80px; width: 80px; height: 80px; font-size: 30px; }
    #effects .practical-point-header .practical-point-title { font-size: 26px; }
  }

  @media (max-width: 767px) {
    #effects .practical-point-header { justify-content: flex-start; gap: 14px; margin-bottom: 24px; }
    #effects .practical-number { flex-basis: 56px; width: 56px; height: 56px; font-size: 23px; }
    #effects .practical-point-header .practical-point-title { font-size: 21px; }
    #effects .practical-point-header .practical-title-chunk { max-width: 100%; white-space: normal; }
  }
}

/* 詳細カード内のテキストと画像 */
@scope (.shift-wireframe) {
  #effects .practical-point-body.practical-zigzag {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "copy diagram";
    gap: 40px;
    align-items: stretch;
  }

  #effects .practical-point:nth-child(even) .practical-zigzag {
    grid-template-areas: "diagram copy";
  }

  #effects .practical-zigzag .practical-copy {
    --point-number-size: 64px;
    --point-heading-gap: 16px;
    grid-area: copy;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  #effects .practical-zigzag .practical-point-header {
    justify-content: flex-start;
    gap: var(--point-heading-gap);
    max-width: none;
    margin: 0 0 20px;
  }

  #effects .practical-zigzag .practical-number {
    flex: 0 0 var(--point-number-size);
    width: var(--point-number-size);
    height: var(--point-number-size);
    font-size: 26px;
  }

  #effects .practical-zigzag .practical-point-header .practical-point-title {
    font-size: 28px;
    line-height: 1.6;
    text-align: left;
  }

  #effects .practical-zigzag .practical-title-chunk {
    max-width: 100%;
    white-space: normal;
  }

  #effects .practical-zigzag .practical-summary {
    margin: 0 0 0 calc(var(--point-number-size) + var(--point-heading-gap));
  }

  #effects .practical-zigzag .practical-diagram {
    grid-area: diagram;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    margin: 0;
  }

  #effects .practical-zigzag .practical-diagram-link { width: 100%; }

  @media (max-width: 900px) {
    #effects .practical-point-body.practical-zigzag,
    #effects .practical-point:nth-child(even) .practical-zigzag {
      grid-template-columns: 1fr;
      grid-template-areas: "copy" "diagram";
      gap: 24px;
    }
  }

  @media (max-width: 767px) {
    #effects .practical-zigzag .practical-copy {
      --point-number-size: 48px;
      --point-heading-gap: 12px;
    }
    #effects .practical-zigzag .practical-point-header { margin-bottom: 16px; }
    #effects .practical-zigzag .practical-number { font-size: 21px; }
    #effects .practical-zigzag .practical-point-header .practical-point-title { font-size: 21px; }
  }
}

/* セクション本文の太さ */
#main .hero .keywords > b,
#main .hero .phone-note,
#main .hero .hero-time-note,
#main #pain .pain-heading .heading-support,
#main #solution .solution-responsibility,
#main #effects .practical-summary,
#main #effects .practical-diagram-zoom,
#main #voices .voices-ref-lead,
#main #voices .voices-ref-quote p,
#main #voices .voices-ref-byline,
#main #voices .voices-ref-note,
#main #related .section-heading > p,
#main #related .related-product-description,
#main #goal .goal-copy {
  font-weight: 700;
}

/* 見出しの下線 */
#main #pain-title::after,
#main #solution-title::after,
#main #effects-title::after,
#main #voices-title::after {
  content: "";
  display: block;
  width: 96px;
  height: 5px;
  margin: 12px auto 0;
  border-radius: 3px;
  background: #35a5bd;
}

/* 事例セクションの背景とカード */
#main #voices.voices-reference {
  background: #35a5bd;
  border-top-color: #35a5bd;
  color: #fff;
}

#main #voices #voices-title,
#main #voices .voices-ref-lead,
#main #voices .voices-ref-note { color: #fff; }

#main #voices #voices-title,
#main #voices .voices-ref-lead { text-align: center; }

#main #voices #voices-title::after { background: #fff; }

#main #voices .voices-ref-cards { margin-top: 32px; gap: 28px; }

#main #voices .voices-ref-card {
  padding: 24px 26px 20px;
  border-top-color: #35a5bd;
  background: #fff;
  color: #153d55;
}

#main #voices .voices-ref-card-header {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
}

#main #voices .voices-ref-portrait {
  position: static;
  inset: auto;
  display: block;
  width: 96px;
  height: 96px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

#main #voices .voices-ref-card-heading {
  display: block;
  min-width: 0;
  min-height: 0;
  margin: 0;
  color: #153d55;
}

#main #voices .voices-ref-card-heading br { display: initial; }
#main #voices .voices-ref-quote { color: #153d55; }
#main #voices .voices-ref-quote strong { color: #35a5bd; }
#main #voices .voices-ref-byline::before { background: #35a5bd; }

/* Keep the industry panel readable after the section's foreground becomes white. */
#main #voices .voices-ref-industries { color: #153d55; }

@media (max-width: 767px) {
  #main #voices .voices-ref-cards { margin-top: 28px; gap: 24px; }
  #main #voices .voices-ref-card { padding: 20px 20px 16px; }
  #main #voices .voices-ref-card-header { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  #main #voices .voices-ref-portrait { width: 72px; height: 72px; }
}

@media (max-width: 359px) {
  #main #voices .voices-ref-card { padding-inline: 16px; }
  #main #voices .voices-ref-card-header { grid-template-columns: 60px minmax(0, 1fr); gap: 10px; }
  #main #voices .voices-ref-portrait { width: 60px; height: 60px; }
}

/* 事例セクションの見出し */
#main #voices .voices-ref-card-header { container-type: inline-size; }

#main #voices .voices-ref-card-heading {
  font-size: 26px;
  font-size: clamp(18px, calc((100cqw - 110px) / 13.5), 26px);
}

#main #voices .voices-ref-heading-line {
  display: block;
  white-space: nowrap;
}

#main #voices .voices-ref-card-heading .voices-ref-heading-accent {
  color: #35a5bd;
  font-weight: inherit;
}

#main #voices .voices-ref-quote strong { color: inherit; }
#main #voices .voices-ref-byline { color: #153d55; }

@media (max-width: 1100px) {
  #main #voices .voices-ref-card-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
  }
  #main #voices .voices-ref-portrait { width: 80px; height: 80px; }
  #main #voices .voices-ref-card-heading {
    width: 100%;
    font-size: 22px;
    font-size: clamp(18px, calc(100cqw / 13.5), 26px);
    text-align: center;
  }
}

@media (max-width: 767px) {
  #main #voices .voices-ref-portrait { width: 64px; height: 64px; }
}

@media (max-width: 359px) {
  #main #voices .voices-ref-portrait { width: 60px; height: 60px; }
}

/* 問い合わせボタンのホバー表示 */
@media (hover: hover) {
  .site-header .header-actions .contact-inquiry:hover {
    background-color: #fff;
    /* The existing header gradient is marked important in page.css. */
    background-image: none !important;
    color: #bd3d45;
    box-shadow: inset 0 0 0 2px currentColor;
  }

  @scope (.shift-wireframe) {
    .hero.hero-separated .hero-action .cta:hover {
      background: #fff;
      color: #bd3d45;
      box-shadow: inset 0 0 0 2px currentColor;
    }

    #goal .goal-contact:hover {
      background: #fff;
      color: #bd3d45;
      border-color: currentColor;
    }
  }
}

/* 関連製品のアイコンとカード */
#main #related .section-heading > p {
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

#main #related .product-map > * {
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 0;
  padding: 24px 12px;
  text-align: center;
}

#main #related .related-product-icon {
  display: block;
  flex: none;
  width: 64px;
  height: 64px;
  color: #35a5bd;
}

#main #related .related-product-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

#main #related .related-product-title {
  min-height: 3em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#main #related .related-product-subname {
  display: block;
}

/* The line below #related belongs to the following goal section. */
#main #related { border-bottom: 0; }
#main #related + .shift-wireframe #goal { border-top: 0; }

@media (min-width: 768px) and (max-width: 1100px) {
  #main #related .product-map { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  #main #related .product-map > * { padding: 20px 10px; gap: 12px; }
  #main #related .related-product-icon { width: 56px; height: 56px; }
}

/* モバイルナビゲーションの配置 */
@media (max-width: 1199px) {
  .site-header #site-nav {
    align-items: center;
  }

  .site-header #site-nav .site-nav-list a {
    text-align: center;
  }

  .site-header #site-nav .header-actions {
    width: auto;
    grid-template-columns: max-content;
    justify-items: center;
    margin-left: auto;
    margin-right: auto;
  }
}

/* 作成時間の比較図の表示 */
@scope (.shift-wireframe) {
  #effects .practical-point[aria-labelledby="speed-point-title"] .practical-diagram img {
    aspect-ratio: auto;
  }
}

/* ファーストビューの端末画面 */
@scope (.shift-wireframe) {
  .hero.hero-separated .hero-phone > a { display: block; }

  #effects .provided-request-screen {
    width: min(100%, 900px);
    margin: 28px auto 0;
    padding: 24px 0 0;
    border-top: 1px solid #d4e5eb;
  }

  #effects .provided-request-screen figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
    color: #153d55;
    text-align: left;
  }

  #effects .provided-screen-logo { display: block; width: 220px; max-width: 100%; height: auto; }
  #effects .provided-request-screen strong { display: block; font-size: 18px; line-height: 1.7; font-weight: 700; }
  #effects .provided-request-screen small { display: block; margin-top: 3px; color: #344f60; font-size: 14px; line-height: 1.7; font-weight: 700; }
  #effects .provided-screen-link { display: block; width: 100%; }
  #effects .provided-screen-link > img { display: block; width: 100%; height: auto; }
  #effects .provided-screen-mobile-excerpts { display: none; }
  .hero-phone > a:focus-visible,
  #effects .provided-screen-link:focus-visible { outline: 3px solid #153d55; outline-offset: 5px; }

  @media (max-width: 767px) {
    #effects .provided-request-screen { margin-top: 24px; padding-top: 24px; }
    #effects .provided-request-screen figcaption { flex-direction: column; align-items: flex-start; gap: 12px; }
    #effects .provided-screen-logo { width: 200px; }
    #effects .provided-request-screen strong { font-size: 17px; }
    #effects .provided-request-screen small { font-size: 13px; }
    #effects .provided-screen-desktop { display: none; }
    #effects .provided-screen-mobile-excerpts { display: grid; gap: 20px; }
    #effects .provided-screen-mobile-excerpts p { margin: 0 0 8px; color: #153d55; font-size: 15px; font-weight: 700; line-height: 1.7; }
  }
}

/* 主な特徴の図の縦横比 */
@scope (.shift-wireframe) {
  #effects .practical-paper { grid-auto-rows: 1fr; }
  #effects .practical-point { display: grid; }
  #effects .practical-point-body.practical-zigzag { height: 100%; }
  #effects .practical-point .practical-point-body .practical-diagram img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
  }
  #effects .practical-zigzag .practical-diagram.real-screen-visual { justify-content: center; gap: 0; }

  @media (max-width: 900px) {
    #effects .practical-point-body.practical-zigzag { grid-template-rows: minmax(min-content, 1fr) auto; }
  }
}
