/* GRITASとは(gritas.html)・共通アカウント(account.html)だけのスタイル。
   色・文字・角丸・ボタンは site.css のトークンと部品をそのまま使い、ここではページ固有の配置だけを持つ。 */

/* ---------- 共通 ---------- */
.sub-lead { margin-top: 24px; max-width: 38em; color: #1b2f45; }
.sub-block { margin-top: clamp(64px, 8vw, 104px); }
.sub-block__title { font-size: var(--t-xl); font-weight: 400; line-height: 1.45; }
.sub-block__lead { margin-top: 16px; max-width: 40em; color: #2a3e54; }
.sub-tag {
  display: inline-block; padding: 1px 10px; border-radius: 999px; border: 1px solid currentColor;
  font-size: 11px; line-height: 1.8; font-weight: 500; vertical-align: .15em;
}

/* いまの状況(開発中・準備中を必ず見える位置に出す) */
.sub-status { margin: 32px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.sub-status > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line-light); }
.sub-status dt { font-size: var(--t-s); color: var(--ink-soft); }
.sub-status dd { margin: 0; font-size: var(--t-s); }
.sub-status dd b { font-weight: 600; margin-right: 8px; }

.sub-more { margin-top: 18px; font-size: var(--t-s); }
.sub-more a { color: var(--navy); text-underline-offset: 4px; }

/* ---------- GRITASとは ---------- */
.gt .page__title { font-size: clamp(1.9rem, 4vw, 2.85rem); }
.gt-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, 200px); gap: clamp(24px, 5vw, 64px); align-items: start; }
.gt-intro__logo { width: 100%; height: auto; max-width: 200px; margin-top: 12px; }

/* 5分類 */
.gt-cats { margin-top: 28px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.gt-cats li { padding: 16px 16px 18px; border-top: 3px solid var(--current); background: rgba(255, 255, 255, .55); }
.gt-cats b { display: block; font-weight: 600; font-size: var(--t-s); line-height: 1.5; }
.gt-cats span { font-family: var(--f-lat); font-size: 1.5rem; font-weight: 300; line-height: 1.3; color: var(--current); }
.gt-cats small { margin-left: 4px; font-family: var(--f-jp); font-size: var(--t-xs); color: var(--ink-soft); }
.gt-cats__note { margin-top: 14px; font-size: var(--t-xs); color: var(--ink-soft); line-height: 1.8; }

/* 1つのアカウントで複数の製品を使う仕組み(図) */
.gt-map {
  --bus: 22px; --gap: 14px;
  margin: 32px 0 0; padding: clamp(20px, 3.5vw, 40px); border-radius: var(--radius-m);
  background: rgba(255, 255, 255, .6); border: 1px solid var(--line-light);
}
.gt-map__core { padding: clamp(18px, 2.6vw, 28px); border-radius: var(--radius-m); background: var(--abyss); color: var(--on-dark); }
.gt-map__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-weight: 500; }
.gt-map__label small { font-size: var(--t-xs); color: var(--on-dark-soft); font-weight: 400; }
.gt-map__shared { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gt-map__shared li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 10px; align-items: center;
  padding: 12px 14px; border-radius: var(--radius-s); border: 1px solid var(--line-dark); background: rgba(238, 242, 239, .05);
}
.gt-map__shared svg { width: 28px; height: 28px; grid-row: span 2; color: var(--swoosh); }
.gt-map__shared b { font-weight: 500; font-size: var(--t-s); line-height: 1.5; }
.gt-map__shared span { font-size: var(--t-xs); line-height: 1.6; color: var(--on-dark-soft); }

.gt-map__products { position: relative; margin-top: 0; padding-top: calc(var(--bus) * 2); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
/* 共通アカウントから各製品へ伸びる線 */
.gt-map__products::before { content: ""; position: absolute; left: 50%; top: 0; height: var(--bus); border-left: 2px solid var(--current); }
.gt-prod { position: relative; padding: 16px 16px 18px; border-radius: var(--radius-s); background: #fff; border: 1px solid var(--line-light); }
.gt-prod::before {
  content: ""; position: absolute; top: calc(var(--bus) * -1); left: calc(var(--gap) / -2); right: calc(var(--gap) / -2);
  border-top: 2px solid var(--current);
}
.gt-prod:first-child::before { left: 50%; }
.gt-prod:last-child::before { right: 50%; }
.gt-prod::after { content: ""; position: absolute; left: 50%; top: calc(var(--bus) * -1); height: var(--bus); border-left: 2px solid var(--current); }
.gt-prod__name { font-weight: 600; line-height: 1.5; }
.gt-prod__name small { display: block; font-weight: 400; font-size: var(--t-xs); color: var(--ink-soft); }
.gt-prod__rows { margin: 12px 0 0; display: grid; gap: 8px; }
.gt-prod__rows > div { display: grid; gap: 0; font-size: var(--t-xs); line-height: 1.6; }
.gt-prod__rows dt { color: var(--ink-soft); font-size: 11px; }
.gt-prod__rows dd { margin: 0; }
.gt-prod__on { color: var(--current); font-weight: 600; }
.gt-prod.is-off { background: rgba(255, 255, 255, .5); }
.gt-prod.is-off::after { border-left-style: dashed; border-color: var(--ink-soft); }
.gt-prod.is-off .gt-prod__rows dd { color: var(--ink-soft); }
.gt-prod.is-future { background: transparent; border-style: dashed; border-color: rgba(0, 34, 74, .3); }
.gt-prod.is-future::after { border-left-style: dashed; border-color: var(--ink-soft); }
.gt-prod.is-future p:last-child { margin-top: 10px; font-size: var(--t-xs); line-height: 1.7; color: #2a3e54; }
.gt-map figcaption { margin-top: 18px; font-size: var(--t-xs); color: var(--ink-soft); line-height: 1.8; }

/* 共通になるもの/製品ごとに決まるもの */
.gt-split { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); }
.gt-split h3 { padding-bottom: 10px; border-bottom: 2px solid var(--current); font-size: var(--t-m); font-weight: 600; }
.gt-split > div:last-child h3 { border-bottom-color: var(--navy); }
.gt-split ul { margin-top: 6px; }
.gt-split li { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line-light); font-size: var(--t-s); line-height: 1.75; }
.gt-split li b { font-weight: 600; }
.gt-split li span { color: #2a3e54; }

/* 始め方の3ステップ */
.gt-steps { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); counter-reset: step; }
.gt-steps li { position: relative; counter-increment: step; padding: 22px 20px 24px; border-radius: var(--radius-m); background: rgba(255, 255, 255, .6); border: 1px solid var(--line-light); }
.gt-steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%;
  font-family: var(--f-lat); font-weight: 400; color: var(--abyss); background: linear-gradient(120deg, var(--current), var(--swoosh));
}
.gt-steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 40px; right: calc(clamp(14px, 2vw, 24px) / -2 - 5px); width: 10px; height: 10px;
  border-top: 1.5px solid var(--current); border-right: 1.5px solid var(--current); rotate: 45deg;
}
.gt-steps h3 { font-size: var(--t-m); font-weight: 600; line-height: 1.5; }
.gt-steps p { margin-top: 8px; font-size: var(--t-s); line-height: 1.8; color: #2a3e54; }

/* 設計の考え方 */
.gt-design { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 4vw, 48px); border-top: 1px solid var(--line-light); }
.gt-design > div { padding: 20px 0 22px; border-bottom: 1px solid var(--line-light); }
.gt-design h3 { display: flex; align-items: center; gap: 10px; font-size: var(--t-m); font-weight: 600; line-height: 1.5; }
.gt-design h3::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--current); }
.gt-design p { margin-top: 8px; font-size: var(--t-s); line-height: 1.8; color: #2a3e54; }

/* ---------- 共通アカウント ---------- */
.acc .page__title { font-size: clamp(1.7rem, 4.8vw, 3.4rem); }
.acc .page__title span { display: inline-block; }
.acc #signup, .acc #login { scroll-margin-top: 96px; }
.acc-from {
  margin-top: 28px; padding: 16px 20px; border-radius: var(--radius-s); border-left: 3px solid var(--current);
  background: rgba(255, 255, 255, .6); font-size: var(--t-s); line-height: 1.8;
}
.acc-from b { font-weight: 600; }
.acc-from p + p { margin-top: 4px; color: #2a3e54; }

.acc-notice {
  margin-top: 28px; padding: 20px 22px; border-radius: var(--radius-m); border: 1px dashed rgba(0, 34, 74, .45);
  background: rgba(255, 255, 255, .45);
}
.acc-notice__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-weight: 600; }
.acc-notice p:not(.acc-notice__title) { margin-top: 8px; font-size: var(--t-s); line-height: 1.8; color: #2a3e54; }
.acc-notice__links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: var(--t-s); }
.acc-notice__links a { color: var(--navy); text-underline-offset: 4px; }
.acc-notice.is-open { border-style: solid; border-color: var(--line-light); }

.acc-grid { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(16px, 2.4vw, 28px); align-items: stretch; }
.acc-card { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-m); background: rgba(255, 255, 255, .7); border: 1px solid var(--line-light); }
.acc-card--login { background: var(--abyss); color: var(--on-dark); border-color: transparent; }
.acc-card h2 { font-size: var(--t-l); font-weight: 500; line-height: 1.5; }
.acc-card__lead { margin-top: 10px; font-size: var(--t-s); line-height: 1.85; color: #2a3e54; }
.acc-card--login .acc-card__lead { color: var(--on-dark-soft); }
.acc-points { margin-top: 18px; display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.acc-points li { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--line-light); font-size: var(--t-s); line-height: 1.75; }
.acc-points b { font-weight: 600; }
.acc-card--login .acc-points { border-color: var(--line-dark); }
.acc-card--login .acc-points li { grid-template-columns: 1fr; border-color: var(--line-dark); }
.acc-card--login .acc-points span { color: var(--on-dark-soft); }
.acc-action { margin-top: auto; padding-top: 24px; }
.acc-action .btn { width: 100%; }
.acc-card--login .btn--line { border-color: rgba(238, 242, 239, .5); color: var(--on-dark); }
.acc-card--login .btn--line:hover { border-color: var(--on-dark); }
.acc-action__dest { margin-top: 10px; font-size: var(--t-xs); color: var(--ink-soft); overflow-wrap: anywhere; }
.acc-card--login .acc-action__dest { color: var(--on-dark-soft); }

/* 登録・ログインの操作(Google・メールアドレス)。2枚のカードを同じ幅で並べる */
.acc-grid--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.acc-actions { margin-top: auto; padding-top: 22px; display: grid; gap: 10px; }
.acc-btn { width: 100%; gap: 10px; }
.acc-btn__g { width: 18px; height: 18px; flex: none; }
.btn--google { background: #fff; color: #1f1f1f; border: 1px solid #747775; }
.btn--google:hover { background: #f8faf9; }
.acc-card--login .btn--pending { border-color: rgba(238, 242, 239, .45); color: var(--on-dark-soft); }
.acc-card__link { margin-top: 14px; font-size: var(--t-xs); line-height: 1.8; color: var(--on-dark-soft); }
.acc-card__link a { color: var(--on-dark); text-underline-offset: 3px; }
.acc-card__link small { margin-left: 4px; }
[data-auth-dest] { margin-top: 12px; }

.acc-facts { margin: 28px 0 0; border-top: 1px solid var(--line-light); }
.acc-facts > div { display: grid; grid-template-columns: 15em minmax(0, 1fr); gap: 4px 28px; padding: 18px 0; border-bottom: 1px solid var(--line-light); }
.acc-facts dt { font-weight: 600; font-size: var(--t-s); line-height: 1.75; }
.acc-facts dd { margin: 0; font-size: var(--t-s); line-height: 1.85; color: #2a3e54; }

/* ---------- 狭い画面 ---------- */
@media (max-width: 900px) {
  .gt-intro { grid-template-columns: 1fr; }
  .gt-intro__logo { grid-row: 1; max-width: 170px; margin-top: 0; }
  .gt-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gt-map__shared { grid-template-columns: 1fr; }
  /* 縦の幹から各製品へ枝を出す */
  .gt-map__products { grid-template-columns: 1fr; padding-top: var(--gap); padding-left: 26px; }
  .gt-map__products::before { display: none; }
  .gt-prod::before { left: -18px; right: auto; top: calc(var(--gap) * -1); bottom: 0; border-top: 0; border-left: 2px solid var(--current); }
  .gt-prod:first-child::before { left: -18px; }
  .gt-prod:last-child::before { right: auto; bottom: 50%; }
  .gt-prod::after { left: -18px; top: 50%; width: 18px; height: 0; border-left: 0; border-top: 2px solid var(--current); }
  .gt-prod.is-off::after, .gt-prod.is-future::after { border-top-style: dashed; border-color: var(--ink-soft); }
  .gt-split, .gt-design, .acc-grid { grid-template-columns: 1fr; }
  .gt-steps { grid-template-columns: 1fr; }
  .gt-steps li:not(:last-child)::after { top: auto; bottom: calc(clamp(14px, 2vw, 24px) / -2 - 6px); right: auto; left: 38px; rotate: 135deg; }
  .acc-facts > div { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .gt-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gt-cats li { padding: 12px 12px 14px; }
  .gt-split li, .acc-points li { grid-template-columns: 1fr; }
  .sub-status > div { grid-template-columns: 1fr; }
}
