/* Omoteya Lab 共通スタイル（H案「住まいは、田園。机の上は、開発室。」）
   アプリ紹介ページなど、トップ以外のページで使う。
   中央揃えの太いゴシック、角丸タイル、丸いボタン。色は田園の写真から */
:root {
  --bg: #ffffff;
  --panel: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #3d5a8a;
  --night: #20263a;
  --brush: #232c44;
  --straw: #d9c98c;
  --soil: #a07f5c;
  /* 土色を文字に使うときの濃さ（明るい地の上で読めるように明度だけ下げた色） */
  --soil-deep: #85694c;
  --leaf: #7f9a4f;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  /* 等幅は英字専用なので、日本語は本文と同じ書体で描く */
  --mono: "JetBrains Mono", "Zen Kaku Gothic New", ui-monospace, Menlo, monospace;
  --wide: 1024px;
  --gutter: max(16px, calc((100% - var(--wide)) / 2));
}
* { box-sizing: border-box; }
html, body { margin: 0; }
/* ページ内リンクで移動したとき、見出しが固定ナビの裏に隠れないようにする */
html { scroll-padding-top: 52px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); line-height: 1.8; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
/* 日本語の折り返し：最後の行が1〜2文字だけにならないよう整え、Chromeでは見出しを文節の切れ目で折り返す */
p, h1, h2, h3, li { text-wrap: pretty; }
h1, h2, .lead { word-break: auto-phrase; }
.ph { display: inline-block; }

/* nav：筆の筑波山ロゴ。スマホではメニューボタンで開閉する */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; background: #fff; border-bottom: 1px solid rgba(0,0,0,.06); }
.nav-in { max-width: var(--wide); margin: 0 auto; padding: 0 16px; height: 52px; display: flex; align-items: center; justify-content: space-between; font-size: .9rem; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; text-decoration: none; color: var(--ink); }
.brand .brush { width: 60px; height: auto; color: var(--brush); display: block; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; color: #424245; }
.nav ul a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.menu { display: none; width: 40px; height: 40px; margin-right: -8px; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 10px; }
.menu span { display: block; width: 20px; height: 1.5px; margin: 5px auto; background: currentColor; transition: transform .25s; }
.nav.open .menu span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav.open .menu span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ===== アプリ紹介ページ ===== */
.product main { padding: 0; }

/* 見出しの欄：アイコンを大きく、中央揃え。NOBISHIROは濃い藍の面 */
.product .hero { text-align: center; padding: 132px var(--gutter) 96px; background: var(--panel); display: grid; justify-items: center; gap: 0; }
.product.dark .hero { background: var(--night); color: #f5f5f7; }
.product .hero .appicon { width: 168px; height: 168px; border-radius: 38px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); margin-bottom: 32px; }
.product .eyebrow { display: inline-block; font-weight: 700; color: var(--soil-deep); font-size: 1rem; }
.product.dark .hero .eyebrow { color: var(--straw); }
.product .hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.1; letter-spacing: -.01em; margin: 8px 0 14px; }
.product .hero .lead { font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 700; margin: 0 0 18px; }
.product .hero p { margin: 0 auto 22px; max-width: 34em; color: var(--muted); }
.product.dark .hero p { color: #b9bfcc; }
.product .hero .lead { color: inherit; }
.product .tag { display: inline-block; border-radius: 999px; background: #fff; color: var(--accent); padding: 6px 16px; font-size: .82rem; }
.product.dark .tag { background: rgba(255,255,255,.1); color: #b9bfcc; }

/* 各欄：全幅の帯。中身は1024px幅に収める */
.product .section { padding: 96px var(--gutter); margin: 0; }
.product .section > h2 { text-align: center; font-size: clamp(1.8rem, 4.6vw, 3rem); line-height: 1.25; letter-spacing: -.01em; margin: 0 0 48px; }

/* 機能4つ：ライトグレーの角丸タイル */
.product .section > .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product .card { background: var(--panel); border-radius: 28px; padding: 36px; }
.product .card p { margin: 0 0 14px; }
.product .card p:last-child { margin-bottom: 0; }
.product .section > .grid .eyebrow { font-family: var(--mono); font-weight: 400; font-size: .75rem; letter-spacing: .08em; color: var(--accent); }
.product .card h3 { font-size: 1.35rem; line-height: 1.45; margin: 8px 0 10px; }

/* 2枚のカード：グレーの帯に白いタイル */
.product .section.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; background: var(--panel); }
.product .section.grid .card { background: #fff; }
.product .card h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.35; margin: 0 0 12px; }
.product .card > a:not(.button) { display: inline-block; margin-top: 4px; font-weight: 700; text-decoration: none; }
.product .card > a:not(.button)::after { content: " ›"; }

/* 料金・はじめる前に：欄そのものを1枚の角丸タイルにする */
.product .section.card { max-width: var(--wide); margin: 96px auto; padding: clamp(28px, 5vw, 56px); border-radius: 28px; background: var(--panel); }
.product .section.card + .section.card { margin-top: -80px; }
/* 最後のタイルの下は、フッターの山がはみ出す分だけ空ける（フッターの上の余白とは相殺されるため、こちらで確保する） */
.product .section.card:last-child { margin-bottom: max(96px, calc(10.5vw + 24px)); }
.product .section.card > h2 { text-align: left; font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 0 0 16px; }

/* ボタン：トップと同じ丸い形 */
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 24px; border-radius: 999px; font-size: 1rem; text-decoration: none; background: var(--accent); color: #fff; }
.button.green { background: var(--accent); }
.button.secondary { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1px #c9d3e6; }

/* footer：濃い藍に、山の線 */
.site-footer { position: relative; margin-top: max(0px, calc(10.5vw - 64px)); background: var(--night); color: #b9bfcc; padding: 40px 16px 28px; font-size: .9rem; }
/* 筑波山の稜線を、線ではなくフッターの上の縁（藍の面）として描く */
.site-footer .ridge { position: absolute; left: 0; bottom: calc(100% - 1px); display: block; width: 100%; height: auto; fill: var(--night); }
.site-footer .row { max-width: var(--wide); margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18); }
.site-footer a { color: #f5f5f7; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .menu span { transition: none; } }

@media (max-width: 780px) {
  .menu { display: block; }
  .nav ul { display: none; position: absolute; top: 52px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid rgba(0,0,0,.06); font-size: 1.05rem; }
  .nav.open ul { display: flex; }
  .nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid #ececf0; }
  .nav ul li:last-child a { border-bottom: 0; }
  .product .hero { padding: 104px 16px 72px; }
  .product .hero .appicon { width: 128px; height: 128px; border-radius: 30px; }
  .product .section { padding: 72px 16px; }
  .product .section > .grid, .product .section.grid { grid-template-columns: 1fr; }
  .product .card { padding: 26px; }
  .product .section.card { margin: 72px 16px; }
  .product .section.card + .section.card { margin-top: -56px; }
}

/* ===== 使い方・プライバシーポリシー（文書ページ） ===== */
/* 読みやすさを優先して、本文は左揃え・760px幅。見出しの帯はアプリ紹介ページと同じ色 */
.doc { --col: 760px; --doc-gutter: max(16px, calc((100% - var(--col)) / 2)); }
.doc main { padding: 0; }
.doc .doc-head { padding: 124px var(--doc-gutter) 56px; background: var(--panel); }
.doc.dark .doc-head { background: var(--night); color: #f5f5f7; }
.doc .doc-head .eyebrow { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; color: var(--soil-deep); font-weight: 400; }
.doc.dark .doc-head .eyebrow { color: var(--straw); }
.doc .doc-head h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.15; letter-spacing: -.01em; margin: 10px 0 14px; }
.doc .doc-head .lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); font-weight: 700; margin: 0 0 14px; }
.doc .fine { font-size: .9rem; color: var(--muted); }
.doc.dark .doc-head .fine { color: #b9bfcc; }
.doc .article { padding: 0 var(--doc-gutter) 96px; }

/* 目次：丸いチップを横に並べる */
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 28px 0 8px; margin: 0; }
.doc .toc a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--panel); color: var(--ink); text-decoration: none; font-size: .9rem; }
.doc .toc a:hover { background: #e9e9ee; }

/* 節：見出しの上に細い線 */
.doc .article section { padding-top: 56px; }
.doc .article section > h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.35; margin: 0 0 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.doc .article h3 { font-size: 1.08rem; margin: 26px 0 8px; }
.doc .article p { margin: 0 0 14px; }
.doc .article ul, .doc .article .steps { padding-left: 1.4em; margin: 0 0 16px; }
.doc .article li { margin: 6px 0; }

/* よくある質問：角丸のタイルで開閉する */
.doc details { background: var(--panel); border-radius: 18px; padding: 0; margin: 0 0 10px; }
.doc summary { list-style: none; cursor: pointer; font-weight: 700; padding: 18px 52px 18px 22px; position: relative; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.doc details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.doc .article details > :not(summary) { margin: 0 22px 16px; }
.doc details > p:last-child, .doc details > ul:last-child { padding-bottom: 6px; }

/* 注意書き：わらの色の線を左に */
.doc .note { background: #faf7ec; border-left: 3px solid var(--straw); border-radius: 0 18px 18px 0; padding: 22px 24px; margin-top: 18px; }
.doc .note h3 { margin-top: 0; }
.doc .note p:last-child { margin-bottom: 0; }

/* お問い合わせ：本文には置かず、フッターの山の線の下に小さく置く。
   載せてはおくが目立たせず、探した人だけが見つける程度にする */
.site-footer .contact { max-width: var(--wide); margin: -8px auto 28px; color: #b9bfcc; font-size: .9rem; line-height: 1.8; }
.site-footer .contact h2 { font-size: .9rem; font-weight: 700; color: #b9bfcc; margin: 0 0 4px; }
.site-footer .contact p { margin: 0 0 4px; }
.site-footer .contact a { color: #b9bfcc; }
.site-footer .contact .mail { display: inline-block; margin: 0 0 4px; }
.site-footer .contact .fine { color: inherit; font-size: inherit; }
.doc .site-footer .contact details { margin: 4px 0 0; background: none; border-radius: 0; }
.doc .site-footer .contact summary { cursor: pointer; color: #b9bfcc; font-weight: 400; padding: 0; list-style: revert; }
.doc .site-footer .contact summary::after { content: none; }
.doc .site-footer .contact details > :not(summary) { margin: 4px 0 6px; }
.site-footer .contact ul { margin: 4px 0 6px; padding-left: 1.3em; }
.site-footer .contact li { margin: 0; }

@media (prefers-reduced-motion: reduce) { .doc summary::after { transition: none; } }
@media (max-width: 780px) {
  .doc .doc-head { padding: 100px 16px 40px; }
  .doc .article { padding: 0 16px 72px; }
  .doc .article section { padding-top: 44px; }
  .doc summary { padding: 16px 48px 16px 18px; }
  .doc .article details > :not(summary) { margin: 0 18px 14px; }
  .doc .doc-head h1 { font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
}

/* ===== 制作物一覧 ===== */
/* トップの制作物タイルと同じく、おかね帳は明るいグレー、NOBISHIROは濃い藍のカード */
.apps main { padding: 0; }
.apps .apps-head { text-align: center; padding: 132px var(--gutter) 72px; background: var(--panel); }
.apps .apps-head .eyebrow { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; color: var(--soil-deep); }
.apps .apps-head h1 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.2; letter-spacing: -.01em; margin: 10px 0 14px; }
.apps .apps-head .lead { color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.15rem); max-width: 36em; margin: 0 auto; }
.apps .section { padding: 72px var(--gutter) 0; }
.apps .section > h2 { text-align: center; font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 32px; }
.apps .app-card { display: grid; grid-template-columns: 168px 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; border-radius: 28px; padding: clamp(28px, 5vw, 56px); background: var(--panel); margin-bottom: 16px; }
.apps .app-card + .app-card { background: var(--night); color: #f5f5f7; }
.apps .app-card .appicon { width: 168px; height: 168px; border-radius: 38px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.apps .app-card h2 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; margin: 8px 0 12px; letter-spacing: -.01em; }
.apps .app-card p { margin: 0 0 10px; }
.apps .app-card .fine { font-size: .85rem; color: var(--muted); }
.apps .app-card + .app-card .fine { color: #b9bfcc; }
.apps .tag { display: inline-block; border-radius: 999px; background: #fff; color: var(--accent); padding: 4px 14px; font-size: .8rem; }
.apps .app-card + .app-card .tag { background: rgba(255,255,255,.1); color: #b9bfcc; }
.apps .app-card + .app-card .button.secondary { background: transparent; color: #f5f5f7; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.apps .section:last-of-type { padding-bottom: 96px; text-align: center; }
.apps .muted { color: var(--muted); }

@media (max-width: 780px) {
  .apps .apps-head { padding: 104px 16px 56px; }
  .apps .section { padding: 56px 16px 0; }
  .apps .app-card { grid-template-columns: 1fr; justify-items: start; }
  .apps .app-card .appicon { width: 112px; height: 112px; border-radius: 26px; }
  .apps .section:last-of-type { padding-bottom: 72px; }
}

/* App Storeへのボタン（紹介ページの見出しの欄） */
.product .hero .actions.store { justify-content: center; margin-top: 18px; }
.product.dark .hero .actions.store .button { background: #fff; color: var(--night); }

/* おかね帳の画面画像(2026-11-16) */
.product .shots .shot-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: var(--wide); margin: 0 auto; }
.product .shots img { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 24px 48px -28px rgba(0,0,0,.45); }
@media (max-width: 780px) {
  .product .shots .shot-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; }
  .product .shots img { flex: 0 0 62%; scroll-snap-align: center; border-radius: 18px; }
}
