/* ========================================
   LP Template - Shared Styles
   スマホ最優先 / PCは中央430pxで表示
   差し替えポイント: 色・フォントは :root 変数を編集
   ======================================== */

:root {
  /* --- Color (ピンク系 / マッチングアプリ風) --- */
  --color-bg: #0f0a0d;
  --color-bg-card: #1a1218;
  --color-bg-card-hover: #221620;
  --color-bg-elevated: #1e1419;
  --color-border: #3a2834;
  --color-border-accent: #5a3048;
  --color-text: #f5eef2;
  --color-text-muted: #b8a8b0;
  --color-text-faint: #7a6870;
  --color-accent: #ff6b9d;
  --color-accent-soft: #ff8fb4;
  --color-accent-hover: #ff4d8d;
  --color-accent-deep: #e84393;
  --color-accent-hot: #ff2d55;
  --color-accent-gold: #ffc0d8;
  --color-button-text: #ffffff;

  /* --- Typography --- */
  --font-serif: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", Arial, sans-serif;
  --font-sans: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", Arial, sans-serif;

  /* --- Layout --- */
  --max-width: 430px;

  /* --- Spacing scale --- */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.25rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.75rem;
  --gutter: 1.4rem;

  /* --- Radius --- */
  --radius-lg: 18px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 50px;

  /* --- Shadow / effect --- */
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-card-hover: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-soft: 0 4px 18px rgba(0, 0, 0, 0.35);
  --glow-accent: 0 6px 22px rgba(255, 107, 157, 0.35);
  --transition: 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  /* 430pxの外側（PC）に見える余白の質感 */
  background-color: #080508;
  background-image: radial-gradient(
    120% 60% at 50% -10%,
    rgba(255, 107, 157, 0.1),
    transparent 60%
  );
  color: var(--color-text);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* タップ時の青いハイライトを抑制（高級感維持） */
a,
.card,
.btn {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

/* PC表示時も中央にスマホ幅で表示 */
.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--color-bg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 80px rgba(0, 0, 0, 0.85);
}

/* PCではカード状の枠に見せ、上下に余白 */
@media (min-width: 480px) {
  body {
    padding: 2.5rem 0;
  }
  .page-wrapper {
    min-height: auto;
    border-radius: var(--radius-lg);
  }
}

/* ========================================
   Hero / Main Area
   ======================================== */

.hero {
  position: relative;
  padding-bottom: var(--space-2);
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--color-bg-elevated);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 画像下部を背景へなじませ、タイトルの可読性を上げる */
.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(11, 11, 12, 0.55) 72%,
    var(--color-bg) 100%
  );
  pointer-events: none;
}

.hero-content {
  padding: 0 var(--gutter);
  margin-top: -3rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "YuMincho", "MS PMincho", "Noto Serif JP", serif;
  font-size: clamp(1.32rem, 6.2vw, 2.05rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.08em;
  margin: 0 auto var(--space-1);
  max-width: 100%;
  width: 100%;
  padding: 0 0.35rem;
  box-sizing: border-box;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: normal;
  color: #ffd36a;
  background: linear-gradient(
    180deg,
    #fff2b8 0%,
    #ffd36a 42%,
    #f6c85f 72%,
    #b87922 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 2px 10px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 22px rgba(255, 190, 80, 0.35));
}

.hero-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: var(--space-2) auto 0;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    transparent,
    #b87922,
    #ffd36a,
    #fff2b8,
    #ffd36a,
    transparent
  );
  filter: drop-shadow(0 0 8px rgba(255, 190, 80, 0.4));
}

.hero-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.hero-description {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.95;
  max-width: 30ch;
  margin: 0 auto;
}

/* ========================================
   Section
   ======================================== */

.section {
  padding: var(--space-3) var(--gutter) var(--space-7);
  margin-top: -0.25rem;
}

.section-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-accent-gold);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* 左右に伸びる細いライン */
.section-title::before,
.section-title::after {
  content: "";
  width: 30px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-border-accent)
  );
  opacity: 0.9;
}
.section-title::after {
  background: linear-gradient(to left, transparent, var(--color-border-accent));
}

/* ========================================
   Cards
   ======================================== */

.card-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  counter-reset: card;
}

.card {
  position: relative;
  display: block;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), transform var(--transition),
    box-shadow var(--transition), background-color var(--transition);
  cursor: pointer;
}

.card:hover,
.card:focus-visible {
  border-color: var(--color-border-accent);
  background-color: var(--color-bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  outline: none;
}

/* タップ時のフィードバック（スマホ） */
.card:active {
  transform: translateY(-1px) scale(0.995);
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-bg-elevated);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  transform-origin: center center;
}

.card:hover .card-image img:not([data-custom-scale]),
.card:focus-visible .card-image img:not([data-custom-scale]) {
  transform: scale(1.05);
}

/* 連番バッジ（HTMLを触らずCSSカウンタで 01 / 02 / 03） */
.card-image::after {
  counter-increment: card;
  content: counter(card, decimal-leading-zero);
  position: absolute;
  top: 0.75rem;
  left: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-button-text);
  padding: 0.28em 0.7em;
  background: rgba(255, 107, 157, 0.88);
  backdrop-filter: blur(2px);
  border: none;
  border-radius: var(--radius-pill);
}

.card-body {
  padding: var(--space-4) var(--space-4) var(--space-5);
}

.card-title.profile-badge {
  display: inline-block;
  width: auto;
  max-width: 100%;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.38em 0.9em;
  border-radius: var(--radius-pill);
  border: 1px solid;
  line-height: 1.3;
  margin-bottom: var(--space-2);
}

.profile-badge--type-1 {
  color: #ff4d9d;
  border-color: #ff9dcc;
  background: rgba(255, 77, 157, 0.12);
}

.profile-badge--type-2 {
  color: #35c28d;
  border-color: #8be0bf;
  background: rgba(53, 194, 141, 0.12);
}

.profile-badge--type-3 {
  color: #b879ff;
  border-color: #d7b4ff;
  background: rgba(184, 121, 255, 0.12);
}

.card-description {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-block;
  position: relative;
  padding: 0.95rem 2rem;
  background: linear-gradient(
    135deg,
    var(--color-accent-soft),
    var(--color-accent-hot),
    var(--color-accent-deep)
  );
  color: var(--color-button-text);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(255, 45, 85, 0.35), var(--glow-accent);
  transition: filter var(--transition), transform var(--transition),
    box-shadow var(--transition);
  text-align: center;
}

.btn:hover,
.btn:focus-visible {
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 107, 157, 0.4);
  outline: none;
}

.btn:active {
  transform: translateY(0);
  filter: brightness(0.97);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  box-shadow: none;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(255, 107, 157, 0.12);
  color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  filter: none;
  box-shadow: 0 6px 18px rgba(255, 107, 157, 0.2);
}

/* タップ導線 */
.tap-guide {
  display: block;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 auto var(--space-4);
  padding: 0.75rem 1.35rem;
  max-width: 20rem;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 157, 0.35),
    rgba(255, 45, 85, 0.28)
  );
  border: 1px solid rgba(255, 143, 180, 0.55);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 22px rgba(255, 107, 157, 0.3);
  animation: tap-pulse 2.2s ease-in-out infinite;
}

.tap-guide--clickable {
  cursor: pointer;
  user-select: none;
}

.tap-guide--clickable:active {
  transform: scale(0.98);
}

@keyframes tap-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.88; }
}

.supplement {
  padding: var(--space-5) var(--gutter);
  text-align: center;
  border-top: 1px solid var(--color-border);
  background: rgba(255, 107, 157, 0.06);
}

.supplement-text {
  font-size: 0.9rem;
  color: #ffc0d8;
  line-height: 1.72;
  font-weight: 600;
  max-width: 20em;
  margin: 0 auto;
  text-align: center;
}

.notice-text {
  margin-top: var(--space-4);
  font-size: 0.84rem;
  color: #e4c8d4;
  line-height: 1.72;
  max-width: 22em;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.footer {
  padding: var(--space-5) var(--gutter);
  text-align: center;
  background-color: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
}

.footer-text {
  font-size: 0.68rem;
  color: #8a7882;
  letter-spacing: 0.06em;
}

/* ========================================
   Detail Page — SNSプロフィール風
   ======================================== */

.detail-page {
  --detail-gutter: 0.85rem;
  --detail-about-gutter: 0.7rem;
  padding-bottom: var(--space-6);
}

.detail-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--gutter);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  position: sticky;
  top: 0;
  z-index: 10;
}

.detail-top-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.detail-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  transition: color var(--transition), background var(--transition);
}

.detail-close-btn:hover,
.detail-close-btn:focus-visible {
  color: var(--color-accent);
  background: rgba(255, 107, 157, 0.1);
  outline: none;
}

.detail-profile-header {
  padding: var(--space-3) var(--gutter) 0;
  text-align: center;
}

.detail-avatar-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-2);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-accent);
  box-shadow: 0 4px 24px rgba(255, 107, 157, 0.35);
  background: var(--color-bg-elevated);
}

.detail-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-header {
  padding: 0;
  margin-top: 0;
  position: relative;
  z-index: 1;
  text-align: center;
}

.detail-title {
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 6vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--color-text);
  text-shadow: none;
  margin-bottom: var(--space-1);
}

.detail-title.detail-name--type-1 {
  color: #ff4d9d;
}

.detail-title.detail-name--type-2 {
  color: #35c28d;
}

.detail-title.detail-name--type-3 {
  color: #b879ff;
}

.detail-subtitle {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  text-transform: none;
  margin-bottom: var(--space-3);
}

/* Stats — 投稿数風 */
.detail-page .stats {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: var(--space-2) 0 0;
  padding: var(--space-2) 0 var(--space-1);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.detail-page .stat-item {
  flex: 1;
  text-align: center;
  padding: 0 var(--space-2);
}

.detail-page .stat-item + .stat-item {
  border-left: 1px solid var(--color-border);
}

.detail-page .stat-value {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  display: block;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.detail-page .stat-label {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0;
  text-transform: none;
}

/* 旧フル幅ヒーロー（互換用・非表示） */
.detail-hero {
  display: none;
}

/* About me — 自己紹介カード */
.detail-about-card {
  position: relative;
  margin: 0 var(--detail-about-gutter) var(--space-5);
  padding: 1.1rem 1.05rem 1.2rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.detail-about-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  pointer-events: none;
}

.detail-about-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  padding: 0;
  font-family: "Georgia", "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.08rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.07em;
  line-height: 1.2;
}

.detail-about-icon {
  font-size: 1.15rem;
  line-height: 1;
  font-style: normal;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.35));
}

.detail-about-title {
  font-style: italic;
}

.detail-description {
  margin: 0;
  padding: 0;
  font-family: "Yu Gothic", "YuGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  color: #fff5fb;
  line-height: 1.86;
  letter-spacing: 0.018em;
  text-align: left;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: pretty;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.detail-desc-tail {
  white-space: nowrap;
}

/* かわいい系 — ピンク / ピンクゴールド */
.detail-about-card--type-1 {
  background: linear-gradient(
    145deg,
    rgba(255, 105, 180, 0.1) 0%,
    rgba(255, 192, 216, 0.06) 55%,
    rgba(40, 18, 32, 0.45) 100%
  );
  border: 1px solid rgba(255, 150, 205, 0.35);
}

.detail-about-card--type-1 .detail-about-card-accent {
  background: linear-gradient(90deg, #ff6b9d, #ff8fc7, #ffc0d8, #ffd9a8);
}

.detail-about-card--type-1 .detail-about-title {
  color: #ffc0d8;
  text-shadow: 0 0 18px rgba(255, 143, 199, 0.45);
}

/* 癒し系 — ミント / ゴールド */
.detail-about-card--type-2 {
  background: linear-gradient(
    145deg,
    rgba(53, 194, 141, 0.1) 0%,
    rgba(139, 224, 191, 0.06) 55%,
    rgba(18, 32, 28, 0.45) 100%
  );
  border: 1px solid rgba(139, 224, 191, 0.35);
}

.detail-about-card--type-2 .detail-about-card-accent {
  background: linear-gradient(90deg, #35c28d, #8be0bf, #d7f7e9, #e8d5a0);
}

.detail-about-card--type-2 .detail-about-title {
  color: #d7f7e9;
  text-shadow: 0 0 18px rgba(139, 224, 191, 0.4);
}

/* お姉さん系 — ラベンダー / ゴールド */
.detail-about-card--type-3 {
  background: linear-gradient(
    145deg,
    rgba(184, 121, 255, 0.1) 0%,
    rgba(215, 180, 255, 0.06) 55%,
    rgba(28, 18, 36, 0.45) 100%
  );
  border: 1px solid rgba(184, 121, 255, 0.35);
}

.detail-about-card--type-3 .detail-about-card-accent {
  background: linear-gradient(90deg, #9b59d0, #d7b4ff, #ffd6f0, #e8c878);
}

.detail-about-card--type-3 .detail-about-title {
  color: #ffd6f0;
  text-shadow: 0 0 18px rgba(184, 121, 255, 0.42);
}

.detail-page .divider {
  display: none;
}

/* Profile Table */
.profile-table {
  margin: 0 var(--detail-gutter) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.profile-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--color-border);
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-label {
  flex: 0 0 30%;
  max-width: 5.4rem;
  display: flex;
  align-items: flex-start;
  padding: 0.9rem 0.75rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.45;
  color: var(--color-text-muted);
  background-color: var(--color-bg-elevated);
}

.profile-value {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  padding: 0.9rem 0.9rem 0.85rem;
  font-size: 0.85rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--color-text);
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Image Grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  padding: 0 var(--gutter);
  margin-bottom: var(--space-6);
}

.image-grid--sns {
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 0;
  margin-bottom: var(--space-3);
}

.image-grid--sns .image-grid-item {
  border-radius: 0;
  border: none;
  aspect-ratio: 1;
}

.detail-page .section-title {
  font-size: 0.72rem;
  margin-bottom: var(--space-4);
  padding: 0 var(--detail-gutter);
  justify-content: flex-start;
}

.detail-page .section-title::before,
.detail-page .section-title::after {
  display: none;
}

.detail-profile-section {
  padding: var(--space-5) 0 0;
}

.image-grid-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
}

.image-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.image-grid-item:hover img:not([data-custom-scale]) {
  transform: scale(1.06);
}

.detail-hero-image img[data-custom-scale] {
  will-change: transform;
}

/* Bottom Message */
.bottom-message {
  padding: var(--space-5) var(--gutter);
  text-align: center;
  border-top: 1px solid var(--color-border);
  background: rgba(255, 107, 157, 0.05);
}

.bottom-message-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.bottom-message-text {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  line-height: 1.9;
  max-width: 34ch;
  margin: 0 auto;
}

/* Inquiry / Contact Area */
.inquiry-area {
  padding: 0 var(--gutter) var(--space-4);
}

.detail-page .inquiry-area .section-title {
  display: none;
}

.inquiry-note {
  display: none;
}

.back-area {
  padding: var(--space-3) var(--gutter) var(--space-5);
  text-align: center;
}

.inquiry-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.inquiry-note {
  margin-top: var(--space-3);
  font-size: 0.72rem;
  color: var(--color-text-faint);
  text-align: center;
  line-height: 1.7;
}

/* Back Button Area — merged above */

/* Decorative divider */
.divider {
  text-align: center;
  color: var(--color-accent);
  opacity: 0.45;
  font-size: 0.85rem;
  letter-spacing: 0.5em;
  padding: var(--space-1) 0 var(--space-5);
}

/* ========================================
   Reduced motion 対応
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ギャラリー画像タップ */
.image-grid-item--clickable {
  padding: 0;
  margin: 0;
  border: none;
  cursor: pointer;
  display: block;
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--color-bg-elevated);
}

.image-grid-item--clickable:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* SNS投稿風モーダル（オリジナルUI） */
.post-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.post-modal[hidden] {
  display: none !important;
}

body.post-modal-open {
  overflow: hidden;
}

.post-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.post-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  max-height: 100vh;
  overflow-y: auto;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
}

@media (min-width: 480px) {
  .post-modal-panel {
    max-height: 92vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
  }
}

.post-modal-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--space-3) var(--gutter);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  flex-shrink: 0;
}

.post-modal-close {
  justify-self: start;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  font-family: inherit;
}

.post-modal-close:hover {
  color: var(--color-accent);
}

.post-modal-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text);
  text-transform: none;
}

.post-modal-header-spacer {
  justify-self: end;
  width: 3.5rem;
}

.post-modal-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #000;
  overflow: hidden;
  flex-shrink: 0;
}

.post-modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-modal-body {
  padding: var(--space-4) var(--gutter) var(--space-6);
  flex: 1;
}

.post-modal-like-btn {
  margin-bottom: var(--space-3);
}

.post-modal-text {
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: var(--space-3);
}

.post-modal-date {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* ギャラリー表示切替タブ（アイコン風） */
.gallery-view-tabs {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2.5rem;
  margin: 0 var(--gutter) var(--space-2);
  padding: 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  background: transparent;
}

.gallery-view-tab {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.35rem 0.55rem;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: #6e6268;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.gallery-view-tab + .gallery-view-tab {
  border-left: none;
}

.gallery-view-tab.active {
  background: transparent;
  color: var(--color-accent);
  border-bottom-color: var(--color-accent-gold);
}

.gallery-view-tab:focus-visible {
  outline: 2px solid var(--color-accent-soft);
  outline-offset: 2px;
}

.gallery-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  opacity: 0.72;
}

.gallery-view-tab.active .gallery-tab-icon {
  opacity: 1;
}

.gallery-tab-icon svg {
  display: block;
}

.gallery-view-panel {
  display: none;
}

.gallery-view-panel.active {
  display: block;
}

/* 投稿一覧（SNS風・オリジナルUI） */
.post-feed-item {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-5);
}

.post-feed-item:last-child {
  border-bottom: none;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
}

.post-feed-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: 0 var(--gutter) var(--space-2);
}

.post-feed-avatar {
  display: none;
}

.post-feed-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-left: auto;
}

.post-feed-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-text);
}

.post-feed-date {
  font-size: 0.68rem;
  color: var(--color-text-muted);
}

.post-feed-image-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.post-feed-image-btn img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.post-feed-image-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.post-feed-actions {
  padding: var(--space-3) var(--gutter) var(--space-2);
}

.post-feed-text {
  padding: 0 var(--gutter);
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--color-text);
}

/* ♡ボタン（共通） */
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.35rem;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-size: 1.05rem;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
}

.like-btn-icon {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.like-btn-count {
  font-size: 0.88rem;
  font-weight: 700;
}

.like-btn.is-liked .like-btn-icon {
  color: var(--color-accent);
  transform: scale(1.08);
}

.like-btn.is-liked .like-btn-count {
  color: var(--color-accent-soft);
}

.like-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
