/* Pohoda Inc. — shared site styles
   Quiet luxury. Warm charcoal + champagne gold. No external fonts or scripts,
   in keeping with the local-first, no-tracking ethos of the apps. */

:root {
  --bg: #ffffff;          /* pure white (matches SNS taste) */
  --bg-2: #faf8f4;        /* very light warm surface */
  --card: #ffffff;
  --card-2: #fdfcfa;
  --ink: #1c1814;         /* warm near-black */
  --ink-2: #6b6459;       /* muted brown-gray */
  --muted: #9a9184;       /* lighter muted */
  --line: #ecebe6;        /* hairline */
  --line-2: #ddd9d0;
  --gold: #a8853f;        /* readable gold on white (links / kickers) */
  --gold-deep: #866731;
  --gold-soft: rgba(168, 133, 63, .10);
  --amber: #b9752f;       /* KIT warm accent (deeper for white) */
  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 820px;
  --serif: "Hoefler Text", Georgia, "Times New Roman", "Hiragino Mincho ProN", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
          "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 700px; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; height: 62px;
}
.brand {
  font-family: var(--serif); font-size: 24px; letter-spacing: .01em;
  color: var(--ink); font-weight: 400;
}
.brand:hover { text-decoration: none; color: var(--gold); }
.nav { display: flex; gap: 24px; font-size: 14px; }
.nav a { color: var(--ink-2); }
.nav a:hover { color: var(--gold); text-decoration: none; }

/* ---- Sections ---- */
section { padding: 72px 0; }
.eyebrow {
  font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
h1 {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(34px, 6.5vw, 56px); line-height: 1.18;
  letter-spacing: .005em; margin-bottom: 22px;
}
h2 {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(24px, 4vw, 32px); line-height: 1.3; margin-bottom: 16px;
}
h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.lead { font-size: 17px; color: var(--ink-2); }
.lead.tight { max-width: 36em; }
.section-label {
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 26px;
}

/* ---- Hero ---- */
.hero { padding: 110px 0 80px; }
.hero h1 { max-width: 14em; }
.hero .lead { max-width: 34em; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; font-size: 14.5px; font-weight: 600;
  padding: 13px 28px; border-radius: 999px; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #ffffff; }
.btn-primary:hover { background: var(--gold-deep); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---- Product cards (landing) ---- */
.products { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .products { grid-template-columns: 1fr; } }
.product-card {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  padding: 32px 30px 28px; color: var(--ink);
  box-shadow: 0 1px 3px rgba(28,20,14,.04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.product-card:hover {
  text-decoration: none; transform: translateY(-3px);
  border-color: var(--line-2); box-shadow: 0 18px 40px rgba(28,20,14,.10);
}
.product-card .kicker { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.product-card.kit .kicker { color: var(--amber); }
.product-card .name { font-family: var(--sans); font-weight: 600; font-size: 28px; margin-bottom: 10px; letter-spacing: .01em; }
.product-card .desc { font-size: 14.5px; color: var(--ink-2); }
.product-card .more { display: inline-block; margin-top: 20px; font-size: 13px; font-weight: 600; color: var(--gold); }
.product-card.kit .more { color: var(--amber); }
.product-mark { width: 46px; height: 46px; margin-bottom: 20px; display: block; }
.app-icon { border-radius: 22%; border: 1px solid var(--line-2); display: block; }

/* ---- Feature grid ---- */
.features { display: grid; gap: 30px 36px; grid-template-columns: 1fr 1fr; margin-top: 8px; }
@media (max-width: 700px) { .features { grid-template-columns: 1fr; } }
.feature h3 { display: flex; align-items: center; gap: 10px; }
.feature p { font-size: 14.5px; color: var(--ink-2); }
.dot { width: 6px; height: 6px; border-radius: 999px; background: var(--gold); flex: none; }

/* ---- Badge ---- */
.badge {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--gold);
  border: 1px solid var(--gold-deep); border-radius: 999px; padding: 4px 14px;
}
.beta-chip {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--gold);
  border: 1px solid var(--gold-deep); border-radius: 999px; padding: 2px 8px;
}

/* ---- Story / アプリ詳細記事 ---- */
.story-intro { text-align: center; max-width: 40em; margin: 0 auto; }
.story-list { max-width: 880px; margin: 8px auto 0; }
.story-row {
  display: flex; gap: 48px; align-items: center; text-align: left;
  padding: 46px 0; border-bottom: 1px solid var(--line);
}
.story-row:last-child { border-bottom: 0; }
.story-row.alt { flex-direction: row-reverse; }
.story-shot {
  width: 240px; flex: none; height: auto; border-radius: 26px;
  border: 1px solid var(--line-2); box-shadow: 0 18px 44px rgba(28,20,14,.12); display: block;
}
.story-text { flex: 1; }
.story-kicker {
  display: inline-block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-deep); border-radius: 999px; padding: 3px 11px; margin-bottom: 14px;
}
.story-text h2 { font-family: var(--sans); font-weight: 600; font-size: 25px; color: var(--ink); margin: 0 0 12px; }
.story-text p { font-size: 15px; color: var(--ink-2); line-height: 1.85; margin: 0 0 12px; }
.story-text p:last-child { margin-bottom: 0; }
.story-cta { text-align: center; padding-top: 8px; }
@media (max-width: 700px) {
  .story-row, .story-row.alt { flex-direction: column; gap: 24px; text-align: center; padding: 38px 0; }
  .story-shot { width: 66vw; max-width: 280px; }
  .story-text h2 { font-size: 22px; }
}

/* ---- News / お知らせ ---- */
.news-list { max-width: 720px; margin: 8px auto 0; }
.news-item {
  display: block; padding: 24px 4px; border-bottom: 1px solid var(--line);
  color: var(--ink); transition: border-color .18s ease; text-align: left;
}
.news-item:first-child { border-top: 1px solid var(--line); }
.news-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; }
.news-date { font-size: 13px; color: var(--muted); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.news-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-deep); border-radius: 999px; padding: 2px 9px;
}
.news-tag.press { color: var(--ink-2); border-color: var(--line-2); }
.news-title { font-family: var(--sans); font-weight: 600; font-size: 18.5px; color: var(--ink); line-height: 1.55; }
a.news-item:hover { text-decoration: none; border-color: var(--line-2); }
a.news-item:hover .news-title { color: var(--gold); }
.news-empty {
  text-align: center; padding: 56px 24px; color: var(--ink-2);
  border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--bg-2);
}
.news-empty .big { font-family: var(--sans); font-weight: 600; font-size: 19px; color: var(--ink); margin-bottom: 10px; }
.news-empty p { font-size: 14.5px; }

/* Homepage お知らせ highlight (latest items, pulled from news.html at load) */
.nh-head { max-width: 720px; margin: 0 auto; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.nh-all { font-size: 13px; color: var(--ink-2); letter-spacing: .02em; white-space: nowrap; }
.nh-all:hover { color: var(--gold); }

/* ---- Pricing ---- */
.price-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-top: 8px; }
@media (max-width: 700px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 26px; }
.price-card.feature-on { border-color: var(--gold-deep); }
.price-card .plan { font-size: 13px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.price-card .amount { font-family: var(--sans); font-weight: 600; font-size: 38px; margin: 8px 0 2px; color: var(--ink); }
.price-card .amount small { font-size: 15px; color: var(--ink-2); font-family: var(--sans); }
.price-card .note { font-size: 13px; color: var(--ink-2); margin-top: 4px; }

/* ---- Hero ring (KATACHI product page) ---- */
.ring-hero { text-align: center; }
.ring-hero .ring { width: 92px; height: 92px; margin: 0 auto 30px; display: block; }
.ring-hero .lead { margin-left: auto; margin-right: auto; }
.ring-hero .btn-row { justify-content: center; }

/* ---- Prose (legal pages) ---- */
.prose { padding: 60px 0 90px; }
.prose .back { display: inline-block; margin-bottom: 26px; font-size: 13px; color: var(--ink-2); }
.prose .back:hover { color: var(--gold); text-decoration: none; }
.prose h1 { font-size: clamp(26px, 5vw, 36px); margin-bottom: 8px; }
.prose .updated { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.prose .app-tag { display: inline-block; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.prose h2 { font-family: var(--sans); font-weight: 700; font-size: 18px; margin: 40px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose h3 { font-size: 15px; font-weight: 600; margin: 22px 0 6px; }
.prose p, .prose li { font-size: 15px; color: var(--ink-2); }
.prose .lede { color: var(--ink); margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 10px 0 10px 22px; }
.prose li { margin-bottom: 7px; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--line); }
.prose th { width: 32%; background: var(--card); color: var(--ink); font-weight: 600; }
.prose td { color: var(--ink-2); }
.app-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px 18px; margin: 16px 0 26px; background: var(--bg-2); }
.app-block > .app-head { font-family: var(--sans); font-weight: 600; font-size: 19px; color: var(--ink); margin: 20px 0 4px; }
.callout { background: var(--gold-soft); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; font-size: 13.5px; color: var(--ink-2); margin: 18px 0; }
.ph { background: var(--gold-soft); color: var(--gold); padding: 1px 8px; border-radius: 5px; font-weight: 600; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 50px 0 64px; margin-top: 28px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 36px 72px; }
.footer-col h4 { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold); text-decoration: none; }
.copyright { margin-top: 40px; font-size: 12.5px; color: var(--muted); }

hr.divider { height: 1px; background: var(--line); border: 0; }

/* ---- Marketing pages: centered editorial layout ---- */
.marketing section { text-align: center; }
.marketing .btn-row { justify-content: center; }
.marketing h1, .marketing h2, .marketing .lead { margin-left: auto; margin-right: auto; }
.marketing .hero h1 { max-width: 16em; }
.marketing .lead { max-width: 40em; }
/* Cards keep their content left-aligned for readability */
.marketing .feature, .marketing .product-card, .marketing .price-card { text-align: left; }
.marketing .feature h3 { justify-content: flex-start; }

/* ---- Screenshot gallery (product pages) — plain screenshots, shown as-is ---- */
.shots { display: flex; gap: 26px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.shots img {
  width: 240px; max-width: 70vw; height: auto; display: block;
  border-radius: 28px; border: 1px solid var(--line-2);
  box-shadow: 0 18px 46px rgba(28,20,14,.12);
}
@media (max-width: 700px) {
  .shots { flex-direction: column; align-items: center; gap: 30px; }
  .shots img { width: 66vw; max-width: 280px; }
}

/* ---- Mobile header ----
   Six nav items overflow the narrow header, so on phones the top bar is just the
   Pohoda logo; full navigation lives in the footer. */
@media (max-width: 700px) {
  .nav { display: none; }
}

/* ---- FAQ（よくある質問・構造化対応） ---- */
.faq { max-width: 720px; margin: 8px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 4px; text-align: left;
  font-family: var(--sans); font-weight: 600; font-size: 17px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--gold); font-size: 18px; flex: none; transition: transform .18s ease; }
.faq details[open] summary::after { content: "−"; }
.faq details > p { padding: 0 4px 22px; margin: 0; font-size: 14.5px; line-height: 1.9; color: var(--ink-2); text-align: left; }
.faq details > p a { color: var(--gold); }

/* ---- Journal（読みもの・記事） ---- */
.article-fig { margin: 28px auto; max-width: 320px; }
.article-fig img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(28,20,14,.12); display: block; }
.article-fig figcaption { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.prose .app-block .btn { margin-top: 8px; }
.prose .app-block .app-sub { font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; }
.jlist { max-width: 760px; margin: 8px auto 0; }
.jcard { display: block; padding: 28px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-align: left; }
.jcard:first-child { border-top: 1px solid var(--line); }
.jcard .jtag { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.jcard h2 { font-family: var(--sans); font-weight: 600; font-weight: 400; font-size: 22px; color: var(--ink); margin: 8px 0 9px; border: 0; padding: 0; }
.jcard p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.8; }
a.jcard:hover { text-decoration: none; border-color: var(--line-2); }
a.jcard:hover h2 { color: var(--gold); }

/* ---- Screenshot carousel (product pages: each slide = one screen shown in
   dark + light side by side; arrows/swipe move one screen at a time) ---- */
.carousel { position: relative; max-width: 760px; margin: 8px auto 0; }
.carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 4px 0; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.cslide {
  scroll-snap-align: center; flex: 0 0 100%;
  display: flex; flex-direction: column; align-items: center;
}
.cslide .shot-pair { gap: 20px; }
.cslide .shot-pair img { width: 210px; max-width: 40vw; }
.cslide-title {
  font-size: 13px; color: var(--ink); font-weight: 600;
  letter-spacing: .04em; margin-top: 18px;
}
/* Single screen (no light counterpart) */
.cslide-solo img {
  width: 250px; max-width: 66vw; height: auto; display: block;
  border-radius: 28px; border: 1px solid var(--line-2);
  box-shadow: 0 16px 40px rgba(28,20,14,.12);
}
.cslide figcaption { font-size: 12.5px; color: var(--muted); margin-top: 12px; letter-spacing: .05em; }
.carousel-btn {
  position: absolute; top: 44%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid var(--line-2); color: var(--ink);
  font-size: 20px; line-height: 1; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(28,20,14,.08);
  transition: border-color .15s ease, color .15s ease;
}
.carousel-btn:hover { border-color: var(--gold); color: var(--gold); }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }
.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.carousel-dots button {
  width: 7px; height: 7px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: var(--line-2); transition: background .15s ease, transform .15s ease;
}
.carousel-dots button.on { background: var(--gold); transform: scale(1.25); }
@media (max-width: 700px) { .carousel-btn { display: none; } }

/* ---- Story page: dark + light side by side ---- */
.story-row .shot-pair { flex: none; gap: 12px; }
.story-row .shot-pair img { width: 150px; }
.shot-pair { display: flex; gap: 16px; flex: none; }
.shot-pair figure { display: flex; flex-direction: column; align-items: center; }
.shot-pair img {
  width: 176px; height: auto; display: block; border-radius: 22px;
  border: 1px solid var(--line-2); box-shadow: 0 14px 36px rgba(28,20,14,.12);
}
.shot-pair figcaption { font-size: 11px; color: var(--muted); margin-top: 9px; letter-spacing: .05em; }
@media (max-width: 700px) {
  .shot-pair { justify-content: center; }
  .shot-pair img { width: 40vw; max-width: 176px; }
}

/* ---- 日本語見出しの改行（文節の境目でだけ折る） ---- */
/* word-break:keep-all で日本語の途中改行を抑え、見出しに入れた <wbr>（文節の境目）
   だけで折る。「直してほし／いを」のような句の途中改行を防ぐ。
   overflow-wrap:anywhere は、ごく狭い端末で文節が画面幅を超えたときの保険。 */
h1 { word-break: keep-all; overflow-wrap: anywhere; }

/* ============================================================
   全デバイス対応・日本語改行の共通基盤（2026-07-05）
   新しいページは styles.css を読み込むだけで以下すべてが適用される。
   ページ側での個別対応は不要（見出しの <wbr> は入れればより確実、無くても可）。
   ============================================================ */

/* 画像・動画・SVG は親幅を超えない（どのページでも横はみ出しを起こさない保険） */
img, svg, video { max-width: 100%; height: auto; }

/* 折り返しの安全網: 長い URL・英単語・メールアドレスがはみ出さない */
body { overflow-wrap: break-word; line-break: strict; }
.prose a, .footer-col a { overflow-wrap: anywhere; }

/* ---- 日本語の改行最適化 ----
   ・見出し: 行のバランスを取り（text-wrap:balance）、対応ブラウザでは
     文節単位で折る（word-break:auto-phrase = BudouX）。「直してほし／い」の
     ような不自然な途中改行を自動で防ぐ。非対応ブラウザは従来どおり
     keep-all + <wbr>（h1）／通常折返し（h2以下）で劣化なし。
   ・本文: 行末の1文字孤立などを避ける（text-wrap:pretty・対応環境のみ） */
/* h1 は balance を適用しない: keep-all との併用で行を詰めすぎ横はみ出しする
   既知問題があるため（2026-06-30 の検証済み知見）。h1 は keep-all + <wbr> +
   auto-phrase（対応ブラウザ）で折る。 */
h2, h3, .news-title, .jcard h2, .cslide-title { text-wrap: balance; }
p, .lead, li, .desc, figcaption { text-wrap: pretty; }
@supports (word-break: auto-phrase) {
  h1, h2, h3, .lead, .news-title, .jcard h2, .story-text h2,
  .faq summary, .product-card .desc, .news-empty .big {
    word-break: auto-phrase;
  }
}

/* 表（特商法など）は狭い画面で崩さず横スクロール */
.prose table { display: block; overflow-x: auto; }

/* セーフエリア（ノッチ／Dynamic Island の横持ち）対応 */
.wrap {
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

/* ---- モバイルのナビ ----
   従来はスマホでナビを非表示（フッターのみ）にしていたが、
   横スクロールできる形で常時表示に変更。全ページへ1タップで移動できる。 */
@media (max-width: 700px) {
  .nav {
    display: flex; flex: 1; min-width: 0; justify-content: flex-start;
    overflow-x: auto; gap: 18px; font-size: 13px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, #000 92%, transparent);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 8px 0; }
  .site-header .wrap { gap: 18px; }
}

/* ごく小さい端末（iPhone SE など ~375px 未満）: 余白を圧縮して1行の文字数を確保 */
@media (max-width: 380px) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  section { padding: 56px 0; }
  .hero { padding: 84px 0 64px; }
}

/* 大画面（タブレット横・PC）: 読み物の行長は既存の --maxw で最適化済み。
   ここでは触れない（1行が長すぎない=可読性の担保がこのサイトの設計）。 */
