/* ==========================================================================
   docpage.css — 規約・プライバシーポリシー・運営について等のドキュメントページ
   design-system v1.1（白ベース＋ブランドレモン）に合わせた utility__* の上書き。
   common.css の後、tokens.css と一緒に読み込むこと（後勝ちで上書きする）。
   ========================================================================== */

/* Bootstrap3 が html{font-size:62.5%}(=10px) を敷くため、rem基準のトークン
   (--scm-text-body:1rem 等) が10pxで描画されてしまう。rootを16pxに戻す
   （bootstrap撤去済みページでは単なる既定値の明示） */
html { font-size: 100%; }

/* --------------------------------------------------------------------
   Bootstrap撤去シム — 再デザイン済みページ(doc/groupinfo/cardlist/error)は
   bootstrap.min.css を読まない。旧マークアップが使う最小ユーティリティと
   基本リセットだけをここで提供する。
   （web_user/web_device の管理画面系・card詳細・invitation は bootstrap 残置）
   -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { vertical-align: middle; border: 0; max-width: 100%; }
.clearfix::before, .clearfix::after { content: " "; display: table; }
.clearfix::after { clear: both; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.list-inline { padding-left: 0; margin-left: -5px; list-style: none; }
.list-inline > li { display: inline-block; padding: 0 5px; }
.visible-xs { display: none !important; }
@media (max-width: 767px) {
  .hidden-xs { display: none !important; }
  .visible-xs { display: block !important; }
}

body {
  background: var(--scm-canvas);
  font-family: var(--scm-font-sans);
  color: var(--scm-text);
}

/* --------------------------------------------------------------------
   サイト共通ナビ（トップLP web2/index の nav と同デザイン）
   マークアップは app/views/web_common/_site_header.html.erb
   -------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--scm-border);
}
.site-nav__wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
/* ロゴはロックアップ(タイル+文字)のため旧文字ロゴより大きめに表示。
   白地で黄タイルの縁が立つよう薄いdrop-shadow(透過PNGの形に沿う)。
   flex圧縮で横だけ縮んで縦長に歪まないよう shrink と max-width を殺す */
.site-nav__brand { flex-shrink: 0; }
.site-nav__brand img {
  height: 34px;
  max-width: none;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(43, 36, 26, 0.18));
}
.site-nav__right { display: flex; align-items: center; gap: var(--scm-space-5); }
.site-nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: var(--scm-text-sub);
  font-weight: var(--scm-weight-semibold);
  color: var(--scm-text);
}
.site-nav__links a { color: inherit; text-decoration: none; }
.site-nav__links a:hover { color: var(--scm-lemon-strong); }
.site-nav__lang {
  display: inline-flex;
  align-items: center;
  gap: var(--scm-space-3);
  padding: 7px 14px;
  border-radius: var(--scm-radius-sm);
  border: 1px solid var(--scm-border);
  text-decoration: none;
}
.site-nav__lang:hover { border-color: var(--scm-lemon-strong); text-decoration: none; }
.site-nav__lang-home { display: flex; color: var(--scm-text-secondary); }
.site-nav__lang-home svg { width: 17px; height: 17px; display: block; }
.site-nav__lang-div { width: 1px; height: 16px; background: var(--scm-border); }
.site-nav__lang-label {
  font-weight: var(--scm-weight-bold);
  font-size: var(--scm-text-caption);
  letter-spacing: .12em;
  color: var(--scm-text-secondary);
}
.site-nav__lang:hover .site-nav__lang-label,
.site-nav__lang:hover .site-nav__lang-home { color: var(--scm-lemon-strong); }
.site-nav__cta {
  font-size: var(--scm-text-sub);
  font-weight: var(--scm-weight-bold);
  padding: 10px 22px;
  border-radius: var(--scm-radius-full);
  background: var(--scm-gradient-brand);
  color: var(--scm-ink);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(224, 190, 25, 0.35);
  transition: transform var(--scm-duration-press) var(--scm-ease),
              box-shadow var(--scm-duration-press) var(--scm-ease);
}
.site-nav__cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(224, 190, 25, 0.45); color: var(--scm-ink); text-decoration: none; }
@media (max-width: 760px) { .site-nav .hide-sm { display: none; } }

/* SP: ナビが375px幅に収まるよう圧縮(潰れ・縦書きCTA・はみ出し防止)。
   文字は折り返させず(nowrap)、言語スイッチの家アイコンは省略 */
.site-nav__lang, .site-nav__cta { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 600px) {
  .site-nav__wrap { height: 56px; }
  .site-nav__brand img { height: 24px; }
  .site-nav__right { gap: var(--scm-space-2); }
  .site-nav__lang { padding: 6px 8px; }
  .site-nav__lang-home, .site-nav__lang-div { display: none; }
  .site-nav__cta { padding: 8px 12px; font-size: var(--scm-text-caption); }
}

/* 本文幅: ナビ・フッターと同じ1040pxに揃える */
.wrapper { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* 旧2カラム(本文76.66%+サイド19.16%)を1カラム化。
   サイドは規約/運営へのリンクだけでフッターと重複のため非表示 */
.utility__column-main { width: 100%; float: none; }
.utility__column-main-inner { margin: var(--scm-space-5) 0; }
.utility__column-side { display: none; }

/* 最下段のダウンロードボタン: ナビの「アプリを入手」CTAと同じ見た目に統一
   (旧: 緑箱+インストールアイコン) */
.section__download { text-align: center; margin: var(--scm-space-6) 0; }
.btn__download {
  margin: 0;
  padding: 0;
  width: auto;
  background: none;
  box-shadow: none;
  font-size: inherit;
}
.btn__download a {
  display: inline-block;
  padding: 14px 34px;
  background: var(--scm-gradient-brand);
  color: var(--scm-ink);
  font-size: var(--scm-text-body);
  font-weight: var(--scm-weight-bold);
  border-radius: var(--scm-radius-full);
  box-shadow: 0 4px 14px rgba(224, 190, 25, 0.35);
  text-decoration: none;
  transition: transform var(--scm-duration-press) var(--scm-ease),
              box-shadow var(--scm-duration-press) var(--scm-ease);
}
.btn__download a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(224, 190, 25, 0.45);
  color: var(--scm-ink);
}

/* --------------------------------------------------------------------
   サイト共通フッター（トップLP web2/index と同デザイン）
   マークアップは app/views/web_common/_site_footer.html.erb
   -------------------------------------------------------------------- */
.site-footer {
  /* margin-topは置かない: LPでは.finalバンド直下に密着させる。本文ページは
     コンテンツ側の下マージン(.section__download等)が区切りを作る */
  background: var(--scm-wash);
  border-top: 1px solid var(--scm-border);
  color: var(--scm-text-secondary);
  padding: 80px 0 40px;
  font-size: var(--scm-text-sub);
}
.site-footer__wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer__grid img {
  height: 30px;
  margin-bottom: var(--scm-space-4);
  filter: drop-shadow(0 1px 2px rgba(43, 36, 26, 0.15));
}
.site-footer__tagline { margin: 0; max-width: 300px; }
.site-footer__grid h4 {
  color: var(--scm-ink);
  font-size: var(--scm-text-caption);
  letter-spacing: .12em;
  margin: 0 0 var(--scm-space-4);
  text-transform: uppercase;
}
.site-footer__grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.site-footer__grid a { color: inherit; text-decoration: none; }
.site-footer__grid a:hover { color: var(--scm-lemon-strong); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--scm-space-3);
  border-top: 1px solid var(--scm-border);
  padding-top: var(--scm-space-5);
  font-size: var(--scm-text-caption);
}
.site-footer__bottom a { color: inherit; }
@media (max-width: 920px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .site-footer { padding: 48px 0 32px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ページタイトル: 旧・灰色箱から、レモンの下線アクセントへ */
.utility__header {
  margin: var(--scm-space-6) 0;
  padding: 0;
  font-size: var(--scm-text-title-1);
  font-weight: var(--scm-weight-bold);
  color: var(--scm-ink);
}
.utility__header-inner {
  display: inline-block;
  padding: 0 0 var(--scm-space-2);
  background: none;
  border-bottom: 3px solid var(--scm-lemon);
  text-align: left;
}

/* 本文 */
.utility__column-main-inner {
  font-size: var(--scm-text-body);
  line-height: 1.9;
  color: var(--scm-text);
}
.utility__column-main-inner a {
  color: var(--scm-ink);
  text-decoration: underline;
  text-decoration-color: var(--scm-lemon);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.utility__column-main-inner a:hover { text-decoration-color: var(--scm-lemon-strong); }

/* 見出し: 旧・緑ボーダー(#3e987b)をレモンへ、文字は濃色に */
.utility__header-h2 {
  margin-top: 2em;
  margin-bottom: 1em;
  padding: 0 0 0 14px;
  border-left: 4px solid var(--scm-lemon);
  font-size: var(--scm-text-title-2);
  font-weight: var(--scm-weight-bold);
  color: var(--scm-ink);
}
.utility__header-h3 {
  padding: 0 0 0 12px;
  border-left: 3px solid var(--scm-lemon);
  font-size: var(--scm-text-title-3);
  font-weight: var(--scm-weight-semibold);
  color: var(--scm-ink);
}
