/* Tetsuya4444 apps — 静かなモノトーン（web-taste カード 01 quiet-mono v1.1 を出発点に、実画面を主役にした崩し）
 * 色は墨と白だけ。色を持つのはアプリのアイコンと実際の画面写しだけにする。
 * スクリプトは使わない（CSP で禁止）。動きは押した・重ねたへの応答だけ。 */
:root {
  --bg: #FCFCFC;
  --text: #1A1A1A;
  --sub: #6B6B6B;
  --surface: #F0F0F0;
  --line: #E4E4E4;
  --press: #3A3A3A;

  --font-ja: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --font-latin: "Hanken Grotesk", "Zen Kaku Gothic New", sans-serif;

  /* 文字の大きさ（本文 17px を基準に、見出しは 2.25 倍以上へ跳ねる） */
  --fs-xs: 0.8125rem;
  --fs-s: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-l: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --fs-hero: clamp(2.25rem, 1.3rem + 4.2vw, 4.5rem);
  --fs-top: clamp(1.875rem, 1rem + 3vw, 3.5rem);

  /* 余白（流体・3 段の強弱） */
  --sp-xs: clamp(0.5rem, 0.45rem + 0.2vw, 0.625rem);
  --sp-s: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  --sp-m: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --sp-l: clamp(2.5rem, 2rem + 2vw, 4rem);
  --sp-xl: clamp(4rem, 3rem + 4vw, 7rem);
  --sp-2xl: clamp(6rem, 4rem + 8vw, 11rem);
  --measure: 36em;
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3rem);
  --col-gap: 24px;
  --header-h: 64px;

  --dur-xs: 100ms;
  --dur-s: 160ms;
  --ease: cubic-bezier(0.2, 0, 0.38, 0.9);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.03em;
  font-feature-settings: "palt";
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 400; letter-spacing: 0.02em; line-height: 1.45; word-break: auto-phrase; text-wrap: balance; }
p, li, dd { text-spacing-trim: space-first; text-wrap: pretty; }
strong { font-weight: 500; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.28em; text-decoration-color: var(--sub); }
a:hover { text-decoration-thickness: 2px; text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.latin { font-family: var(--font-latin); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 30; background: var(--bg); padding: 8px 12px; }

.wrap { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 46rem); margin-inline: auto; }
.grid12 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--col-gap); }
@media (min-width: 900px) { .grid12 { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

/* ヘッダー：小さく、項目は常に見せる（3 項目） */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-family: var(--font-latin); font-size: var(--fs-s); font-weight: 500; letter-spacing: 0.04em; white-space: nowrap; }
.wordmark .sub { font-weight: 300; color: var(--sub); }
.site-nav { display: flex; gap: clamp(0.75rem, 0.3rem + 2vw, 2rem); font-size: var(--fs-s); }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sub); text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--text); text-decoration: underline; }

/* 小見出し（区画の名前）：英字の飾りラベルは使わず、日本語の小さな灰色 */
.label { font-size: var(--fs-s); font-weight: 400; color: var(--sub); letter-spacing: 0.12em; }

/* ===== 画面写し =====
 * 枠や影は付けない。角は実機の画面の丸みに合わせる（端末の形を伝えるため）。
 * 白い画面が地に溶けないよう、1px の線だけを外側に引く。 */
.shot { container-type: inline-size; margin: 0; min-width: 0; }
.shot img { width: 100%; height: auto; outline: 1px solid var(--line); background: var(--surface); }
.shot.iphone img { border-radius: 13.5cqi; }
.shot.ipad img { border-radius: 2.4cqi; }
.shot.duo img { border-radius: 3cqi; }
.shot.watch img { border-radius: 22cqi; }
.shot.mac img { outline: 0; background: none; }
.shot figcaption { margin-top: 0.75rem; font-size: var(--fs-xs); color: var(--sub); line-height: 1.6; }

/* ===== トップ：最初の画面 ===== */
.hero { padding-block: var(--sp-l) var(--sp-2xl); }
.hero-text { grid-column: 1 / -1; padding-top: clamp(1rem, 6vh, 5rem); }
.hero h1 { font-size: var(--fs-top); font-weight: 400; line-height: 1.4; letter-spacing: 0.04em; }
.nw { display: inline-block; }
.hero .lead { margin-top: var(--sp-m); max-inline-size: 26em; color: var(--sub); }
.hero .facts { grid-column: 1 / -1; margin-top: var(--sp-xl); font-size: var(--fs-s); max-inline-size: 26em; }
.hero .facts div { display: grid; grid-template-columns: 6em 1fr; gap: 1em; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.hero .facts dt { color: var(--sub); }
.hero-shots { grid-column: 1 / -1; margin-top: var(--sp-l); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
.hero-shots .duo { grid-column: 3 / 13; grid-row: 1; }
.hero-shots .iphone { grid-column: 1 / 5; grid-row: 1; margin-bottom: -10%; z-index: 1; }
.hero-shots .iphone img { outline: 6px solid var(--bg); }
@media (min-width: 900px) {
  .hero-text { grid-column: 1 / 7; grid-row: 1; padding-top: clamp(2rem, 9vh, 6rem); }
  .hero .facts { grid-column: 1 / 6; grid-row: 2; margin-top: var(--sp-l); }
  .hero-shots { grid-column: 7 / 13; grid-row: 1 / 3; margin-top: clamp(2rem, 9vh, 6rem); align-self: start; }
}


/* 最初の画面の右：4本への案内（アイコン・役割・名前・ひとこと） */
.hero .facts-line { margin-top: var(--sp-m); font-size: var(--fs-s); color: var(--sub); }
.hero-apps { grid-column: 1 / -1; margin-top: var(--sp-l); }
.hero-apps ul { display: grid; gap: 0 var(--col-gap); }
.app-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1.1rem; align-items: center; padding: 1.25rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.hero-apps li:last-child .app-card { border-bottom: 1px solid var(--line); }
.app-card img { width: 64px; height: 64px; }
.card-text { display: grid; gap: 0.1rem; }
.card-text .role { font-size: var(--fs-xs); color: var(--sub); letter-spacing: 0.12em; }
.card-text strong { font-size: var(--fs-l); font-weight: 400; line-height: 1.4; }
.card-text .line { font-size: var(--fs-s); color: var(--sub); line-height: 1.6; }
.app-card:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.28em; }
@media (min-width: 720px) { .hero-apps ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero-apps li:nth-last-child(2) .app-card { border-bottom: 1px solid var(--line); } }
@media (min-width: 900px) {
  .hero-text { grid-column: 1 / 7; }
  .hero-apps { grid-column: 7 / 13; grid-row: 1; align-self: center; margin-top: 0; }
  .hero-apps ul { grid-template-columns: minmax(0, 1fr); }
  .hero-apps li:nth-last-child(2) .app-card { border-bottom: 0; }
}

/* ===== 考え方（左に小見出し・右に本文の非対称 2 段） ===== */
.idea { padding-bottom: var(--sp-xl); }
.idea .label { grid-column: 1 / -1; margin-bottom: var(--sp-s); }
.idea .body { grid-column: 1 / -1; max-inline-size: var(--measure); }
.idea .body p + p { margin-top: 1.8em; }
.idea .body strong { display: block; font-size: var(--fs-l); font-weight: 400; letter-spacing: 0.04em; margin-bottom: 0.3em; }
@media (min-width: 900px) {
  .idea .label { grid-column: 1 / 4; margin-bottom: 0; }
  .idea .body { grid-column: 5 / 11; }
}

/* ===== アプリの区画（文と実画面を左右に） ===== */
.apps-head { padding-bottom: var(--sp-l); }
.apps-head .label { grid-column: 1 / -1; margin-bottom: var(--sp-s); }
.apps-head h2 { grid-column: 1 / -1; font-size: var(--fs-2xl); }
.apps-head p { grid-column: 1 / -1; margin-top: var(--sp-s); color: var(--sub); max-inline-size: var(--measure); }
@media (min-width: 900px) { .apps-head .label { grid-column: 1 / 4; margin-bottom: 0; } .apps-head h2, .apps-head p { grid-column: 5 / 12; } }

.app { padding-block: var(--sp-l) var(--sp-xl); border-top: 1px solid var(--line); }
.app-text { grid-column: 1 / -1; }
.app-text .role { font-size: var(--fs-s); color: var(--sub); letter-spacing: 0.12em; }
.app-title { display: flex; align-items: center; gap: 1rem; margin-top: var(--sp-s); }
.app-title img { width: 56px; height: 56px; }
.app-title h3 { font-size: var(--fs-2xl); }
.app-title h3 a { text-decoration: none; }
.app-title h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.app-text .tagline { margin-top: var(--sp-s); font-size: var(--fs-l); font-weight: 400; line-height: 1.6; }
.app-text .desc { margin-top: var(--sp-s); max-inline-size: 30em; }
.app-text .devices { margin-top: var(--sp-s); font-size: var(--fs-s); color: var(--sub); }
.app-text .more { margin-top: var(--sp-m); display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: var(--fs-s); }
.app-text .more a { display: inline-flex; align-items: center; min-height: 44px; }
.app-shots { grid-column: 1 / -1; margin-top: var(--sp-l); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; align-items: end; }
.app-shots .iphone { grid-column: span 4; }
.app-shots .iphone:has(+ .iphone), .app-shots .iphone + .iphone { grid-column: span 5; }
.app-shots .ipad, .app-shots .duo, .app-shots .mac { grid-column: span 8; }
.app-shots .ipad.portrait { grid-column: span 6; }
@media (min-width: 900px) {
  .app-text { grid-column: 1 / 5; grid-row: 1; align-self: start; position: sticky; top: calc(var(--header-h) + var(--sp-m)); }
  .app-shots { grid-column: 6 / 13; grid-row: 1; margin-top: 0; }
  .app.flip .app-text { grid-column: 9 / 13; }
  .app.flip .app-shots { grid-column: 1 / 8; }
}

/* ===== 役割の表（実際の形と置き場所） ===== */
.roles { padding-block: var(--sp-xl); }
.roles .label { grid-column: 1 / -1; margin-bottom: var(--sp-s); }
.roles h2 { grid-column: 1 / -1; font-size: var(--fs-xl); margin-bottom: var(--sp-m); }
.roles .tbl { grid-column: 1 / -1; }
.rtable { width: 100%; border-collapse: collapse; font-size: var(--fs-s); }
.rtable th, .rtable td { text-align: left; vertical-align: top; padding: 0.9rem 1rem 0.9rem 0; border-top: 1px solid var(--line); font-weight: 300; }
.rtable thead th { border-top: 0; border-bottom: 1px solid var(--text); color: var(--sub); font-weight: 400; font-size: var(--fs-xs); letter-spacing: 0.08em; }
.rtable tbody th { font-weight: 400; white-space: nowrap; }
.rtable tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .roles .label { grid-column: 1 / 4; margin-bottom: 0; } .roles h2, .roles .tbl { grid-column: 4 / 13; } }
@media (max-width: 719px) {
  .rtable thead { display: none; }
  .rtable, .rtable tbody, .rtable tr, .rtable th, .rtable td { display: block; }
  .rtable tr { padding: 0.9rem 0; border-top: 1px solid var(--line); }
  .rtable th, .rtable td { border: 0; padding: 0.15rem 0; }
  .rtable td::before { content: attr(data-l) "　"; color: var(--sub); }
  .rtable tbody tr:last-child > * { border-bottom: 0; }
}

/* ===== 約束（地の色を 1 段だけ沈める） ===== */
.promise { background: var(--surface); padding-block: var(--sp-xl); }
.promise .label { grid-column: 1 / -1; margin-bottom: var(--sp-m); }
.promise dl { grid-column: 1 / -1; display: grid; gap: var(--sp-m) var(--col-gap); }
.promise dt { font-size: var(--fs-l); font-weight: 400; }
.promise dd { margin-top: 0.3rem; color: var(--sub); max-inline-size: 22em; }
@media (min-width: 720px) { .promise dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .promise .label { grid-column: 1 / 4; margin-bottom: 0; } .promise dl { grid-column: 4 / 13; } }

/* ===== アプリのページ ===== */
.page-hero { padding-block: var(--sp-m) var(--sp-l); }
.breadcrumb { grid-column: 1 / -1; font-size: var(--fs-s); color: var(--sub); }
.breadcrumb a { color: inherit; }
.page-hero .head { grid-column: 1 / -1; margin-top: var(--sp-l); }
.page-hero .head img { width: 72px; height: 72px; }
.page-hero h1 { margin-top: var(--sp-m); font-size: var(--fs-hero); letter-spacing: 0.04em; line-height: 1.25; }
.page-hero .tagline { margin-top: var(--sp-s); font-size: var(--fs-xl); line-height: 1.55; }
.page-hero .side { grid-column: 1 / -1; margin-top: var(--sp-m); }
.page-hero .side p { max-inline-size: var(--measure); }
.page-hero .devices { margin-top: var(--sp-s); font-size: var(--fs-s); color: var(--sub); }
@media (min-width: 900px) {
  .page-hero .head { grid-column: 1 / 8; }
  .page-hero .side { grid-column: 8 / 13; align-self: end; margin-top: 0; }
}

/* 端末ごとの一覧（同じ場面を iPhone・iPad・Duo で） */
.device-row { padding-bottom: var(--sp-2xl); }
.device-row .row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; align-items: end; }
.device-row .iphone { grid-column: 1 / 4; }
.device-row .ipad { grid-column: 4 / 13; }
.device-row .ipad.portrait { grid-column: 5 / 11; }
.device-row .iphone:has(+ .ipad.portrait) { grid-column: 1 / 5; }
@media (max-width: 719px) {
  .device-row .iphone { grid-column: 1 / 5; }
  .device-row .ipad { grid-column: 5 / 13; }
}

/* 場面ごとの説明（画面と文を左右に） */
.scenes { padding-bottom: var(--sp-l); }
.scenes-head { padding-bottom: var(--sp-m); }
.scenes-head h2 { font-size: var(--fs-2xl); }
.scene { padding-block: var(--sp-l); border-top: 1px solid var(--line); }
.scene .text { grid-column: 1 / -1; }
.scene h3 { font-size: var(--fs-xl); }
.scene p { margin-top: var(--sp-s); max-inline-size: var(--measure); }
.scene p.note { font-size: var(--fs-s); color: var(--sub); }
.scene .pics { grid-column: 1 / -1; margin-top: var(--sp-m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; align-items: end; }
.scene .pics .iphone { grid-column: span 4; }
.scene .pics .ipad, .scene .pics .duo, .scene .pics .mac { grid-column: span 8; }
.scene .pics .watch { grid-column: span 3; }
.scene .pics .ipad.portrait { grid-column: span 6; }
.scene .pics .iphone:only-child { grid-column: 1 / 6; }
.scene .pics .iphone:has(+ .iphone), .scene .pics .iphone + .iphone { grid-column: span 5; }
.scene .pics .duo:has(+ .duo), .scene .pics .duo + .duo { grid-column: span 6; }
@media (min-width: 900px) {
  .scene .text { grid-column: 1 / 5; align-self: start; }
  .scene .pics { grid-column: 6 / 13; margin-top: 0; }
}

/* AI と使う・情報の扱い */
.with-ai { padding-block: var(--sp-xl); }
.with-ai .label { grid-column: 1 / -1; margin-bottom: var(--sp-s); }
.with-ai .body { grid-column: 1 / -1; max-inline-size: var(--measure); }
.with-ai h2 { font-size: var(--fs-xl); }
.with-ai p { margin-top: var(--sp-s); }
.with-ai ul { margin-top: var(--sp-m); padding-left: 1.2em; }
.with-ai li + li { margin-top: 0.6em; }
@media (min-width: 900px) { .with-ai .label { grid-column: 1 / 4; margin-bottom: 0; } .with-ai .body { grid-column: 5 / 12; } }

.data-note { background: var(--surface); padding-block: var(--sp-l); }
.data-note .label { grid-column: 1 / -1; margin-bottom: var(--sp-s); }
.data-note .body { grid-column: 1 / -1; max-inline-size: var(--measure); }
.data-note .body p + p { margin-top: 1em; }
@media (min-width: 900px) { .data-note .label { grid-column: 1 / 4; margin-bottom: 0; } .data-note .body { grid-column: 5 / 12; } }

.page-links { padding-block: var(--sp-l) var(--sp-l); }
.page-links ul { grid-column: 1 / -1; list-style: none; padding: 0; }
.page-links li a { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.25rem 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.page-links li:first-child a { border-top: 1px solid var(--line); }
.page-links li a strong { font-size: var(--fs-l); font-weight: 400; }
.page-links li a span { font-size: var(--fs-s); color: var(--sub); }
.page-links li a:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.28em; }
@media (min-width: 900px) { .page-links ul { grid-column: 5 / 12; } }

/* ===== 文書（プライバシーポリシー・サポート） ===== */
.doc-head { padding-block: var(--sp-l) var(--sp-m); }
.app-chip { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font-size: var(--fs-s); color: var(--sub); text-decoration: none; }
.app-chip img { width: 32px; height: 32px; }
.app-chip:hover { color: var(--text); }
.doc-head h1 { margin-top: var(--sp-m); font-size: var(--fs-2xl); }
.doc-head .lead { margin-top: var(--sp-s); color: var(--sub); }
.doc { padding-bottom: var(--sp-xl); }
.doc h2 { margin-top: var(--sp-l); padding-top: var(--sp-s); border-top: 1px solid var(--line); font-size: var(--fs-l); }
.doc h3 { margin-top: var(--sp-m); font-size: var(--fs-body); font-weight: 500; }
.doc p, .doc ul, .doc ol, .doc dl, .doc table { margin-top: 0.8em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 0.35em; }
.doc table { width: 100%; border-collapse: collapse; font-size: var(--fs-s); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.6rem 0.8rem 0.6rem 0; border-bottom: 1px solid var(--line); font-weight: 300; }
.doc th { font-weight: 400; }
.muted { color: var(--sub); }
.panel { margin-top: var(--sp-m); padding: var(--sp-m); background: var(--surface); }
.button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.25rem; background: var(--text); color: var(--bg); text-decoration: none; font-size: var(--fs-s); font-weight: 400; }
.button:hover { background: var(--press); }
@media (prefers-reduced-motion: no-preference) {
  .button { transition: background-color var(--dur-xs) var(--ease); }
  .site-nav a, .app-chip { transition: color var(--dur-s) var(--ease); }
}

/* ===== フッター ===== */
.site-footer { margin-top: var(--sp-l); padding-block: var(--sp-l) var(--sp-xl); border-top: 1px solid var(--line); font-size: var(--fs-s); }
.site-footer .wrap { display: grid; gap: var(--sp-m) var(--col-gap); }
.footer-meta { margin-top: var(--sp-xs); color: var(--sub); }
.footer-meta p + p { margin-top: 0.3rem; }
.footer-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sub); }
@media (min-width: 900px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
