/* 共創ストーリー（page-story.php・page-story-index.php）。vision.css の部品（章の見出し・数字の行・出典・問い合わせ）を使い、ここではストーリー固有の部品だけ。
   色: 文字 #222222 / 本文 #373737 / 黄 #FFFF33・#FFCC33 / 灰 #484E52・#DADCDC・#F2F5F5 */

.p-story__text p { font-size: 1.0625rem; line-height: 2; margin-bottom: 18px; max-width: 46em; }

/* 冒頭 */
.p-story__crumb { position: relative; z-index: 1; display: flex; gap: 12px; align-items: center; font-size: 0.875rem; margin-bottom: 28px; }
.p-story__crumb a { color: #222222 !important; font-weight: 700; text-decoration: underline !important; text-decoration-color: #FFCC33 !important; text-underline-offset: 4px; }
.p-story__crumb span { font-family: "Poppins", sans-serif; font-weight: 600; color: #484E52; }
.p-story__crumb span:before { content: "／"; margin-right: 12px; color: #DADCDC; font-family: sans-serif; }
.p-story__hero { position: relative; z-index: 1; max-width: 820px; }
.p-story__partner { font-weight: 700; color: #222222; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-story__partnerLabel { font-size: 0.8125rem; background: #222222; color: #fff; border-radius: 9999px; padding: 3px 12px; }
.p-story__h1 {
  font-family: "Midashi Go MB31", "Zen Kaku Gothic New", sans-serif; font-weight: 700; color: #222222;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.45; margin-bottom: 12px;
}
.p-story__product { font-weight: 700; font-size: 1.125rem; color: #222222; margin-bottom: 18px; }
.p-story__lead { font-size: 1.0625rem; line-height: 1.9; margin-bottom: 20px; }
.p-story__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.875rem; color: #484E52; }
.p-story__badges li:before { content: "・"; }

.p-story__gallery { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 44px; }
.p-story__img { border-radius: 12px; overflow: hidden; background: #DADCDC; aspect-ratio: 3 / 2; }
.p-story__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-story__img.--main { grid-column: span 2; grid-row: span 2; }

/* 製品の詳細 */
.p-story__features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.p-story__featureH { font-weight: 700; color: #222222; font-size: 1.125rem; line-height: 1.5; margin-bottom: 10px; padding-top: 16px; border-top: 1px solid #DADCDC; }
.p-story__feature p { font-size: 0.9375rem; line-height: 1.85; }
.p-story__subH { margin: 72px 0 24px; }

.p-story__steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.p-story__steps li { display: flex; gap: 14px; align-items: flex-start; }
.p-story__stepNum { flex: 0 0 auto; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 2rem; line-height: 1; color: #222222; }
.p-story__stepBody { font-size: 0.9375rem; line-height: 1.8; }
.p-story__stepBody b { display: block; color: #222222; margin-bottom: 4px; }

.p-story__results { margin-bottom: 0; }
.p-story__effects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.p-story__effect h4 { font-weight: 700; color: #222222; font-size: 1.0625rem; margin-bottom: 8px; padding-top: 16px; border-top: 1px solid #DADCDC; }
.p-story__effect p { font-size: 0.9375rem; line-height: 1.85; }

/* 改良の歩み */
.p-story__timeline { list-style: none; border-top: 1px solid #DADCDC; margin-bottom: 40px; }
.p-story__timeline li { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid #DADCDC; }
.p-story__tlDate { font-family: "Poppins", "Zen Kaku Gothic New", sans-serif; font-weight: 600; color: #484E52; font-size: 0.9375rem; }
.p-story__tlText { line-height: 1.7; }
.p-story__tlText a { color: #222222 !important; text-decoration: underline !important; text-decoration-color: #FFCC33 !important; text-underline-offset: 4px; }
.p-story__nextBox { margin-bottom: 40px; }
.p-story__nextH { font-weight: 700; color: #222222; font-size: 1.125rem; margin-bottom: 8px; }
.p-story__nextBox p:not(.p-story__nextH) { line-height: 1.9; max-width: 46em; }
.p-story__links { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid #DADCDC; }
.p-story__links li { border-bottom: 1px solid #DADCDC; }
.p-story__links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 2px; color: #222222 !important; font-weight: 700; transition: padding-left .25s ease-out; }
.p-story__links a:hover { padding-left: 10px; }
.p-story__links .material-symbols-outlined { font-size: 1.125rem; color: #484E52; }

/* 前後 */
.p-story__pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding-bottom: 8px; }
.p-story__pagerItem { display: block; color: #222222 !important; padding: 12px 0; }
.p-story__pagerItem.--next { text-align: right; }
.p-story__pagerDir { display: block; font-size: 0.8125rem; color: #484E52; margin-bottom: 2px; }
.p-story__pagerName { font-weight: 700; font-size: 1.125rem; }
.p-story__pagerItem:hover .p-story__pagerName { text-decoration: underline; text-decoration-color: #FFCC33; text-underline-offset: 4px; }
.p-story__pagerAll { font-weight: 700; color: #222222 !important; border: 1px solid #DADCDC; border-radius: 9999px; padding: 8px 20px; font-size: 0.9375rem; }
.p-story__pagerAll:hover { border-color: #222222; }

/* 一覧 */
.p-story__indexLead { font-size: 1.125rem; line-height: 2; }
.p-story__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; }
.p-story__card { display: block; color: #373737 !important; }
.p-story__cardImg { border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 2; background: #DADCDC; margin-bottom: 18px; }
.p-story__cardImg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease-out; }
.p-story__card:hover .p-story__cardImg img { transform: scale(1.04); }
.p-story__cardMeta { font-size: 0.875rem; font-weight: 700; color: #484E52; margin-bottom: 6px; }
.p-story__cardMeta span { font-family: "Poppins", sans-serif; font-weight: 600; margin-right: 12px; color: #222222; }
.p-story__cardH { font-weight: 700; color: #222222; font-size: 1.25rem; line-height: 1.5; margin-bottom: 8px; }
.p-story__cardText { line-height: 1.8; margin-bottom: 12px; }
.p-story__cardMore { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #222222; font-size: 0.9375rem; }
.p-story__cardMore .material-symbols-outlined { font-size: 1.125rem; transition: transform .25s ease-out; }
.p-story__card:hover .p-story__cardMore .material-symbols-outlined { transform: translateX(4px); }

@media screen and (max-width: 1100px) {
  .p-story__features, .p-story__effects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-story__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 767px) {
  .p-story__text p { font-size: 1rem; line-height: 1.9; }
  .p-story__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 32px; }
  .p-story__features, .p-story__effects, .p-story__steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .p-story__subH { margin: 48px 0 18px; }
  .p-story__timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .p-story__links { grid-template-columns: minmax(0, 1fr); }
  .p-story__pager { grid-template-columns: 1fr 1fr; }
  .p-story__pagerAll { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .p-story__cards { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* 開いた画面の下端に続きがのぞくよう、最初の章の上の余白を詰める（2026-11-07） */
.p-story__first { padding-top: 56px; }
@media screen and (max-width: 767px) { .p-story__first { padding-top: 40px; } }
