/* ============================================================
   風俗カメラマンDB（仮） STEP1 静的モックアップ
   共通スタイルシート
   - スマホファースト / シンプル・無機質寄り / 広告なし
   ============================================================ */

:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --ink: #1d1f21;
  --muted: #6b6f73;
  --line: #e1e2df;
  --accent: #24566b;      /* 深めのスチールブルー */
  --accent-soft: #e7eef1;
  --focus: #1a7fb0;
  --radius: 10px;
  --header-h: 52px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI",
    "Yu Gothic", Meiryo, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  padding-top: var(--header-h);
}

img { display: block; max-width: 100%; }

a { color: var(--accent); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

/* ------------------------------------------------------------
   共通ヘッダー（全ページ最上段・固定・4項目のみ）
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.global-nav {
  height: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  overflow-x: auto;           /* 幅が足りない場合は横スクロールで1行維持 */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.global-nav::-webkit-scrollbar { display: none; }

.global-nav a {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.global-nav a:hover { background: var(--accent-soft); }
.global-nav a.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.global-nav .nav-home { font-weight: 700; }

/* スマホ幅：5項目を横スクロールなしで1行に収める（見切れ防止） */
@media (max-width: 480px) {
  .global-nav a {
    padding: 0 7px;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .global-nav a {
    padding: 0 5px;
    font-size: 11.5px;
  }
}

/* ------------------------------------------------------------
   汎用パーツ
   ------------------------------------------------------------ */
.page-title {
  font-size: 22px;
  font-weight: 700;
  margin: 24px 0 4px;
  letter-spacing: 0.02em;
}

/* 各メニューページの英字見出し：トップの .site-title と同一タイポグラフィで統一 */
.page-title-en {
  margin: 24px 0 4px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  color: var(--ink);
}
@media (min-width: 640px) {
  .page-title-en { font-size: 20px; }
}

.page-lead {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 20px;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  margin: 32px 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
}

/* 英字見出し用：フォントサイズを .content-heading（お申込みについて等）に合わせ、
   上の余白を詰める（アイコン名ボックスと属性情報ボックスの間隔と同程度） */
.section-title--en {
  font-size: 16px;
  letter-spacing: 0.02em;
  margin-top: 12px;
}
@media (min-width: 640px) {
  .section-title--en { font-size: 17px; }
}

.button {
  display: inline-block;
  padding: 12px 20px;
  min-height: 44px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}
.button:hover { opacity: 0.88; }

.button--ghost {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.note {
  font-size: 13px;
  color: var(--muted);
}

.avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: #e5e5e5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #6b6f73;
}

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

.avatar--lg {
  width: 72px;
  height: 72px;
  font-size: 22px;
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  color: var(--muted);
  margin-right: 6px;
}

/* ------------------------------------------------------------
   トップ：セクション区切り罫線（薄いグレー）
   ------------------------------------------------------------ */
.top-section {
  border-bottom: 1px solid #e5e5e5;
}

/* ------------------------------------------------------------
   トップ セクション1：サイトタイトル（控えめ表示）
   ------------------------------------------------------------ */
.site-title-bar {
  background: var(--surface);
  padding: 12px 0 10px;   /* 見出しブロックの上下を軽く圧縮（文字サイズは維持） */
}

.site-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink);
}

@media (min-width: 640px) {
  .site-title { font-size: 20px; }
}

/* ------------------------------------------------------------
   トップ セクション2：リール（メインコンテンツ）
   - CSSアニメーションで右→左へ自動スクロール
   - 同一カード群を2周分並べてループさせる（HTML側で複製済み）
   - hover / focus 時に一時停止
   ------------------------------------------------------------ */
.reel-section {
  padding: 12px 0 14px;   /* リール上下の薄灰色余白を圧縮（カードサイズは維持） */
  background: var(--bg);
  overflow: hidden;
}

.reel-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;  /* iOSの慣性スクロール */
  scrollbar-width: none;              /* Firefox：スクロールバー非表示 */
  touch-action: pan-x;               /* 横スワイプを許可・縦は妨げない */
}
.reel-viewport::-webkit-scrollbar { display: none; }

/* 自動スクロールは JS で scrollLeft を加算する方式（transformアニメは廃止）。
   実スクロール位置を使うので、手動で過ぎ去ったカードへ戻れる。 */
.reel-track {
  display: flex;
  gap: 14px;
  padding: 4px 0;
  width: max-content;
}

@media (prefers-reduced-motion: reduce) {
  .reel-viewport { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

.reel-card {
  flex: 0 0 auto;
  width: 280px;
  width: min(74vw, 300px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.reel-card:hover {
  border-color: var(--accent);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.reel-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.reel-photos img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

@supports (aspect-ratio: 4 / 5) {
  .reel-photos img { height: auto; aspect-ratio: 4 / 5; }
}

.reel-profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 0 2px;
}

.reel-meta {
  display: block;
}

.reel-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.reel-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.reel-avatar {
  margin-top: 2px;
}

/* ------------------------------------------------------------
   トップ セクション3：Xフィード（初版はComing Soonの枠のみ）
   ------------------------------------------------------------ */
.xfeed-section {
  padding: 10px 0 14px;   /* Xフィード枠上の余白を軽く圧縮 */
  background: var(--bg);
}

.xfeed-placeholder {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  padding: 20px 16px;
}

.xfeed-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.xfeed-status {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ------------------------------------------------------------
   共通フッター（トップページの下部リンクも同形式に統一）
   ------------------------------------------------------------ */
.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 11px 0 22px;   /* 上罫線〜フッターリンク間の余白を半分に */
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  margin-bottom: 10px;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }

.copyright {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* ------------------------------------------------------------
   一覧ページ：フィルター（チップ）
   ------------------------------------------------------------ */
.filter-block { margin: 8px 0 20px; }

.filter-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.filter-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  flex: 0 0 auto;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 14px;
  min-height: 38px;
  font-size: 13px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.chip:hover { border-color: var(--accent); }
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* スマホ幅：エリア行（すべて/東京/石川/大阪/愛知/福岡）を一行に収めやすく
   チップとフォントをほんの少しだけ小さく（タップ性は維持） */
@media (max-width: 480px) {
  .chips { gap: 6px; }
  .chip {
    padding: 7px 11px;
    min-height: 34px;
    font-size: 12px;
  }
}

.filter-empty {
  display: none;
  padding: 24px 16px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.filter-empty.is-visible { display: block; }

/* ------------------------------------------------------------
   一覧ページ：カード
   ------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.p-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.p-card.is-hidden { display: none; }

/* カード全体をリンク化（「詳細を見る」ボタン廃止に伴う導線） */
.p-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.p-card-link:hover {
  border-color: var(--accent);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}
.p-card-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* 掲載希望カード（CTA）内の誘導テキスト */
.p-card-cta-action {
  margin: 8px 0 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

.p-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.p-card-name {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}
.p-card-name a { color: var(--ink); text-decoration: none; }
.p-card-name a:hover { color: var(--accent); text-decoration: underline; }

.p-card-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}

.p-card-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 0;   /* 写真グリッドがカード最下部。SNS行削除に伴い余白を詰める */
}
.p-card-photos img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
}

@supports (aspect-ratio: 4 / 5) {
  .p-card-photos img { height: auto; aspect-ratio: 4 / 5; }
}

.p-card-actions { text-align: right; }

.detail-link {
  display: inline-block;
  padding: 10px 18px;
  min-height: 42px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  text-decoration: none;
}
.detail-link:hover { background: var(--accent-soft); }

/* ------------------------------------------------------------
   個別ページ
   ------------------------------------------------------------ */
.profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-top: 20px;
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}
.profile-category {
  font-size: 12px;
  color: var(--muted);
}

.profile-info {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 16px;
  margin-top: 12px;
}

.profile-info dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px 12px;
  margin: 12px 0;
  font-size: 14px;
}
.profile-info dt { color: var(--muted); font-weight: 600; }
.profile-info dd { margin: 0; word-break: break-all; }

/* プロフィール情報欄内のSNSリンク（標準の青リンクにせず、サイトに馴染ませる） */
.profile-info a { color: var(--accent); text-decoration: none; }
.profile-info a:hover { text-decoration: underline; }

/* プロフィール情報のSNSラベル用アイコン（文字サイズに合わせる） */
.profile-info .sns-icon {
  height: 16px;
  width: auto;
  vertical-align: middle;
  display: inline-block;
}
/* Instagramアイコンは余白が大きく小さく見えるため、Xと同サイズに見えるよう微増 */
.profile-info .sns-icon--ig {
  height: 20px;
}

/* SNS行：アイコンとアカウントを常に1行に並べる（スマホでも2行にしない） */
.profile-info .sns-dd {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

@media (max-width: 480px) {
  .profile-info dl { display: block; }
  .profile-info dt { margin-top: 10px; }
  .profile-info dd { margin-bottom: 4px; }
  /* 性別（最初のdt/dd）はラベルと値を1行に。対応エリアは従来どおり2行 */
  .profile-info dt:first-of-type { display: inline; margin: 0 8px 0 0; }
  .profile-info dt:first-of-type + dd { display: inline; }
  .profile-info .sns-dd { margin-top: 8px; }
}

.contact-block {
  margin: 16px 0 4px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
/* 属性情報ボックスとの間隔を詰める（12px） */
.contact-block--tight { margin-top: 12px; }

/* 問い合わせ導線：塗り/ゴーストボタンを濃いGartnerブルー塗りに統一 */
.contact-block .button,
.contact-block .button--ghost {
  background: #003057;
  color: #ffffff;
  border: 1px solid #003057;
}
/* 予約・問い合わせボタンは少しコンパクトに */
.contact-block .button {
  padding: 10px 16px;
  min-height: 40px;
  font-size: 14px;
}
.contact-block .button:hover,
.contact-block .button--ghost:hover {
  background: #002640;
  border-color: #002640;
  color: #ffffff;
  opacity: 1;
}

.comment-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 16px;
  font-size: 14px;
}

/* ポートフォリオ グリッド */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.portfolio-item {
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: 6px;
  overflow: hidden;
}
.portfolio-item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.2s ease;
}

@supports (aspect-ratio: 4 / 5) {
  .portfolio-item img { height: auto; aspect-ratio: 4 / 5; }
}
.portfolio-item:hover img { transform: scale(1.03); }

.back-link-area {
  margin-top: 28px;
  text-align: center;
}

/* ------------------------------------------------------------
   拡大モーダル
   ------------------------------------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 22, 24, 0.86);
  padding: 16px;
}
.modal.is-open { display: flex; }

.modal-figure {
  margin: 0;
  max-width: min(92vw, 560px);
  width: 100%;
}
.modal-figure img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 8px;
  background: #000;
}

.modal-caption {
  color: #d7d9db;
  font-size: 13px;
  text-align: center;
  margin-top: 10px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
}
.modal-prev { left: 10px; }
.modal-next { right: 10px; }
.modal-close:hover, .modal-nav:hover { background: rgba(255, 255, 255, 0.28); }

/* ------------------------------------------------------------
   Coming Soon / 404
   ------------------------------------------------------------ */
.status-page {
  text-align: center;
  padding: 56px 0 24px;
}
.status-page h1 {
  font-size: 26px;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}
.status-page p { color: var(--muted); margin: 0 0 24px; }
.status-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* ------------------------------------------------------------
   ポリシー / 掲載希望ページ
   ------------------------------------------------------------ */
.doc-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 16px 12px;
  margin-bottom: 16px;
  font-size: 14px;
}
.doc-section h2 {
  font-size: 16px;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
  margin: 16px 0 8px;
}
.doc-section ul, .doc-section ol { padding-left: 22px; margin: 8px 0; }
.doc-section li { margin-bottom: 4px; }

.flow-list {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}
.flow-list li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 10px;
}
.flow-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 2px;
  width: 26px; height: 26px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------
   本文ページ（撮影ガイド / ポリシー / 掲載希望 など）
   - 薄いベージュ背景に黒〜濃いグレーの本文
   - 白い本文ボックス＋薄いグレー罫線/広めだが間延びしない余白
   ------------------------------------------------------------ */
.content-page {
  padding-bottom: 8px;
}

.content-lead {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.content-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  margin-bottom: 16px;
}

.content-heading {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
  letter-spacing: 0.02em;
}

.content-section p {
  font-size: 15px;
  margin: 0 0 12px;
}
.content-section p:last-child { margin-bottom: 0; }

.content-section ul {
  list-style: disc;
  margin: 0;
  padding-left: 20px;
}
.content-section li {
  font-size: 15px;
  margin-bottom: 6px;
}
.content-section li:last-child { margin-bottom: 0; }

.content-note {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 0;
}

.signature {
  text-align: right;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.9;
  margin: 20px 4px 8px;
}

@media (min-width: 640px) {
  .content-section { padding: 22px 24px 24px; }
  .content-heading { font-size: 17px; }
}

/* ------------------------------------------------------------
   タブレット以上
   ------------------------------------------------------------ */
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .page-title { font-size: 26px; }
}

@media (min-width: 960px) {
  .portfolio-grid { grid-template-columns: repeat(4, 1fr); }
  .reel-card { width: 300px; }
}

/* ------------------------------------------------------------
   アニメーション抑制設定への配慮
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .portfolio-item img { transition: none; }
}
