@charset "UTF-8";

/* =========================================================
   John's Blend 10th Anniversary LP
   - Naming: BEM (Block__Element--Modifier)
   - Breakpoint: 768px (SP first)
   ========================================================= */

/* ---------------------------------------------------------
   Variables
   ※ カラーは仮の値です。正確な #HEX に差し替えてください。
   --------------------------------------------------------- */
:root {
  /* Color */
  --color-black: #1a1a1a;        /* メインの黒（ラベル・ボタン） */
  --color-white: #ffffff;
  --color-text: #333333;         /* 本文 */
  --color-text-sub: #666666;     /* 補足・注釈 */
  --color-bg: #ffffff;           /* ページ背景 */
  --color-bg-gray: #f5f5f5;      /* セクション背景（薄グレー） */
  --color-border: #cccccc;       /* 罫線 */
  --color-accent: #8a7a5c;       /* アクセント（強調数値など） */
  --color-marker: #e9e4d6;       /* 強調マーカー */
  --color-marker-yellow: #fff35c; /* 強調マーカー（黄） */
  --color-badge: #333333;        /* UP 丸バッジ枠 */

  /* Font family
     - 欧文：Athelas（macOS / iOS 標準搭載。Windows には無いため Georgia 等で代替）
     - 和文：游ゴシック（Windows は細く見えるため Medium を優先）
     欧文を先に並べることで、英数字は Athelas、日本語は游ゴシックで表示されます。 */
  --font-en: "Athelas", Georgia, "Times New Roman", serif;
  --font-ja: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  /* 手書き：Adobe Handwriting（Adobe Fonts / Typekit キットで読み込み）
     使うウエイトに合わせて ernie / tiffany / frank の順番を入れ替えてください */
  --font-hand: "adobe-handwriting-ernie", "adobe-handwriting-tiffany", "adobe-handwriting-frank", cursive;
  --font-base: "Athelas", Georgia, "Times New Roman", "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;

  /* Font size */
  --fz-xs: 1.0rem;
  --fz-sm: 1.2rem;
  --fz-base: 1.4rem;
  --fz-md: 1.6rem;
  --fz-lg: 2.0rem;
  --fz-xl: 2.6rem;
  --fz-xxl: 3.6rem;

  /* Layout */
  --content-width: 1000px;
  --content-narrow: 720px;
  --gutter: 20px;
  --section-space: 80px;

  /* Misc */
  --transition: 0.3s ease;
}

@media (min-width: 768px) {
  :root {
    --fz-base: 1.5rem;
    --fz-lg: 2.4rem;
    --fz-xl: 3.2rem;
    --fz-xxl: 5.2rem;
    --gutter: 40px;
    --section-space: 120px;
  }
}

/* ---------------------------------------------------------
   Reset / Base
   --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: var(--fz-base);
  line-height: 1.9;
  letter-spacing: 0.08em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, figure {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

mark {
  background: none;
  color: inherit;
}

sup {
  font-size: 0.6em;
  vertical-align: super;
  line-height: 0;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  background: var(--color-black);
}

/* テキストは画像内に含まれるため、トリミングせず全体を表示 */
.hero__img {
  width: 100%;
  height: auto;
}

/* ---------------------------------------------------------
   Concept
   --------------------------------------------------------- */
.concept {
  padding: var(--section-space) var(--gutter);
  text-align: center;
}

.concept__inner {
  max-width: var(--content-narrow);
  margin-inline: auto;
}

/* 本文は英数字も含めて游ゴシック。指定の英語フレーズのみ Athelas */
.concept__body {
  font-family: var(--font-ja);
}

.concept__en {
  font-family: var(--font-en);
}

.concept__text + .concept__text {
  margin-top: 2em;
}

/* 折り返しは HTML の <wbr>・空白（文節の区切り）でのみ行い、中央揃えの各行の長さを均等にする */
.concept__text,
.concept__lead {
  word-break: keep-all;
  overflow-wrap: anywhere; /* 1文節が幅に収まらない場合のみ文節内で折り返す（はみ出し防止） */
  text-wrap: balance;
}

.concept__lead {
  margin-top: 3em;
  font-family: var(--font-ja);
  font-size: var(--fz-md);
  font-weight: 700;
  line-height: 1.8;
}

.concept__logo {
  margin-top: 56px;
}

.concept__logo img {
  width: 160px;
  margin-inline: auto;
}

/* 改行の出し分け
   - <br>               ：PC のみ改行
   - <br class="jb10-br-sp"> ：SP のみ改行（SP 用に意味の区切りで手動調整）
   - <br class="jb10-br-all">：PC・SP 両方で改行（同じ位置に <br> を2つ並べると空白行になるため1つにまとめる）
   - <span class="jb10-pc">：PC のみ表示（SP で改行する位置の全角スペースなど）
   ※ .jb10-br-sp / .jb10-pc はページ全体で共通（product__notes の ※ ごとの改行でも使用）
   ※ MakeShop 共通CSSの同名クラス（.br-sp / .pc 等）と衝突しないよう jb10- を付け、
     共通CSSに上書きされないよう !important で固定 */
@media (max-width: 767px) {
  .concept__text br:not(.jb10-br-sp):not(.jb10-br-all),
  .concept__lead br:not(.jb10-br-sp):not(.jb10-br-all),
  .jb10-pc {
    display: none !important;
  }

  br.jb10-br-sp {
    display: inline !important;
  }
}

@media (min-width: 768px) {
  .jb10-br-sp {
    display: none !important;
  }
}

/* ---------------------------------------------------------
   Gallery
   --------------------------------------------------------- */
.gallery {
  padding: 0 var(--gutter);
}

.gallery__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: var(--content-width);
  margin-inline: auto;
}

.gallery__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* 縦長画像：表示位置を上寄りにして元画像の上部を見せる */
.gallery__img--top {
  object-position: center 26%;
}

@media (min-width: 768px) {
  .gallery__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* ---------------------------------------------------------
   Formula (WHITE MUSK 新処方)
   --------------------------------------------------------- */
.formula {
  padding: var(--section-space) var(--gutter);
  text-align: center;
}

.formula__inner {
  max-width: var(--content-narrow);
  margin-inline: auto;
}

/* ラベル＋新「John's Blend」処方＋サブコピーを1枚の画像で表示 */
.formula__title-img {
  width: 100%;
  max-width: 554px;
  margin-inline: auto;
}

.formula__lead {
  margin-top: 56px;
  font-size: var(--fz-lg);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.14em;
}

.formula__lead-line {
  display: block;
}

.formula__text {
  width: fit-content;
  margin: 32px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 767px) {
  .formula__text br {
    display: none;
  }
}

/* ---------------------------------------------------------
   Products
   --------------------------------------------------------- */
.products {
  padding: 0 var(--gutter) var(--section-space);
}

/* Product (Block) */
.product {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-block: 48px;
}

.product__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product__name {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.product__name-sub {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 500;
}

.product__name-en {
  font-family: var(--font-en);
  font-size: calc(var(--fz-xl) + 0.4rem); /* SP 3.0rem／PC 3.6rem */
  font-weight: 600;
  letter-spacing: 0.02em;
}

.product__name-ja {
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-text-sub);
}

.product__copy {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  padding-bottom: 8px;
  padding-left: 0.12em; /* 行末の字間分を左にも足して視覚的に中央へ */
  border-bottom: 1px solid currentColor;
  /* 折り返しは HTML の <wbr>（文節の区切り）でのみ行い、行の長さを均等にする */
  word-break: keep-all;
  overflow-wrap: anywhere; /* 1文節が幅に収まらない場合のみ文節内で折り返す（はみ出し防止） */
  text-wrap: balance;
}

.product__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 32px;
}

.product__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 26%; /* 縦長画像の上部寄りを表示（gallery 1枚目と同じ） */
}

/* 個別調整：画像を下げる（元画像の上部をより多く表示） */
.product__img--pos-top {
  object-position: center 5%;
}

/* ポイント欄は英数字も含めて游ゴシック（Point 見出しのみ手書き書体） */
.product__points {
  font-family: var(--font-ja);
}

/* 1つ目の point__badge の円の真上・中央に配置（幅を円と揃える） */
.product__point-title {
  width: 80px;
  margin-bottom: 0;
  font-family: var(--font-hand);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
  transform: translate(-8px, 6px) rotate(-8deg); /* 左下へ少しずらして傾ける */
}

@media (min-width: 768px) {
  .product__point-title {
    width: 96px;
    font-size: 2.8rem;
  }
}

.product__point-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product__notes {
  margin-top: 24px;
  font-size: var(--fz-xs);
  line-height: 1.7;
  color: var(--color-text-sub);
}

/* ポイント欄の折り返し：HTML の <wbr>・空白（文節の区切り）でのみ折り返す */
.point__detail p,
.product__notes {
  word-break: keep-all;
  overflow-wrap: anywhere; /* 1文節が幅に収まらない場合のみ文節内で折り返す（はみ出し防止） */
}

/* 短い行は行の長さを均等に、長い説明文・注釈は最終行が1語だけ残るのを防ぐ */
.point__label,
.point__compare,
.point__desc--md {
  text-wrap: balance;
}

.point__desc:not(.point__desc--md),
.product__notes {
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .product {
    padding-block: 64px;
  }

  .product__head {
    flex-direction: row;
    align-items: flex-end;
    gap: 40px;
  }

  .product__head .product__name {
    flex-shrink: 0;
    min-width: 220px;
  }

  /* PC の文字サイズは、コンテンツ最大幅 1000px（画面幅 1080px 以上）で最大になり、
     それより狭い画面（タブレット〜小さめのノートPC）では画面幅に合わせて縮小する */
  .product__name-en {
    font-size: clamp(3.0rem, 3.4vw, 3.6rem);
  }

  .product__copy {
    flex: 1;
    padding-bottom: 8px;
    font-size: clamp(1.8rem, 2.3vw, 2.5rem);
  }

  .product__body {
    grid-template-columns: 2fr 3fr;
    align-items: center;
    gap: 56px;
  }

  /* 偶数番目は画像を右に（デザインに合わせて削除可） */
  /*
  .product:nth-child(even) .product__visual {
    order: 2;
  }
  */
}

/* Point (Block) */
.point {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* 中身（point__badge-text と point__up）を縦に積んで円の中央に配置。
   改行を <br> や grid の自動配置に頼らず、要素単位で必ず段を分ける */
.point__badge {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border: 1px solid var(--color-badge);
  border-radius: 50%;
  /* 字間（行末に付く余白）と游ゴシックの上寄りを補正して視覚的に中央へ */
  padding: 0.3em 0 0 0.04em;
  font-family: var(--font-ja);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0.04em;
}

.point__badge-text {
  display: block;
}

/* 共通CSS等で <br> が消されても、「芳香／持続期間」の改行は維持する */
.point__badge br {
  display: inline;
}

/* 「UP」は必ず独立した段にし、上の文字との間に少し余白をとる */
.point__up {
  display: block;
  margin-top: 0.15em;
  font-family: var(--font-ja);
  font-size: 1.8rem;
  line-height: 1.1;
  letter-spacing: 0.1em;
  padding-left: 0.1em; /* 末尾の字間分を左にも足して左右対称に */
}

.point__detail {
  flex: 1;
  padding-top: 4px;
}

.point__label {
  font-weight: 400;
}

.point__compare {
  font-size: var(--fz-base);
}

.point__arrow {
  margin-inline: 0.3em;
}

/* SP：→ の前で改行するため、行頭に来る → の左余白をなくす */
@media (max-width: 767px) {
  .point__arrow {
    margin-left: 0;
  }
}

.point__emphasis {
  font-size: var(--fz-lg);
  font-weight: 700;
  color: var(--color-accent);
}

.point__desc {
  font-size: var(--fz-sm);
  line-height: 1.7;
}

.point__marker {
  font-weight: 700;
  background: linear-gradient(transparent 60%, var(--color-marker) 60%);
}

.point__note-ref {
  margin-left: 0.2em;
  color: var(--color-text-sub);
}

/* 強調テキスト／マーカー直後の注釈番号は、末尾の文字（「間」「量」など）の真上に乗せる */
.point__emphasis + .point__note-ref,
.point__desc--md .point__marker + .point__note-ref,
.point__detail--tiered .point__label .point__marker + .point__note-ref {
  position: relative;
  top: -1.6em;
  left: -1.35em;
  margin-left: 0;
  vertical-align: baseline;
}

/* 末尾が半角文字（「UP」など）のとき：左への戻し量を半角1文字分に */
.point__detail .point__note-ref.point__note-ref--half {
  left: -1em;
}

/* 末尾が大サイズの文字（「香り拡散」の「散」など）のとき：上の行と重ならないよう、字の真上ではなく右上（横）に置く */
.point__detail .point__note-ref.point__note-ref--big {
  top: -1.7em;
  left: 0;
}

/* 見出し（point__label）直下の行の注釈：上下位置を見出しの文字の上まで上げる */
.point__detail .point__note-ref.point__note-ref--top {
  top: -4.9em;
}

@media (min-width: 768px) {
  .point {
    gap: 24px;
  }

  .point__badge {
    width: 96px;
    height: 96px;
    font-size: 1.5rem;
  }

  .point__up {
    font-size: 2.1rem;
  }

  .point__desc {
    font-size: var(--fz-base);
  }
}

/* 文字サイズ3段階（小・中・大）：各製品の point__detail で使用 */
.point__detail--tiered {
  --tier-s: 1.2rem;
  --tier-m: 1.5rem;
  --tier-l: 2.6rem;
  --tier-lh: 3.0rem; /* 中・大の行の高さ（全行共通の固定値で行間を揃える） */
}

.point__detail--tiered .point__desc {
  margin-top: 0.4em;
  font-size: var(--tier-s);
  line-height: 1.8;
}

.point__detail--tiered .point__label,
.point__detail--tiered .point__compare,
.point__detail--tiered .point__emphasis,
.point__detail--tiered .point__desc--md {
  font-size: var(--tier-m);
}

/* 中サイズの行は行の高さを固定値に（大の文字が入っても行が広がらない） */
.point__detail--tiered .point__label,
.point__detail--tiered .point__compare,
.point__detail--tiered .point__desc--md {
  margin-top: 0;
  line-height: var(--tier-lh);
}

/* 中サイズ＋黄色マーカー */
.point__desc--md .point__marker,
.point__detail--tiered .point__label .point__marker,
.point__emphasis.point__desc--md {
  color: var(--color-black);
  background: linear-gradient(transparent 60%, var(--color-marker-yellow) 60%);
}

.point__big {
  font-size: var(--tier-l, 2.6rem);
  line-height: 0; /* 大の文字で行の高さが押し広げられないように */
}

@media (min-width: 768px) {
  .point__detail--tiered {
    --tier-s: 1.4rem;
    --tier-m: 1.8rem;
    --tier-l: 3.2rem;
    --tier-lh: 3.6rem;
  }
}

/* ---------------------------------------------------------
   Line up
   --------------------------------------------------------- */
.lineup {
  padding: var(--section-space) var(--gutter);
}

.lineup__inner {
  max-width: var(--content-width);
  margin-inline: auto;
}

.lineup__title {
  font-family: var(--font-en);
  font-size: var(--fz-xxl);
  font-weight: 600;
  line-height: 1.2;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-black);
}

/* PC：product__name-en と product__copy の関係と同じく、
   テキストの右側に罫線を伸ばし、テキストの下端に揃える */
@media (min-width: 768px) {
  .lineup__title {
    display: flex;
    align-items: flex-end;
    gap: 40px;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .lineup__title::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--color-black);
  }
}

.lineup__group {
  margin-top: 48px;
}

.lineup__label {
  display: inline-block;
  padding: 4px 20px;
  font-family: var(--font-en);
  font-size: var(--fz-lg);
  font-weight: 500;
  line-height: 1.4;
}

.lineup__label--black {
  background: var(--color-black);
  color: var(--color-white);
}

.lineup__label--white {
  background: var(--color-white);
  color: var(--color-black);
  border: 1px solid var(--color-black);
}

.lineup__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 16px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .lineup__list {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* Lineup Card (Block) */
.lineup-card {
  display: flex;
  flex-direction: column;
}

.lineup-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--color-white);
  margin-bottom: 12px;
}

/* Fragrance Gel の画像のみ、枠内で少し下げて表示（はみ出した下端は枠で切れる） */
.lineup-card__img--down {
  object-position: 50% calc(50% + 24px);
}

/* PC：Reed Diffuser の画像のみ、lineup__label の上端まで上に突き抜けて表示
   （下端は他の画像と揃えたまま、高さを伸ばして拡大。左右の余白部分はトリミング） */
@media (min-width: 768px) {
  .lineup-card {
    container-type: inline-size; /* 100cqw = カードの幅 */
  }

  .lineup-card__img--tall {
    /* ラベルの高さ（文字×行の高さ＋上下 padding＋枠線）＋ラベルとリストの間隔 24px */
    --rise: calc(var(--fz-lg) * 1.4 + 8px + 2px + 24px);
    height: calc(100cqw + var(--rise));
    aspect-ratio: auto;
    margin-top: calc(var(--rise) * -1);
    object-fit: cover;
    object-position: center bottom;
  }
}

/* 画像直後のテキストに margin-top:auto を付け、テキスト一式（名前〜ボタン）をカードの下端に寄せる。
   空いたスペースは画像とテキストの間に入るため、同じ段のカード同士で名前・罫線・価格・ボタンの位置が揃う */
.lineup-card__img + p {
  margin-top: auto;
}

.lineup-card__name-sub {
  font-family: var(--font-en);
  font-size: var(--fz-xs);
  line-height: 1.3;
}

.lineup-card__name-en {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .lineup-card__name-en {
    font-size: 2.0rem;
  }
}

.lineup-card__name-ja {
  margin-bottom: 8px; /* 罫線との最低限の間隔 */
  font-size: var(--fz-xs);
  color: var(--color-text-sub);
  line-height: 1.5;
}

/* 名前との間に罫線 */
.lineup-card__price {
  margin-top: 0;
  margin-bottom: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
  font-family: var(--font-ja);
  font-size: var(--fz-base);
  text-align: right;
}

.lineup-card__tax {
  font-size: var(--fz-xs);
}

.lineup-card__btn {
  display: block;
  align-self: center; /* カード内で中央寄せ */
  width: fit-content; /* テキスト幅＋左右の余白 */
  padding: 4px 20px;
  border: 1px solid var(--color-black);
  border-radius: 999px;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-en);
  font-size: var(--fz-sm);
  text-align: center;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition);
}

/* ホバー時：黒 → 白 */
.lineup-card__btn:hover,
.lineup-card__btn:focus-visible {
  background: var(--color-white);
  color: var(--color-black);
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.footer {
  padding: 40px var(--gutter);
  text-align: center;
}

.footer__logo {
  width: 120px;
  margin-inline: auto;
}

.footer__copy {
  margin-top: 12px;
  font-size: var(--fz-xs);
  color: var(--color-text-sub);
}
