/* Bucchan Works トップページ（2026-09 刷新版）
   ほかのページは assets/style.css のまま。トップだけこのファイルを使う。 */
:root {
  --cream: #fbf5ea;      /* 地の色。生成した素材の背景もこの色に合わせる */
  --cream-2: #f6ecdc;    /* 帯（少し濃いクリーム） */
  --paper: #ffffff;
  --ink: #24314a;        /* 見出しの紺 */
  --text: #4a4a4a;
  --muted: #7d7469;
  --line: #eadfcb;
  --terra: #b5552b;      /* 主ボタン・見出しの茶 */
  --terra-d: #9a4520;
  --gold: #d9a441;
  --leaf: #4f8a6b;
  --blue: #3e7ee8;       /* 筋トレテンポタイマー */
  --pink: #e03a67;       /* わが家の支払管理 */
  --teal: #2a9d8f;       /* くすり飲んだ？ */
  --radius: 22px;
  --shadow: 0 18px 44px rgba(90, 60, 20, .10);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.85; -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra); }
h1, h2, h3 { font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif; color: var(--ink); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
/* 手書き文字：筋トレ・支払管理のページと同じく、生成した画像（assets/home/hand-*.png）を置く。
   画像が無いときは onerror で .nofile が付き、手書き体フォント（Zen Kurenaido）の同じ文言に切り替わる。
   画像は元デザインどおり傾いた状態で作るので、傾きは .nofile のときだけ CSS で付ける。 */
.hand { display: inline-block; position: relative; font-family: "Zen Kurenaido", "Yomogi", cursive; color: #4a3324; letter-spacing: .02em; white-space: nowrap; }
.hand img { display: block; width: 100%; height: auto; }
.hand .txt { display: none; }
.hand.nofile img { display: none; }
.hand.nofile .txt { display: block; }

/* ---- ヘッダー ---- */
.top {
  position: sticky; top: 0; z-index: 20; background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 22px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { height: 46px; width: auto; }
.brand b { display: block; font-size: 17px; letter-spacing: .06em; line-height: 1.1; }
.brand small { display: block; font-size: 10px; letter-spacing: .22em; color: var(--muted); }
.nav { margin-left: auto; display: flex; gap: 22px; font-size: 14px; white-space: nowrap; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; position: relative; }
.nav a.on::after, .nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--terra); border-radius: 2px;
}
.nav a.en { color: var(--muted); }
.play {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  border: 1.5px solid var(--terra); color: var(--terra); border-radius: 999px;
  padding: 9px 18px; font-weight: 700; font-size: 14px; background: var(--paper);
  white-space: nowrap;
}
.play svg { width: 16px; height: 16px; }
.menu { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line); border-radius: 10px; font-size: 22px; padding: 2px 10px; color: var(--ink); }

/* ---- ヒーロー ---- */
.hero { padding: 40px 0 30px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; }
.tag { width: min(360px, 100%); font-size: 20px; line-height: 1.5; margin: 0 0 6px; color: var(--ink); }
.tag.nofile { width: auto; max-width: calc(100% - 44px); margin-left: 18px; transform: rotate(-2.5deg); transform-origin: left bottom; }
.tag.nofile::before, .tag.nofile::after {
  content: ""; position: absolute; top: 50%; width: 1.5px; height: 30px; background: #4a3324;
  border-radius: 2px;
}
.tag::before { left: -20px; transform: translateY(-50%) rotate(-28deg); }
.tag::after { right: -20px; transform: translateY(-50%) rotate(28deg); }
.hero h1 {
  font-size: clamp(26px, 3.5vw, 41px); font-weight: 900; line-height: 1.35;
  margin: 8px 0 18px; letter-spacing: 0; word-break: keep-all;
}
.hero .lead { font-size: 16px; margin: 0 0 30px; max-width: 34em; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 700; font-size: 16px; padding: 15px 30px; border-radius: 999px;
  background: var(--terra); color: #fff; border: 1.5px solid var(--terra);
  transition: transform .15s, background .15s;
}
.btn:hover { background: var(--terra-d); transform: translateY(-1px); }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--terra-d); }
.btn.ghost:hover { background: var(--cream-2); }
.btn .ar { font-family: "Noto Sans JP", sans-serif; }

/* 右側の舞台：猫のイラスト＋浮いているスマホ */
.stage { position: relative; aspect-ratio: 1 / 1; }
.stage .cat { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.stage.no-img::before {            /* 画像がまだ無いときの仮の姿 */
  content: ""; position: absolute; left: 12%; right: 8%; top: 22%; bottom: 4%;
  background: radial-gradient(ellipse at 50% 70%, #efe1c6, transparent 70%);
  border-radius: 50%;
}
.stage.no-img::after {
  content: "hero-cat.png（サビ猫のイラスト）をここに"; position: absolute; left: 50%; top: 60%;
  transform: translate(-50%, -50%); font-size: 13px; color: var(--muted);
  border: 1px dashed var(--line); padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,.6);
}
.phone {
  /* 縁は px で。% だと親（stage）の幅が基準になって太くなる */
  position: absolute; width: 17%; aspect-ratio: 9 / 18; border-radius: 16px;
  background: #1f2430; padding: 3px; box-shadow: 0 16px 34px rgba(60, 40, 10, .22);
}
.phone::before { content: ""; position: absolute; left: 50%; top: 7px; width: 7px; height: 7px; transform: translateX(-50%); background: #0d1017; border-radius: 50%; z-index: 1; }
.phone .scr { width: 100%; height: 100%; border-radius: 13px; overflow: hidden; background: #fff; }
.phone .scr img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone.p1 { left: 0; top: 10%; transform: rotate(-12deg); }
.phone.p2 { left: 22%; top: 0; transform: rotate(-2deg); }
.phone.p3 { left: 45%; top: 3%; transform: rotate(10deg); }
.note-r { position: absolute; right: 0; top: 0; width: 24%; font-size: 22px; line-height: 1.35; text-align: center; }
.note-r.nofile { width: auto; right: 2%; top: 4%; transform: rotate(8deg); }
.note-r svg { display: block; margin: 4px auto 0; width: 60px; }
.paw { position: absolute; width: 26px; height: 26px; fill: var(--terra); opacity: .9; }
.spark { position: absolute; width: 22px; height: 22px; fill: var(--gold); }

/* ---- 見出し（肉球＋線） ---- */
.sec { padding: 56px 0; }
.h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.h2 svg { width: 26px; height: 26px; fill: var(--terra); flex: none; }
.h2 h2 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); font-weight: 900; }
.h2::after { content: ""; flex: 1; height: 1px; background: var(--line); margin-left: 12px; }
.lead2 { margin: 0 0 30px; font-size: 15px; }

/* ---- アプリのカード ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px 24px; overflow: hidden;
  box-shadow: 0 8px 26px rgba(90, 60, 20, .06); transition: transform .18s, box-shadow .18s;
  display: flex; flex-direction: column; min-height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .blob {
  position: absolute; right: -8%; top: -6%; width: 62%; aspect-ratio: 1; border-radius: 48% 52% 55% 45% / 50% 44% 56% 50%;
  background: var(--c-soft); opacity: .8; z-index: 0;
}
.card > * { position: relative; z-index: 1; }
.card .ico, .card h3, .card .badge { max-width: calc(100% - 96px); }
.card .badge { align-self: flex-start; }
.card .ico {
  width: 76px; height: 76px; border-radius: 22px; overflow: hidden; margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
}
.card .ico img { width: 100%; height: 100%; object-fit: cover; }
.card .mini {
  position: absolute; right: 18px; top: 22px; width: 80px; aspect-ratio: 9 / 18;
  border-radius: 14px; background: #1f2430; padding: 3px; transform: rotate(6deg);
  box-shadow: 0 14px 28px rgba(60, 40, 10, .22);
}
.card .mini img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 11px; }
.card h3 { font-size: 19px; margin: 0 0 8px; font-weight: 900; word-break: keep-all; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px;
  background: var(--c-soft); color: var(--c); margin-bottom: 12px;
}
.card p { margin: 0 0 18px; font-size: 14px; line-height: 1.8; }
.card .more { margin-top: auto; font-weight: 700; font-size: 14px; color: var(--c); text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.card.kintore { --c: var(--blue); --c-soft: #e6f0ff; }
.card.wagaya  { --c: var(--pink); --c-soft: #ffe9f0; }
.card.nonda   { --c: var(--teal); --c-soft: #e2f5f0; }
.card.oshitakupon{ --c: #1f9a7c; --c-soft: #fff1c2; }   /* おしたくポン */
.card .dood { position: absolute; right: 104px; top: 26px; width: 34px; height: 34px; stroke: var(--c); fill: none; stroke-width: 2; opacity: .45; }

/* 英語版など、カードが1枚しかないとき */
.cards.one { grid-template-columns: minmax(0, 400px); }
/* 4枚のとき（2026-09-22 おしたくポンを追加）：3列だと4枚目が1枚だけ余るので 2列に */
.cards.four { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
.jp-only { margin: 22px 0 0; font-size: 14px; color: var(--muted); }
.jp-only a { color: var(--terra); }

/* ---- 文書ページ（プライバシーポリシーなど） ---- */
.doc { max-width: 860px; padding-top: 40px; padding-bottom: 30px; }
.doc h1 { font-size: 30px; margin: 0 0 6px; }
.doc .meta { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.doc h2 { font-size: 20px; margin: 34px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 15px; margin: 20px 0 6px; color: var(--terra); }
.doc p, .doc li { font-size: 15px; }
.doc ul { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.doc th, .doc td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.doc th { background: var(--cream-2); color: var(--muted); font-weight: 600; }
.doc .note { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--terra); border-radius: 10px; padding: 12px 14px; font-size: 14px; color: var(--muted); }

/* ---- 大切にしていること ---- */
.values { background: var(--cream-2); }
.values .grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; }
.values .txt p { margin: 0; font-size: 15px; }
.values .h2 { align-items: flex-start; }
.values .h2 svg { margin-top: 8px; }
.values .h2::after { display: none; }
.values .h2 h2 { line-height: 1.45; }
.vals { display: grid; grid-template-columns: repeat(3, 1fr); }
.val { text-align: center; padding: 8px 14px; }
.val + .val { border-left: 1px solid #e3d5bd; }
.val .ring {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
.val .ring svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.val h3 { font-size: 20px; margin: 0 0 6px; font-weight: 900; }
.val p { margin: 0; font-size: 13.5px; line-height: 1.75; }
.val.a .ring { background: var(--terra); } .val.a h3 { color: var(--terra); }
.val.b .ring { background: var(--gold); }  .val.b h3 { color: #b8842a; }
.val.c .ring { background: var(--leaf); }  .val.c h3 { color: var(--leaf); }

/* ---- ぶっちゃんワークスについて ---- */
.about .grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: center; }
.about .pic { position: relative; aspect-ratio: 1; }
.about .pic img { width: 100%; height: 100%; object-fit: contain; }
.about .pic.no-img::after {
  content: "about-cat.png（後ろ姿の猫）"; position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%);
  font-size: 13px; color: var(--muted); border: 1px dashed var(--line); padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,.6);
}
.about .pic.no-img::before { content: ""; position: absolute; inset: 20% 10% 10%; border-radius: 50%; background: radial-gradient(ellipse, #f0e3c9, transparent 70%); }
.about .note-l { position: absolute; left: 2%; top: 6%; width: 38%; font-size: 21px; }
.about .note-l.nofile { width: auto; left: 4%; top: 10%; transform: rotate(-10deg); }
.about .note-l svg { width: 44px; display: block; margin: 0 0 0 26px; }
.about p { margin: 0 0 16px; font-size: 15px; }
.about .btnrow { display: flex; justify-content: flex-end; margin-top: 8px; }
.about .btn.ghost { padding: 11px 26px; font-size: 15px; }
.about .note-r2 { display: block; width: 220px; margin: 0 30px 10px auto; text-align: right; font-size: 22px; line-height: 1.4; }
.about .note-r2.nofile { width: auto; display: inline-block; margin-left: auto; transform: rotate(-6deg); }
.about .note-r2-row { display: flex; justify-content: flex-end; }

/* ---- 下の帯（お問い合わせ） ---- */
.band {
  display: grid; grid-template-columns: .9fr 1.4fr; gap: 20px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.band .photo { position: relative; align-self: stretch; min-height: 190px; background: #e8d9bd; }
.band .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band .photo.no-img::after {
  content: "cta-photo.png（机の上のスマホ）"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 13px; color: var(--muted); border: 1px dashed var(--line); padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,.6);
}
.band .words { padding: 22px 28px 22px 16px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.band h2 { font-size: 22px; margin: 0 0 6px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.band h2 svg { width: 22px; height: 22px; fill: var(--terra); }
.band p { margin: 0; font-size: 14px; }
.band .btn { padding: 15px 26px; font-size: 15px; }

/* ---- フッター ---- */
.foot { padding: 34px 0 40px; position: relative; }
.foot .row { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.foot .brand img { height: 40px; }
.foot nav { display: flex; gap: 20px; font-size: 13px; flex-wrap: wrap; margin: 0 auto; }
.foot nav a { color: var(--ink); text-decoration: none; }
.foot .icons { display: flex; gap: 14px; }
.foot .icons a { width: 34px; height: 34px; display: grid; place-items: center; color: var(--terra-d); }
.foot .icons svg { width: 22px; height: 22px; fill: currentColor; }
.foot .bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 18px; }
.foot .copy { font-size: 12px; color: var(--muted); margin: 0; }
.foot .note-f-wrap { display: flex; align-items: flex-end; margin-right: 40px; }
.foot .note-f { width: 220px; font-size: 19px; line-height: 1.45; }
.foot .note-f.nofile { width: auto; transform: rotate(-6deg); }

/* ---- 出てくる演出（既存の reveal.js を流用） ---- */
:root { --reveal-shift: 22px; --reveal-dur: .72s; --reveal-ease: cubic-bezier(.22, .61, .36, 1); }
.reveal { opacity: 1; transform: none; }
html.js .reveal:not(.is-visible) { opacity: 0; transform: translateY(var(--reveal-shift)); }
html.js .reveal { transition: opacity var(--reveal-dur) var(--reveal-ease), transform var(--reveal-dur) var(--reveal-ease); transition-delay: var(--reveal-delay, 0s); }
html.js .site-head.is-stuck { box-shadow: 0 6px 24px rgba(30, 35, 43, .06); }
.scroll-bar { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .reveal:not(.is-visible) { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- スマホ幅 ---- */
@media (max-width: 960px) {
  .cards, .cards.four { grid-template-columns: 1fr; }
  .values .grid { grid-template-columns: 1fr; gap: 26px; }
  .band { grid-template-columns: 1fr; }
  .band .photo { min-height: 0; aspect-ratio: 16 / 7; }
  .band .words { padding: 20px 22px 24px; grid-template-columns: 1fr; }
}
/* 1000〜1180px：ナビがロゴにかぶらないよう詰める */
@media (max-width: 1180px) {
  .top .wrap { gap: 16px; }
  .nav { gap: 14px; font-size: 13px; }
  .play { padding: 8px 14px; font-size: 13px; }
}
@media (max-width: 1100px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 20px 14px; }
  .nav a { padding: 10px 0; }
  .top.open .nav { display: flex; }
  .menu { display: block; }
  .top .play { display: none; }
}
@media (max-width: 820px) {
  .hero { padding: 26px 0 10px; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero h1 { font-size: clamp(28px, 8vw, 36px); }
  .stage { margin-top: 18px; }
  .note-r { font-size: 17px; width: 30%; }
  .vals { grid-template-columns: 1fr; gap: 10px; }
  .val + .val { border-left: 0; border-top: 1px solid #e3d5bd; padding-top: 22px; }
  .about .grid { grid-template-columns: 1fr; }
  .about .pic { width: 100%; max-width: 320px; margin: 0 auto; }
  .about .note-r2 { text-align: left; margin: 0 auto 10px 10px; }
  .about .note-r2-row { justify-content: flex-start; }
  .about .btnrow { justify-content: flex-start; }
  .foot .bottom { flex-direction: column; align-items: flex-start; }
  .foot .note-f-wrap { margin: 0; }
  .foot .note-f.nofile { transform: none; }
  .foot nav { margin: 0; }
}
