/*
============================================================
  フコイダン5商品比較ページ CSS
============================================================

【初心者向け：よく変更する場所】
1. 色を変える
   → :root の --green / --gold / --red などを変更します。

2. ページ全体の横幅
   → .wrap の 1160px を変更します。

3. 見出しの大きさ
   → .section-title、.hero h1、.copy h3 を変更します。

4. セクション上下の余白
   → .section の padding を変更します。

5. スマホ表示
   → ファイル後半の @media(max-width:...) 内を変更します。

※ 元の見た目を変えないため、既存の数値・色・配置は維持しています。
============================================================
*/

:root{
  --green:#0b5138;--green2:#083d2b;--green3:#e9f5ef;
  --gold:#b98b2f;--gold2:#fbf3de;--red:#be2a25;--ink:#1b2822;
  --muted:#68756f;--line:#dce6e1;--soft:#f7faf8;--cream:#fffaf0;
  --blue:#0c4c82;--shadow:0 18px 50px rgba(16,70,48,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Yu Gothic","Hiragino Kaku Gothic ProN","Meiryo",sans-serif;background:#fff;line-height:1.85;letter-spacing:.01em}
img{max-width:100%;height:auto}
a{color:inherit}
.wrap{width:min(1160px,calc(100% - 36px));margin:auto}
.section{padding:78px 0}
.section.alt{background:linear-gradient(180deg,#f7fbf8,#fff)}
.center{text-align:center}
.kicker{display:inline-flex;align-items:center;gap:.5rem;padding:.38rem .9rem;border-radius:999px;background:var(--gold2);color:#755515;font-size:.9rem;font-weight:900}
.section-title{font-size:clamp(30px,4vw,48px);line-height:1.35;color:var(--green2);margin:12px 0 16px}
.lead{max-width:860px;margin:0 auto 34px;color:#435249;font-size:1.12rem;font-weight:600;line-height:1.9}
.red{color:var(--red)} .gold{color:#9a6a10}
.small{font-size:.86rem;color:var(--muted)}

/* header */
.header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.header .wrap{height:62px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.logo{font-weight:900;color:var(--green2);font-size:1.06rem}
.nav{display:flex;gap:16px;overflow:auto;white-space:nowrap;font-size:.9rem}
.nav a{text-decoration:none;color:#46534d}
.nav a:hover{color:var(--red)}

/* hero */
.hero{position:relative;overflow:hidden;background:#edf7f4}
.hero-photo{position:absolute;inset:0;background-image:
linear-gradient(90deg,rgba(247,252,250,.97) 0%,rgba(247,252,250,.91) 38%,rgba(247,252,250,.48) 60%,rgba(247,252,250,.08) 100%),
url("../images/image-11.jpg");background-size:cover;background-position:center right}
.hero .wrap{position:relative;z-index:2}
.hero-inner{min-height:620px;display:flex;align-items:center}
.hero-copy{width:min(760px,64%);padding:72px 0}
.hero h1{font-size:clamp(38px,4.6vw,64px);line-height:1.16;margin:18px 0 10px;color:var(--green2);letter-spacing:.01em;white-space:nowrap}
.hero-sub{font-size:clamp(26px,3.2vw,40px);font-weight:900;color:var(--green2);line-height:1.45;margin:0 0 20px}
.hero-sub strong{color:var(--red)}
.hero p{font-size:clamp(17px,1.7vw,20px);color:#45544c;margin:0;max-width:610px}
.trust{display:flex;flex-wrap:wrap;gap:9px;margin:22px 0}
.pill{border:1px solid #d9e4de;background:rgba(255,255,255,.93);border-radius:999px;padding:7px 11px;font-size:.88rem;font-weight:800}
.ctas{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 24px;border-radius:11px;text-decoration:none;font-weight:900}
.btn.red{background:var(--red);color:#fff;box-shadow:0 12px 28px rgba(190,42,37,.18)}
.btn.ghost{border:2px solid var(--green);color:var(--green);background:#fff}
.hero-credit{position:absolute;right:24px;bottom:18px;background:rgba(8,61,43,.82);color:#fff;padding:7px 12px;border-radius:999px;font-size:.78rem;font-weight:800}
@media(max-width:760px){
 .hero-photo{background-image:
 linear-gradient(180deg,rgba(247,252,250,.93) 0%,rgba(247,252,250,.88) 52%,rgba(247,252,250,.38) 100%),
 url("../images/image-12.jpg");background-position:center}
 .hero-inner{min-height:690px;align-items:flex-start}
 .hero-copy{width:100%;padding:58px 0 290px}
 .hero h1{font-size:clamp(27px,8.2vw,42px);white-space:nowrap}
 .hero-sub{font-size:28px}
 .hero-credit{right:14px;bottom:14px}
}

/* story intro */
.story-box{max-width:920px;margin:auto;background:#fff;border:1px solid var(--line);border-radius:22px;padding:34px;box-shadow:0 10px 30px rgba(20,65,46,.06)}
.story-box p{margin:0 0 15px;color:#435249;font-size:1.12rem;font-weight:600;line-height:1.9}
.story-box .question{font-size:clamp(24px,3.2vw,36px);font-weight:900;color:var(--green2);line-height:1.45;margin-bottom:24px}
.story-list{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}
.story-list div{padding:15px;border-radius:13px;background:#f4f8f6;font-weight:800;text-align:center;color:#345046}
.story-punch{margin-top:24px;padding:22px 24px;background:#fff7e7;border-left:5px solid var(--gold);border-radius:12px;font-weight:800;font-size:1.07rem}

/* 10 points */
.points-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.point{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;min-height:205px}
.point-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.point-no{color:var(--gold);font-weight:900;font-size:.86rem}
.point-icon{font-size:30px}
.point h3{margin:0 0 8px;color:var(--green2);font-size:1.05rem}
.point p{margin:0;color:#435249;font-size:1.12rem;font-weight:600;line-height:1.9}

/* compare */
.compare-note{max-width:900px;margin:0 auto 28px;text-align:center;color:#526059}
.compare-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 14px 40px rgba(19,61,43,.07)}
.compare-table{width:100%;min-width:1040px;border-collapse:collapse;table-layout:fixed}
.compare-table th,.compare-table td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 11px;text-align:center;vertical-align:middle}
.compare-table th:last-child,.compare-table td:last-child{border-right:0}
.compare-table tr:last-child td{border-bottom:0}
.compare-table thead th{background:var(--green2);color:#fff}
.compare-table thead th.af{background:linear-gradient(135deg,#9d7118,#c9962e)}
.rowhead{width:125px;background:#f3f7f5;text-align:left!important;font-weight:900}
.product-img{height:155px;display:flex;align-items:center;justify-content:center}
.product-img img{max-height:145px;max-width:100%;object-fit:contain}
.price{font-size:1.45rem;font-weight:900}
.afcol{background:#fffcf5}
.afcol .price{color:var(--red)}
.line-label{display:block;color:var(--red);font-size:.78rem;font-weight:900}
.compare-summary{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:22px}
.compare-summary div{padding:20px;border-radius:15px;background:#f5f9f7;border:1px solid var(--line)}
.compare-summary strong{color:var(--green2)}

/* transition */
.band{background:linear-gradient(135deg,var(--green2),#0f6747);color:#fff;padding:48px 0}
.band h2{margin:0;text-align:center;font-size:clamp(27px,4vw,44px);line-height:1.4}
.band h2 span{color:#f0cf77}

/* フコイダンAFプレミアム 詳細：統一カード型 */
.feature-list{max-width:1040px;margin:38px auto 0;display:grid;gap:18px}
.feature{display:grid;grid-template-columns:230px 1fr;gap:0;align-items:stretch;margin:0;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 10px 28px rgba(18,67,46,.055)}
.feature.reverse{grid-template-columns:230px 1fr}
.feature.reverse .visual,.feature.reverse .copy{order:initial}
.visual{background:linear-gradient(145deg,#f3f9f5,#fbfdfc);border:0;border-right:1px solid var(--line);border-radius:0;padding:22px;min-height:210px;display:flex;align-items:center;justify-content:center;box-shadow:none}
.visual img{max-width:100%;max-height:180px;object-fit:contain}
.copy{padding:26px 30px}
.copy .eyebrow{display:inline-block;color:#8a651f;background:#fff6df;border-radius:999px;padding:4px 10px;font-weight:900;font-size:.84rem;margin-bottom:6px}
.copy h3{font-size:clamp(23px,2.6vw,34px);line-height:1.4;color:var(--green2);margin:4px 0 11px}
.copy p{color:#435249;margin:0 0 12px;font-size:1.12rem;font-weight:600;line-height:1.9}
.copy p:last-child{margin-bottom:0}
.number-card{display:inline-flex;align-items:baseline;gap:7px;padding:9px 13px;background:#fff4f1;border:1px solid #f1d5d1;border-radius:12px;margin:6px 0 13px}
.number-card b{font-size:clamp(28px,3.2vw,42px);color:var(--red);line-height:1}
.number-card span{font-weight:900;color:#6d4b47}
@media(max-width:760px){
 .feature,.feature.reverse{grid-template-columns:1fr}
 .visual{min-height:170px;border-right:0;border-bottom:1px solid var(--line)}
 .visual img{max-height:150px}
 .copy{padding:22px 20px}
}

/* 23 years */
.history-section{background:linear-gradient(180deg,#f7fbf8,#fff)}
.history-hero{display:grid;grid-template-columns:1fr .9fr;gap:30px;align-items:center;margin-bottom:32px}
.history-card{background:var(--green2);color:#fff;border-radius:24px;padding:34px}
.history-card .big{font-size:clamp(48px,7vw,88px);font-weight:900;color:#f0ca6b;line-height:1}
.history-card h3{font-size:1.7rem;margin:10px 0}
.timeline{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.tstep{border:1px solid var(--line);background:#fff;border-radius:17px;padding:22px;position:relative}
.tstep b{color:var(--red);display:block;margin-bottom:4px}
.tstep h4{margin:0 0 8px;color:var(--green2);font-size:1.08rem}
.manifesto{margin-top:26px;text-align:center;padding:30px;background:#fff7e8;border-radius:20px;border:1px solid #eedcaf}
.manifesto strong{display:block;font-size:clamp(25px,3vw,38px);line-height:1.45;color:var(--green2);margin-bottom:10px}

/* offer */
.offer-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.offer{border:1px solid var(--line);border-radius:22px;padding:28px;background:#fff;box-shadow:0 12px 35px rgba(19,61,43,.07)}
.offer.trial{background:linear-gradient(145deg,#fffaf0,#fff);border-color:#ead6a5}
.offer-content{display:grid;grid-template-columns:1fr 180px;gap:18px;align-items:center}
.offer img{max-height:180px;object-fit:contain}
.offer h3{margin:0 0 6px;color:var(--green2);font-size:1.55rem}
.offer .bigprice{font-size:2.25rem;color:var(--red);font-weight:900}
.offer ul{margin:12px 0;padding-left:1.2rem}
.capsule{margin-top:22px;display:grid;grid-template-columns:1fr;gap:18px;align-items:center;background:#f6f9f7;border:1px solid var(--line);border-radius:20px;padding:24px}
.capsule .emoji{font-size:64px}

/* faq */
.faq{max-width:900px;margin:auto;display:grid;gap:12px}
details{border:1px solid var(--line);border-radius:14px;padding:0 18px;background:#fff}
summary{padding:18px 0;cursor:pointer;font-weight:900;color:var(--green2)}
details p{margin:0 0 18px;color:#56645d}

/* notice/footer */
.notice{font-size:.86rem;color:#65726b;background:#f5f8f6;border-radius:14px;padding:18px 20px}
footer{background:#123e30;color:#e1eae6;padding:30px 0;font-size:.9rem}

@media(max-width:920px){
 .hero-grid,.history-hero,.offer-grid{grid-template-columns:1fr}
 .points-grid{grid-template-columns:repeat(2,1fr)}
 .story-list{grid-template-columns:1fr}
 .timeline{grid-template-columns:1fr 1fr}
 .nav{display:none}
 .compare-summary{grid-template-columns:1fr}
}
@media(max-width:600px){
 .wrap{width:min(100% - 24px,1160px)}
 .section{padding:56px 0}
 .hero{padding-top:55px}
 .hero h1{font-size:40px}
 .points-grid{grid-template-columns:1fr}
 .timeline{grid-template-columns:1fr}
 .story-box{padding:24px}
 .offer-content{grid-template-columns:1fr}
 .offer img{margin:auto}
 .capsule{grid-template-columns:1fr}
}

.top-23{background:#0b5138;color:#fff;text-align:center;font-weight:900;letter-spacing:.08em;padding:10px 16px;font-size:15px}
.top-23 strong{color:#f0ca6c;font-size:19px;margin-left:8px}

.history-23-visual{background:#fff8e8!important;display:flex!important;gap:10px;align-items:center!important;justify-content:center!important;padding:12px!important}
.history-23-visual img{width:112px!important;max-height:155px!important;object-fit:contain!important}
.history-23-number{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;color:#b98b2f;line-height:1}
.history-23-number b{font-size:56px}
.history-23-number span{font-size:23px;font-weight:900;margin-left:2px}
.history-23-number small{flex-basis:100%;margin-top:8px;color:#0b5138;font-size:11px;font-weight:900}

.band .band-key{display:block;white-space:nowrap;font-size:clamp(24px,2.65vw,38px)}
@media(max-width:760px){.band .band-key{white-space:normal;font-size:25px}}

.history-card-with-product{display:grid;grid-template-columns:1fr 210px;gap:20px;align-items:center}
.history-card-product{display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.08);border-radius:16px;padding:12px}
.history-card-product img{max-width:100%;max-height:220px;object-fit:contain}
.capsule-kicker{font-size:1.15rem!important;padding:.52rem 1.05rem!important}
.trial-kicker{font-size:1.2rem!important;padding:.55rem 1.08rem!important}
@media(max-width:760px){
 .history-card-with-product{grid-template-columns:1fr}
 .history-card-product img{max-height:190px}
}


.offer p,.offer li,.capsule p{
  color:#435249;
  font-size:1.12rem;
  font-weight:600;
  line-height:1.9;
}


/* revision15: 指定6か所のみ文字サイズ・太さ調整 */
.hero .kicker{font-size:1.08rem;} /* 20%拡大 */
.hero p{font-weight:700;} /* サイズ維持・太字 */
#compare .center>.kicker{font-size:1.08rem;} /* 「その前に」20%拡大 */
#compare .section-title{font-size:clamp(36px,4.8vw,57.6px);} /* 価格見出し20%拡大 */
#compare .compare-note{font-size:1.12rem;font-weight:600;line-height:1.9;}
#compare .compare-summary div{font-size:1.12rem;font-weight:600;line-height:1.9;}

/* revision16: 指定4か所のみ文字調整 */
#history .history-hero p,
#history .tstep p,
#history .manifesto,
#history .capsule p{font-size:1.12rem;font-weight:600;line-height:1.9;}
.notice{font-size:1.12rem;font-weight:600;line-height:1.9;}
p.price-note{font-size:1.032rem;}


.capsule-product-photo{margin-top:18px;display:flex;justify-content:center;align-items:center}
.capsule-product-photo img{width:min(100%,420px);height:auto;object-fit:contain;border-radius:12px}


/* 2026-09-11 比較表拡充・価格リンク */
.compare-table{min-width:1380px}
.compare-table td{font-size:.92rem;line-height:1.65}
.compare-table .rowhead{width:175px}
.product-photo-note{display:flex;align-items:center;justify-content:center;min-height:120px;padding:12px;border:1px dashed var(--line);border-radius:12px;color:var(--green2);font-weight:900;line-height:1.5}
.product-photo-note small{font-weight:600;color:var(--muted)}
.capsule-price-link{display:inline-block;margin-top:4px;padding:12px 18px;border:1px solid #d7c28e;border-radius:12px;background:#fffaf0;color:var(--green2);text-decoration:none}
.capsule-price-link strong{font-size:1.35rem;color:var(--red)}
.capsule-price-link span{font-size:.88rem;font-weight:800}
.capsule-price-link:hover{text-decoration:underline}
.number-card + .number-card{margin-top:10px}


/* 2026-09-11 商品イラスト・比較価格・カプセルリンク位置修正 */
.product-illustration-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:168px;padding:10px 8px;border:1px solid #dfe9e3;border-radius:14px;background:#fff}
.product-illustration{width:170px;max-width:100%;margin:0 auto}
.product-illustration svg{display:block;width:100%;height:auto}
.product-illustration-name{font-size:.88rem;font-weight:900;line-height:1.35;color:#0b5138;text-align:center}
.product-volume-price{margin-top:10px;padding-top:10px;border-top:1px solid #e5ece8;text-align:center;line-height:1.5}
.product-volume{font-size:.84rem;font-weight:800;color:#34453d}
.product-price{margin-top:3px;font-size:.91rem;font-weight:900;color:#9a3f32}
.compare-table th:nth-child(3),.compare-table td:nth-child(3){background:#f4fbf6}
.capsule-bottom-price{text-align:center;margin:16px 0 0}
.capsule-price-link-bottom{display:inline-block;min-width:240px;padding:12px 18px;border-radius:12px;background:#0b5138;color:#fff!important;text-decoration:none;box-shadow:0 7px 18px rgba(11,81,56,.16)}
.capsule-price-link-bottom strong{font-size:1.32rem;color:#fff}
.capsule-price-link-bottom span{font-size:.9rem;color:#fff}
.capsule-price-link-bottom:hover,.capsule-price-link-bottom:focus{background:#083d2b;text-decoration:none}
@media(max-width:720px){.product-illustration{width:145px}.product-illustration-card{min-height:150px}.product-volume{font-size:.8rem}.product-price{font-size:.86rem}}

/* =========================================================
   パンくずリスト
   ========================================================= */
.breadcrumb {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.breadcrumb li + li::before {
  content: ">";
  margin-right: 8px;
  color: #9aa59f;
}
.breadcrumb a {
  color: var(--green);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* =========================================================
   価格リンク
   ========================================================= */
.number-card-link {
  display: block;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}
.number-card-link:hover .number-card,
.number-card-link:focus .number-card {
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(16, 70, 48, 0.10);
}

/* =========================================================
   お試しセット：1カラム表示
   ========================================================= */
.offer-grid-single {
  grid-template-columns: 1fr;
}
.line-price-cta {
  margin-top: 20px;
  text-align: center;
}

/* =========================================================
   HTMLから分離した商品イラスト
   ========================================================= */
.product-illustration-image {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================
   2026-09-17 5商品比較表 スマホ表示改善
   ・比較項目を左に固定
   ・商品列を1列ずつ追いやすい幅に調整
   ・横スワイプ案内を表示
   ・商品Dのイラスト全体を表示
   ========================================================= */
.compare-scroll-guide{display:none}

@media(max-width:760px){
  .compare-scroll-guide{
    display:block;
    margin:0 0 10px;
    padding:9px 12px;
    border:1px solid #d8e8df;
    border-radius:10px;
    background:#eef7f2;
    color:var(--green2);
    font-size:.84rem;
    font-weight:900;
    line-height:1.5;
    text-align:center;
  }

  .compare-scroll{
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
    scrollbar-width:thin;
    position:relative;
  }

  .compare-table{
    width:max-content;
    min-width:0;
    table-layout:fixed;
  }

  .compare-table th,
  .compare-table td{
    width:184px;
    min-width:184px;
    max-width:184px;
    padding:12px 9px;
    overflow-wrap:anywhere;
  }

  /* 左端の「比較項目」を固定 */
  .compare-table th:first-child,
  .compare-table td:first-child{
    position:sticky;
    left:0;
    width:116px;
    min-width:116px;
    max-width:116px;
    z-index:4;
    box-shadow:5px 0 9px rgba(16,70,48,.10);
  }

  .compare-table thead th:first-child{
    z-index:6;
    background:var(--green2);
  }

  .compare-table tbody td:first-child{
    background:#f3f7f5;
  }

  /* AFプレミアムは左から2商品目＝表全体では3列目 */
  .compare-table thead th:nth-child(3){
    background:linear-gradient(135deg,#9d7118,#c9962e);
  }

  .product-img{height:138px}
  .product-img img{max-height:128px}

  .product-illustration-card{
    min-height:148px;
    padding:8px 6px;
    overflow:visible;
  }

  .product-illustration{
    width:138px;
    max-width:138px;
    overflow:visible;
  }

  .product-illustration-image{
    display:block;
    width:100%;
    height:auto;
    max-width:100%;
    object-fit:contain;
    overflow:visible;
  }

  /* 最終列の商品Dは少し内側に収め、右端まで確実に見せる */
  .compare-table th:last-child,
  .compare-table td:last-child{
    padding-left:12px;
    padding-right:16px;
  }

  .compare-table td:last-child .product-illustration{
    width:126px;
    max-width:126px;
  }

  .compare-table td:last-child .product-illustration-image{
    width:100%;
    max-width:100%;
    object-fit:contain;
    object-position:center;
  }
}

