/* 2026-11 の新しい見た目（トップと、日本語のアプリのページ）。
   英語・韓国語・中国語のページとプライバシーポリシーは、これまでどおり /style.css を使う（このファイルは読み込まない）。
   色・文字・線・余白は、:root の値にまとめる。 */

@font-face {
  font-family: "Homemade Apple";
  src: url("/fonts/HomemadeApple-latin.woff2") format("woff2");
  font-display: block;
}

:root {
  color-scheme: light;
  --bg: #f7f5f0;
  --panel: #eeeae2;
  --card: #fdfcf9;
  --ink: #1f1e1b;
  --sub: #5c5850;
  --line: #d8d3c9;
  --line-strong: #2a2926;
  --shadow-soft: 0 1px 2px rgba(48, 38, 22, .06), 0 6px 18px rgba(48, 38, 22, .07);
  --shadow-card: 0 1px 2px rgba(48, 38, 22, .06), 0 12px 32px rgba(48, 38, 22, .10);
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --script: "Homemade Apple", cursive;
  --gutter: 40px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.8 var(--sans);
  overflow-wrap: break-word;
}
img { max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
/* 日本語は、文節ごとに <span class="nw"> で囲み、その中では改行しない（Hedwiq の tools/site-wbr.swift で入れる） */
.nw { white-space: nowrap; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 640px) { :root { --gutter: 20px; } }

/* ── ヘッダー：筆記体の名前（トップへのリンク）と、ナビゲーション ── */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 92px; border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--script);
  font-weight: 400;
  font-size: 21px;
  line-height: 1;
  /* 筆記体は上下に大きくはみ出すので、上下に余白を取って切れないようにする */
  padding: 18px 2px 14px;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: .01em;
}
.site-nav { display: flex; gap: 8px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px;
  font-size: 14px; letter-spacing: .04em; text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .site-header .bar { min-height: 76px; }
  .logo { font-size: 18px; }
}

/* ── トップの導入 ── */
.intro { padding: 52px 0 44px; }
.lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.5;
  letter-spacing: .1em;
  margin: 0;
}
.intro-sub { margin: 8px 0 0; color: var(--sub); font-size: 14px; letter-spacing: .02em; }
@media (max-width: 640px) {
  .intro { padding: 36px 0 32px; }
  .lead { font-size: 25px; }
}

/* ── 節の見出し（01 — Apps） ── */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.section-title {
  margin: 0; font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
}
.section-hint { margin: 0; font-size: 12px; color: var(--sub); }
.section-hint .on-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .section-hint .on-hover { display: none; }
  .section-hint .on-touch { display: inline; }
}

/* ── 作品の一覧（index.html）。種類ごとに <section class="works"> を1つ置く（今はアプリだけ）。
   作品を足すときは <li class="work"> を1つ足す（アイコン・名前・紹介カード .work-pop）。
   写真・文章・音楽などを足すときは、節を写して、番号と見出し（02 — Photographs など）を変える。
   スマホでは、選んだ作品の .card を、一覧の下の #work-panel に写して出す（site.js） ── */
.works { padding-bottom: 72px; }
.work-grid {
  list-style: none; margin: 0 auto; padding: 48px 0 0;
  max-width: 780px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center; row-gap: 40px;
}
.work { position: relative; }
.work-link {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 8px 12px; text-decoration: none; border-radius: 16px;
}
.work-icon {
  display: block; width: 96px; height: 96px; border-radius: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.work-name { font-size: 15px; letter-spacing: .03em; line-height: 1.4; }
.work.is-open .work-icon { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.work.is-open .work-name { text-decoration: underline; }

/* 紹介カードの中身（パソコンでは各アイコンの下に、スマホでは一覧の下の共通の場所に出す） */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 20px 24px 20px 20px;
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 22px; align-items: center;
  text-align: left;
}
.card-preview {
  display: block; width: 92px; height: auto; aspect-ratio: 560 / 1217;
  border-radius: 8px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05);
  background: var(--panel);
}
.card-name { margin: 0 0 4px; font-size: 19px; font-weight: 500; letter-spacing: .02em; line-height: 1.4; }
.card-desc { margin: 0 0 14px; font-size: 14px; line-height: 1.75; color: var(--sub); }
.more {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14px; text-decoration: underline;
}

/* パソコン（カーソルが使える端末）：カーソルを合わせると、アイコンの下に浮かぶ */
.work-pop {
  position: absolute; top: 100%; left: 50%; z-index: 20;
  width: min(380px, calc(100vw - 32px));
  padding-top: 14px; /* アイコンとカードの間を、カーソルが渡れるように */
  transform: translateX(calc(-50% + var(--shift, 0px)));
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s ease, visibility 0s linear .16s;
}
.work-pop::before {
  content: ""; position: absolute; top: 8px; left: calc(50% - var(--shift, 0px) - 7px);
  width: 14px; height: 14px; background: var(--card);
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg); z-index: 1;
}
.work.is-open .work-pop { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }

/* 選んだ段のすぐ下に出す紹介（#work-panel。site.js が、選んだ作品の段の最後の後ろへ動かす）。
   スマホでは、いつもこちら。パソコンでも、作品が2段以上になったら、浮かぶカードの代わりにこちらを使う
   （1段目のカードが2段目のアイコンに重なって、カーソルを動かしにくくなるため） */
.work-panel { position: relative; grid-column: 1 / -1; width: 100%; max-width: 560px; padding-top: 10px; list-style: none; }
.work-grid.uses-panel .work-pop { display: none; }
.work-panel[hidden] { display: none; }
.work-panel::before {
  content: ""; position: absolute; top: 3px; left: calc(var(--arrow-x, 50%) - 7px);
  width: 14px; height: 14px; background: var(--card);
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg); z-index: 1;
}
.work-panel .card { animation: fade-in .18s ease both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (hover: none), (pointer: coarse) {
  .work-pop { display: none; }
}
@media (max-width: 640px) {
  .work-grid { padding-top: 32px; row-gap: 28px; }
  .work-link { padding: 6px 4px; gap: 10px; }
  .work-icon { width: 72px; height: 72px; border-radius: 17px; }
  .work-name { font-size: 14px; }
  .card { grid-template-columns: 76px minmax(0, 1fr); gap: 18px; padding: 16px 18px 16px 16px; }
  .card-preview { width: 76px; }
  .card-name { font-size: 18px; }
}

/* ── フッター ── */
.site-footer .bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid var(--line); padding: 20px 0 44px;
  font-size: 13px; color: var(--sub);
}
.site-footer p { margin: 0; }

/* ── アプリのページ ── */
.back {
  display: inline-flex; align-items: center; min-height: 44px;
  margin-top: 20px; font-size: 14px; text-decoration: none;
}
.back:hover { text-decoration: underline; }

.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) 1px minmax(0, 7fr);
  gap: 48px; align-items: center; padding: 28px 0 52px;
}
.hero-id { display: flex; align-items: center; justify-content: center; gap: 26px; }
.hero-icon {
  width: 124px; height: 124px; border-radius: 28px; box-shadow: var(--shadow-soft); flex: none;
}
.hero-name { margin: 0; font-size: 36px; font-weight: 500; line-height: 1.2; letter-spacing: .01em; }
.hero-kind { margin: 6px 0 0; font-size: 13px; color: var(--sub); letter-spacing: .04em; }
.hero-rule { align-self: stretch; background: var(--line); }
.hero-text .catch {
  margin: 0 0 14px; font-family: var(--serif); font-weight: 400;
  font-size: 26px; line-height: 1.5; letter-spacing: .07em;
}
.hero-text p { margin: 0 0 4px; font-size: 15px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: 14px; }
.hero-actions .text-link {
  display: inline-flex; align-items: center; min-height: 44px; font-size: 14px;
}
/* App Store のバッジ。高さ 40、まわりに高さの4分の1（10）以上の余白（Apple の決まり）。形と色は変えない */
.store-badge { display: inline-block; padding: 10px; margin-left: -10px; }
.store-badge img { display: block; height: 40px; width: auto; }

/* 矢印と文字の間（inline-flex の gap は、文節の囲みごとに空きを入れてしまうので使わない） */
.back > [aria-hidden] { margin-right: 8px; }
.more > [aria-hidden] { margin-left: 6px; }
/* 矢印には下線を付けない（文字の下線だけ） */
.more { text-decoration: none; }
.more > :not([aria-hidden]) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.more:hover > :not([aria-hidden]) { text-decoration-thickness: 2px; }
/* 中身の少ないページでも、フッターを画面の下に */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }

@media (max-width: 800px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 20px 0 32px; }
  .hero-rule { display: none; }
  .hero-id { justify-content: flex-start; gap: 18px; }
  .hero-icon { width: 76px; height: 76px; border-radius: 18px; }
  .hero-name { font-size: 28px; }
  .hero-text .catch { font-size: 23px; margin-bottom: 10px; }
}

/* スクリーンショット。パソコンでは並べて、スマホでは横にスワイプ。画像は縦横の比を保ち、切らない */
.gallery { position: relative; background: var(--panel); border-radius: 8px; padding: 36px 0 28px; }
.gallery-track {
  display: flex; gap: 24px; margin: 0; padding: 0 36px; list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 36px;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track li { flex: none; scroll-snap-align: start; }
.gallery-track img {
  display: block; width: 216px; height: auto; aspect-ratio: 560 / 1217;
  border-radius: 10px; background: var(--card);
  box-shadow: 0 1px 2px rgba(48, 38, 22, .08), 0 6px 16px rgba(48, 38, 22, .08);
}
.gallery-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 36px 0; font-size: 13px; color: var(--sub);
}
.gallery-foot p { margin: 0; }
.gallery-nav { display: flex; gap: 8px; }
.gallery-nav button {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: inherit; font-size: 18px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.gallery-nav button:hover:not(:disabled) { border-color: var(--ink); }
.gallery-nav button:disabled { opacity: .35; cursor: default; }
@media (max-width: 640px) {
  .gallery { margin: 0 calc(var(--gutter) * -1); border-radius: 0; padding: 24px 0 18px; }
  .gallery-track { gap: 14px; padding: 0 var(--gutter); scroll-padding-inline: var(--gutter); }
  .gallery-track img { width: min(62vw, 240px); }
  .gallery-foot { padding: 14px var(--gutter) 0; }
}
@media (hover: none), (pointer: coarse) { .gallery-nav { display: none; } }

/* アプリについて・特徴・各項目：左に小さな見出し、右に中身 */
.label {
  margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 1.9;
}
.about {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px;
  padding: 60px 0 44px;
}
.about-body { border-left: 1px solid var(--line); padding-left: 40px; }
.about h2 {
  margin: 0 0 12px; font-family: var(--serif); font-weight: 400;
  font-size: 25px; line-height: 1.55; letter-spacing: .07em;
}
.about p { margin: 0 0 4px; font-size: 15px; }

.features {
  list-style: none; margin: 0; padding: 34px 0 48px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px;
  border-top: 1px solid var(--line);
}
.feature-num { display: block; font-size: 12px; letter-spacing: .12em; color: var(--sub); }
.feature h3 {
  margin: 2px 0 8px; font-family: var(--serif); font-weight: 400;
  font-size: 20px; line-height: 1.5; letter-spacing: .08em;
}
.feature p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--sub); }

.info {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px;
  padding: 30px 0 34px; border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.info > h2 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .04em; line-height: 1.8; }
.info-body { max-width: 660px; font-size: 15px; }
.info-body p, .info-body li { margin: 0 0 10px; }
.info-body > :last-child { margin-bottom: 0; }
.info-body ul, .info-body ol { padding-left: 1.2em; margin: 0 0 10px; }
.info-body h3 { margin: 22px 0 6px; font-size: 13px; font-weight: 600; color: var(--sub); letter-spacing: .04em; }
.info-body > h3:first-child { margin-top: 0; }
.info-body .q { margin: 18px 0 4px; font-weight: 600; }
.info-body .sub { color: var(--sub); font-size: 14px; }

@media (max-width: 800px) {
  .about { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 44px 0 32px; }
  .about-body { border-left: 0; padding-left: 0; }
  .about h2 { font-size: 21px; }
  .features { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 0 28px; border-top: 0; }
  .feature {
    display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px;
    padding: 18px 0; border-top: 1px solid var(--line);
  }
  .feature-num { grid-row: span 2; padding-top: 6px; }
  .feature h3 { font-size: 18px; margin-top: 0; }
  .info { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 26px 0 28px; }
}

/* ページの下：サポートなどへのリンク、言語、次の作品 */
.page-links {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px 36px;
  border-top: 1px solid var(--line-strong); padding: 14px 0 18px;
}
.page-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 26px; }
.page-links ul a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.langs { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; font-size: 13px; }
.langs svg { flex: none; color: var(--sub); }
.langs a, .langs span[aria-current] { display: inline-flex; align-items: center; min-height: 44px; }
.langs span[aria-current] { color: var(--sub); }
.next {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 6px 0 6px 28px; border-left: 1px solid var(--line); text-decoration: none; min-height: 44px;
}
.next small { font-size: 11px; letter-spacing: .2em; color: var(--sub); }
.next span { font-size: 19px; line-height: 1.4; }
.next:hover span { text-decoration: underline; }
@media (max-width: 800px) {
  .page-links { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .next { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }
}

/* 動きを減らす設定では、動きを止める */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0s !important; transition-delay: 0s !important;
    animation: none !important; scroll-behavior: auto !important;
  }
  .work.is-open .work-icon { transform: none; }
}
