@charset "utf-8";

/* ========================================
   変数
======================================== */
:root {
  --color-main: #306b6d;
  --color-accent: #c3ab52;
  --color-bg-sub: #f8fafa;
  --color-lineup-bg: #d4e8e8;
  --color-section-bg: #f8fafa;
  --radius-base: 8px;
}

/* ========================================
   ベース・共通
======================================== */
#container {
  background-color: #ffffff;
}

#container .wrapper {
  font-family: "Noto Sans JP", "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  color: #333333;
  font-size: 14px;            /* SP ベースフォントサイズ */
  line-height: 1.8;
  text-align: justify;
}

#container h1,
#container h2 {
  font-family: "Noto Serif JP", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "游明朝", "Yu Mincho", serif;
  color: #306b6d;
}

/* 背景色が付くセクション（SP） */
#container .section-index,
#container .section-about,
#container .section-merit,
#container .section-howto {
  background-color: var(--color-bg-sub);
}

#container .section-inner {
  padding: 14vw 6vw 18vw;
}

/* 2カラムセクションは少しだけ上を詰める（SP） */
#container .section-index  .section-inner.section-2col,
#container .section-about  .section-inner.section-2col,
#container .section-merit  .section-inner.section-2col {
  padding: 0 6vw 18vw 6vw;
}

/* 見出し共通 */
#container .section-inner h2 {
  font-size: 1.5em;
  text-align: center;
  font-weight: 600;
}

#container .mainvisual .mv-copy {
  font-size: 2.4em;
  line-height: 1.2;
  margin: 0;
  color: #306b6d;              /* ベースはグリーン */
}

#container .mainvisual .mv-copy-main {
  display: inline-block;        /* 2行目をかたまりとして扱う */
}

#container .mainvisual .mv-copy-em {
  color: #d4a744;               /* 「最適」をゴールドに */
}

/* 下の小見出し（キャリアオイル徹底ガイド） */
#container .mainvisual .mv-subtitle {
  margin-top: 0.2em;
  font-size: 1.2em;
  color: #306b6d;
}

/* SP 用改行 */
#container .sp-br {
  display: inline;
}

/* 強調 */
#container .em {
  font-weight: 600;
  color: var(--color-accent);
}

/* ========================================
   ファーストビュー（SPベース）
======================================== */
#container .mainvisual {
  margin-top: 0;
}

/* 背景画像エリア */
#container .mainvisual-visual {
  background-image: url("/contents/shop/sevenbeauty/img/freepage/carrieroil-guid/FV_smp.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 5vw 5vw 65vw;
}

#container .mainvisual-inner {
  margin: 0 auto;
  text-align: left;
}

#container .mainvisual .mv-copy-main {
  display: inline-block;        /* 2行目をかたまりとして扱う */
}

#container .mainvisual .mv-copy-em {
  color: #d4a744;               /* 「最適」をゴールドに */
  font-weight: 500;
}

#container .mv-tagline {
  margin-top: 0.8em;
  font-size: 1.0em;
}

/* リード文（SP） */
#container .mv-lead {
  font-size: 0.9em;
  line-height: 1.6;
  color: #fff;
  background-color: #6b8e8e;
  padding: 4% 4%;
  text-align: justify;
}

/* ========================================
   INDEX
======================================== */
#container .index-box {
  border: 1px solid var(--color-main);
  margin: 0 6vw;
  padding: 8vw;
}

#container .section-index h2 {
  font-size: 1.2em;
  text-align: center;
  font-family: "Noto Sans JP", "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  margin-bottom: 3vw;
}

#container .index-list {
  list-style: decimal;
  padding-left: 1.4em;
}

#container .index-list li + li {
  margin-top: 0.4em;
}

#container .index-list a {
  text-decoration: none;
}

/* ========================================
   2カラムセクション（ABOUT / MERIT など）SP
======================================== */
#container .section-2col {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

#container .section-text {
  text-align: left;
}

#container .section-text p + p {
  margin-top: 0.8em;
}

#container .section-image {
  text-align: center;
}

/* ========================================
   ラインナップ
======================================== */
#container .section-lineup {
  background-color: var(--color-lineup-bg);
}

#container .section-lineup h2 {
  border-top: 1px solid #3d6b6b;
  border-bottom: 1px solid #3d6b6b;
  padding: 0.6em 0;
  line-height: 1.4;
}

#container .section-lineup .lineup-lead {
  font-family: "Noto Serif JP", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "游明朝", "Yu Mincho", serif;
  font-size: 1.2em;
  margin-top: 1em;
  line-height: 1.6;
}

#container .seriesWrap {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  margin: 2em 0 3em;
}

#container .seriesWrap dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1em;
}

#container .seriesWrap dt img {
  border-radius: 50%;
}

#container .seriesWrap h3 {
  font-family: "Noto Sans JP", "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  font-size: 0.95em;
  color: var(--color-main);
  font-weight: 600;
}

#container .seriesWrap p {
  line-height: 1.5;
}

/* ========================================
   商品比較表（SP / 共通）
======================================== */

/* タイトル */
#container .compare-title {
  font-size: 1.1em;
  margin: 2.4em 0 1em;
  text-align: left;
}

/* 横スクロールラッパー */
#container .table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-base);
  background-color: #ffffff;
}

/* テーブル本体 */
#container table.compare-table {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
  border: 2px solid #d4e8e8;
  background-color: #d4e8e8;
}

/* セル共通（グローバル th,td を上書き） */
#container table.compare-table th,
#container table.compare-table td {
  padding: 0.9em 0.6em;
  font-size: 0.9em;
  vertical-align: middle;
  word-break: break-word;
  border: 2px solid #d4e8e8;
  text-align: center;
  background-color: #fff;
}

/* 見出し行 */
#container table.compare-table thead th {
  background-color: #3f6f6e;
  color: #ffffff;
  font-size: 0.65em;
  font-weight: 600;
}

/* 見出し：特徴・コストは中央寄せ */
#container table.compare-table thead th.col-feature,
#container table.compare-table thead th.col-cost {
  text-align: center;
}

/* 内容：特徴・コストは左寄せ */
#container table.compare-table tbody td.col-feature,
#container table.compare-table tbody td.col-cost {
  text-align: left;
}

/* データセルの背景色 */
#container table.compare-table tbody td.col-skin,
#container table.compare-table tbody td.col-body,
#container table.compare-table tbody td.col-process,
#container table.compare-table tbody td.col-oxidation,
#container table.compare-table tbody td.col-cost {
  background-color: #e8f0f0;
}

/* 商品名列（行見出し）は白 */
#container table.compare-table tbody th[scope="row"] {
  background-color: #fff;
}

/* 列幅（SP） */
#container table.compare-table .col-product   { width: 130px; max-width: 260px; }
#container table.compare-table .col-face,
#container table.compare-table .col-body,
#container table.compare-table .col-hair,
#container table.compare-table .col-viscosity,
#container table.compare-table .col-oxidation { width: 48px; }
#container table.compare-table .col-skin      { width: 88px; }
#container table.compare-table .col-process   { width: 60px; }
#container table.compare-table .col-feature   { width: 100px; }
#container table.compare-table .col-cost      { width: 80px; }

/* sticky 商品名列（SP/PC共通） */
#container table.compare-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 6;
  border-left: 2px solid #d4e8e8;
}

#container table.compare-table tbody th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 5;
  border-left: 2px solid #d4e8e8;
}

/* 商品名セル（SP：画像が上、テキストが下） */
#container .product-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4em;
}

#container .product-cell img {
  width: 100%;
  max-width: 220px;
  height: auto;
}

#container .product-brand {
  font-size: 0.8em;
  color: var(--color-main);
  font-weight: 600;
  letter-spacing: 0.03em;
}

#container .product-name {
  font-size: 0.9em;
  font-weight: 600;
}

/* ========================================
   使い方
======================================== */
#container .section-howto .section-inner {
  background-color: var(--color-section-bg);
}

#container .section-howto h2 {
  line-height: 1.4;
  margin-bottom: 1.6em;
}

#container .section-howto .small {
  font-size: 0.8em;
  font-weight: 600;
}

#container .howto-image {
  margin-bottom: 1.6em;
  text-align: center;
}

#container .howtobox {
  margin-top: 1.4em;
}

#container .howtobox h3 {
  text-align: center;
  font-size: 1.0em;
  margin-bottom: 0.6em;
  background: #6b8e8e;
  padding: 3px 20px;
  color: #ffffff;
  letter-spacing: 0.1em;
  font-family: "Noto Sans JP", "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
}

#container .howtobox ul {
  padding-left: 1.3em;
  margin: 0.4em 0 0;
}

/* ========================================
   ランキング
======================================== */
#container .section-ranking {
  background-color: #d4e8e8;
}

#container .rankingWrap {
  display: flex;
  flex-direction: column;
  gap: 2em;
  margin-top: 2em;
  align-items: stretch;
  text-align: center;
  padding: 1.6em;
}

#container .rank-item.rank-1,
#container .rank-item.rank-2 {
  margin-bottom: 3.8em;
}

#container .section-ranking h2 {
  color: #d4a744;
  font-size: 1.5em;
  line-height: 1.4;
}

#container .section-ranking .small {
  color: #306b6d;
  font-size: 0.8em;
  font-weight: 600;
}

#container .rank-item {
  position: relative;
}

#container .rank-image {
  position: relative;
}

#container .rank-icon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -6.5%;
  z-index: 2;
}

#container .rank-text {
  margin-top: 0.8em;
  font-size: 1.2em;
  line-height: 1.5;
  text-align: left;
}

#container .btn-box {
  text-align: center;
}

#container .btn-link {
  position: relative;
  display: inline-block;
  min-width: 80%;
  padding: 1.2em 3.0em 1.2em 2.4em;
  border-radius: 6px;
  background: linear-gradient(180deg, #e8c367 0%, #d9a53f 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

#container .btn-link::after {
  content: "";
  position: absolute;
  right: 1.5em;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: translateY(-50%) rotate(-45deg);
}

/* ========================================
   おすすめ特集
======================================== */
#container .section-special .section-inner {
  padding: 0 0 18vw;
}

#container .section-special h2 {
  background-color: #6b8e8e;
  color: #fff;
  padding: 2vw 0;
  margin-bottom: 2em;
}

#container .special-list {
  list-style: none;
  padding: 0 6vw;
  margin: 2em 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.6em;
}

#container .special-list li a {
  border-bottom: 1px solid #d5d5d5;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1em;
  text-decoration: none;
  color: inherit;
  padding-bottom: 1.6em;
}

#container .special-text {
  font-size: 0.9em;
  line-height: 1.5;
}

/* ========================================
   フェードイン
======================================== */
#container .scrollFadein {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#container .scrollFadein.scrollIn {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   PC レイアウト（768px〜）
======================================== */
@media screen and (min-width: 768px) {

  /* ------- 共通 ------- */
  #container {
    background-color: #f3f6f6;
  }

  #container .wrapper {
    width: 100%;
    padding: 0 0 80px;
    font-size: 1.6rem;
    margin: 0 auto;
  }

  #container .section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 50px;
  }

  #container .section-inner h2 {
    font-size: 2.4rem;
    text-align: center;
  }

  #container .section-inner p {
  font-size: 0.75em;
  }

  /* セクション背景を横幅いっぱいに */
  #container .mainvisual,
  #container .section-index,
  #container .section-about,
  #container .section-merit,
  #container .section-lineup,
  #container .section-howto,
  #container .section-ranking,
  #container .section-special {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  #container .section-text p + p {
    margin-top: 1.2em;
  }

  #container .sp-br {
    display: none;
  }

  /* ------- ファーストビュー（PC） ------- */

  #container .mainvisual {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0;                /* ここで上下の padding を完全に消す */
    margin-top: 0;
    background-color: #ffffff;
  }

  #container .mainvisual-visual {
    background-image: url("/contents/shop/sevenbeauty/img/freepage/carrieroil-guid/FV_pc.jpg");
    background-size: auto 100%;   /* 高さを100%にして横は自動 */
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #ffffff;    /* 画像の外側（左右）は白 */
    height: 502px;                /* 画像の高さちょうどに固定 */
    display: flex;
    align-items: flex-start;
    padding: 0;
  }

  #container section.mainvisual > .mainvisual-visual > .mainvisual-inner {
    max-width: 1360px;      /* コンテンツ幅の上限 */
    width: 100%;              /* 中身は100%で広がる */
    margin: 0 auto;           /* 中央寄せ */
    box-sizing: border-box;
    padding: 30px 80px 80px;   /* 上下左右の位置調整 */
    text-align: left;
  }
  /* 大きいタイトル（あなたのケアに／最適な一本） */
  #container .mainvisual .mv-copy {
    font-size: 2.6em;
    line-height: 1.2;
    margin: 0;
    color: #306b6d;
  }

  #container .mainvisual .mv-copy-main {
    display: inline-block;
  }

  /* 下の小見出し（キャリアオイル徹底ガイド） */
  #container .mainvisual .mv-subtitle {
    font-size: 1.2em;
    margin-top: 0.2em;
    color: #306b6d;
  }

  #container .mv-tagline {
    margin-top: 1.4em;
    font-size: 1.2em;
  }

  /* リード文：画像の「下」の帯 */
  #container .mv-lead {
    font-size: 0.65em;
    line-height: 2;
    color: #fff;
    background-color: #6b8e8e;
    width: 100vw;
    max-width: none;
    margin: 0;                    /* ここがポイント：margin-top をゼロに */
    margin-left: calc(50% - 50vw);
    padding: 24px 0;
    text-align: center;
  }

  /* ------- 2カラムベース（PC） ------- */
  #container .section-index .section-inner.section-2col,
  #container .section-about .section-inner.section-2col,
  #container .section-merit .section-inner.section-2col {
    padding: 0 80px 100px;
  }

  #container .section-2col {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 3.5em;
  }

  #container .section-2col > h2 {
    flex: 0 0 100%;
    margin: 0 0 1.6em;
    text-align: center;
  }

  #container .section-2col > .section-text,
  #container .section-2col > .section-image {
    flex: 1 1 0;
  }

  #container .section-text {
    text-align: left;
  }

  #container .section-image {
    text-align: right;
  }

    /* ------- INDEX（PC） ------- */
  #container .section-index h2 {
    font-size: 1.2rem;
    margin-bottom: 0.6em;
  }

  #container .index-box {
    max-width: 545px;
    margin: 60px auto;
    padding: 32px 40px;
  }

  #container .index-list {
  padding-left: 1.3em;
  font-size: 0.6em;
  }

  /* ------- ABOUT / MERIT 専用：Gridで「h2中央＋左テキスト／右画像」固定 ------- */
  #container #jump-about .section-inner.section-2col,
  #container #jump-merit .section-inner.section-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "title title"
      "text  image";
    column-gap: 0em;
    row-gap: 0em;
    align-items: flex-start;
  }

  #container #jump-about .section-inner.section-2col > h2,
  #container #jump-merit .section-inner.section-2col > h2 {
    grid-area: title;
    margin: 0 0 1.6em;
    text-align: center;
  }

  #container #jump-about .section-inner.section-2col > .section-text,
  #container #jump-merit .section-inner.section-2col > .section-text {
    grid-area: text;
    text-align: left;
    width: 520px;
  }

  #container #jump-about .section-inner.section-2col > .section-image,
  #container #jump-merit .section-inner.section-2col > .section-image {
    grid-area: image;
    text-align: right;
    justify-self: end;
  }

  /* ------- ラインナップ（PC） ------- */
  #container .section-lineup .section-inner {
    padding: 100px 0px 100px;
  }

  #container .section-lineup h2 {
    font-size: 2.4rem;
    padding: 0.4em 0;
    margin-bottom: 50px;
  }

  #container .section-lineup .lineup-lead {
    font-size: 0.8em;
  }

  #container .seriesWrap {
    flex-direction: row;
    gap: 1.2em;
    margin: 2em 0 2em;
  }

  #container .seriesWrap dl {
    flex: 1;
    grid-template-columns: 200px 1fr;
  }

  /* --------- 商品比較表（PC） --------- */

  #container .compare-title {
    font-size: 1.4rem;
    margin: 3em 0 1.6em;
  }

  /* PC は横スクロールさせず、テーブルをコンテンツ幅にフィットさせる */
  #container .table-scroll {
    overflow-x: visible;         /* SP 用の auto を上書き */
    margin-top: 1em;
  }

  #container .product-cell img {
    width: 90%;
    max-width: 220px;
    height: auto;
 }

  #container table.compare-table {
    width: 100%;
    min-width: auto;             /* 以前の min-width:1080px などがあれば無効化 */
    margin: 0 auto;
    border-width: 2px;
  }

  #container table.compare-table thead th {
    font-size: 0.45em;
    line-height: 1.4;
}

  #container table.compare-table th,
  #container table.compare-table td {
    font-size: 0.6em;
    padding: 1em 0.8em;
  }

  /* 列幅（合計がほぼ100%になるよう調整） */
  #container table.compare-table .col-product   { width: 22%; }  /* 商品名 */
  #container table.compare-table .col-skin      { width: 11%; }  /* 適した肌質 */
  #container table.compare-table .col-face      { width: 6%;  }  /* フェイシャル */
  #container table.compare-table .col-body      { width: 6%;  }  /* ボディ */
  #container table.compare-table .col-hair      { width: 6%;  }  /* ヘアケア */
  #container table.compare-table .col-process   { width: 8%;  }  /* 処理方法 */
  #container table.compare-table .col-viscosity { width: 6%;  }  /* 粘度 */
  #container table.compare-table .col-oxidation { width: 6%;  }  /* 酸化安定性 */
  #container table.compare-table .col-feature   { width: 16%; }  /* 特徴 */
  #container table.compare-table .col-cost      { width: 16%; }  /* コスト */

#container .product-cell {
    gap: 0; 
}
  /* ------- 使い方（PC） ------- */
  #container .section-howto .section-inner {
    padding: 100px 80px 100px;
  }

  #container .howtobox h3 {
    font-size: 0.75em;
    margin-bottom: 0.8em;
    padding: 2px 0;
  }

  #container .howto-image {
    margin-bottom: 2em;
  }

  #container .howtobox {
    margin-top: 2em;
    padding: 0 50px;
  }

  /* ------- ランキング（PC） ------- */
  #container .section-ranking .section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 70px 100px;
  }

  #container .rank-item.rank-1, #container .rank-item.rank-2 {
    margin-bottom: 1.0em;
  }

  #container .rank-icon {
    top: -8%;
  }

  #container .rankingWrap {
    flex-direction: row;
    padding: 0;
    margin-top: 80px;
    gap: 1.8em;
  }

  #container .rank-item {
    flex: 1;
  }

  #container .rank-text {
    font-size: 0.75em;
  }

  #container .btn-link {
    font-weight: 400;
    margin-top: 30px;
}
/* ---------- おすすめ特集（PC） ---------- */
#container .section-special .section-inner {
  padding: 0 0 70px;
}

/* 見出し帯はそのまま全幅 */
#container .section-special h2 {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 10px 0;
  text-align: center;
  background-color: #6b8e8e;
  color: #fff;
  font-size: 1.4em;
}

/* 4つを 4×2 のグリッドに */
#container .special-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* 2列 */
  column-gap: 30px;
  row-gap: 40px;
  padding: 0 70px 80px;
}

/* 各アイテムはカード状に（画像上・テキスト下） */
#container .special-list li {
  list-style: none;
}

#container .special-list li a {
  display: block;
  text-decoration: none;
  color: inherit;
  border-bottom: none;        /* SP のボーダーをPCでは消す */
  padding-bottom: 0;
}

/* サムネイルは上に */
#container .special-thumb {
  text-align: left;
}

#container .special-thumb img {
  width: 100%;
  height: auto;
}

/* テキストは画像の下に余白をとって表示 */
#container .section-special .special-text {
  margin-top: 0.8em;
  font-size: 0.65em;
  line-height: 1.5;
}
}
