@charset "utf-8";
/* サービス開発の想いの基本レイアウト
 * 編集先の案内: ../CSS_MAINTENANCE.md
 * 各章の順序はカスケードを維持するため固定。日付・改修番号のCSSを追加しない。
 */

/* ===== SECTION 01 | 移行元: story.css ===== */
/* STORY専用。文章・写真・事実情報の順序と、読み進めるリズムを整える。 */
.story-page {
  background: #fcfcfa;
  padding-bottom: 0;
  font-family: "Noto Sans JP TOP", "Noto Sans JP", sans-serif;
}

.story-page main,
.story-page footer {
  margin-right: 0;
}

.story-page .smart-header {
  background: #fcfcfaf5;
}

.story-hero {
  background: #eff5f8;
  padding: 44px 0 36px;
}

.story-hero-inner {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 48px;
}

.story-label {
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--blue);
  letter-spacing: .1em;
}

.story-hero h1 {
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.65;
  letter-spacing: .01em;
}

.story-hero h1 span {
  display: block;
  white-space: nowrap;
}

.story-deck {
  margin-top: 22px;
  font-size: 16px;
  line-height: 2;
}

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

.story-hero figure img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  border-radius: 46% 46% 4px 4px;
}

.story-hero figcaption,
.story-photo figcaption {
  margin-top: 6px;
  color: var(--muted);
}

.story-breadcrumb {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
  padding-top: 20px;
  font-size: 12px;
  color: var(--muted);
}

.reading {
  width: min(800px, calc(100% - 64px));
  margin-inline: auto;
}

.story-article .editorial-section {
  padding-block: 52px;
}

.editorial-section + .editorial-section {
  border-top: 1px solid #e4e9ec;
}

.story-article h2 {
  font-size: clamp(25px, 2.6vw, 32px);
  line-height: 1.65;
  letter-spacing: .02em;
  margin-bottom: 24px;
}

.story-article h2 span {
  display: inline-block;
}

.story-article .reading > p:not(.note) {
  font-size: 17px;
  line-height: 2.05;
}

.story-article .reading > p + p {
  margin-top: 20px;
}

.story-article .note {
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.9;
}

.story-background {
  background: #f6f7f5;
}

/* 本文は800px、パネルは左右32pxの余白を足し、PCで読み始め位置を揃える。 */
.story-evidence {
  width: min(864px, calc(100% - 32px));
  margin: 30px auto 0;
  padding: 32px clamp(16px, calc(50vw - 416px), 32px);
  background: #fff;
  border: 1px solid #dce5e9;
  border-radius: 6px;
}

.story-evidence > h3 {
  font-size: 21px;
  line-height: 1.65;
}

.story-evidence-label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

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

.story-chart {
  min-width: 0;
}

.story-chart h4 {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 600;
}

.story-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-data {
  margin-top: 16px;
  border-top: 1px solid #e4e9ec;
}

.chart-data summary {
  min-height: 44px;
  padding-block: 9px;
  cursor: pointer;
  font-size: 14px;
  color: var(--blue);
}

.story-data-scroll {
  overflow-x: auto;
}

.chart-data table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.chart-data td,
.chart-data th {
  text-align: right;
  border-bottom: 1px solid #dce5e9;
  padding: 8px;
}

.chart-data th:first-child {
  text-align: left;
}

.story-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid #dce5e9;
}

.story-case-label {
  font-size: 12px;
  color: var(--muted);
}

.story-cases h4 {
  font-size: 16px;
  line-height: 1.7;
  margin-block: 5px 8px;
}

.story-cases div > p:last-child {
  font-size: 14px;
  line-height: 1.9;
}

.story-cases strong {
  font-weight: 600;
}

.story-source {
  margin-top: 22px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.story-source a {
  color: inherit;
}

.story-context-link {
  margin-top: 18px;
}

.story-context-link button {
  display: inline-block;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  line-height: 1.8;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: .25em;
  cursor: pointer;
}

.story-context-link button:hover {
  text-decoration-thickness: 2px;
}

.story-context-link button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
  border-radius: 2px;
}

.story-context-modal .modal-body p {
  font-size: 15px;
  line-height: 1.95;
}

.story-context-modal sup {
  margin-left: .2em;
  font-size: .75em;
}

.story-context-note {
  margin-top: 26px;
  padding: 16px 18px;
  background: var(--pale);
  border-radius: 8px;
}

.story-context-sources {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.story-context-sources h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.story-context-sources ol {
  padding-left: 1.5em;
  font-size: 12px;
  line-height: 1.85;
}

.story-context-sources li + li {
  margin-top: 12px;
}

.story-context-sources a {
  overflow-wrap: anywhere;
}

.story-context-sources li {
  scroll-margin-top: 120px;
}

.story-evidence-bridge {
  margin-top: 28px;
}

/* 折れ線と点だけを左から描画。軸・数値表は常時表示する。 */
.chart-pending .story-chart-reveal-rect {
  width: 0;
}

.chart-playing .story-chart-reveal-rect {
  animation: story-chart-draw 1s linear both;
}

@keyframes story-chart-draw {
  from {
    width: 0;
  }

  to {
    width: 660px;
  }
}

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

  .chart-pending .story-chart-reveal-rect,
  .chart-playing .story-chart-reveal-rect {
    animation: none;
    width: 660px;
  }
}

/* 暮らしの写真から、応急対応・選び方へ自然につなぐ。 */
.story-response {
  background: #edf4f8;
}

.story-split {
  width: min(800px, calc(100% - 64px));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: stretch;
}

.story-split .reading {
  width: 100%;
}

.story-response .story-photo {
  order: 1;
}

.story-split h2 {
  font-size: clamp(25px, 2.6vw, 32px);
}

.story-photo img {
  width: 100%;
  aspect-ratio: 2;
  max-height: 400px;
  object-fit: cover;
  border-radius: 6px;
}

.story-response .story-photo img {
  object-position: 42% center;
}

.story-choice .story-photo img {
  object-position: center;
}

.story-choices {
  list-style: none;
  margin-block: 22px;
  padding: 0;
}

.story-choices li {
  padding-left: 20px;
  position: relative;
  font-size: 17px;
  line-height: 1.9;
}

.story-choices li + li {
  margin-top: 9px;
}

.story-choices li::before {
  content: '';
  position: absolute;
  top: .8em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8daab4;
}

.story-design {
  background: var(--navy);
  color: #fff;
}

.story-design h2 {
  color: #fff;
}

.story-design .note {
  color: #dde8f3;
}

.story-design a {
  color: #fff;
}

.story-intention h2 {
  margin-bottom: 24px;
}

.story-closing {
  padding: 46px 24px 52px;
  background: #edf5fd;
  text-align: center;
}

.story-closing h2 {
  font-size: 26px;
  line-height: 1.7;
}

.story-closing p {
  margin-top: 18px;
}

.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 26px;
}

.story-page footer {
  padding-bottom: 40px;
}

@media (max-width: 1000px) {

  .story-hero-inner,
  .story-split {
    gap: 32px;
  }

  .story-hero h1 {
    font-size: 28px;
  }

  .story-split h2 .desktop-break {
    display: none;
  }
}

@media (max-width: 760px) {
  .story-hero {
    padding: 32px 0 28px;
  }

  .story-hero-inner {
    display: block;
    width: min(680px, calc(100% - 48px));
  }

  .story-hero h1 {
    font-size: clamp(18px, 5.8vw, 36px);
  }

  .story-label {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .story-deck {
    margin-top: 18px;
  }

  .story-hero figure {
    margin-top: 24px;
  }

  .story-hero figure img {
    aspect-ratio: 1.8;
    border-radius: 6px;
  }

  .story-breadcrumb {
    width: calc(100% - 48px);
    font-size: 13px;
  }

  .story-article .editorial-section {
    padding-block: 40px;
  }

  .story-article h2 {
    font-size: 25px;
    line-height: 1.65;
    margin-bottom: 22px;
  }

  .story-article .reading > p:not(.note) {
    font-size: 16px;
    line-height: 2;
  }

  .story-article .reading > p + p {
    margin-top: 18px;
  }

  .story-split {
    display: flex;
    flex-direction: column;
    width: min(800px, calc(100% - 64px));
    gap: 26px;
  }

  .story-response .story-photo {
    order: 1;
  }

  .story-photo {
    width: 100%;
  }

  .story-photo img {
    aspect-ratio: 1.5;
    max-height: 380px;
  }

  .story-choices li {
    font-size: 16px;
  }

  .story-evidence {
    padding: 24px 16px;
  }

  .story-charts {
    gap: 20px;
  }

  .story-evidence > h3 {
    font-size: 19px;
  }

  .story-cases {
    gap: 22px;
  }

  .story-closing {
    padding: 40px 24px;
  }

  .story-closing h2 {
    font-size: 24px;
  }
}

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

  .story-charts,
  .story-cases {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .story-chart + .story-chart {
    padding-top: 20px;
    border-top: 1px solid #edf0f2;
  }

  .story-cases > div + div {
    padding-top: 20px;
    border-top: 1px solid #edf0f2;
  }

  .story-actions {
    display: grid;
  }

  .story-hero h1 {
    letter-spacing: 0;
  }
}

/* REV15：Word本文を読むための追加セクション。共通CSSには波及させない。 */
.story-business {
  background: #f6f3ee;
}

.story-business-model {
  width: min(800px, calc(100% - 64px));
  margin: 32px auto 0;
}

.story-business-model .note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.8;
}

.story-chart-combined {
  margin-top: 24px;
}

.story-cases-evidence {
  margin-top: 28px;
}

.story-response-detail {
  background: #f2f6f7;
}

.story-mobile {
  background: #fff8ef;
}

.story-closing-logo {
  display: block;
  max-width: 100%;
  width: 280px;
  height: 48px;
  object-fit: contain;
  margin: 24px auto 0;
}

/* 事例：濃紺の囲みと白い記事面で、本文から一段踏み込む。 */
.story-cases-evidence {
  background: #203649;
  color: #f5f7fa;
  border: 0;
  border-radius: 10px;
}

.story-cases-evidence > h3 {
  color: #fff;
  border-left: 3px solid #d49f72;
  padding-left: 18px;
  margin-bottom: 28px;
}

.story-main-case {
  background: #fff;
  color: #243746;
  border-radius: 6px;
  overflow: hidden;
}

.story-main-case-intro {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 24px;
  padding: 24px;
}

.story-case-photo {
  margin: 0;
  min-width: 0;
}

.story-case-photo img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: 47% center;
  border-radius: 4px;
}

.story-case-photo figcaption {
  font-size: 13px;
  color: #64717c;
  margin-top: 5px;
}

.story-case-topic {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.story-case-topic img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.story-case-topic > span {
  font-size: 12px;
  font-weight: 400;
  color: #64717c;
}

.story-main-case h4 {
  font-size: 22px;
  line-height: 1.65;
  margin-top: 12px;
}

.story-main-case-intro > div > p:last-child {
  font-size: 14px;
  line-height: 1.9;
  margin-top: 16px;
}

.story-case-prices {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.story-case-prices p > span {
  display: block;
  font-size: 13px;
  color: #586975;
}

.story-case-prices strong {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.5;
  letter-spacing: -.03em;
}

.story-case-prices strong span {
  font-size: 13px;
  margin-left: 2px;
}

.story-case-prices p:last-child strong {
  color: #964d39;
}

.story-case-prices > span {
  color: #9f7d69;
}

.story-case-timeline {
  margin: 0 24px;
  padding: 24px 0 0;
  border-top: 1px solid #e2e7eb;
  list-style: none;
  counter-reset: case-step;
}

.story-case-timeline li {
  position: relative;
  padding: 0 0 22px 40px;
  counter-increment: case-step;
}

.story-case-timeline li::before {
  content: counter(case-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  color: #946e50;
  font-size: 15px;
  font-weight: 600;
}

.story-case-timeline li + li::after {
  content: '';
  position: absolute;
  left: 11px;
  top: -19px;
  height: 14px;
  border-left: 1px solid #d5c6ba;
}

.story-case-timeline h5 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 6px;
}

.story-case-timeline p {
  font-size: 14px;
  line-height: 1.9;
}

.story-main-case > .story-source {
  color: #64717c;
  margin: 0;
  padding: 0 24px 24px;
}

.story-cases-evidence .story-cases {
  border-color: #ffffff38;
  gap: 20px;
  margin-top: 28px;
  padding-top: 28px;
}

.story-case-card {
  background: #edf1f4;
  color: #243746;
  border-radius: 6px;
  padding: 22px;
  min-width: 0;
}

.story-case-card .story-case-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #c8d4dd;
  color: #25465e;
  font-size: 18px;
  font-weight: 600;
}

.story-case-label img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

.story-case-label > span > span {
  display: block;
  font-size: 13px;
  color: #536c7d;
  font-weight: 400;
  margin-top: 2px;
}

.story-case-card h4 {
  font-size: 16px;
  margin: 0 0 12px;
}

.story-case-card > p:last-child {
  font-size: 14px;
  line-height: 1.95;
}

.story-cases-evidence > .story-secondary-source {
  color: #d4dfe7;
}

/* 料金構造の章：大きな記号を使わず、小さな扉見出しと罫線でコラム感をつくる。 */
.story-column-heading {
  border-top: 0;
  border-bottom: 1px solid #d7cbbd;
  padding: 22px 0 24px;
  margin-bottom: 28px;
}

.story-column-heading > p {
  font-size: 13px;
  color: #75604a;
  letter-spacing: .06em;
  margin-bottom: 12px;
}

.story-column-heading h2 {
  margin-bottom: 0;
}

.business-model-graphic {
  background: #fff;
  border: 1px solid #d8dfdf;
  padding: 32px 24px 24px;
  border-radius: 8px;
}

.model-contracts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) .65fr minmax(0, 1fr) .75fr minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.model-actor {
  text-align: center;
  align-self: start;
}

.model-actor img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.model-actor p {
  font-size: 14px;
  line-height: 1.65;
  font-weight: 600;
}

.model-connector {
  text-align: center;
  font-size: 13px;
  color: #526b7a;
  line-height: 1.8;
}

.model-arrow {
  display: block;
  font-size: 28px;
  line-height: 1.2;
  color: #7d9aaf;
}

.model-onsite {
  position: relative;
  margin-top: 26px;
  padding: 22px;
  border: 1px solid #dcc7b4;
  border-top: 3px solid #b68b66;
  border-radius: 4px;
  background: #faf6f1;
}

.model-onsite-heading {
  text-align: center;
  font-size: 16px;
  line-height: 1.9;
  font-weight: 600;
  color: #68503d;
  margin-bottom: 18px;
}

.model-return {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: center;
}

.model-return + .model-return {
  margin-top: 12px;
}

.model-return-direction {
  font-size: 13px;
  color: #796b60;
}

.model-return p {
  text-align: center;
  border-bottom: 1px solid #c1a78e;
  padding-bottom: 5px;
  font-size: 13px;
  line-height: 1.8;
}

.model-return p > span {
  color: #9c7550;
  font-size: 20px;
  line-height: 1;
}

.model-takeaway {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.9;
  color: #526674;
}

.model-takeaway img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: 0 0 auto;
}

.mobile-break {
  display: none;
}

@media (max-width: 600px) {

  .reading,
  .story-split,
  .story-business-model {
    width: calc(100% - 40px);
  }

  .story-split .reading {
    width: 100%;
  }

  .story-evidence {
    width: calc(100% - 20px);
    padding-inline: 10px;
  }

  .story-main-case-intro {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 18px;
  }

  .story-case-photo img {
    height: auto;
    aspect-ratio: 1.6;
  }

  .story-main-case h4 {
    font-size: 21px;
  }

  .story-case-prices strong {
    font-size: 30px;
  }

  .story-case-timeline {
    margin-inline: 20px;
  }

  .story-case-timeline li {
    padding-left: 32px;
  }

  .story-main-case > .story-source {
    padding-inline: 20px;
  }

  .story-case-card {
    padding: 20px;
  }

  .story-cases-evidence > h3 {
    padding-left: 12px;
  }

  .story-column-heading {
    padding-top: 18px;
  }

  .story-column-heading h2 {
    font-size: 23px;
  }

  .business-model-graphic {
    padding: 24px 18px;
  }

  .model-contracts {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .model-actor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: left;
  }

  .model-actor img {
    width: 64px;
    height: 64px;
    margin: 0;
  }

  .model-actor p {
    width: 120px;
  }

  .model-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }

  .model-arrow {
    transform: rotate(90deg);
  }

  .model-onsite {
    padding: 18px 14px;
  }

  .model-onsite-heading {
    font-size: 14px;
  }

  .model-return {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .model-return-direction {
    text-align: center;
  }

  .model-return p {
    font-size: 12px;
  }

  .model-takeaway {
    font-size: 13px;
    gap: 10px;
  }

  .mobile-break {
    display: inline;
  }
}