/*!
 * © 2025 パソコンサロンゆうらく (Pasokon Salon Yuuraku). All rights reserved.
 * Project: ゆうらく学習トレーニングポータルYuuraku Leaning station
 * File: index-stylecss
 * BUILD_ID: YR-2025-0907-K13                 // ← 公開用の可視ビルドID
 * CANARY_ZW
 * SPDX-License-Identifier: LicenseRef-Yuuraku-Proprietary
 * Contact: yuurakunomori@gmail.com  |  URL: https://yuurakus.jp/
 *
 * 重要
 * 
* [日本語 / Japanese]
 * 本スタイルシートおよび関連ファイルの著作権（著作権法上の権利）は、パソコンサロンゆうらくに専属します。
 * 法令で明示的に認められる場合を除き、当社の事前の書面許諾なく、複製・複写・転載・転用・編集・改変・翻案・
 * 逆コンパイル／リバースエンジニアリング・再配布・商用利用・公衆送信（Webへのアップロードを含む）・
 * 自動取得／スクレイピング等の二次利用を固く禁じます。侵害が判明した場合、警告なく直ちに
 * 差止請求・損害賠償請求等の法的措置を厳格に行います。
 * 【重要】本スタイルシートには検証用のBUILD IDおよび不可視の「カナリア文字（ウォーターマーク）」が埋め込まれ、
 * ソースには識別用IDが隠されています。これらの削除・改変は契約違反・不正競争・著作権侵害等として追及します。
 *
 * [English]
 * Copyright in this stylesheet and related files is owned exclusively by
 * Pasokon Salon Yuuraku unless otherwise stated. Except as expressly permitted by law,
 * any reproduction, modification, adaptation, reverse engineering, redistribution,
 * commercial use, public transmission (including posting on the web), or automated
 * collection/scraping without prior written permission is strictly prohibited.
 * Upon detection of infringement, we will immediately pursue legal remedies including
 * injunctive relief and damages. IMPORTANT: This stylesheet embeds a verifiable BUILD ID
 * and invisible “canary” watermark characters, and an identification ID is hidden in the source.
 * Removal or alteration will be treated as a violation and strictly enforced.
 *
 * [中文 / Chinese (Simplified)]
 * 本样式表及相关文件之著作权，除非另有说明，专属于「Pasokon Salon Yuuraku」。
 * 未经事先书面许可，严禁复制、转载、修改、改编、逆向工程、再分发、商业使用、
 * 公开传播（含上传至网络）及自动抓取/爬取等二次利用。一经发现侵权，将立即采取包括
 * 禁令与损害赔偿在内的法律措施。重要：本样式表内已嵌入可验证的BUILD ID与不可见
 * “金丝雀”水印字符，且源代码中隐藏有识别用ID。擅自删除或篡改将被视为违规并依法追究。
 *
 * [한국어 / Korean]
 * 본 스타일시트 및 관련 파일의 저작권은 별도 고지가 없는 한
 * ‘파소콘 살롱 유우라쿠(Pasokon Salon Yuuraku)’에 전속됩니다.
 * 사전 서면 허가 없이 복제, 전재, 전용, 수정, 각색, 리버스 엔지니어링,
 * 재배포, 상업적 이용, 공중송신(웹 게시 포함), 자동 수집·스크래핑 등의 2차 이용을 엄격히 금합니다.
 * 위반 시 예고 없이 즉시 금지청구 및 손해배상 청구 등 법적 조치를 취합니다.
 * 중요: 본 스타일시트에는 검증 가능한 BUILD ID와 보이지 않는 ‘카나리아(워터마크) 문자’가 포함되며,
 * 소스 내부에는 식별용 ID가 숨겨져 있습니다. 이를 삭제·변조하는 행위는 위반으로 간주되어 엄정 대응합니다.
 */

/* ========================================================
   Yuuraku — Flower of Life (Morning White Theme)
   Brand: #38b45a  Glass UI / Motion-aware / Large Type
   ======================================================== */

/* ---------- CSS Variables ---------- */
:root{
  --brand: #38b45a;
  --accent: #38b45a;
  --gold: #f8e38e;
  --bg: #ffffff;
  --panel: #f8fafc;
  --ink: #111827;
  --muted: #6b7280;
  --glass: rgba(255,255,255,.06);
  --border: rgba(0,0,0,.08);
  --shadow: 0 10px 30px rgba(0,0,0,.15);
}

/* ---------- Reset / Base ---------- */
*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; background:var(--bg); color:var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Noto Sans JP', sans-serif;
  line-height: 1.75;
}
a{ color: var(--brand); text-decoration: none; }
img,canvas{ max-width:100%; display:block; }
.container{ max-width: 1200px; margin: 0 auto; padding: 24px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  height: 44px; padding: 0 18px; border-radius: 12px;
  font-weight:700; letter-spacing:.02em; border:1px solid var(--border);
  background: var(--glass); color: var(--ink); backdrop-filter: blur(6px);
  box-shadow: var(--shadow); transition: transform .2s ease, opacity .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active{ transform: translateY(0); }
.btn-primary{ background: linear-gradient(135deg, var(--brand), #2cae96); border-color: transparent; color: #04281f; }
.btn-ghost{ background: transparent; border-color: var(--border); color: var(--ink); }

/* ===== Hover: ボタンがふわっと浮く ===== */
@media (hover:hover){
  .btn:hover{
    transform: translateY(-4px);               /* 少し上へ */
    box-shadow: 0 12px 30px rgba(0,0,0,.16),
                0 6px 16px rgba(0,0,0,.08);    /* 影を強める */
  }

  /* SNS丸アイコンも少しだけ浮かせる（任意） */
  .contact-badge:hover{
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
  }
}

/* ホバー非対応デバイス・低速アニメ配慮 */
@media (prefers-reduced-motion: reduce){
  .btn, .contact-badge{ transition: none; }
}

/* カードを浮かせる（任意） */
@media (hover:hover){
  .card:hover{
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0,0,0,.18);
    border-color: color-mix(in oklab, var(--brand) 24%, var(--border));
  }
}

/* ---------- Header (glass) ---------- */
/* === Header nav: ピル型ガラスボタン（デスクトップ向け） ================== */
@media (min-width: 821px){
  .site-nav{
    display: flex;
    gap: 12px;                 /* ボタン間のすき間 */
    align-items: center;
  }
  .site-nav a{
    /* ボタンのベース */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, white 86%, transparent);
    box-shadow:
      0 2px 8px rgba(0,0,0,.06) inset,
      0 6px 16px rgba(0,0,0,.06);
    font-weight: 800;
    letter-spacing: .02em;
    opacity: 1;                 /* 既存の .site-nav a{ opacity:.9 } を上書き */
    transition:
      transform .18s ease,
      background .18s ease,
      border-color .18s ease,
      box-shadow .18s ease,
      color .18s ease;
  }
  .site-nav a:hover{
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.70));
    border-color: color-mix(in oklab, var(--brand) 32%, var(--border));
    box-shadow:
      0 1px 0 rgba(255,255,255,.9) inset,
      0 10px 26px rgba(0,0,0,.10);
    color: #074c3c;             /* 少しだけ濃いめに */
  }
  .site-nav a:active{
    transform: translateY(0);   /* クリック時は沈む感じを弱める */
  }
  .site-nav a:focus-visible{
    outline: 2px solid color-mix(in oklab, var(--brand) 65%, white 35%);
    outline-offset: 2px;
  }

  /* 「アプリへ」を“主ボタン”に（アプリへだけ塗りボタン） */
  .site-nav a[href^="index.html#apps"]{
    background: linear-gradient(135deg, var(--brand), #2cae96);
    color: #ffffff;
    border-color: transparent;
    box-shadow:
      0 1px 0 rgba(255,255,255,.7) inset,
      0 10px 24px rgba(56,180,138,.18);
  }
  .site-nav a[href^="mailto:"]:hover{
    transform: translateY(-2px) scale(1.012);
    box-shadow:
      0 1px 0 rgba(255,255,255,.85) inset,
      0 14px 30px rgba(56,180,138,.26);
  }
}

/* === ヘッダー：メールと電話を同仕様（アクセント付きアウトライン） === */
@media (min-width: 821px){
  .site-nav a[href^="mailto:"],
  .site-nav a[href^="tel:"]{
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    /* メールと同系の“薄ガラス＋緑エッジ” */
    background: color-mix(in oklab, white 92%, transparent);
    border: 1px solid color-mix(in oklab, var(--brand) 42%, var(--border));
    /* 文字色は他ボタン同様にブランド色（黒くしない） */
    color: var(--brand);
    box-shadow:
      0 2px 8px rgba(0,0,0,.06) inset,
      0 6px 16px rgba(0,0,0,.06),
      /* 足元の淡いグロー（メールと同印象） */
      0 22px 36px -16px color-mix(in oklab, var(--brand) 26%, transparent);
    transition:
      transform .18s ease,
      background .18s ease,
      border-color .18s ease,
      box-shadow .18s ease,
      color .18s ease;
  }
  .site-nav a[href^="mailto:"]:hover,
  .site-nav a[href^="tel:"]:hover{
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.72));
    border-color: color-mix(in oklab, var(--brand) 58%, var(--border));
    box-shadow:
      0 1px 0 rgba(255,255,255,.9) inset,
      0 10px 26px rgba(0,0,0,.10),
      0 30px 52px -18px color-mix(in oklab, var(--brand) 34%, transparent);
    /* hover時の文字は既存ルール(.site-nav a:hover)があればそれに従う */
  }
}

/* 以前の .call-btn 専用スタイルが残っていたら無効化（任意） */
@media (min-width: 821px){
  .site-nav a.call-btn::before{ content: none !important; }
}


/* モバイル（既存ドロワー/縦並び用）でも見やすく */
@media (max-width: 820px){
  .site-nav a.call-btn,
  .site-nav a[href^="tel:"]{
    font-weight: 800;
  }
}

/* モバイルは既存のドロワーUIを使用（styles.css 既定を活かす） */

.site-header{
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.55));
  -webkit-backdrop-filter: saturate(140%) blur(6px); backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav-row{ display:flex; align-items:center; justify-content:space-between; gap: 20px; }
.brand{ display:inline-flex; align-items:center; gap:10px; font-weight: 800; letter-spacing:.02em; font-size: clamp(18px, 2.2vw, 22px); }
.brand.small{ font-size: 16px; font-weight: 700; }
.brand-badge{
  width: 28px; height: 28px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--brand), #2ac0a6, #1ea88f, var(--brand));
  box-shadow: 0 0 0 4px rgba(56,180,138,.15), 0 10px 30px rgba(0,0,0,.15);
}
/* --- Brand badge: center "ゆ" over the green circle --- */
.brand-badge {
  position: relative;              /* 重ねるために基準化 */
  display: inline-block;           /* 念のため */
}
.brand-badge::after {
  content: "ゆ";                   /* 表示する文字 */
  position: absolute;
  inset: 0;                        /* バッジ全体に広げる */
  display: grid;
  place-items: center;             /* ど真ん中に配置 */
  font-weight: 700;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1;
  color: #fff;                     /* 緑の上で視認性◎ */
  text-shadow: 0 1px 2px rgba(0,0,0,.35); /* ほのかな縁取り */
  pointer-events: none;            /* クリック領域を邪魔しない */
}

/* フッターの小さいロゴ用に微調整（任意） */
.brand.small .brand-badge::after {
  font-size: clamp(12px, 1vw, 15px);
}

/* 中心は維持しつつ、見た目だけ右へ微調整 */
.brand-badge { --badge-nudge-x: 1.0px; }              /* お好みで 0.4〜1.2px 程度 */
.brand-badge::after {
  transform: translateX(var(--badge-nudge-x));
}

/* フッターの小サイズだけ少なめに（任意） */
.brand.small .brand-badge { --badge-nudge-x: 0.4px; }

.site-nav{ display:flex; gap: 18px; font-weight:600; }
.site-nav a{ opacity:.9; }

/* === Header nav：はみ出し対策（デスクトップ幅 821px 以上） ================== */
@media (min-width: 821px){
  /* 1) ボタン文字を1行固定（改行させない） */
  .site-nav a{ 
    white-space: nowrap; 
    line-height: 1;         /* 内部の上下詰めで背丈を抑える */
  }

  /* 2) 文字サイズ・余白・間隔を“流体”で自動縮小（小さくなり過ぎないclamp） */
  .site-nav{
    gap: clamp(8px, 1.4vw, 12px);                /* ボタン同士のすき間も可変 */
  }
  .site-nav a{
    font-size: clamp(13px, 1.2vw, 18px);         /* ← 最小13px / 通常〜最大18px */
    padding-inline: clamp(10px, 1.6vw, 16px);    /* ← 文字に合わせて余白も縮む */
  }

  /* 3) “アプリへ”の主ボタンにも同じ縮小ロジックを適用（念のため） */
  .site-nav a[href^="index.html#apps"]{
    font-size: clamp(13px, 1.2vw, 18px);
    padding-inline: clamp(12px, 1.8vw, 18px);
  }

  /* 4) 左のブランド名も微縮小＆改行防止（片仮名が折れないように） */
  .brand{
    white-space: nowrap;
    font-size: clamp(16px, 2.0vw, 22px);         /* 既存より下限を少しだけ下げる */
  }
}

/* さらに幅がタイトな“中間帯”で、ほんの少しだけ圧縮強め */
@media (min-width: 821px) and (max-width: 1080px){
  .site-nav a{ letter-spacing: .01em; }          /* 文字間隔もわずかに詰める */
}

/* ---------- Hero ---------- */
.hero{
  position: relative; overflow: clip; /* 一部バリデータで警告になることあり（仕様上はOK） */
  padding: clamp(32px, 6.5vh, 72px) 0 72px;
  isolation:isolate;
background:
  radial-gradient(1200px 600px at 70% -10%, rgba(56,180,138,.12), transparent 60%),
  radial-gradient(800px 500px at -10% 30%, rgba(56,180,138,.08), transparent 70%);

}
/* Full-bleed canvas behind content */
#fol-canvas{
  position:absolute; inset:0;
  width:100%; height:100%;
  mix-blend-mode: normal;
  opacity:1;
  pointer-events:none;
}
.hero-inner{ position:relative; display:grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 40px); align-items: center; z-index:1; }
.hero-copy h1{
  margin:0 0 12px; font-size: clamp(28px, 5.2vw, 56px); line-height:1.15; letter-spacing:.01em;
  text-wrap: balance; /* 一部環境で未実装 → バリデータがエラー扱いにする場合あり */
}
.subtitle{ display:block; font-weight:800; letter-spacing:.12em; opacity:.85; font-size: clamp(12px, 1.3vw, 14px); }
.accent{ background: linear-gradient(135deg, #baf2e3, var(--brand)); -webkit-background-clip:text; background-clip:text; color: transparent; }
.lede{ margin: 0 0 18px; opacity:.92; }
.cta-row{ display:flex; gap:12px; flex-wrap:wrap; }
.card .cta-row{ margin-top: auto; }

.hero-art{ height: 360px; max-height: 48vh; position:relative; }
.float-cards{ position:absolute; inset: 0 0 0 0; display:grid; grid-template-columns:repeat(2,1fr); gap: 14px; }
.float-card{
  display:flex; align-items:center; justify-content:center; text-align:center;
  border-radius: 16px; padding: 16px; font-weight:800;
  background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,.4));
  border:1px solid var(--border); box-shadow: var(--shadow);
  animation: bob 6s ease-in-out infinite;
}
.float-card:nth-child(odd){ animation-delay: -1.2s; }
.float-card:nth-child(3){ animation-delay: -2.4s; }
/* ▼▼▼ 修正：100 に % を付与＆ transform に ; を付与 ▼▼▼ */
@keyframes bob{
  0%, 100%{ transform: translateY(0); }   /* ← 修正1: 100% / 修正2: セミコロン追加 */
  50%{ transform: translateY(-6px); }     /* ← 修正3: セミコロン追加 */
}
/* ▲▲▲ 修正ここまで ▲▲▲ */
/* === Soften bottom fade === */
.scrim{
  height: 50px; /* 160px → 少し浅く */
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255,255,255,.45) 28%,
    var(--bg) 78%
  );
}

/* （念のため）カードの小数点も正す */
.float-card{
  background: linear-gradient(180deg,
    rgba(255,255,255,.6),
    rgba(255,255,255,.4)
  );
}


/* ---------- Feature Strip ---------- */
.strip{ padding: 16px 0 8px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); background: rgba(255,255,255,.65); }
.strip-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.strip-item{ background: var(--panel); border:1px solid var(--border); border-radius:16px; padding:16px; box-shadow: var(--shadow); }
.strip-item h3{ margin:0 0 6px; font-size:18px; }

/* Ads (strip流用) */
/* External ref tiles (strip流用) */
.refsec .ref-link{ display:block; text-decoration:none; color:inherit; }
.refsec .ref-link:hover{ opacity:.9; }

/* ---------- News (between strip and apps) ---------- */

.news{
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.70);
}
.news h2{
  margin: 0 0 10px;
  font-size: clamp(22px, 3.2vw, 28px);
}
.news-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.news-item .news-link{
  display: grid;
  /* 150px = 日付 / max-content = タグの実寸 / 1fr = 本文 */
  grid-template-columns: 150px minmax(84px, max-content) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--brand);
}
/* 追記推奨：visitedでも緑を維持 */
.news-item .news-link:visited { color: var(--brand); }
.news-date{
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.news-tag{
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  border: 1px solid color-mix(in oklab, var(--brand) 40%, var(--border));
  background: color-mix(in oklab, white 92%, transparent);
  color: var(--brand);
}

.news-text{
  font-weight: 700;
  color: currentColor;
  white-space: nowrap;
  min-width: 0;             /* ← Grid 内で 1fr が縮むのを許可 */
  overflow: hidden;         /* ← 端で切る */
  text-overflow: ellipsis;  /* ← … で省略 */
}

.news-footer{ margin-top: 10px; text-align: right; }


@media (max-width: 560px){
  .news-item .news-link{ grid-template-columns: 1fr; }
  .news-text{ order: 1; }
  .news-tag { order: 2; justify-self: start; }
  .news-date{ order: 3; }
}

/* ---------- News + Ranking side-by-side ---------- */
.news .news-grid{
  display:grid;
  grid-template-columns: clamp(300px, 33%, 420px) 1fr;
  gap:18px;
  align-items:start;
}

.news .app-ranking{
  background: var(--panel);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  box-shadow: var(--shadow);
}
.news .app-ranking h2{ margin:0 0 10px; font-size:clamp(18px,2.8vw,24px); }

/* 右カラムも左と同じ「枠」化 */
.news .news-pane{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;            /* 見出し/リスト/フッターの間隔 */
}

/* 見出しの余白とサイズを左に合わせる */
.news .news-pane h2{
  margin: 0 0 10px;
  font-size: clamp(18px, 2.8vw, 24px);
}

/* リスト内の行は既存スタイルをそのまま活用OK */
.news .news-list{ gap: 10px; }

/* フッター（もっと見る）も枠の中で右寄せ */
.news .news-footer{
  margin-top: 4px;
  text-align: right;
}

.rank-list{
  list-style:none; margin:0; padding:0;
  display:grid; gap:10px;
}
.rank-link{
  display:grid;
  grid-template-columns: 28px 44px 1fr; /* 順位 / サムネ / タイトル */
  align-items:center; gap:10px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background: var(--panel);
  text-decoration:none; color:inherit;
  box-shadow: var(--shadow);
}
.rank-no{ font-weight:900; font-size:18px; color:var(--brand); text-align:center; }
.rank-thumb{ width:44px; height:44px; object-fit:cover; border-radius:10px; }
/* 追加：ランキングのスコアは常に非表示 */
.rank-score{ display:none !important; }
.rank-title{ font-weight:800; }

@media (max-width: 820px){
  .news .news-grid{ grid-template-columns:1fr; }
  .news .app-ranking{ order:2; } /* モバイルは新着の下に */
  .news .news-pane{ order:1; }
}


/* ---------- App Grid ---------- */
.apps{ padding: 42px 0 72px; }
.apps-head h2{ margin: 0 0 6px; font-size: clamp(22px, 3.2vw, 28px); }
.app-grid{
  display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; min-height: 160px;
}
.card{
  position:relative; display:flex; flex-direction:column; gap:10px;
  background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.7));
  border:1px solid var(--border); border-radius: 16px; padding: 18px;
  box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card h3{ margin: 0; font-size: 18px; }
.card p{ margin: 0 0 8px; opacity: .9; }
.card .badge{
  position:absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 800; letter-spacing:.06em;
  padding: 4px 8px; border-radius: 999px; background: rgba(56,180,138,.15); color: #0b5e4d; border:1px solid rgba(56,180,138,.35);
}

/* カード全体をクリック可能にする（stretched link） */
.card.is-link{ position: relative; }

/* 透明リンクをカード全面に広げる */
.card.is-link .stretched-link{
  position: absolute;
  inset: 0;                  /* 全面 */
  border-radius: inherit;    /* 角丸を継承 → 形そのまま */
  z-index: 9;                /* 中身より前面にしてクリックを拾う */
  /* 見えないリンクなので装飾は不要 */
}

/* 「開く」ボタンはリンクより前面に（押しやすさ・フォーカス用） */
.card.is-link .btn{
  position: relative;
  z-index: 10;
}


/* ---------- About ---------- */
.about{ padding: 40px 0 56px; border-top:1px solid var(--border); background: rgba(255,255,255,.75); }
.about-inner{ max-width: 900px; }

/* ---------- Footer ---------- */
/* Footer: center grid items again */
.site-footer .footer-grid{
  justify-content: center;   /* ← space-between を上書き */
}

.footer-grid{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap: 16px; }
.footer-nav{ display:flex; gap: 14px; }
.muted{ color: var(--muted); font-size:14px; }

/* --- Footer: Store card -------------------------------------------------- */
.store-card{
  display:flex; align-items:flex-start; gap:12px;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:16px;
  background: color-mix(in oklab, white 88%, transparent);
  box-shadow: 0 2px 8px rgba(0,0,0,.06), 0 6px 16px rgba(0,0,0,.06);
  max-width: 760px;                  /* 置き場所に合わせて適宜 */
}
.store-emoji{ font-size:22px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.08)); }
.store-name{ font-weight:800; letter-spacing:.02em; margin-bottom:6px; }
.store-list{ list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:6px 16px; }
.store-item{ display:flex; align-items:center; gap:6px; }
.store-item .icon{ opacity:.9; }
.store-card a{ color: var(--brand); font-weight:700; text-decoration:none; }
.store-card a:hover{ text-decoration:underline; }

@media (max-width: 820px){
  .footer-grid{ gap: 14px; }
  .store-card{ width:100%; }
}


/* ---------- Cookie Banner ---------- */
.cookie-banner{ position: fixed; inset:auto 12px 12px 12px; background: var(--panel); border:1px solid var(--border); border-radius:12px; padding: 12px; box-shadow: var(--shadow); transform: translateY(16px); opacity:0; pointer-events:none; transition: transform .2s, opacity .2s; }
.cookie-banner.show{ opacity:1; transform: translateY(0); pointer-events:auto; }
.cookie-actions{ display:flex; gap:10px; align-items:center; margin-top:8px; }

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition: none !important; }
  #fol-canvas{ opacity:.65; } /* still show the pattern softly */
}

/* ---------- Responsive ---------- */
@media (max-width: 960px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-art{ height: 260px; }
  .strip-grid{ grid-template-columns: 1fr; }
  .app-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .app-grid{ grid-template-columns: 1fr; }
}

/* モバイル専用リンク（ハンバーガー内だけ表示） */
.site-nav a.only-mobile { display: none; }

@media (max-width: 820px){
  .site-nav a.only-mobile { display: block; }
}

/* === Morning halo (gold backlight) === */
body.halo, .hero.halo { background: var(--bg); position: relative; overflow-x: hidden; }
body.halo::before, .hero.halo::before {
  content:""; position: fixed; inset:-20% -10% auto -10%; height:60vh; z-index:-1; pointer-events:none;
  background: radial-gradient(closest-side, rgba(201,162,39,0.35), rgba(201,162,39,0.15) 35%, rgba(201,162,39,0.06) 60%, rgba(201,162,39,0) 80%);
  filter: blur(2px);
}

/* === FOL Canvas layering === */
.hero { position: relative; }
.hero-inner { position: relative; z-index: 1; }
#fol-canvas{ z-index:0; }


/* ---------- Card thumbnail ---------- */
.card .thumb-wrap{
  width: 100%;
  aspect-ratio: 1/1;           /* 1:1 正方形サムネ比率 */
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  margin-bottom: 12px;
}
.card img.thumb{
  width: 100%;
  height: 100%;
  object-fit: cover;           /* はみ出しをトリミングしてフィット */
  display: block;
}

/* --- Privacy (legal) fine-tune --- */
.about.legal .legal-list { padding-left: 1.2em; margin: .4em 0 1em; }
.about.legal .legal-list li { margin: .2em 0; }
.about.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: rgba(0,0,0,.05);
  padding: .1em .35em; border-radius: .35em;
}

/* === Header right area === */
.site-header .nav-row{
  display:flex; align-items:center; gap:clamp(12px, 2vw, 24px);
}
.nav-right{
  margin-left:auto;
  display:flex; align-items:center; gap:clamp(12px, 1.5vw, 20px);
}

/* === Social badges === */
.contact-nav{ display:flex; align-items:center; gap:10px; }
.contact-badge{
  --brand: var(--brand, #38b45a);
  --ring: var(--border, rgba(0,0,0,.10));
  display:grid; place-items:center;
  width:34px; height:34px;
  border-radius:999px;
  border:1px solid var(--ring);
  background: color-mix(in oklab, white 70%, transparent);
  backdrop-filter: saturate(120%) blur(6px);
  color: var(--brand);
  text-decoration:none;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.06) inset, 0 4px 12px rgba(0,0,0,.04);
}

/* --- Side social: borderless SNS icons (override) --- */
.contact-rail .contact-badge{
  /* 既定の“丸＋境界線”を打ち消し */
  width: auto; height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* グレートーンでフラット表示（スクショ風） */
  color: #9ca3af; /* = gray-400 相当。SVGは currentColor で追随 */
}

/* アイコンサイズを統一 */
.contact-rail .contact-badge svg,
.contact-rail .contact-badge img{
  width: 26px;
  height: 26px;
  display: block;
}

/* サイドだけは“浮かせ効果”を無効化（既定の :hover を上書き） */
@media (hover:hover){
  .contact-rail .contact-badge:hover{
    transform: none;
    box-shadow: none;
    color: #4b5563; /* hover時にやや濃いグレーに（任意） */
  }
}

.contact-badge img { display:block; } /* 余計な隙間を消す */
.contact-badge:focus-visible{
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce){
  .contact-badge{ transition: none; }
}

/* それぞれ微妙に差をつけたい場合（任意） */
.contact-badge.x   { color: var(--brand, #38b45a); }
.contact-badge.ameblo { color: var(--brand, #38b45a); }

/* ヘッダーが窮屈な幅のときはアイコンだけ表示（任意） */
@media (max-width: 560px){
  .site-nav a{ padding-inline:10px; }
}

/* === Float cards: ラベルを大きく・強く・読みやすく === */
.float-card{
  /* フォントサイズ：端末幅に合わせて可変。最大42pxまで */
  font-size: clamp(22px, 4.2vw, 42px);
  line-height: 1.2;
  letter-spacing: .04em;
  font-weight: 800;                 /* 既定が 800 の場合はそのままでOK */

  /* 余白と高さを少し増やし、文字を“見せる” */
  padding: 22px 24px;
  min-height: 150px;

  /* 背景が淡いので、ごく薄い白フチ＆影でコントラストを底上げ */
  -webkit-text-stroke: .25px rgba(255,255,255,.55); /* Safari/Chromium系 */
  text-shadow:
    0 1px 0 rgba(255,255,255,.35),
    0 2px 10px rgba(0,0,0,.08);
}

/* 横幅が十分あるときはさらに一段階だけアップ */
@media (min-width: 1200px){
  .float-card{ font-size: 44px; }  /* 好みで 40–48px の範囲で調整可 */
}

/* === 24K GOLD TEXT for float cards === */
/* パレット（必要なら微調整OK） */
:root{
  --gold-deep:   #6a4b12;  /* 影（深金） */
  --gold-mid:    #bf8f1a;  /* 中金 */
  --gold-warm:   #ffd24d;  /* 24K定番 */
  --gold-bright: #ffe59a;  /* ハイライト */
  --gold-edge:   #4a360d;  /* エッジ影 */
}

/* フォールバック：background-clip未対応でも金色に見えるように */
.float-card{
  color: var(--gold-warm);
  text-shadow:
    0 1px 0 rgba(255,255,255,.35),
    0 2px 8px rgba(0,0,0,.10),
    0 0 1px rgba(0,0,0,.25);
}

/* クリップ文字（対応ブラウザで本命の金属質感） */
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .float-card{
    color: transparent;
    background-image:
      /* specular（斜めに走る光筋。ごく薄く） */
      linear-gradient(115deg,
        transparent 0%,
        rgba(255,255,255,.22) 22%,
        transparent 28%,
        transparent 72%,
        rgba(255,255,255,.18) 78%,
        transparent 100%),
      /* 金属の縞グラデーション（上下方向） */
      linear-gradient(180deg,
        var(--gold-edge)   0%,
        var(--gold-mid)   12%,
        var(--gold-bright)24%,
        var(--gold-warm)  36%,
        var(--gold-bright)50%,
        var(--gold-mid)   64%,
        var(--gold-bright)76%,
        var(--gold-deep) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;

    /* 立体感（エッジの締まり） */
    text-shadow:
      0 1px 0 rgba(255,255,255,.25),
      0 2px 10px rgba(0,0,0,.12),
      0 0 1px rgba(0,0,0,.30);
    /* 既に指定済なら不要：font-weight, letter-spacing, line-height は現状維持でOK */
  }

  @keyframes goldShine{
    0%   { background-position: 0% 0%;   }
    100% { background-position: 200% 0%; }
  }
}

/* footer contact mail */
.contact-mail { word-break: break-all; }

/* === Language toggle === */
/* === FIX: headings with lang-* should be block, not inline === */
:where(h1,h2,h3,h4,h5,h6).lang-ja,
:where(h1,h2,h3,h4,h5,h6).lang-en{
  display: block !important;
  white-space: normal !important;
  margin: 1.1em 0 .55em;   /* 好みで微調整OK */
}

html[lang="ja"] .lang-en{ display:none !important; }
html[lang="en"] .lang-ja{ display:none !important; }
.lang-switch{display:inline-flex;gap:.5rem;margin-left:.5rem}
.lang-btn[aria-pressed="true"]{box-shadow:inset 0 0 0 1px rgba(0,0,0,.12);opacity:.95}
.i18n-inline .lang-ja,
.i18n-inline .lang-en { display:inline; white-space:nowrap; }

/* === BRIGHT 24K TUNE (more luminous like bullion) ======================= */
/* パレットを明るめに再定義（下に書くほど後勝ち） */
:root{
  --gold-deep:   #4f3305; /* 影の最深部（濃い茶）   */
  --gold-edge:   #3a2500; /* エッジの締め色         */
  --gold-mid:    #d8a214; /* 中間金（やや強い黄）   */
  --gold-warm:   #ffd24d; /* 主金色（明るい24K黄）  */
  --gold-bright: #fff3b0; /* ハイライト（淡い黄白） */
}

/* 本命：文字の金属グラデを“明るめ”へ（background-clip:text対応ブラウザ） */
@supports ((-webkit-background-clip: text) or (background-clip: text)){
  .float-card{
    color: transparent;
    /* 上から順に重なる：1)斜めの薄い光筋 2)縦の強ハイライト 3)金属本体 */
    background-image:
      /* 1) specular（薄く） */
      linear-gradient(102deg,
        transparent 0%,
        rgba(255,255,255,.22) 22%,
        transparent 28%,
        transparent 72%,
        rgba(255,255,255,.22) 78%,
        transparent 100%),
      /* 2) 縦の強ハイライト（延べ棒のギラッとした帯） */
      linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,.40) 47%,
        rgba(255,255,255,.95) 50%,
        rgba(255,255,255,.40) 53%,
        transparent 100%),
      /* 3) 金属の縞（上下） */
      linear-gradient(180deg,
        var(--gold-edge)   0%,
        var(--gold-mid)   10%,
        var(--gold-bright)22%,
        var(--gold-warm)  36%,
        var(--gold-bright)50%,
        var(--gold-mid)   62%,
        var(--gold-bright)78%,
        var(--gold-deep) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;

    /* 文字の縁・輝き（明るめに） */
    text-shadow:
      0 1px 0 rgba(255,255,255,.28),
      0 0 14px rgba(255,223,140,.38),
      0 2px 12px rgba(0,0,0,.10),
      0 0 1px rgba(0,0,0,.32);
  }
}

/* 後光：黄白寄りにして輝度アップ（緑味を弱める） */
.float-card::before{
  content: "";
  position: absolute;
  inset: 100px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(90% 120% at 40% 35%,
      rgba(255,245,195,.55) 0%,
      rgba(255,230,150,.32) 36%,
      rgba(255,245,200,.18) 56%,
      rgba(255,255,255,.10) 66%,
      transparent           78%);
  filter: blur(18px);
  opacity: .95;
  animation: haloPulse 6s ease-in-out infinite alternate;
}

/* 光条：少し明るく＆わずかに強める */
.float-card::after{
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background:
    conic-gradient(
      from 0deg,
      rgba(255,250,210,0)    0deg  10deg,
      rgba(255,250,200,.55) 18deg 26deg,
      rgba(255,250,210,0)   34deg 120deg,
      rgba(255,245,190,.45)138deg 146deg,
      rgba(255,250,210,0)  154deg 360deg
    );
  mix-blend-mode: screen;
  opacity: .58;
  animation: raysRotate 24s linear infinite;
}

/* 低モーション環境では静止（既にあれば重複OK） */
@media (prefers-reduced-motion: reduce){
  .float-card::before,
  .float-card::after{ animation: none; }
}

/* 既存の goldShine / haloPulse / raysRotate が無い場合の保険 */
@keyframes goldShine{
  0% { background-position: 0% 0%; }
  100%{ background-position: 200% 0%; }
}
@keyframes haloPulse{
  0% { opacity:.70; transform:scale(.985); }
  100%{ opacity:.95; transform:scale(1.02); }
}
@keyframes raysRotate{
  0% { transform:rotate(0deg); }
  100%{ transform:rotate(360deg); }
}

/* === TEMP: Float-card text = BLACK (halo/raysはそのまま) =============== */
/* 金テキストや背景クリップを無効化し、純粋な黒文字に戻す */
.float-card{
  color: #111827;                  /* 好みで #000 でもOK */
  text-shadow: none;               /* エッジの光も一旦オフ */
}

/* background-clip:text を使った金表現を確実にオフにする */
@supports ((-webkit-background-clip: text) or (background-clip: text)){
  .float-card{
    background: none !important;                 /* 金グラデ無効化 */
    -webkit-background-clip: border-box !important;
            background-clip: border-box !important;
    -webkit-text-fill-color: currentColor !important;  /* 透明文字→通常描画 */
  }
}

/* ===== Mobile hamburger & drawer ===== */
:root{ --headerH:64px; }          /* ヘッダーの高さ目安。必要なら調整 */

.nav-toggle{
  display:none; place-items:center;
  width:40px; height:40px; border-radius:12px;
  border:1px solid var(--border);
  background: var(--glass);
  box-shadow: var(--shadow);
}
.nav-toggle .bar{
  display:block; width:20px; height:2px; margin:4px 0;
  background: var(--ink); transition: transform .2s ease, opacity .2s ease;
}

/* スマホ幅でドロワー化 */
@media (max-width: 820px){
  .nav-toggle{ display:inline-grid; }
  /* JS有効時のみ隠す（プログレッシブに） */
  html.js .site-nav{
    position: fixed; left: 12px; right: 12px; top: calc(var(--headerH) + 8px);
    display: grid; gap: 8px; padding: 12px;
    background: color-mix(in oklab, white 92%, transparent);
    border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
    transform: translateY(-24px) scale(.98);
    opacity: 0; pointer-events: none; z-index: 59;
    transition: transform .22s ease, opacity .22s ease;
  }
  html.js body.menu-open .site-nav{
    transform: none; opacity: 1; pointer-events: auto;
  }
  .site-nav a{
    padding: 12px 14px; border-radius: 10px; background: rgba(0,0,0,.02);
    font-weight: 700;
  }
  .nav-right{ display:none; } /* モバイルでは簡素化 */
}

/* ハンバーガー→× アニメーション */
body.menu-open .nav-toggle .bar:nth-child(1){ transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle .bar:nth-child(2){ opacity: 0; }
body.menu-open .nav-toggle .bar:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* === Desktop: App grid 4 columns & compact cards === */
@media (min-width: 1024px){
  .app-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* 3→4列 */
  }
  /* 4列時にだけ、少しだけ密度を上げる */
  .app-grid .card{ padding: 14px; }          /* 18px → 14px */
  .app-grid .card h3{ font-size: 16px; }     /* 18px → 16px */
  .app-grid .card p{ font-size: .95rem; }    /* 本文を微縮小 */
  .app-grid .card .badge{ font-size: 11px; } /* バッジも少し小さく */
}

/* === Apps filter tabs (学習/計算/便利) =============================== */
.apps-filter{
  display:flex; gap:10px; align-items:center; margin: 8px 0 16px;
  flex-wrap: wrap;
}
.apps-filter .tab{
  display:inline-flex; align-items:center; justify-content:center;
  height:38px; padding:0 14px; border-radius:999px; font-weight:800;
  border:1px solid color-mix(in oklab, var(--brand) 40%, var(--border));
  background: color-mix(in oklab, white 92%, transparent);
  color: var(--brand);
  box-shadow: 0 2px 8px rgba(0,0,0,.06) inset, 0 6px 16px rgba(0,0,0,.06);
  cursor:pointer; user-select:none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s;
}
.apps-filter .tab[aria-pressed="true"]{
  background: linear-gradient(135deg, var(--brand), #2cae96);
  color:#fff; border-color: transparent;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 10px 24px rgba(56,180,138,.18);
}
.apps-filter .tab:focus-visible{ outline:2px solid color-mix(in oklab, var(--brand) 65%, white 35%); outline-offset:2px; }

/* ========================================================
   Custom layout modifications for side menu navigation
   Introduced to replace the top navigation with a responsive side menu.
   ======================================================== */

/* Basic layout adjustments: the header and main content shift to the right on desktop */
:root {
  --sideW: 260px; /* width of the side menu on desktop */
}

/* Desktop layout: side menu is fixed on the left; header and content are offset */
@media (min-width: 821px) {
  .side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sideW);
    height: 100vh;
    padding: 32px 24px;
    background: var(--panel);
    border-left: 1px solid var(--border);
    overflow-y: auto;
    z-index: 100;
  }
  .main-content,
  .site-header {
    margin-right: var(--sideW);
  }
  .site-header {
    padding-right: 24px;
  }
}

/* Mobile layout: side menu is hidden off-canvas and slides in when menu-open is set on the body */
@media (max-width: 820px) {
  .side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sideW);
    height: 100vh;
    padding: 32px 24px;
    background: var(--panel);
    border-left: 1px solid var(--border);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 100;
  }
  body.menu-open .side-menu {
    transform: translateX(0);
  }
  .main-content,
  .site-header {
    margin-left: 0;
  }
}

/* Hide brand text in header on large screens (brand appears in side menu) */
@media (min-width: 821px) {
  .site-header .brand {
    display: none;
  }
}

/* Side menu components */
.side-brand {
  margin-bottom: 24px;
}
/* === Side brand: wrap & smaller === */
.side-menu { overflow-x: hidden; }              /* 横スクロール禁止（全画面） */

@media (min-width: 821px){
  .side-menu .brand{
    /* バッジ＋テキストを2列にして、改行を許可 */
    display: grid;
    grid-template-columns: 26px 1fr;
    align-items: center;
    column-gap: 10px;

    /* 文字サイズを控えめに＆改行可（headerのnowrapを上書き） */
    font-size: 18px;
    line-height: 1.25;
    white-space: normal !important;
    overflow-wrap: anywhere; /* 日本語でも安全に折り返し */
  }
  .side-menu .brand-badge{ width:26px; height:26px; } /* バッジも少し小さく */
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.side-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(0,0,0,.02);
  border: 1px solid var(--border);
  transition: background .18s ease, color .18s ease;
  font-size: 14px;   /* ←小さくする */
  line-height: 1.4;  /* ←行間も少し詰めるなら */
}
.side-nav a:hover {
  background: color-mix(in oklab, var(--brand) 20%, white 80%);
  color: #074c3c;
}
/* === Highlight: 「パソコン学習アプリへ」だけ主役にする === */
.side-nav a#nav-apps{
  position: relative;
  background: linear-gradient(135deg, var(--brand), #2cae96);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(56, 180, 139, 0.511);
}
.side-nav a#nav-apps::before{
  content: "✨";             /* アイコン（お好みで 🖥️ や ✨ に変更可） */
  margin-right: .5em;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));
}
@media (hover:hover){
  .side-nav a#nav-apps:hover{ transform: translateY(-2px); }
}
/* 右上で“ピン”がふわっと広がる */
.side-nav a#nav-apps::after{
  content:"";
  position:absolute; top:6px; right:10px;
  width:8px; height:8px; border-radius:50%;
  background:#fff;
  box-shadow:0 0 0 0 rgba(255,255,255,.6);
  animation: navPing 2.4s ease-out infinite;
}
@keyframes navPing{
  0%   { box-shadow:0 0 0 0 rgba(255,255,255,.6); transform:scale(1); }
  70%  { box-shadow:0 0 0 12px rgba(255,255,255,0); transform:scale(1.06); }
  100% { box-shadow:0 0 0 0 rgba(255,255,255,0);  transform:scale(1); }
}
/* 動きに弱い方へ配慮 */
@media (prefers-reduced-motion: reduce){
  .side-nav a#nav-apps::after{ display:none; }
}

/* === Quick buttons (Search / Access / Language) in side menu === */
.util-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  background: color-mix(in oklab, white 88%, transparent);
  margin: 8px 0 0px;
}
.util-3 a.util, .util-3 button.util{
  display:grid;
  place-items:center;
  gap:6px;
  padding: 12px 8px;
  text-decoration:none;
  color: var(--ink);
  border: 0;                 /* ← 既定の黒い枠を消す */
  background: var(--panel);
  border-left: 1px solid var(--border);
}
.util-3 a.util:first-child, .util-3 button.util:first-child{ border-left: none; /* transform: translateY(-12px); */ }
  
.util-3 .label{ font-weight:800; letter-spacing:.02em; }
.util-3 .icon{ width: 28px; height: 28px; transform: translateY(0); display:inline-block; }
.util-3 .icon svg{ width:100%; height:100%; fill: #000; }
@media (min-width: 821px){
  .util-3 .label{ font-size: 12px; }
}
@media (max-width: 820px){
  .util-3{ margin-top: 6px; }
  /* モバイルも小さくしたい場合はベースも追加 */
.util-3 .label{ font-size: 11px; }     /* ←メディアクエリの外に1行追加 */
}
.contact-rail {
  margin-top: 10px;         /* ← 6〜12pxの範囲で好みに調整 */
  display: flex;
  gap: 8px;
  justify-content: center; /* ← アイコン群を中央に */
}

/* Ensure the hamburger button appears above main content */
.site-header {
  position: relative;
  z-index: 200;
}

/* === App sections: 見出しとフォーカス表示 =============================== */
/* #app-grid はそのまま grid。見出しはフル幅に広げて挿入します */
#app-grid .apps-subhead{
  grid-column: 1 / -1;
  margin: 22px 0 8px;
  padding: 4px 2px;
  font-weight: 900;
  font-size: clamp(16px, 1.6vw, 18px);
  letter-spacing: .02em;
  color: var(--ink);
  border-bottom: 1px dashed color-mix(in oklab, var(--brand) 28%, var(--border));
}

/* タブでカテゴリを“強調”する：その他は少し薄く */
#app-grid[data-focus] .card,
#app-grid[data-focus] .apps-subhead{
  opacity: .45;
  filter: saturate(.85);
  transition: opacity .18s ease, filter .18s ease;
}
#app-grid[data-focus="学習"]  [data-category="学習"],
#app-grid[data-focus="計算"]  [data-category="計算"],
#app-grid[data-focus="便利"]  [data-category="便利"]{
  opacity: 1;
  filter: none;
}

/* スクロール後に見出しをチラッと光らせて視認性アップ（任意） */
#app-grid .apps-subhead.pulse{
  box-shadow: 0 10px 30px rgba(56,180,138,.12);
  animation: headPulse .8s ease;
}
@keyframes headPulse{
  0%{ box-shadow: 0 10px 30px rgba(56,180,138,.22); }
  100%{ box-shadow: 0 0 0 rgba(0,0,0,0); }
}

/* ---- Privacy accordion ---- */
.about.legal .accordion-ctrl{
  display:flex; gap:10px; margin:8px 0 12px;
}
.about.legal details.accordion{
  border:1px solid var(--border);
  border-radius:12px;
  background: color-mix(in oklab, white 92%, transparent);
  box-shadow: var(--shadow);
  margin:10px 0;
  overflow: clip;
}
.about.legal details.accordion[open]{
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.about.legal details.accordion summary{
  list-style:none; cursor:pointer;
  display:grid; grid-template-columns:1fr auto; align-items:center;
  padding:14px 16px;
  font-weight:800; font-size:18px; letter-spacing:.02em;
}
.about.legal details.accordion summary::-webkit-details-marker{ display:none; }
.about.legal details.accordion summary::after{
  content:"▸"; transform:rotate(0deg);
  transition: transform .2s ease;
  opacity:.8;
}
.about.legal details.accordion[open] summary::after{
  transform: rotate(90deg);
}
.about.legal details.accordion .panel{
  padding:12px 16px 16px;
  border-top:1px solid var(--border);
}

/* もし過去の ver.B が残っていたら強制で打ち消す */
.open-badge{
  position: static !important;
  inset: auto !important;        /* top/right/bottom/left を無効化 */
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* 4パネルをグリッド化（強制） */
.hero-art .float-cards{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: clamp(10px, 1.4vw, 20px);        /* すき間を小さく */
  align-content: start;
}

/* バッジ：4パネル直下・右寄せ＆さらに近づける */
.hero-art .open-badge{
  grid-column: 1 / -1;
  justify-self: end;
  margin-top: 0;
  transform: translateY(-10px);         /* 近づけ調整。-40px などに増やすともっと上へ */
  position: relative;
  z-index: 30;                           /* scrim より手前に */
}
.hero-art .open-badge img{
  width: 128px; height: 128px;
  border-radius: 999px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.12));
}

/* スマホは中央寄せ＆控えめに */
@media (max-width: 820px){
  .hero-art .open-badge{
    justify-self: center;
    transform: translateY(-12px);
  }
}

/* バッジ一式を“中身の幅”で縮め、縦積み中央寄せ */
.open-badge{
  position: absolute;
  right: clamp(24px, 3vw, 48px);
  bottom: clamp(20px, 3vw, 40px);
  display: grid;              /* 1列グリッドで中央寄せが簡単 */
  justify-items: center;      /* ← 水平中央 */
  align-content: center;
  gap: .35rem;
  width: max-content;         /* ← コンテンツ幅に縮める（画像幅に一致） */
  pointer-events: auto;
  z-index: 5;
}

/* 画像リンクをブロック化して余白のブレを防ぐ */
.open-badge > a{
  display: block;
  line-height: 0;
}

/* キャプションをブロック化＋中央寄せ */
.open-badge .muted{
  display: block;
  text-align: center;
  line-height: 1.2;
}

/* --- Mobile: 4パネルとバッジの欠け防止 ------------------------------ */
@media (max-width: 820px){
  /* ヒーロー右側のボックスは高さを自動に */
  .hero-art{
    height: auto !important;
    max-height: none !important;
  }

  /* 4パネルは absolute をやめて通常フローへ（高さを確保） */
  .hero-art .float-cards{
    position: static !important;
    grid-template-columns: repeat(2, minmax(140px, 1fr)); /* 220px → 140px に縮めて横欠け防止 */
    gap: clamp(8px, 2.6vw, 12px);
  }

  /* 各カードも少しだけコンパクトに */
  .float-card{
    min-height: 120px;
    padding: 16px;
  }

  /* バッジは絶対配置をやめて、パネルの下に“普通に”置く */
  .open-badge{
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin-top: clamp(6px, 2vw, 10px);
    justify-self: center; /* 中央寄せ */
  }
}

/* === Mobile: バッジ下の余白を少しだけ詰める === */
@media (max-width: 820px){
  /* ヒーロー全体の下パディングを小さく */
  .hero{
    padding-bottom: clamp(6px, 1.6vw, 10px) !important; /* ← ここを下げるとさらに詰まる */
  }
  /* バッジ自身の余白をゼロ（親とのマージン合体を防ぐ） */
  .open-badge{
    margin-bottom: 0 !important;
  }
  /* フェード帯を少し短くして、緑の面積を減らす */
  .scrim{
    height: 36px; /* まだ広いなら 32px → 28px と下げてOK */
  }
}

.site-footer .bgm-credit{
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid var(--border);
  font-size:13px;
  line-height:1.7;
  color:var(--muted);
}
.site-footer .bgm-credit a{
  font-weight:700;
  text-decoration: underline;
  color: var(--brand);
}

/* ===== Footer center overrides (put this at the end of styles.css) ===== */
.site-footer .footer-grid{
  justify-content: center !important;  /* 子カラム全体を中央寄せ */
  align-items: center !important;      /* 交差軸も中央 */
}

/* フッターの1カラム内のテキスト要素は中央揃え */
.site-footer .footer-grid > div{
  text-align: center;
}

/* 店舗カード自体（ブロック）を中央に配置。中の文字は左寄せで可読性キープ */
.site-footer .store-card{
  margin: 10px auto;     /* 中央配置 */
  text-align: left;      /* 中の文章は左寄せのまま */
}

/* 著作権/BGM 表示を中央＆控えめに */
.site-footer .bgm-credit{
  margin: 12px auto 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  max-width: 900px;      /* 折り返し幅を制御 */
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.site-footer .bgm-credit a{
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
}

/* Cookie banner を最前面で必ず表示させる保険 */
#cookie-banner {
  position: fixed !important;
  inset: auto 12px 12px 12px !important; /* 画面最下部に戻す */
  z-index: 2147483647 !important;        /* 前面は維持 */
}

/* 共通レイアウト（リンクあり/なし両方に適用） */
.news-item .news-link,
.news-item .news-row{
  display: grid;
  grid-template-columns: 150px max-content 1fr; /* 日付 / タグ / タイトル */
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-decoration: none;
}


/* 色の差分だけ */
.news-item .news-row{  /* リンクなし＝黒 */
  color: var(--ink);
  cursor: default;
}
.news-item .news-link{ /* リンクあり＝緑 */
  color: var(--brand);
}
.news-item .news-link:hover{ text-decoration: underline; }

@media (max-width: 560px){
  .news-item .news-link,
  .news-item .news-row{
    grid-template-columns: 1fr; /* 縦積み */
    align-items: start;
  }
  .news-date{ order: 3; }
  .news-tag { order: 2; }
  .news-text{ order: 1; }
}
/* === Util-3 / Language をブランド緑に戻す（override） ================= */

/* アイコンは文字色に追随（開いたとき白になる） */
.util-3 .icon svg { fill: currentColor; }

/* ホバーはほんのり緑み */
.util-3 .util:hover{
  background: color-mix(in oklab, var(--brand) 14%, white 86%);
  color: #074c3c;
}

/* 開いているときは“緑の主ボタン”に */
.util-3 .util-lang[aria-expanded="true"]{
  /* 単色にしたいなら var(--brand) でもOK */
  background: linear-gradient(135deg, var(--brand), #2cae96);
  color: #fff;
  font-weight: 900;
  border-left-color: color-mix(in oklab, var(--brand) 40%, var(--border));
}

/* ドロップダウンの枠・地色も緑トーンへ */
.util-3.open{
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
  border-color: color-mix(in oklab, var(--brand) 35%, var(--border));
}
.lang-dd{
  margin: 0 0 12px;
  padding: 12px 16px;
  background: color-mix(in oklab, var(--brand) 10%, white 90%);
  border: 1px solid color-mix(in oklab, var(--brand) 40%, var(--border));
  border-top: 0;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}
.lang-dd[hidden]{ display:none; }
.lang-dd .lang-option{
  display:block; width:100%; padding:8px 0;
  background:transparent; border:0; text-align:left;
  font-size:18px; font-weight:800; letter-spacing:.02em;
  color:var(--ink); cursor:pointer;
}
.lang-dd .lang-option[aria-checked="true"]{
  color: var(--brand);
  text-decoration: underline;
}

/* === Language dropdown: 個別フォント/サイズ === */
.lang-dd .lang-option[data-lang="ja"]{
  /* 日本語側（例：Noto Sans JP 系） */
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  font-size: 14px;      /* お好みで 16–24px などに */
  font-weight: 800;     /* 太さも調整可 */
  line-height: 1.0;     /* 行間の微調整（任意） */
}

.lang-dd .lang-option[data-lang="en"]{
  /* 英語側（例：Inter 系） */
  font-family: 'Inter', 'Segoe UI', Roboto, system-ui, sans-serif;
  font-size: 14px;      /* お好みで */
  font-weight: 700;
  line-height: 1.0;
}

/* 選択中の強調（必要なら） */
.lang-dd .lang-option[aria-checked="true"]{
  text-decoration: underline;
  color: var(--brand);
}

/* Language 吹き出しの中に “A” を載せる */
.util-3 .util-lang .icon{ position:relative; width:28px; height:28px; }
.util-3 .util-lang .icon::after{
  content:"A";
  position:absolute; inset:0; display:grid; place-items:center;
  font-weight:900; font-size:14px; line-height:1;
  color: currentColor;                 /* 開くと白、通常は黒系に自動追随 */
}
/* 既に .util-3 .icon svg { fill: currentColor; } があるので色はOK */

/* Language ドロップダウンの上端が欠けて見える問題を解消 */
.util-3.open + .lang-dd{
  margin-top: -1px;  /* 隙間を1pxぶん引き上げて密着 */
  border-top: 1px solid color-mix(in oklab, var(--brand) 40%, var(--border));
  /* 角丸は下側だけでOK（現状どおり） */
}

/* 丸ボタン内でSVGも画像と同じ扱いに */
.contact-badge svg{ display:block; width:18px; height:18px; fill: currentColor; }


/* === Search dropdown (side menu) === */
.search-dd{
  margin: 0 0 12px;
  padding: 12px;
  background: color-mix(in oklab, var(--brand) 6%, white 94%);
  border: 1px solid color-mix(in oklab, var(--brand) 35%, var(--border));
  border-top: 0;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}
.search-row{ display:flex; gap:8px; }
.search-row input{
  flex:1; height:44px; padding:0 12px;
  border:1px solid var(--border); border-radius:10px; font-size:16px;
}
.search-results{
  list-style:none; margin:10px 0 0; padding:0;
  display:grid; gap:8px; max-height:44vh; overflow:auto;
}
.search-item .search-link{
  display:block; padding:10px 12px;
  border:1px solid var(--border); border-radius:10px;
  background: var(--panel); text-decoration:none; color:inherit;
}
.search-item .search-title{ font-weight:800; margin-bottom:2px; }
.search-item .search-snippet{ font-size:13px; color: var(--muted); }
.search-results .empty{ padding:8px; color: var(--muted); }

/* Screen-reader only (visually hidden) */
.sr-only{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

:root { --cookie-h: 96px; } /* バナーの高さ。後述JSで自動調整も可 */
.cookie-banner{ position: fixed; inset: auto 0 0 0; z-index: 9999; }

.cookie-open .side-menu { padding-bottom: calc(var(--cookie-h) + 16px); }
.cookie-open .main-content { padding-bottom: var(--cookie-h); } /* 本文が隠れるのも防止 */

/* 念のための当座しのぎ（重なり問題が残るとき） */
.side-menu .contact-rail { position: relative; z-index: 10000; }

/* === Method page: typographic tweaks (justify & bigger type) === */
#method-frag .doc p,
#method-frag .doc li{
  text-align: justify;               /* 両端ぞろえ */
  text-justify: inter-character;     /* 日本語向け：文字間を均等化 */
  text-align-last: start;            /* 最終行は左寄せ */
}

/* 本文＆箇条書きの文字サイズを一回りUP */
#method-frag .doc p{  font-size: clamp(17px, 1.8vw, 19px); }
#method-frag .doc li{ font-size: clamp(17px, 1.8vw, 19px); }

/* 見出しを一回りUP */
#method-frag .doc h2{ font-size: clamp(26px, 3.6vw, 34px); }
#method-frag .doc h3{ font-size: clamp(20px, 2.8vw, 26px); }

/* リード文（冒頭の説明）も少しだけ大きく */
#method-frag .lead{   font-size: clamp(18px, 2.0vw, 20px); }

/* 表・コールアウトなどは左揃えのままに（可読性配慮・任意） */
#method-frag .doc .table-nice th,
#method-frag .doc .table-nice td,
#method-frag .doc .callout p{ 
  text-align: left; 
  text-justify: auto; 
}

/* #アンカーで飛んだときにヘッダーで隠れないよう余白を確保 */
main#apps, section[id] { scroll-margin-top: 72px; }
@media (min-width:821px){
  main#apps, section[id] { scroll-margin-top: 88px; }
}

/* Search input: ほんの少しだけ余白を確保（アウトライン分） */
.search-dd .search-row input{
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 8px); /* ← 幅を8pxだけ小さく */
}
.search-dd .search-row input:focus{
  outline-offset: -2px;        /* ← フォーカス輪郭を内側へ */
}

/* Search dropdown: 「検索」ボタンを白文字＆文字間を少し詰める */
.search-dd .btn-primary{
  color: #fff !important;      /* 既定の #04281f を上書き */
  letter-spacing: -0.01em;     /* ほんの少しタイトに（お好みで -0.02em） */
}
.search-dd .btn-primary:hover,
.search-dd .btn-primary:focus{
  color: #fff !important;      /* ホバー/フォーカス時も白を維持 */
}

/* ===== 学習WebアプリのCTAと同じ見た目の全幅大ボタン ===== */
.btn-wide{
  width: 100%;
  min-height: 72px;
  border-radius: 16px;
  font-size: clamp(18px, 2.4vw, 28px);
}
@media (min-width: 560px){
  .btn-wide{ min-height: 76px; }
}

/* 1段目に最初のカードだけを残し、2枚目以降は次の段へ */
@media (min-width: 900px) {
  /* 1枚目=1列目・1行目に固定 */
  .apps .app-grid > .card:first-child {
    grid-column: 1 / 2;
    grid-row: 1;
  }
  /* 1行目の2列目～最後の列をダミーで埋める（擬似要素を使う） */
  .apps .app-grid::before {
    content: "";
    grid-column: 2 / -1;  /* 2列目～最終列 */
    grid-row: 1;          /* 1行目 */
  }
}
/* === Fix: News text sometimes becomes transparent due to -webkit-text-fill-color === */
.news, .news * { -webkit-text-fill-color: currentColor; }
