/* IROHANI LIFE — front: afuribrewing 型（全面ヒーロー＋フレーム写真＋商品カード）／ article: tanukie 型（余白・縦書きタグ・2カラム導入） */
:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --ink: #1d1f1e;
  --mute: #6d716f;
  --line: rgba(29, 31, 30, .14);
  --accent: #2f5d50;
  --accent-ink: #ffffff;
  --chip: #4b4f4d;
  --chip-ink: #f4f3ef;
  --warn: #8a5a00;
  --warn-bg: #fff6e0;
  --hero-a: #cfe3dc;
  --hero-b: #8fb8a8;
  --hero-c: #2f5d50;
  --gutter: clamp(20px, 5vw, 64px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121413; --surface: #1b1e1c; --ink: #ecece8; --mute: #9a9e9b;
    --line: rgba(236,236,232,.16); --accent: #8fc3b0; --accent-ink: #121413;
    --chip: #d8d8d2; --chip-ink: #121413;
    --warn: #f0c36a; --warn-bg: #2a2412;
    --hero-a: #22332d; --hero-b: #2b4a40; --hero-c: #0f1a16;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-weight: 400; line-height: 1.95; font-size: 16px; letter-spacing: .02em;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.en { font-family: "Public Sans", system-ui, sans-serif; letter-spacing: .08em; }

/* ---------- header（共通） ---------- */
.site-head {
  position: absolute; z-index: 5; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter); gap: 16px;
}
.site-head.solid { position: static; background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { font-family: "Public Sans", sans-serif; font-weight: 600; letter-spacing: .14em; font-size: .85rem; text-decoration: none; color: inherit; }
.nav { display: flex; gap: clamp(14px, 3vw, 28px); font-family: "Public Sans", sans-serif; font-size: .74rem; letter-spacing: .14em; }
.nav a { color: inherit; text-decoration: none; opacity: .88; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.hero ~ * .nav a { color: var(--ink); }

/* ---------- front: hero ---------- */
.hero {
  position: relative; min-height: 100svh; color: #fff; overflow: hidden;
  background:
    radial-gradient(120% 80% at 80% 10%, var(--hero-a) 0%, transparent 55%),
    linear-gradient(180deg, var(--hero-b) 0%, var(--hero-c) 100%);
  display: grid; align-content: end; padding: 0 var(--gutter) clamp(36px, 7vw, 72px);
}
.hero-frame {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -62%);
  width: min(46vw, 460px); aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.55); backdrop-filter: blur(2px);
  display: grid; place-items: center; text-align: center; padding: 20px;
  font-size: clamp(.8rem, 1.5vw, 1rem); letter-spacing: .12em;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-catch { position: absolute; left: var(--gutter); top: 40%; max-width: 15em; font-size: clamp(.95rem, 1.8vw, 1.15rem); line-height: 1.9; }
.hero-catch u { text-underline-offset: 8px; text-decoration-thickness: 1px; }
.wordmark { font-family: "Public Sans", sans-serif; font-weight: 500; letter-spacing: .12em; font-size: clamp(2rem, 7vw, 4.4rem); line-height: 1.05; margin: 0; }
.hero-sub { margin: .4em 0 0; font-size: .9rem; letter-spacing: .1em; }
.scroll { position: absolute; right: var(--gutter); bottom: clamp(36px, 7vw, 72px); font-family: "Public Sans", sans-serif; font-size: .7rem; letter-spacing: .14em; display: grid; gap: 8px; justify-items: end; }
.scroll::before { content: ""; width: 120px; height: 1px; background: rgba(255,255,255,.8); }

@media (max-width: 720px) {
  .hero-frame { width: 78vw; top: 38%; transform: translate(-50%, -50%); }
  .hero-catch { top: auto; bottom: 34%; }
  .scroll { display: none; }
}

/* ---------- sections ---------- */
.wrap { width: min(100%, 1080px); margin: 0 auto; padding: 0 var(--gutter); }
section.block { padding: clamp(56px, 9vw, 112px) 0; border-top: 1px solid var(--line); }
.kicker { font-family: "Public Sans", sans-serif; font-size: .72rem; letter-spacing: .2em; color: var(--mute); margin: 0 0 10px; }
h1, h2, h3 { font-weight: 700; line-height: 1.5; margin: 0; }
h2.section-title { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .6em; }
.lead { color: var(--mute); max-width: 38em; }
.pr {
  background: var(--warn-bg); color: var(--warn); border: 1px solid var(--line);
  padding: 10px 14px; font-size: .85rem; margin: 0 0 28px; border-radius: 6px;
}

/* items（AFURIの商品カード型） */
.items { display: grid; gap: 0; }
.item {
  display: grid; grid-template-columns: 1fr; gap: 10px;
  padding: 28px 0; border-top: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
@media (min-width: 760px) { .item { grid-template-columns: 220px 1fr 160px; gap: 32px; align-items: start; } }
.item .label { font-family: "Public Sans", sans-serif; font-size: .7rem; letter-spacing: .18em; color: var(--mute); }
.item h3 { font-size: 1.25rem; }
.item .tag { color: var(--mute); margin: .2em 0 .8em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { font-size: .78rem; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--mute); }
.more { font-family: "Public Sans", sans-serif; font-size: .78rem; letter-spacing: .14em; justify-self: end; align-self: center; }

/* numbers（防災の数字） */
.nums { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 28px 0 0; }
.num { background: var(--surface); border: 1px solid var(--line); padding: 22px; }
.num b { display: block; font-family: "Public Sans", sans-serif; font-size: 2rem; font-weight: 500; line-height: 1.3; }
.num span { color: var(--mute); font-size: .88rem; }

/* ---------- article（tanukie 型） ---------- */
.article-top { padding: clamp(40px, 7vw, 88px) 0 0; }
.article-top .meta { display: flex; justify-content: space-between; gap: 20px; align-items: end; flex-wrap: wrap; margin-bottom: 40px; }
.article-top h1 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 500; letter-spacing: .06em; }
.article-top .by { color: var(--mute); font-size: .85rem; margin-top: 6px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { font-size: .72rem; padding: 3px 10px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.intro { display: grid; gap: 28px; padding: 20px 0 64px; }
@media (min-width: 760px) { .intro { grid-template-columns: 1fr 1.25fr; gap: 64px; } }
.vtags { display: flex; gap: 10px; align-items: flex-start; min-height: 220px; }
.vtag {
  writing-mode: vertical-rl; background: var(--chip); color: var(--chip-ink);
  padding: 14px 10px; font-size: clamp(1rem, 2.4vw, 1.3rem); letter-spacing: .24em; line-height: 1.4;
  border-radius: 3px 3px 10px 3px;
}
.vtag:nth-child(2) { margin-top: 24px; }
.article-body { padding-bottom: 80px; }
.article-body h2 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 700; margin: 3.2em 0 1em; line-height: 1.6; }
.article-body h3 { font-size: 1.05rem; margin: 2em 0 .5em; }
.article-body p { max-width: 44em; }
.article-body .table-wrap { margin: 28px 0; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 8px; text-align: left; vertical-align: top; }
th { color: var(--mute); font-weight: 500; width: 9em; white-space: nowrap; }
.voice { background: var(--surface); border: 1px solid var(--line); padding: 26px; margin: 36px 0; }
.voice small { display: block; color: var(--mute); margin-bottom: 8px; }
.product { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); }
.product a.buy { display: inline-block; margin-top: 6px; padding: 8px 18px; background: var(--accent); color: var(--accent-ink); text-decoration: none; border-radius: 999px; font-size: .88rem; }
.todo { background: var(--warn-bg); color: var(--warn); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.note { color: var(--mute); font-size: .88rem; }
.back { display: inline-block; margin-top: 28px; font-family: "Public Sans", sans-serif; font-size: .78rem; letter-spacing: .14em; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--mute); font-size: .85rem; }
.site-foot a { color: var(--mute); margin-right: 18px; }
.site-foot .stmt { margin: 18px 0 0; max-width: 46em; }

/* ================= 動き（prefers-reduced-motion では止める） ================= */
@media (prefers-reduced-motion: no-preference) {
  /* ヒーロー：背景がゆっくり動く */
  .hero { background-size: 160% 160%, 100% 100%; animation: sky 18s ease-in-out infinite alternate; }
  @keyframes sky { 0% { background-position: 80% 10%, 0 0; } 100% { background-position: 20% 40%, 0 0; } }
  /* 文字がひとつずつ上がる */
  .wordmark span { display: inline-block; opacity: 0; transform: translateY(.6em); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(.25s + var(--i) * .06s); }
  .wordmark .sp { width: .35em; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  .hero-sub, .hero-catch, .scroll { opacity: 0; animation: fade 1.2s ease forwards; }
  .hero-catch { animation-delay: .9s; }
  .hero-sub { animation-delay: 1.2s; }
  .scroll { animation-delay: 1.6s; }
  @keyframes fade { to { opacity: 1; } }
  /* フレームはふわっと浮かぶ */
  .hero-frame { animation: floaty 7s ease-in-out infinite; }
  @keyframes floaty { 0%,100% { transform: translate(-50%, -62%); } 50% { transform: translate(-50%, -66%); } }
  @media (max-width: 720px) {
    .hero-frame { animation-name: floaty-m; }
    @keyframes floaty-m { 0%,100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -54%); } }
  }
  .scroll::before { transform-origin: right; animation: line 2.4s ease-in-out infinite; }
  @keyframes line { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); } 100% { transform: scaleX(0); transform-origin: left; } }
  /* スクロールで現れる */
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
  .nums .reveal:nth-child(2) { transition-delay: .12s; }
  .nums .reveal:nth-child(3) { transition-delay: .24s; }
  /* カード・リンクのホバー */
  .item { position: relative; transition: background .35s ease, padding .35s ease; }
  .item::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--accent); transition: width .5s ease; }
  .item:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
  .item:hover::after { width: 100%; }
  .item .more { transition: transform .35s ease; }
  .item:hover .more { transform: translateX(6px); }
  .product a.buy, .back { transition: transform .25s ease, box-shadow .25s ease; }
  .product a.buy:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
  /* 縦書きタグ：上から降りてくる */
  .vtag { animation: drop .9s cubic-bezier(.2,.7,.2,1) both; }
  .vtag:nth-child(2) { animation-delay: .18s; }
  @keyframes drop { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
  /* 見出しの下線が伸びる */
  .article-body h2 { background: linear-gradient(var(--accent), var(--accent)) left bottom / 0% 1px no-repeat; transition: background-size .9s ease; padding-bottom: .4em; }
  .article-body h2.in { background-size: 3.2em 1px; }
}
/* スクロールでヘッダーが落ち着く（index のみ） */
.site-head { transition: background .35s ease, color .35s ease, border-color .35s ease; }
.site-head.stuck { position: fixed; background: color-mix(in srgb, var(--bg) 92%, transparent); color: var(--ink); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); padding-top: 14px; padding-bottom: 14px; }
.site-head.stuck .nav a, .site-head.stuck .brand { color: var(--ink); }

/* ================= 色使い：トバログ型（#f3f3f3 の地、#333 の文字、白のカード、#121212 のフッター） ================= */
:root {
  --bg: #f3f3f3; --surface: #ffffff; --ink: #333333; --mute: #7b7b7b;
  --line: rgba(51,51,51,.14); --accent: #333333; --accent-ink: #ffffff;
  --chip: #333333; --chip-ink: #ffffff;
  --blob-a: #ebe6df; --blob-b: #efe0da; --blob-c: #e3e8e2;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161616; --surface: #1f1f1f; --ink: #e9e9e9; --mute: #9a9a9a; --line: rgba(233,233,233,.16);
    --accent: #e9e9e9; --accent-ink: #161616; --chip: #e9e9e9; --chip-ink: #161616;
    --blob-a: #262522; --blob-b: #2a2523; --blob-c: #232724; }
}
body { font-weight: 400; letter-spacing: .06em; }
a { color: var(--ink); text-underline-offset: 4px; }
/* ヒーロー：淡い地＋やわらかな形（商品写真の背景と同じ雰囲気） */
.hero {
  color: var(--ink);
  background:
    radial-gradient(60% 55% at 12% 18%, var(--blob-b) 0%, transparent 62%),
    radial-gradient(55% 60% at 88% 30%, var(--blob-a) 0%, transparent 60%),
    radial-gradient(70% 60% at 60% 100%, var(--blob-c) 0%, transparent 65%),
    var(--bg);
  background-size: 140% 140%, 140% 140%, 140% 140%, 100% 100%;
}
.hero-frame { background: var(--surface); border: 0; backdrop-filter: none; box-shadow: 0 28px 60px rgba(0,0,0,.12); color: var(--mute); }
.scroll::before { background: var(--ink); }
.site-head:not(.solid):not(.stuck), .site-head:not(.solid):not(.stuck) .brand, .site-head:not(.solid):not(.stuck) .nav a { color: var(--ink); }
.wordmark { font-weight: 400; letter-spacing: .2em; }
@media (prefers-reduced-motion: no-preference) {
  .hero { animation: sky2 22s ease-in-out infinite alternate; }
  @keyframes sky2 { 0% { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; } 100% { background-position: 30% 20%, 70% 30%, 40% 80%, 0 0; } }
}
/* 黒いタグ（トバログの肩書きタグ型） */
.badge { background: var(--chip); color: var(--chip-ink); border-radius: 0; letter-spacing: .12em; padding: 3px 10px; }
.chip { border-radius: 0; background: var(--chip); color: var(--chip-ink); border: 0; letter-spacing: .1em; }
.num, .voice, .product { background: var(--surface); }
.product { padding: 20px; border: 1px solid var(--line); margin-top: 16px; }
.product a.buy, .btn { background: var(--ink); color: var(--accent-ink); border-radius: 0; letter-spacing: .12em; }
.pr { background: var(--surface); color: var(--mute); border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 0; }
.todo { background: #ebebeb; color: #555; }
@media (prefers-color-scheme: dark) { .todo { background: #2a2a2a; color: #cfcfcf; } }
.site-foot { background: #121212; color: #bdbdbd; border-top: 0; margin-top: 40px; }
.site-foot a { color: #bdbdbd; }
.item:hover { background: var(--surface); }
.item::after { background: var(--ink); }
.article-body h2 { background-image: linear-gradient(var(--ink), var(--ink)); }

/* ================= 商品の写真ステージ（背景はモダンな形、影は自動） ================= */
.stage {
  position: relative; margin: 8px 0 0; aspect-ratio: 16 / 9; overflow: hidden;
  background: #fff; display: grid; place-items: center;
}
.stage::before, .stage::after { content: ""; position: absolute; border-radius: 50%; z-index: 0; }
.stage::before { width: 62%; aspect-ratio: 1; left: -12%; top: -34%; background: var(--st-a, #ebe6df); border-radius: 46% 54% 58% 42% / 52% 40% 60% 48%; }
.stage::after  { width: 70%; aspect-ratio: 1.2; right: -20%; bottom: -46%; background: var(--st-b, #efe0da); border-radius: 58% 42% 44% 56% / 44% 56% 44% 56%; }
.stage-beige { --st-a: #ebe6df; --st-b: #e4ddd2; }
.stage-blush { --st-a: #efe0da; --st-b: #e9d3cb; }
.stage-sage  { --st-a: #e3e8e2; --st-b: #d7dfd6; }
.stage img.cutout {
  position: absolute; inset: 0; margin: auto; z-index: 1; height: 80%; width: auto; max-width: 70%; object-fit: contain;
  filter: drop-shadow(0 22px 20px rgba(0,0,0,.16)) drop-shadow(0 4px 6px rgba(0,0,0,.10));
}
.stage .ground { position: absolute; z-index: 0; left: 28%; bottom: 12%; width: 44%; height: 6%; background: radial-gradient(closest-side, rgba(0,0,0,.14), transparent); filter: blur(4px); }
@media (prefers-reduced-motion: no-preference) {
  .stage img.cutout { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
  .stage:hover img.cutout { transform: translateY(-6px) scale(1.02); }
}
.stage figcaption { position: absolute; z-index: 2; left: 14px; bottom: 10px; font-size: .72rem; color: var(--mute); letter-spacing: .12em; }

/* ================= カテゴリー一覧（トバログ型：大分類＋小分類） ================= */
.cats { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 28px; }
.cat { background: var(--surface); padding: 26px 24px; border: 1px solid var(--line); }
.cat .en { font-size: .7rem; color: var(--mute); letter-spacing: .24em; margin: 0 0 4px; }
.cat h3 { font-size: 1.05rem; margin-bottom: 12px; }
.cat ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; line-height: 2.1; }
.cat li a { text-decoration: none; }
.cat li a:hover { text-decoration: underline; }
.cat li.soon { color: var(--mute); }

/* 商品カードの中の写真：カード幅に収まり、「Amazonで見る」の上に入る */
.product .stage { margin: -20px -20px 16px; aspect-ratio: auto; width: auto; height: clamp(230px, 38vw, 340px); }
.product .stage img.cutout { height: 86%; max-width: 78%; }
.product .stage .ground { bottom: 9%; }

/* 「いま使っている物」：タイトルの下に、背景なしの商品画像（影だけ） */
.item-img { margin: 14px 0 6px; }
.item-img img {
  height: clamp(150px, 22vw, 210px); width: auto; max-width: 100%; object-fit: contain; object-position: left center;
  filter: drop-shadow(0 16px 14px rgba(0,0,0,.16)) drop-shadow(0 3px 4px rgba(0,0,0,.10));
}
@media (prefers-reduced-motion: no-preference) {
  .item-img img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
  .item:hover .item-img img { transform: translateY(-6px) rotate(-1.2deg); }
}
