/* ============================================================
   components.css
   ------------------------------------------------------------
   ページを組み立てる部品の見た目。
     1) ボタン        2) ヘッダー／ナビ    3) ヒーロー
     4) 様式スイッチ  5) 導入企業ロゴ      6) 機能一覧
     7) ダウンロード  8) お問い合わせ      9) フッター
    10) 共有モーダル 11) トースト
   ============================================================ */

/* ============================================================
   1) ボタン
   ------------------------------------------------------------
   ホバーで大きさを変えない（周りの文字がずれて見えるため）。
   変えるのは色と影だけ。押した瞬間だけ1pxだけ沈ませる。
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px; /* 指で押せる最小サイズ */
  padding: 0 var(--sp-5);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--t-base) var(--ease-in-out),
    border-color var(--t-base) var(--ease-in-out),
    color var(--t-base) var(--ease-in-out),
    box-shadow var(--t-base) var(--ease-in-out),
    transform var(--t-fast) var(--ease-in-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

/* ---- 主役のボタン（ダウンロード） ---- */
.btn--primary {
  background: var(--c-accent);
  color: var(--c-on-accent);
  box-shadow: var(--sh-brand);
}

.btn--primary:hover {
  background: var(--c-accent-hover);
  box-shadow: 0 8px 22px rgba(26, 70, 97, 0.3), 0 2px 6px rgba(26, 70, 97, 0.2);
}

/* ---- 枠線だけのボタン ---- */
.btn--outline {
  background: var(--c-surface);
  color: var(--c-text);
  border-color: var(--c-line);
  box-shadow: var(--sh-xs);
}

.btn--outline:hover {
  border-color: var(--brand-300);
  color: var(--c-accent);
  background: var(--c-accent-soft);
}

/* ---- 地色のないボタン ---- */
.btn--ghost {
  color: var(--c-text-2);
}

.btn--ghost:hover {
  color: var(--c-accent);
  background: var(--c-accent-soft);
}

/* ---- 濃紺の上に置くボタン ---- */
.btn--on-dark {
  background: var(--white);
  color: var(--brand-900);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn--on-dark:hover {
  background: var(--brand-050);
  color: var(--brand-800);
}

.btn--outline-dark {
  background: transparent;
  color: var(--c-dark-text);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--outline-dark:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.07);
}

/* ---- 大きさ違い ---- */
.btn--sm {
  min-height: 38px;
  padding: 0 var(--sp-4);
  font-size: var(--fs-xs);
}

.btn--lg {
  min-height: 60px;
  padding: 0 var(--sp-10);
  font-size: 1.0625rem;
  gap: var(--sp-3);
}

.btn--lg .btn__icon {
  width: 20px;
  height: 20px;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* 文字リンク（矢印つき）。下線を右へ伸ばすだけの控えめな動き。 */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-accent);
  cursor: pointer;
}

.link-arrow svg {
  width: 14px;
  height: 14px;
  transition: transform var(--t-base) var(--ease-out);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ============================================================
   2) ヘッダー／ナビゲーション
   ------------------------------------------------------------
   ・左：アプリ名　・中央：ページ内リンク　・右：シェア／ダウンロード
   ・スクロールすると背景をすりガラスにして境界を出す
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-base) var(--ease-in-out),
    border-color var(--t-base) var(--ease-in-out),
    backdrop-filter var(--t-base) var(--ease-in-out);
}

.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--c-line);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- 左：アプリ名 ---- */
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  flex: 0 0 auto;
  margin-right: auto;
  cursor: pointer;
}

/* 製品アイコン（assets/img/icon-512.png）。
   角丸はPNG側に入っているので、CSSでは丸めない（二重丸めになるため）。
   小さく出すので、srcset で 192px 版が選ばれるようにしてある。
   ※アプリ再現エリアのマーク（.mock__mark）は、本製品と同じ形にしたいので
     こちらではなく埋め込みSVG（#ks-mark）のまま。 */
.brand-mark {
  --mark-h: 28px;
  width: var(--mark-h);
  height: var(--mark-h);
  flex: 0 0 auto;
  object-fit: contain;
}

.nav__brand-name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-text);
  line-height: 1;
}

.nav__brand-name em {
  font-style: normal;
  color: var(--c-accent);
}

/* ---- 中央：ページ内リンク ---- */
.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text-2);
  cursor: pointer;
  transition: color var(--t-base) var(--ease-in-out),
    background-color var(--t-base) var(--ease-in-out);
}

.nav__link:hover {
  color: var(--c-accent);
  background: var(--c-accent-soft);
}

/* いま見ているセクションの印。下に短い線を出す。 */
.nav__link.is-current {
  color: var(--c-accent);
}

.nav__link.is-current::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-accent);
  transform: translateX(-50%);
}

.nav__link svg {
  width: 12px;
  height: 12px;
  opacity: 0.55;
}

/* ---- 右：シェア／ダウンロード ---- */
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: 0 0 auto;
}

/* 広い画面用のボタン2つ。display:contents なので、この span 自体は
   場所を取らず、中のボタンが .nav__actions の直接の子として並ぶ。
   狭い画面ではこの span ごと消す（下のメディアクエリ）。 */
.nav__actions-desktop {
  display: contents;
}

/* ---- モバイル用のメニューボタン ---- */
.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  color: var(--c-text);
}

.nav__toggle:hover {
  background: var(--c-bg-muted);
}

.nav__toggle-bars {
  position: relative;
  width: 20px;
  height: 14px;
}

.nav__toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--t-base) var(--ease-out),
    opacity var(--t-fast) linear;
}

.nav__toggle-bars span:nth-child(1) {
  top: 0;
}
.nav__toggle-bars span:nth-child(2) {
  top: 6px;
}
.nav__toggle-bars span:nth-child(3) {
  top: 12px;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---- モバイルで開くパネル ---- */
.nav__panel {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: var(--sp-4) var(--gutter) var(--sp-8);
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--c-line);
  box-shadow: var(--sh-lg);
  display: none;
  flex-direction: column;
  gap: var(--sp-2);
}

.nav__panel.is-open {
  display: flex;
  animation: navPanelIn var(--t-base) var(--ease-out);
}

@keyframes navPanelIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.nav__panel a.nav__link {
  height: 50px;
  justify-content: flex-start;
  font-size: 1rem;
  border-radius: var(--r-md);
}

.nav__panel-actions {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.nav__panel-actions .btn {
  flex: 1;
}

@media (max-width: 1080px) {
  .nav__menu,
  .nav__actions-desktop {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
  }
}

@media (min-width: 1081px) {
  .nav__panel {
    display: none !important;
  }
}

/* ============================================================
   3) ヒーロー（キャッチコピー）
   ============================================================ */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 6.5rem));
  padding-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
  text-align: center;
  overflow: hidden;
}

/* 背景。うっすらとブランド色を落とした光と、細い方眼。
   画像を使わずCSSだけで描いているので読み込みが増えない。 */
.hero__bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
      60% 50% at 50% 0%,
      rgba(26, 70, 97, 0.09) 0%,
      rgba(26, 70, 97, 0) 70%
    ),
    radial-gradient(
      40% 40% at 85% 20%,
      rgba(26, 70, 97, 0.06) 0%,
      rgba(26, 70, 97, 0) 70%
    );
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(
      to right,
      rgba(26, 70, 97, 0.055) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(26, 70, 97, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  /* 上下を溶かして境目を消す */
  -webkit-mask-image: radial-gradient(
    75% 60% at 50% 30%,
    #000 0%,
    transparent 100%
  );
  mask-image: radial-gradient(75% 60% at 50% 30%, #000 0%, transparent 100%);
}

/* 「アルファ版公開中」の小さなバッジ */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: 34px;
  padding: 0 var(--sp-4) 0 var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-text-2);
  margin-bottom: var(--sp-8);
}

.hero__badge b {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}

/* ---- キャッチコピー本体 ----
   版面（1180px）ではなく画面幅いっぱいを使うため、.container の外に出して
   専用の枠に入れてある。文字サイズは JS（main.js の fitHeroTitle）が
   「必ず1行に収まる大きさ」を測って --hero-title-size に入れる。
   JSが動かない環境向けに、min() の既定値を入れてある。 */
.hero__headline {
  width: 100%;
  padding-inline: var(--gutter);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--hero-title-size, min(7vw, 6.5rem));
  line-height: 1.28;
  letter-spacing: var(--ls-display);
  color: var(--c-text);
  margin: 0;
  /* 1行に収める。狭い画面だけ JS が .is-wrapped を付けて2行にする。 */
  white-space: nowrap;
  /* 明朝の縦画・横画のコントラストを潰さないため、
     太らせず素のままの字面で見せる */
  text-indent: var(--ls-display); /* 字間ぶんの右寄りを打ち消す */
}

/* 1行だと小さくなりすぎる画面では、2行に分けて読みやすさを優先する。
   text-wrap: balance で「9文字＋1文字」のような偏った折り返しを防ぐ。 */
.hero__title.is-wrapped {
  white-space: normal;
  text-wrap: balance;
  word-break: auto-phrase;
}

/* 1文字ずつ出す演出のための単位。JS（main.js）が分割して入れる。 */
.hero__title .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.34em);
  animation: chIn 900ms var(--ease-out) forwards;
  animation-delay: var(--ch-delay, 0ms);
}

@keyframes chIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.no-js .hero__title .ch,
.hero__title.is-static .ch {
  opacity: 1;
  transform: none;
  animation: none;
}

/* ============================================================
   ヒーローの製品ロゴ
   ------------------------------------------------------------
   キャッチコピーとリード文のあいだに置く、アイコン＋文字の組み。
   アイコンがふわりと立ち上がったあと、文字が1つずつ現れる。
   出はじめの時刻は JS（main.js）が --logo-delay / --ch-delay に入れる。
   ============================================================ */
.hero__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.62em;
  margin-top: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  font-size: clamp(1.05rem, 0.85rem + 0.9vw, 1.55rem);
  line-height: 1;
}

.hero__logo-mark {
  width: 2.55em;
  height: 2.55em;
  flex: 0 0 auto;
  object-fit: contain;
  /* 白地から浮かせる。角丸はPNG側に入っているので丸めない。 */
  filter: drop-shadow(0 6px 16px rgba(11, 23, 31, 0.22))
    drop-shadow(0 1px 2px rgba(11, 23, 31, 0.14));
  opacity: 0;
  transform: scale(0.78) rotate(-8deg);
  animation: heroLogoMarkIn 900ms var(--ease-spring) forwards;
  animation-delay: var(--logo-delay, 900ms);
}

@keyframes heroLogoMarkIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__logo-text {
  font-size: 1.5em;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--c-text);
  white-space: nowrap;
  /* 字間ぶんの右寄りを打ち消す */
  margin-right: -0.13em;
}

.hero__logo-text em {
  font-style: normal;
  color: var(--c-accent);
}

/* 1文字ずつ、ぼやけた状態から下から立ち上がって焦点が合う */
.hero__logo-text .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.42em);
  filter: blur(7px);
  animation: heroLogoCharIn 760ms var(--ease-out) forwards;
  animation-delay: var(--ch-delay, 0ms);
}

@keyframes heroLogoCharIn {
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

/* JSが動かない環境・動きを減らす設定では、最初から出しておく */
.no-js .hero__logo-mark,
.no-js .hero__logo-text .ch,
.hero__logo.is-static .hero__logo-mark,
.hero__logo.is-static .ch {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
}

@media (max-width: 480px) {
  .hero__logo {
    gap: 0.5em;
  }
  .hero__logo-mark {
    width: 2.2em;
    height: 2.2em;
  }
}

.hero__lead {
  word-break: auto-phrase;
  line-break: strict;
  max-width: 640px;
  margin: var(--sp-8) auto 0;
  font-size: var(--fs-lead);
  color: var(--c-text-2);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-10);
}

.hero__note {
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--c-text-faint);
}

/* ============================================================
   4) 様式スイッチ（iPhone風トグル）
   ------------------------------------------------------------
   左＝ハリウッド式 ／ 右＝日本式。
   ・クリック、ドラッグ、キーボード（←→）で動かせる
   ・つまみは transform だけで動かす
   ============================================================ */
.switch-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.switch-block__hint {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--c-text-3);
}

.switch-block__hint svg {
  width: 15px;
  height: 15px;
  color: var(--c-accent);
}

.format-switch {
  --sw-pad: 5px;
  --sw-h: 60px;
  --sw-w: 384px;
  position: relative;
  width: var(--sw-w);
  max-width: 100%;
  height: var(--sw-h);
  padding: var(--sw-pad);
  border-radius: var(--r-pill);
  background: var(--ink-100);
  border: 1px solid var(--c-line);
  box-shadow: inset 0 2px 5px rgba(11, 23, 31, 0.07);
  cursor: pointer;
  touch-action: pan-y; /* 横のドラッグはこちらで受け取る */
  -webkit-user-select: none;
  user-select: none;
  transition: background-color var(--t-base) var(--ease-in-out);
}

.format-switch:hover {
  background: var(--ink-200);
}

/* 白いつまみ。左半分ぶんの幅を持ち、右へ100%移動する。 */
.format-switch__thumb {
  position: absolute;
  top: var(--sw-pad);
  left: var(--sw-pad);
  width: calc((100% - var(--sw-pad) * 2) / 2);
  height: calc(100% - var(--sw-pad) * 2);
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: 0 1px 1px rgba(11, 23, 31, 0.06), 0 3px 10px rgba(11, 23, 31, 0.14);
  transform: translateX(var(--thumb-x, 0%));
  transition: transform var(--t-slow) var(--ease-spring);
}

/* ドラッグ中はアニメーションを切って指に追従させる */
.format-switch.is-dragging .format-switch__thumb {
  transition: none;
}

.format-switch__options {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  pointer-events: none;
}

.format-switch__option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  line-height: 1.25;
  color: var(--c-text-3);
  transition: color var(--t-base) var(--ease-in-out);
}

.format-switch__option b {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.format-switch__option span {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

.format-switch[aria-checked="false"] .format-switch__option:first-child,
.format-switch[aria-checked="true"] .format-switch__option:last-child {
  color: var(--c-accent);
}

@media (max-width: 520px) {
  .format-switch {
    --sw-w: 100%;
    --sw-h: 56px;
  }
}

/* ============================================================
   5) 導入企業ロゴ（差し替え待ちの枠）
   ============================================================ */
.logos {
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
  border-top: 1px solid var(--c-line-soft);
  border-bottom: 1px solid var(--c-line-soft);
  background: var(--c-bg-soft);
}

.logos__label {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  color: var(--c-text-3);
  margin-bottom: var(--sp-8);
}

/* ---- 並べ方（既定）----
   社数が少ないうちは、動かさずに中央へ並べるだけにする。 */
.logos__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
}

/* ---- 並べ方（社数が増えたとき）----
   横に流したくなったら、HTML側を
     <div class="logos__marquee"><div class="logos__track"> …2組ぶん… </div></div>
   の形にする（作り方は assets/img/logos/README.md 参照）。
   同じ並びを2組置いて、半分ぶん動かして繰り返す仕組み。 */
.logos__marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}

.logos__track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  width: max-content;
  animation: logoScroll 38s linear infinite;
}

.logos__marquee:hover .logos__track {
  animation-play-state: paused;
}

@keyframes logoScroll {
  to {
    transform: translateX(-50%);
  }
}

.logo-slot {
  flex: 0 0 auto;
  width: 200px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  /* 差し替え前の状態が分かるよう、破線の枠にしておく。
     img を入れると .logo-slot--filled を付けて枠を消す。 */
  border: 1px dashed var(--c-line);
  background: var(--white);
  color: var(--c-text-faint);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: var(--ls-label);
  transition: border-color var(--t-base), color var(--t-base);
}

.logo-slot:hover {
  border-color: var(--brand-300);
  color: var(--c-accent);
}

.logo-slot img {
  max-width: 78%;
  max-height: 60%;
  object-fit: contain;
  /* 実ロゴは無彩色に統一しておき、ホバーで元の色に戻す */
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter var(--t-base), opacity var(--t-base);
}

.logo-slot:hover img {
  filter: none;
  opacity: 1;
}

.logo-slot--filled {
  border-style: solid;
  border-color: var(--c-line-soft);
}

/* ============================================================
   6) 機能一覧
   ------------------------------------------------------------
   ベントーグリッド。暗号化のカードだけ濃紺・2列ぶんで強調する。
   ============================================================ */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 0.6rem + 1.2vw, 1.5rem);
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-xs);
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease-in-out),
    box-shadow var(--t-base) var(--ease-in-out),
    background-color var(--t-base) var(--ease-in-out);
}

.feature-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--sh-md);
}

.feature-card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--c-accent-soft);
  color: var(--c-accent);
  margin-bottom: var(--sp-5);
  flex: 0 0 auto;
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: var(--lh-heading);
  letter-spacing: 0.02em;
  color: var(--c-text);
  word-break: auto-phrase;
  line-break: strict;
}

.feature-card__body {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  line-height: 1.85;
  text-wrap: pretty;
}

.feature-card__meta {
  margin-top: auto;
  padding-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-sm);
  background: var(--c-bg-muted);
  color: var(--c-text-3);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---- 強調カード（暗号化） ---- */
.feature-card--hero {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--c-dark-bg);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--c-dark-text);
  padding: clamp(1.75rem, 1.1rem + 2vw, 3rem);
}

.feature-card--hero:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--sh-xl);
}

.feature-card--hero .feature-card__icon {
  background: rgba(255, 255, 255, 0.09);
  color: var(--brand-200);
  width: 54px;
  height: 54px;
}

.feature-card--hero .feature-card__icon svg {
  width: 28px;
  height: 28px;
}

.feature-card--hero .feature-card__title {
  color: var(--white);
  font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.feature-card--hero .feature-card__body {
  color: var(--c-dark-text-2);
  font-size: var(--fs-body);
  max-width: 56ch;
}

.feature-card--hero .tag {
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand-200);
}

/* 強調カードの背景に置く光 */
.feature-card--hero::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% 30%;
  height: 120%;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(63, 127, 163, 0.28) 0%,
    rgba(63, 127, 163, 0) 70%
  );
  pointer-events: none;
}

/* ---- 暗号化の見せ方（平文 → 暗号文） ----
   JS（main.js）が data-cipher の文字を少しずつ置き換える。 */
.cipher {
  position: relative;
  margin-top: var(--sp-8);
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.cipher__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  height: 34px;
  padding-inline: var(--sp-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--c-dark-text-3);
}

.cipher__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-400);
  flex: 0 0 auto;
  animation: cipherPulse 2.4s var(--ease-in-out) infinite;
}

@keyframes cipherPulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.cipher__body {
  padding: var(--sp-4);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--brand-200);
  word-break: break-all;
  min-height: 6.8em;
}

.cipher__body .is-plain {
  color: var(--c-dark-text);
}

/* ---- レスポンシブ ---- */
@media (max-width: 980px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card--hero {
    grid-column: span 2;
    grid-row: auto;
  }
}

@media (max-width: 600px) {
  .features__grid {
    grid-template-columns: 1fr;
  }

  .feature-card--hero {
    grid-column: span 1;
  }
}

/* ============================================================
   7) ダウンロード
   ============================================================ */
.download {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      60% 60% at 50% 0%,
      rgba(63, 127, 163, 0.3) 0%,
      rgba(63, 127, 163, 0) 70%
    ),
    radial-gradient(
      50% 50% at 80% 100%,
      rgba(26, 70, 97, 0.55) 0%,
      rgba(26, 70, 97, 0) 70%
    );
}

.download__inner {
  position: relative;
}

.download__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.75rem);
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--white);
  word-break: auto-phrase;
  line-break: strict;
}

.download__lead {
  max-width: 620px;
  margin: var(--sp-6) auto 0;
  color: var(--c-dark-text-2);
  font-size: var(--fs-lead);
}

.download__cta {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

/* OSごとのボタンを横に並べる。狭い画面では縦に積む。
   ★width:100% が要る。折り返しありのflexは、幅を指定しないと
     「いちばん広い項目ぶん」しか場所を取らず、2つ目が下へ回ってしまう。 */
.dl-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: var(--sp-4);
  width: 100%;
}

/* 2つのボタンは同じ幅に揃える。中身は左寄せにして、
   アイコンの位置が縦に揃うようにする。 */
.dl-grid .dl-button {
  flex: 1 1 300px;
  max-width: 440px;
  justify-content: flex-start;
}

/* バージョン・形式・容量は1行に収める */
.dl-grid .dl-button__sub {
  white-space: nowrap;
}

/* ダウンロードボタン本体。ラベル2段。 */
.dl-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  min-height: 76px;
  min-width: min(320px, 100%);
  padding: 0 clamp(1.75rem, 1rem + 2.5vw, 2.75rem);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--brand-900);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out),
    background-color var(--t-base) var(--ease-out);
  cursor: pointer;
}

.dl-button:hover {
  background: var(--brand-050);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.42), 0 3px 8px rgba(0, 0, 0, 0.3);
}

.dl-button:active {
  transform: translateY(2px);
}

.dl-button__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--white);
}

.dl-button__icon svg {
  width: 22px;
  height: 22px;
}

/* 矢印が下へ落ちて戻る、ごく短い繰り返し */
.dl-button:hover .dl-button__icon svg {
  animation: dlBounce 900ms var(--ease-in-out) infinite;
}

@keyframes dlBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(3px);
  }
}

.dl-button__text {
  text-align: left;
  line-height: 1.35;
}

.dl-button__main {
  display: block;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dl-button__sub {
  display: block;
  font-size: var(--fs-xs);
  color: var(--c-text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ============================================================
   まだ配布していないOSのボタン（準備中）
   ------------------------------------------------------------
   ・彩度を落として、押せる白いボタンとはっきり区別する
   ・pointer-events: none で実際に押せなくする
   ・aria-disabled と tabindex="-1" で、キーボード操作でも
     たどり着かないようにする（HTMLは download.js が付ける）
   ============================================================ */
.dl-button--soon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--c-dark-text-3);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.dl-button--soon:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.dl-button--soon .dl-button__icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-dark-text-3);
}

.dl-button--soon .dl-button__main,
.dl-button--soon .dl-button__sub {
  color: var(--c-dark-text-3);
}

/* 右上に小さく「準備中」 */
.dl-button__badge {
  position: absolute;
  top: -9px;
  right: var(--sp-6);
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--c-dark-bg);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--c-dark-text-2);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* 押せるボタンには出さない */
.dl-button:not(.dl-button--soon) .dl-button__badge {
  display: none;
}

/* もう一方のOSについての補足 */
.download__alt {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sp-2) var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--c-dark-text-3);
}

.download__alt a {
  color: var(--brand-200);
  font-weight: 600;
  border-bottom: 1px solid rgba(181, 208, 224, 0.35);
  transition: color var(--t-base), border-color var(--t-base);
  cursor: pointer;
}

.download__alt a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* ============================================================
   よくあるご質問
   ------------------------------------------------------------
   <details> をそのまま使う。開閉にJavaScriptは要らず、
   閉じていても中身は読み取られるので、検索でも不利にならない。
   ============================================================ */

.faq__list {
  max-width: 780px;
  margin: clamp(2rem, 1rem + 3vw, 3rem) auto 0;
  border-top: 1px solid var(--c-line);
}

.faq__item {
  border-bottom: 1px solid var(--c-line);
}

.faq__q {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-8) var(--sp-5) 0;
  position: relative;
  font-weight: 700;
  color: var(--c-text);
  cursor: pointer;
  list-style: none;
  line-height: 1.7;
}

/* 標準の三角を消す */
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }

/* 右端の＋。開くと×にならず、横棒だけになる */
.faq__q::after {
  content: "";
  position: absolute;
  inset-inline-end: var(--sp-2);
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -6px;
  background:
    linear-gradient(var(--brand-600), var(--brand-600)) center/13px 1.5px no-repeat,
    linear-gradient(var(--brand-600), var(--brand-600)) center/1.5px 13px no-repeat;
  transition: transform var(--t-base), background-size var(--t-base);
}

.faq__item[open] .faq__q::after {
  background:
    linear-gradient(var(--brand-600), var(--brand-600)) center/13px 1.5px no-repeat;
  transform: rotate(180deg);
}

.faq__q:hover { color: var(--brand-700); }

.faq__q:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.faq__a {
  padding: 0 var(--sp-8) var(--sp-6) 0;
  color: var(--c-text-2);
  line-height: 1.95;
}

.faq__a p { margin: 0; }

.faq__more {
  margin: var(--sp-8) auto 0;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--c-text-3);
}

.faq__more a {
  color: var(--brand-700);
  font-weight: 600;
  border-bottom: 1px solid var(--brand-200);
}

.faq__more a:hover { border-bottom-color: var(--brand-700); }

@media (prefers-reduced-motion: reduce) {
  .faq__q::after { transition: none; }
}

/* ---- アルファ版の注釈 ---- */
.alpha-note {
  max-width: 660px;
  margin: clamp(2.5rem, 1.5rem + 3vw, 3.5rem) auto 0;
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid rgba(240, 223, 176, 0.28);
  background: rgba(240, 223, 176, 0.07);
  text-align: left;
  display: flex;
  gap: var(--sp-4);
}

.alpha-note__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: #e8c46a;
  margin-top: 2px;
}

.alpha-note__title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #f0d99a;
  letter-spacing: 0.04em;
}

.alpha-note__body {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  line-height: 1.85;
  color: var(--c-dark-text-2);
}

/* 注釈のなかで、試用期間だけは読み飛ばされないよう一段明るくする */
.alpha-note__body strong {
  color: #f0d99a;
  font-weight: 700;
}

.alpha-note__body a {
  color: var(--brand-200);
  border-bottom: 1px solid rgba(181, 208, 224, 0.4);
}

.alpha-note__body a:hover {
  color: var(--white);
}

/* 動作環境の一覧 */
.specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2) var(--sp-8);
  margin-top: var(--sp-8);
  font-size: var(--fs-xs);
  color: var(--c-dark-text-3);
}

.specs div {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.specs svg {
  width: 14px;
  height: 14px;
  color: var(--brand-300);
  flex: 0 0 auto;
}

/* まだ配布していないOSの行は、彩度を落として区別する */
.specs .is-pending {
  opacity: 0.6;
}

.specs .is-pending svg {
  color: var(--c-dark-text-3);
}

.specs .is-pending b {
  margin-left: 2px;
  padding: 1px 6px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ============================================================
   8) お問い合わせフォーム
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}

.contact__aside dl {
  margin-top: var(--sp-8);
  display: grid;
  gap: var(--sp-5);
}

.contact__aside dt {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  color: var(--c-text-3);
  text-transform: uppercase;
}

.contact__aside dd {
  margin-top: var(--sp-1);
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  line-height: 1.8;
}

.form {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-md);
}

.form__row {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.form__row .field {
  margin-bottom: 0;
}

.field__label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text);
}

.field__req {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.field__req--optional {
  background: var(--c-bg-muted);
  color: var(--c-text-3);
}

.field__control {
  width: 100%;
  min-height: 48px;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  background: var(--c-bg-soft);
  font-size: var(--fs-body);
  line-height: 1.7;
  transition: border-color var(--t-base) var(--ease-in-out),
    box-shadow var(--t-base) var(--ease-in-out),
    background-color var(--t-base) var(--ease-in-out);
}

.field__control::placeholder {
  color: var(--c-text-faint);
}

.field__control:hover {
  border-color: var(--c-line);
  background: var(--white);
}

.field__control:focus {
  outline: none;
  background: var(--white);
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px var(--c-focus);
}

textarea.field__control {
  min-height: 148px;
  resize: vertical;
}

select.field__control {
  cursor: pointer;
  /* 標準の▼を消して自前の三角を置く */
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%234b545b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  background-size: 12px 8px;
  padding-right: var(--sp-10);
}

/* 入力エラー */
.field.is-error .field__control {
  border-color: var(--c-danger);
  background: #fdf6f5;
}

.field.is-error .field__control:focus {
  box-shadow: 0 0 0 4px rgba(179, 56, 43, 0.16);
}

.field__error {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--c-danger);
  font-weight: 600;
}

.field.is-error .field__error {
  display: flex;
}

.field__error svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

/* 同意チェック */
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  line-height: 1.7;
}

.check input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  border-radius: 5px;
  border: 1.5px solid var(--c-line);
  background: var(--c-bg-soft);
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}

.check input:checked {
  background: var(--c-accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5 6 11l5.5-7.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center / 13px;
  border-color: var(--c-accent);
}

.check input:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.check a {
  color: var(--c-accent);
  border-bottom: 1px solid var(--brand-200);
}

/* 送信ボタンまわり */
.form__submit {
  margin-top: var(--sp-6);
}

/* 送信中のぐるぐる */
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 送信結果の表示 */
.form__status {
  display: none;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  line-height: 1.75;
}

.form__status.is-visible {
  display: flex;
}

.form__status.is-ok {
  background: var(--c-accent-soft);
  border: 1px solid var(--brand-200);
  color: var(--brand-800);
}

.form__status.is-ng {
  background: #fdf6f5;
  border: 1px solid #eccbc6;
  color: #8c2b20;
}

.form__status svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
}

/* 迷惑メール対策のおとりの入力欄（人には見せない） */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   9) フッター
   ============================================================ */
.site-footer {
  background: var(--c-dark-bg);
  color: var(--c-dark-text-2);
  padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  font-size: var(--fs-sm);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  padding-bottom: clamp(2.5rem, 2rem + 3vw, 4rem);
}

.footer__brand .brand-mark {
  --mark-h: 32px;
  /* 濃紺の地に暗いアイコンが沈まないよう、ごく薄い縁を添える */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
  border-radius: 22%;
}

.footer__brand-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.footer__brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}

.footer__tagline {
  margin-top: var(--sp-5);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  letter-spacing: 0.08em;
  color: var(--brand-200);
  line-height: 1.8;
}

.footer__desc {
  margin-top: var(--sp-4);
  max-width: 34ch;
  line-height: 1.85;
  color: var(--c-dark-text-3);
  font-size: var(--fs-xs);
}

.footer__col h3 {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--sp-5);
}

.footer__col li + li {
  margin-top: var(--sp-3);
}

.footer__col a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-dark-text-2);
  transition: color var(--t-base) var(--ease-in-out);
  cursor: pointer;
}

.footer__col a:hover {
  color: var(--white);
}

.footer__col a svg {
  width: 11px;
  height: 11px;
  opacity: 0.5;
}

/* ---- 代表者の欄 ---- */
.rep {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem) 0;
  border-top: 1px solid var(--c-dark-line);
  border-bottom: 1px solid var(--c-dark-line);
  flex-wrap: wrap;
}

/* 顔写真の枠。img を入れたら .rep__photo--filled を付ける。 */
.rep__photo {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: var(--c-dark-text-3);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-align: center;
  overflow: hidden;
}

.rep__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rep__photo--filled {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.16);
}

.rep__body {
  flex: 1 1 260px;
}

.rep__role {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-dark-text-3);
}

.rep__name {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--white);
}

.rep__name small {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--c-dark-text-3);
  margin-top: 4px;
}

.rep__contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-6);
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
}

.rep__contact div {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--c-dark-text-2);
}

.rep__contact svg {
  width: 13px;
  height: 13px;
  color: var(--brand-300);
  flex: 0 0 auto;
}

.rep__social {
  display: flex;
  gap: var(--sp-2);
  margin-left: auto;
}

.rep__social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--c-dark-line);
  color: var(--c-dark-text-2);
  transition: background-color var(--t-base), color var(--t-base),
    border-color var(--t-base);
  cursor: pointer;
}

.rep__social a:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.rep__social svg {
  width: 16px;
  height: 16px;
}

/* ---- コピーライト ---- */
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-6);
  font-size: var(--fs-xs);
  color: var(--c-dark-text-3);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
}

.footer__legal a:hover {
  color: var(--white);
}

.footer__copy {
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    grid-column: span 1;
  }

  .rep__social {
    margin-left: 0;
    width: 100%;
  }
}

/* ============================================================
   10) 共有モーダル
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 30, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fadeIn var(--t-base) var(--ease-out);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - var(--gutter) * 2);
  overflow-y: auto;
  padding: clamp(1.5rem, 1rem + 2vw, 2rem);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: var(--sh-xl);
  animation: modalIn var(--t-slow) var(--ease-out);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.modal__title {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.modal__sub {
  margin-top: var(--sp-1);
  font-size: var(--fs-xs);
  color: var(--c-text-3);
}

.modal__close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--c-text-3);
  transition: background-color var(--t-base), color var(--t-base);
}

.modal__close:hover {
  background: var(--c-bg-muted);
  color: var(--c-text);
}

.modal__close svg {
  width: 18px;
  height: 18px;
}

/* ---- 共有先のボタン ---- */
.share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

@media (max-width: 420px) {
  .share-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.share-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-1);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line-soft);
  background: var(--c-bg-soft);
  color: var(--c-text-2);
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--t-base) var(--ease-out),
    border-color var(--t-base), background-color var(--t-base),
    color var(--t-base), box-shadow var(--t-base);
}

.share-item:hover {
  background: var(--white);
  border-color: var(--c-line);
  color: var(--c-text);
  box-shadow: var(--sh-sm);
}

.share-item__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  /* 各サービスの色は HTML 側で --tint を指定する */
  background: var(--tint, var(--c-accent));
  color: var(--white);
  transition: transform var(--t-base) var(--ease-spring);
}

.share-item:hover .share-item__icon {
  transform: translateY(-2px);
}

.share-item__icon svg {
  width: 20px;
  height: 20px;
}

/* ---- URLコピー欄 ---- */
.share-url {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  background: var(--c-bg-soft);
}

.share-url input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  color: var(--c-text-2);
  text-overflow: ellipsis;
}

.share-url input:focus {
  outline: none;
}

.share-note {
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--c-text-faint);
  line-height: 1.7;
}

/* ============================================================
   11) トースト（コピー完了などの短い通知）
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-pill);
  background: var(--ink-900);
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: var(--sh-lg);
  transform: translate(-50%, 120%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-slow) var(--ease-spring),
    opacity var(--t-base) var(--ease-out);
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast svg {
  width: 16px;
  height: 16px;
  color: var(--brand-300);
}
