/* ========================================
   トップページ専用スタイル（home.css）
   ROM/DESIGN.md（CITIZEN Watch デザインシステム）準拠。
   クリーン／フラット・ダークネイビーアクセント・Poppins+Noto Sans JP・palt グローバル適用。
   ======================================== */
:root {
  /* Brand / CTA */
  --navy: #27455c;          /* ブランドアクセント（Dark Navy） */
  --navy-deep: #041e41;     /* 最深ネイビー */
  --ink: #222222;           /* CTA / 近黒 */
  --accent-blue: #3860be;   /* フィルター／アクセント青 */
  --pink: #fbebee;          /* プロモーション淡ピンク */
  /* Text */
  --text: #000000;          /* 見出し・強調 */
  --text-body: #444444;     /* 本文 */
  --text-nav: #292c2d;      /* ナビ・操作要素 */
  --muted: #a6acb1;         /* 価格・ミュート */
  /* Neutral surfaces */
  --bg: #ffffff;            /* ページ背景 */
  --surface: #f9f9f9;       /* セクション・カード面 */
  --divider: #e5e5e5;       /* 区切り線 */
  --border: #707070;        /* 入力・セカンダリ枠 */
  --footer-bg: #000000;     /* フッター（純黒） */
  --footer-muted: #d2d2d2;  /* フッター薄テキスト */
  /* Radius（CTA=2px / その他=3px。pill は使わない） */
  --radius-cta: 2px;
  --radius-sm: 3px;
  /* Font */
  --font: "Poppins", "Noto Sans JP", sans-serif;
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  margin: 0;
  font-family: var(--font);
  font-feature-settings: "palt" 1;   /* シチズン最大の組版特徴：palt をグローバル適用 */
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-body);
  background: var(--bg);
  word-break: break-all;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========================================
   ヒーロー（全幅・横FITバナー）
   ======================================== */
.hero {
  width: 100%;
  background: var(--surface);
  text-align: center;
  border-bottom: 1px solid var(--divider);
}

/* 横幅にFIT（全体表示・トリミングなし）。ネイティブ幅(2048px)を超える拡大は抑える */
.hero__art {
  display: block;
  width: 100%;
  max-width: 2048px;
  height: auto;
  margin: 0 auto;
}

.hero__caption {
  padding: 24px 20px;
  background: var(--bg);
}

.hero__title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}

.hero__title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 12px auto 0;
  background: var(--navy);
}

.hero__subtitle {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ========================================
   本文レイアウト
   ======================================== */
.home__body {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 24px 8px;
}

.section {
  margin-bottom: 48px;
}

.section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.section__title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--navy);
}

.section__title-icon {
  font-size: 18px;
  line-height: 1;
}

/* ========================================
   更新履歴
   ======================================== */
.changelog {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
}

.changelog__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.changelog__item {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--divider);
}

.changelog__item:last-child {
  border-bottom: none;
}

.changelog__date {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-nav);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.changelog__tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-cta);
  color: #fff;
  white-space: nowrap;
}

.changelog__tag--new { background: var(--navy); }
.changelog__tag--update { background: var(--accent-blue); }
.changelog__tag--fix { background: var(--text-nav); }

.changelog__text {
  flex: 1 1 220px;
  font-size: 14px;
  color: var(--text-body);
}

/* ========================================
   ツールカードグリッド（フラット・ボーダーのみ）
   ======================================== */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.tool-card:hover {
  border-color: var(--navy);
  background: var(--surface);
}

.tool-card__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 20px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

/* 画像アイコン：枠・背景なしで画像をそのまま大きく表示 */
.tool-card__icon--img {
  background: none;
  border: none;
}

.tool-card__icon--img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tool-card__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tool-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.tool-card__desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.tool-card__arrow {
  flex: 0 0 auto;
  margin-left: 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  transition: transform 0.15s ease;
}

.tool-card:hover .tool-card__arrow {
  transform: translateX(2px);
}

/* ========================================
   その他の個別計算機（折りたたみ）
   ======================================== */
.more {
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.more__summary {
  cursor: pointer;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.more__summary::-webkit-details-marker {
  display: none;
}

.more__summary::before {
  content: "+";
  color: var(--navy);
  font-weight: 700;
}

.more[open] .more__summary::before {
  content: "\2212"; /* − */
}

.more__list {
  list-style: none;
  margin: 0;
  padding: 0 10px 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px 10px;
}

.more__list a {
  display: block;
  padding: 11px 12px;
  font-size: 14px;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.more__list a:hover {
  background: var(--surface);
  color: var(--navy);
}

/* ========================================
   フッター（純黒）
   ======================================== */
.home-footer {
  text-align: center;
  padding: 28px 16px;
  font-size: 12px;
  color: var(--footer-muted);
  background: var(--footer-bg);
  margin-top: 16px;
}

.home-footer p {
  margin: 4px 0;
}

.home-footer__copy {
  font-size: 11px;
  color: var(--footer-muted);
  line-height: 1.6;
}

.home-footer__note {
  font-size: 12px;
  color: #fff;
  margin-top: 14px;
}

.home-footer__contact {
  font-size: 13px;
  font-weight: 600;
}

.home-footer a {
  color: #fff;
}

.home-footer a:hover {
  text-decoration: underline;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 767px) {
  .home__body {
    padding: 32px 16px 8px;
  }
  .section {
    margin-bottom: 36px;
  }
  .hero__caption {
    padding: 18px 16px;
  }
  .hero__title {
    font-size: 20px;
  }
  .section__title {
    font-size: 18px;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .more__list {
    grid-template-columns: 1fr;
  }
}

/* モーション抑制設定への配慮 */
@media (prefers-reduced-motion: reduce) {
  .tool-card,
  .tool-card__arrow {
    transition: none;
  }
}
