@charset "utf-8";
/* 共通ヘッダー・カード・モーダル・フローの基本
 * 編集先の案内: ../CSS_MAINTENANCE.md
 * 各章の順序はカスケードを維持するため固定。日付・改修番号のCSSを追加しない。
 */

/* ===== SECTION 01 | 移行元: rev22.css ===== */
/* REV22：採否反映と、指定された共通UI・FV・読み進めの補助。 */
:root {
  --apply-background: #fd7c2b;
  --apply-hover: #ee6819;
  --brand-dekisugi: #01508f;
}

.smart-header .wordmark {
  width: 220px;
  flex: 0 0 auto;
  align-items: stretch;
}

.smart-header .wordmark .brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.logo-asset-fallback {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  color: #01508f;
}

.smart-header .logo-asset-fallback {
  width: 100%;
  text-align: center;
}

.story-extra-title .logo-asset-fallback {
  font-size: 26px;
}

.logo-asset-fallback[hidden],
img[hidden] {
  display: none !important;
}

.smart-header .brand-tagline {
  width: 100%;
  text-align: left;
  font-size: 13px;
  letter-spacing: var(--brand-tracking, 0);
}

.header-story-mobile {
  display: none;
}

.smart-header .header-story-mobile {
  background: #01508f;
  color: #fff;
  box-shadow: none;
  border-color: transparent;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
}

.smart-header .header-apply,
#bottomCta .bottom-cta-apply {
  background: var(--apply-background) linear-gradient(to right, var(--apply-hover) 50%, var(--apply-background) 50%);
  background-size: 205% 100%;
  background-position: right bottom;
  color: #fff;
  transition: background-position .35s ease;
}

#bottomCta .bottom-cta-inner {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#bottomCta .bottom-cta-action {
  min-height: 64px;
}

#bottomCta .bottom-cta-story {
  background: var(--brand-dekisugi);
}

.story-page #bottomCta {
  display: none;
}

@media (hover: hover) {

  .smart-header .header-apply:hover,
  #bottomCta .bottom-cta-apply:hover {
    background: var(--apply-background) linear-gradient(to right, var(--apply-hover) 50%, var(--apply-background) 50%);
    background-size: 205% 100%;
    background-position: left bottom;
  }
}

.smart-header a:focus-visible,
#bottomCta a:focus-visible {
  outline: 3px solid #17384b;
  outline-offset: 3px;
}

/* TOP：写真の帯を取り除き、住まいの光を感じる一枚の背景へ。 */
.page-top .hero-world-grid {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  padding: 48px max(32px, calc((100% - 1200px) / 2));
  gap: 48px;
  background: #edf5f9;
  overflow: hidden;
}

.page-top .hero-world-grid > .hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  pointer-events: none;
}

.page-top .hero-backdrop > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}

.page-top .hero-world-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, #f8fcfff5 0%, #f8fcfff0 34%, #f2f8fcad 63%, #edf6fb70 100%);
}

.hero-world .hero-copy {
  z-index: 1;
}

.hero-world .hero-world-visual {
  max-width: 510px;
}

/* REV45: 写真を別素材として配置。淡い縁で背景と分離し、写真そのものは変形しない。 */
.hero-world .hero-transition {
  aspect-ratio: 440 / 405;
  border: 9px solid #f6fafe;
  border-radius: 47% 53% 46% 54% / 42% 44% 56% 58%;
}

.hero-world .hero-transition img {
  object-position: 52% center;
}

.hero-world .hero-transition .hero-after {
  object-position: 53% center;
}

@media (min-width: 761px) {
  .hero-world .hero-world-visual {
    /* REV46: 左上の位置をほぼ保ったまま、枠を約7%拡大。 */
    max-width: clamp(300px, 32.65vw, 470px);
    margin-inline: 0;
    top: clamp(8px, 1vw, 14px);
  }

  .hero-world .hero-transition .hero-after {
    object-position: 55% center;
  }
}

.page-top #mobile-benefit .section-heading {
  text-align: left;
  max-width: 920px;
  margin-inline: auto;
}

.page-top #mobile-benefit .benefit-definition {
  max-width: none;
  margin: 16px 0;
  padding: 0 0 0 16px;
  border-left: 3px solid #8bbed6;
  color: #315d76;
  font-size: 16px;
}

.page-top #mobile-benefitTitle {
  text-wrap: pretty;
}

/* PCのページ目次。丸印を結び、現在のセクションを強調する。 */
@media (min-width: 1440px) {
  #desktopRail {
    top: 92px;
    bottom: auto;
    max-height: calc(100dvh - 200px);
    padding: 12px 8px 20px;
    border-color: #cbdef7;
    box-shadow: none;
  }
}

#desktopRail .rail-heading {
  align-items: center;
  margin: 0 3px;
  padding: 0 3px 7px;
  border-bottom: 1px solid #cbdef7;
}

#desktopRail .rail-title {
  margin: 0;
  padding: 0;
  color: #173b52;
  font-size: 16px;
}

#railClose {
  min-height: 28px;
  padding: 2px 0 2px 5px;
}

#railNav {
  --rail-axis: 16px;
  gap: 0;
  margin-block: 7px 10px;
}

#railNav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 4px 7px 37px;
  border: 0;
  font-size: 15px;
  line-height: 1.5;
}

#railNav a::before {
  content: "";
  position: absolute;
  left: var(--rail-axis);
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  width: 2px;
  background: #abc6e7;
}

#railNav a:first-child::before {
  top: 50%;
}

#railNav a:last-child::before {
  bottom: 50%;
}

#railNav a::after {
  content: "";
  position: absolute;
  left: var(--rail-axis);
  top: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  width: 8px;
  height: 8px;
  border: 2px solid #94b5da;
  border-radius: 50%;
  background: white;
}

#railNav a[aria-current="location"] {
  color: #1266cc;
  background: #eaf2ff;
  font-weight: 700;
}

#railNav a[aria-current="location"]::after {
  width: 14px;
  height: 14px;
  background: #1266cc;
  border-color: #1266cc;
  box-shadow: inset 0 0 0 2px white;
}

#desktopRail .rail-actions {
  display: grid;
  gap: 16px;
  margin: 0 1px;
  padding-top: 18px;
  border-top: 1px solid #cbdef7;
}

#desktopRail .rail-action {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 10px 6px 10px 12px;
  border: 1px solid #d2e1ef;
  border-radius: 6px;
  color: #48657e;
  background: white;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  min-height: 44px;
}

/* アイコンはレール幅やSVGの既定サイズに連動させない。 */
#desktopRail .rail-action > svg {
  display: block;
  width: 16px;
  height: 16px;
  min-width: 0;
}

#desktopRail .rail-action > .rail-chevron {
  width: 10px;
  height: 15px;
}

#desktopRail .rail-action > span {
  min-width: 0;
  white-space: nowrap;
}

#desktopRail .rail-action {
  font-size: 13px;
}

#desktopRail .rail-story-link {
  grid-template-columns: minmax(0, 1fr) 18px;
  min-height: 51px;
  color: white;
  background: #00538e;
  border-color: #00538e;
  font-weight: 700;
}

@media (hover: hover) {

  #railNav a:not([aria-current]):hover,
  #desktopRail .rail-contact:hover {
    background: #f2f7fc;
  }

  #desktopRail .rail-story-link:hover {
    background: #004575;
  }
}

/* 装飾写真は通常のスクロールで流す。文字を上に重ねない。 */
.life-scene {
  margin: 0;
  width: 100%;
  height: clamp(170px, 22vw, 320px);
  overflow: hidden;
  background: #eff5f7;
}

.life-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.life-scene-room img {
  object-position: 50% 38%;
}

.life-scene-kitchen img {
  object-position: 50% 56%;
}

/* H列の中盤構成。節は統合し、見出しと余白で役割を分ける。 */
.story-design .story-design-process,
.story-design .story-design-reward {
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid #ffffff3b;
}

.story-design .story-design-process p,
.story-design .story-design-reward p {
  font-size: 17px;
  line-height: 2.05;
}

.story-design .story-design-process p + p,
.story-design .story-design-reward p + p {
  margin-top: 20px;
}

.story-design > .reading > .note {
  margin-top: 32px;
  font-size: 12px;
  line-height: 1.9;
}

.story-article .story-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-block: 28px;
}

.story-article .story-choices li {
  display: flex;
  align-items: center;
  min-height: 96px;
  margin: 0;
  padding: 18px 22px;
  background: #f0f6fa;
  border-radius: 6px;
  color: #254d67;
  font-size: 16px;
  font-weight: 600;
}

.story-article .story-choices li::before {
  content: none;
}

.story-extra {
  background: #edf5fa;
}

.story-article .story-extra-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 10px;
}

.story-extra-title img {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
  align-self: center;
}

/* ロゴと文章は上下中央を揃え、入れ子の「は、」を重ねて縮小しない。 */
.story-extra-title > span {
  font-size: .85em;
}

.story-extra-title .story-extra-suffix {
  font-size: inherit;
}

.story-extra-title .story-extra-question {
  white-space: nowrap;
}

.story-benefit-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin: 32px 0;
  padding: 26px;
  background: #fff;
  border-radius: 8px;
}

.story-benefit-summary figure {
  margin: 0;
  align-self: center;
}

.story-benefit-facts {
  min-width: 0;
  align-self: center;
}

.story-benefit-facts .story-benefit-family {
  margin: 0;
}

.story-benefit-summary img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.story-benefit-facts p {
  font-size: 15px;
  line-height: 1.9;
}

.story-benefit-facts .story-benefit-limit {
  margin-top: 18px;
}

/* 3行を分け、大きな10の行ボックスが他の行間を広げないようにする。 */
.story-benefit-facts .story-benefit-limit {
  margin-bottom: 0;
  line-height: 1.6;
}

.story-benefit-limit > .story-benefit-intro,
.story-benefit-limit > .story-benefit-household,
.story-benefit-limit > .story-benefit-total {
  display: block;
}

.story-benefit-limit > .story-benefit-household {
  margin-top: 5px;
}

.story-benefit-limit > .story-benefit-total {
  margin-top: 4px;
  line-height: 1.4;
}

.story-benefit-limit strong {
  font-size: 17px;
  font-weight: 600;
  color: #17457e;
}

.story-benefit-limit .story-benefit-number {
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}

.story-note-ending {
  white-space: nowrap;
}

.story-response-detail .story-note-marker {
  margin-left: -.15em;
  vertical-align: super;
  line-height: 0;
}

@media(max-width:760px) {
  .story-benefit-desktop-break {
    display: none;
  }

  .story-page .story-benefit-limit .story-benefit-number {
    font-size: 38px !important;
  }
}

.story-context-timeline {
  margin: 24px 0 30px;
  padding-left: 20px;
  border-left: 3px solid #a9c9dc;
}

.story-context-timeline p + p {
  margin-top: 22px;
}

.story-mobile > .reading > p:last-child {
  font-size: 12px;
  color: #4e6677;
  line-height: 1.9;
}

/* マーカー：文字は最初から表示し、下側の色面だけを一度伸ばす。 */
.read-mark {
  font-weight: 600;
  color: inherit;
  background: linear-gradient(#d9ebf5, #d9ebf5) left 94% / 100% .42em no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .7s ease-out;
}

.story-design .read-mark {
  background-image: linear-gradient(#8bc5e048, #8bc5e048);
}

.read-mark.read-mark-pending {
  background-size: 0 .42em;
}

.read-mark.read-mark-shown {
  background-size: 100% .42em;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .smart-header .wordmark {
    width: 180px;
  }
}

@media (max-width: 760px) {
  #bottomCta .bottom-cta-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 920px;
  }

  #bottomCta .bottom-apply-details {
    display: none;
  }

  #bottomCta .bottom-cta-action {
    min-height: 52px;
  }

  .story-page #bottomCta {
    display: block;
  }

  /* .story-page {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  } */

  .page-top .hero-world-grid {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 24px;
  }

  .page-top .hero-world-grid::after {
    background: linear-gradient(180deg, #f8fcfff2, #f8fcffdf 53%, #edf6fbbb);
  }

  .hero-world .hero-world-visual {
    width: min(470px, 100%);
  }

  .hero-world .hero-transition {
    aspect-ratio: 1.48;
    border-width: 6px;
    border-radius: 44% 56% 48% 52% / 45% 42% 58% 55%;
  }

  .life-scene {
    height: clamp(170px, 32vw, 240px);
  }
}

@media (max-width: 900px) {
  .smart-header .header-apply-desktop {
    display: none;
  }

  .smart-header .header-story-mobile {
    display: inline-flex;
    margin-left: auto;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 6px;
    white-space: nowrap;
  }

  .smart-header .wordmark {
    width: 180px;
  }
}

@media (max-width: 600px) {
  .smart-header {
    gap: 8px;
    padding-inline: 16px;
  }

  .smart-header .wordmark {
    width: clamp(132px, 39vw, 168px);
  }

  .smart-header .brand-tagline {
    font-size: 13px;
  }

  .smart-header .header-story-mobile {
    padding-inline: 9px;
    font-size: 13px;
  }

  #bottomCta .bottom-apply-label {
    font-size: clamp(12px, 3.4vw, 15px);
    gap: 4px;
  }

  .page-top .hero-world-grid {
    padding-inline: 22px;
  }

  .hero-world .hero-copy h1 {
    font-size: clamp(23px, 6.3vw, 34px);
  }

  .page-top #mobile-benefit .benefit-definition {
    font-size: 14px;
    margin-block: 14px;
  }

  .story-article .story-choices {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .story-article .story-choices li {
    min-height: 70px;
    padding: 16px 20px;
  }

  .story-extra-title img {
    width: 220px;
  }

  .story-benefit-summary {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 22px;
  }

  .story-benefit-summary figure {
    width: min(360px, 100%);
    margin-inline: auto;
  }

  .story-design .story-design-process p,
  .story-design .story-design-reward p {
    font-size: 16px;
    line-height: 2;
  }

  .story-design .story-design-process,
  .story-design .story-design-reward {
    margin-top: 30px;
    padding-top: 28px;
  }

  .life-scene {
    height: 185px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .read-mark {
    transition: none;
  }

  .read-mark.read-mark-pending {
    background-size: 100% .42em;
  }
}

#bottomCta[hidden] {
  display: none !important;
}

/* REV22a：STORY内で完結する詳細と、H列の補助表現。 */
.story-mobile .story-benefit-details {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  background: transparent;
  border: 0;
  color: var(--navy);
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: .25em;
  cursor: pointer;
}

.story-mobile .story-benefit-details:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
}

.story-decision-questions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin: 30px 0 38px;
}

.story-decision-questions p {
  position: relative;
  margin: 0;
  padding: 18px 20px;
  background: #e9f1f5;
  border-radius: 14px;
  color: #385b70;
  font-size: 14px;
  line-height: 1.9;
}

.story-decision-questions p:nth-child(2) {
  background: #fff;
}

.story-decision-questions p::after {
  content: '';
  position: absolute;
  left: 28px;
  bottom: -9px;
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
  background: inherit;
}

.story-decision-questions p {
  opacity: 1;
  transition: opacity .7s ease;
}

.story-decision-questions p:nth-child(2) {
  transition-delay: .2s;
}

.story-decision-questions.reveal-pending p {
  opacity: .35;
}

.story-context-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 26px 0 32px;
}

.story-context-overview li {
  padding: 15px 14px;
  background: #edf5fa;
  border-radius: 6px;
}

.story-context-overview span {
  display: block;
  margin-bottom: 6px;
  color: #526f83;
  font-size: 12px;
}

.story-context-overview strong {
  display: block;
  color: #17457e;
  font-size: 14px;
  line-height: 1.7;
}

.story-context-step {
  padding: 26px 0;
  border-top: 1px solid #dce5ea;
}

.story-context-step .story-context-period {
  font-size: 12px;
  color: #526f83;
  margin-bottom: 8px;
}

.story-context-step h3,
.story-context-takeaway h3 {
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.story-context-step h4 {
  font-size: 16px;
  line-height: 1.8;
  margin: 24px 0 10px;
}

.story-context-step p + p {
  margin-top: 16px;
}

.story-context-example {
  margin-top: 22px;
  padding: 18px;
  border-left: 3px solid #a9c9dc;
  background: #f5f8fa;
}

.story-context-example h4 {
  margin-top: 0;
}

.story-context-takeaway {
  padding: 22px;
  background: #eaf3f8;
  border-radius: 6px;
}

@media (max-width: 600px) {
  .story-decision-questions {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .story-decision-questions p {
    width: 92%;
  }

  .story-decision-questions p:nth-child(2) {
    justify-self: end;
  }

  .story-context-overview {
    grid-template-columns: 1fr;
  }

  .story-context-overview li {
    padding: 12px 16px;
  }

  .story-context-overview span {
    margin-bottom: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-decision-questions p {
    transition: none;
  }

  .story-decision-questions.reveal-pending p {
    opacity: 1;
  }
}


/* ===== SECTION 02 | 移行元: rev22c.css ===== */
/* REV22c：カードの密度、柔らかいFV切替、順に描くフロー。 */
.story-article .story-choices {
  width: min(100%, 644px);
}

.story-article .story-choices li {
  min-height: 68px;
  padding: 16px 22px;
}

.life-scene-water img {
  object-position: center 60%;
}

.hero-transition.is-waiting .hero-after,
.hero-transition.is-wiping .hero-after {
  -webkit-mask-image: linear-gradient(to right, #000 30%, transparent 70%);
  mask-image: linear-gradient(to right, #000 30%, transparent 70%);
  -webkit-mask-size: 400% 100%;
  mask-size: 400% 100%;
}

.hero-transition.is-wiping .hero-after {
  transition-timing-function: ease-in-out;
}

.story-response-detail .story-design-process {
  margin: 0;
  padding: 0;
  border: 0;
}

.story-response-detail .story-design-reward {
  margin-top: 28px;
  padding-top: 0;
  border-top: 0;
}

.story-response-detail .story-design-process p,
.story-response-detail .story-design-reward p {
  font-size: 17px;
  line-height: 2.05;
}

.story-response-detail .story-design-process p + p,
.story-response-detail .story-design-reward p + p {
  margin-top: 20px;
}

.story-response-detail > .reading > .note {
  margin-top: 32px;
  font-size: 12px;
  line-height: 1.9;
}

/* SVGを配置できた時だけ、既存の疑似要素の矢印を置き換える。 */
#flowChart {
  position: relative;
}

#flowChart.flow-arrows-ready .flow-stage:first-child::after,
#flowChart.flow-arrows-ready .flow-branch-intro::before,
#flowChart.flow-arrows-ready .flow-results::before,
#flowChart.flow-arrows-ready .flow-results::after,
#flowChart.flow-arrows-ready .flow-result::before,
#flowChart.flow-arrows-ready .flow-result::after {
  content: none;
}

.flow-arrow-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.flow-arrow-line {
  fill: none;
  stroke: #7194bc;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.flow-arrow-tip {
  fill: none;
  stroke: #7194bc;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-arrows-pending .flow-arrow-line {
  stroke-dashoffset: 1;
}

.flow-arrows-pending .flow-arrow-tip {
  opacity: 0;
}

.flow-arrows-playing .flow-arrow-line {
  animation: flow-arrow-draw var(--arrow-duration) linear var(--arrow-delay) both;
}

.flow-arrows-playing .flow-arrow-tip {
  animation: flow-arrow-tip .12s ease var(--tip-delay) both;
}

@keyframes flow-arrow-draw {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes flow-arrow-tip {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .story-article .story-choices li {
    min-height: 58px;
    padding: 14px 18px;
  }

  .story-response-detail .story-design-process p,
  .story-response-detail .story-design-reward p {
    font-size: 16px;
    line-height: 2;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-transition.is-waiting .hero-after,
  .hero-transition.is-wiping .hero-after {
    -webkit-mask-image: none;
    mask-image: none;
    transition: none;
  }

  .flow-arrows-pending .flow-arrow-line,
  .flow-arrows-playing .flow-arrow-line {
    animation: none;
    stroke-dashoffset: 0;
  }

  .flow-arrows-pending .flow-arrow-tip,
  .flow-arrows-playing .flow-arrow-tip {
    animation: none;
    opacity: 1;
  }
}


/* STORYの長い目次文言を、既存レールの構成に合わせる。 */
.story-page #desktopRail .rail-apply {
  grid-template-columns: minmax(0, 1fr) 10px;
  padding-inline: 16px 10px;
  color: #fff;
  background: #ff7a1a;
  border-color: #ff7a1a;
  font-weight: 700;
  min-height: 51px;
}

.story-page #desktopRail .rail-apply > span {
  text-align: center;
}

.story-page #desktopRail .rail-apply:hover {
  background: #e96812;
}

@media (min-width: 1440px) {
  .story-page #main {
    margin-right: 0;
  }

  .story-page #main > .story-article,
  .story-page footer {
    margin-right: 332px;
  }

  .story-page #desktopRail {
    width: 300px;
    max-height: calc(100dvh - 120px);
  }

  .story-page #railNav a {
    min-height: 46px;
    font-size: 15px;
    padding-block: 9px;
  }
}

/* 目次の読みやすさと、閉じた際のページ幅。 */
#desktopRail .rail-title {
  font-size: 18px;
}

#desktopRail .rail-heading button {
  font-size: 16px;
}

.story-page #desktopRail .rail-title {
  font-size: 20px;
}

.story-page #desktopRail .rail-action {
  font-size: 16px;
}

.story-page #railNav .rail-nav-copy {
  white-space: nowrap;
}

@media (min-width: 1440px) {

  .page-top.rail-collapsed > .hero,
  .page-top.rail-collapsed > main,
  .page-top.rail-collapsed > footer,
  .story-page.rail-collapsed #main > .story-article,
  .story-page.rail-collapsed > footer {
    margin-right: 0;
  }
}

/* 候補A：同じ画像の左右の場面を、同じ画角で切り替える。 */
.hero-world .hero-transition.hero-candidate-a {
  aspect-ratio: 1;
}

.hero-world .hero-transition.hero-candidate-a img,
.hero-world .hero-transition.hero-candidate-a .hero-after {
  object-position: center;
}

/* リンクの進行方向は申し込みボタンと同じシェブロンを使用。 */
.cta-chevron {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  vertical-align: middle;
}

#desktopRail .rail-action > .cta-chevron {
  width: 18px;
  height: 18px;
}

/* REV74: reviewed service copy */
#scope .window-cost-note {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: #435977;
}

#scopeDetails .scope-cost-label {
  display: block;
  margin-bottom: 6px;
  color: #075789;
  font-size: 14px;
}

#scopeDetails .scope-glass-note {
  margin: 12px 0 0;
}

.hero-world .hero-service-note {
  margin: 8px 0 0;
  color: #345470;
  font-size: 13px;
  line-height: 1.7;
}

.apply-service-note {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
}