/* ===================================
   城民 Official Site - style.css
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;500;600;700;900&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
  --navy: #071F3A;
  --navy-dark: #031426;
  --gold: #D6A84F;
  --gold-light: #e8c97a;
  --gold-dark: #a87d2a;
  --cream: #F8F4EB;
  --cream-dark: #ede8d8;
  --card-white: #FFFFFCF7;
  --text-dark: #1a1a2e;
  --text-mid: #4a4a6a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Noto Serif JP', serif;
}

/* ===== HEADER ===== */
header {
  background: var(--navy-dark);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--gold);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gold);
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.logo-icon {
  width: 36px;
  height: 36px;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  white-space: nowrap;
}

nav a:hover {
  color: var(--gold);
}

.nav-x-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(214,168,79,0.4);
  border-radius: 50%;
  color: rgba(255,255,255,0.75) !important;
  transition: all 0.2s !important;
  flex-shrink: 0;
}

.nav-x-link:hover {
  color: var(--gold) !important;
  border-color: var(--gold);
  background: rgba(214,168,79,0.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--navy-dark);
  border-top: 1px solid rgba(214,168,79,0.3);
  z-index: 999;
  padding: 20px 0;
  flex-direction: column;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 1rem;
  padding: 14px 32px;
  border-bottom: 1px solid rgba(214,168,79,0.15);
  transition: color 0.2s, background 0.2s;
}

.mobile-nav a:hover {
  color: var(--gold);
  background: rgba(214,168,79,0.05);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 68px;
}

/* 夜空の背景グラデーション */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(10,40,80,0.8) 0%, transparent 70%),
    linear-gradient(135deg, #031426 0%, #071F3A 40%, #0a2a50 70%, #071F3A 100%);
  z-index: 0;
}

/* 星のエフェクト */
.stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.stars::before,
.stars::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: white;
  box-shadow:
    100px 80px 0 rgba(255,255,255,0.8),
    200px 150px 0 rgba(255,255,255,0.6),
    350px 50px 0 rgba(255,255,255,0.9),
    450px 200px 0 rgba(255,255,255,0.5),
    550px 100px 0 rgba(255,255,255,0.7),
    650px 180px 0 rgba(255,255,255,0.8),
    750px 60px 0 rgba(255,255,255,0.6),
    850px 140px 0 rgba(255,255,255,0.9),
    950px 90px 0 rgba(255,255,255,0.5),
    1050px 170px 0 rgba(255,255,255,0.7),
    130px 250px 0 rgba(255,255,255,0.6),
    280px 320px 0 rgba(255,255,255,0.4),
    480px 280px 0 rgba(255,255,255,0.8),
    620px 350px 0 rgba(255,255,255,0.5),
    780px 240px 0 rgba(255,255,255,0.7),
    920px 310px 0 rgba(255,255,255,0.6),
    1080px 270px 0 rgba(255,255,255,0.8),
    60px 400px 0 rgba(255,255,255,0.5),
    160px 450px 0 rgba(255,255,255,0.7),
    320px 480px 0 rgba(255,255,255,0.4),
    520px 420px 0 rgba(255,255,255,0.6);
}

/* 金の和柄雲 */
.hero-clouds {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* 月 */
.moon {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff9e0, #f0d070 40%, #d4a830);
  top: 12%;
  right: 18%;
  box-shadow: 0 0 40px 20px rgba(240,200,80,0.25), 0 0 80px 40px rgba(240,200,80,0.1);
  z-index: 3;
}

/* 城のSVGイラスト代替 - CSSで城っぽい形 */
.castle-visual {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  height: 90%;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.castle-svg-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

/* 提灯 */
.lantern {
  position: absolute;
  z-index: 5;
}

.lantern-body {
  width: 22px;
  height: 38px;
  border-radius: 50% / 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lantern-1 {
  right: 8%;
  top: 30%;
}
.lantern-2 {
  right: 22%;
  top: 42%;
}
.lantern-3 {
  right: 38%;
  top: 25%;
}

/* ヒーローコンテンツ */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 120px;
  width: 100%;
}

.hero-left {
  max-width: 520px;
}

.hero-castle-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.15em;
  line-height: 1;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.9;
  margin-bottom: 36px;
  letter-spacing: 0.03em;
}

.cta-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: rgba(7,31,58,0.85);
  border: 1.5px solid var(--gold);
  color: #fff;
  padding: 18px 36px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.cta-btn:hover {
  background: rgba(214,168,79,0.15);
  box-shadow: 0 0 20px rgba(214,168,79,0.3);
  transform: translateY(-2px);
}

.cta-btn-main {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cta-btn-sub {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-left: 28px;
}

/* ===== WAVE DIVIDER ===== */
.wave-divider {
  position: relative;
  height: 120px;
  background: var(--navy-dark);
  margin-top: -1px;
}

.wave-divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===== GOLD DECORATIVE LINE ===== */
.gold-line-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.gold-line-deco::before,
.gold-line-deco::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.gold-line-deco::after {
  background: linear-gradient(to left, transparent, var(--gold));
}

.gold-line-deco span {
  color: var(--gold);
  font-size: 1rem;
}

/* ===== SECTION COMMON ===== */
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-mid);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  line-height: 1.8;
  margin-bottom: 56px;
}

/* ===== 城民とは？ ===== */
.about-section {
  background: var(--cream);
  padding: 80px 24px 96px;
  position: relative;
}

/* 和柄背景 */
.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: 
    repeating-linear-gradient(
      45deg,
      var(--gold) 0px,
      var(--gold) 1px,
      transparent 1px,
      transparent 20px
    ),
    repeating-linear-gradient(
      -45deg,
      var(--gold) 0px,
      var(--gold) 1px,
      transparent 1px,
      transparent 20px
    );
  pointer-events: none;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature-card {
  text-align: center;
  padding: 20px 12px;
}

.feature-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 16px rgba(7,31,58,0.2);
}

.feature-icon-wrap svg {
  width: 38px;
  height: 38px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

.feature-gold-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 14px;
}

.feature-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.8;
  letter-spacing: 0.03em;
}

/* ===== APP SCREENSHOTS ===== */
.screens-section {
  background: var(--cream);
  padding: 40px 24px 96px;
  position: relative;
}

.screens-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.screens-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.screen-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* iPhoneモックアップ */
.iphone-mock {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 390 / 844;
  background: #000;
  border-radius: 36px;
  border: 3px solid #2a3a50;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(3,20,38,0.4),
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 0 0 1px rgba(214,168,79,0.2);
}

.iphone-mock::before {
  display: none;
}

.iphone-mock img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 33px;
}

/* DM画面は縦横比が若干異なるため個別調整 */
.iphone-mock img.screen-dm-img {
  object-fit: fill;
}

.iphone-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

/* タイムライン画面 */
.screen-timeline {
  background: #f5f5f5;
}

.screen-header-bar {
  background: var(--navy);
  height: 44px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}

.screen-header-bar span {
  color: white;
  font-size: 7px;
  font-weight: bold;
}

.screen-post {
  background: white;
  margin: 6px 8px;
  border-radius: 8px;
  padding: 8px;
}

.screen-post-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  margin-right: 4px;
  vertical-align: middle;
}

.screen-post-name {
  font-size: 6px;
  font-weight: bold;
  color: var(--navy);
}

.screen-post-text {
  font-size: 5.5px;
  color: #333;
  margin-top: 4px;
  line-height: 1.4;
}

.screen-post-img {
  width: 100%;
  height: 40px;
  border-radius: 4px;
  margin-top: 4px;
  background: linear-gradient(135deg, #d4a83060, #071F3A40);
}

.screen-post-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.screen-post-actions span {
  font-size: 5px;
  color: #888;
}

/* 同行者募集画面 */
.screen-recruit {
  background: #f8f8f8;
}

.screen-recruit-card {
  background: white;
  margin: 6px 8px;
  border-radius: 8px;
  padding: 7px;
}

.screen-recruit-title {
  font-size: 6px;
  font-weight: bold;
  color: var(--navy);
  margin-bottom: 3px;
}

.screen-recruit-thumb {
  width: 100%;
  height: 35px;
  border-radius: 4px;
  background: linear-gradient(135deg, #2a4a7a, #1a2a4a);
  margin-bottom: 3px;
}

.screen-recruit-info {
  font-size: 5px;
  color: #666;
  line-height: 1.5;
}

.screen-recruit-badge {
  display: inline-block;
  background: var(--navy);
  color: white;
  font-size: 4.5px;
  padding: 1px 4px;
  border-radius: 2px;
  margin-top: 2px;
}

/* DM画面 */
.screen-dm {
  background: #f5f5f5;
}

.screen-dm-header {
  background: var(--navy);
  padding: 6px 10px;
  color: white;
  font-size: 6.5px;
  font-weight: bold;
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.screen-dm-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
}

.screen-msg {
  margin: 5px 8px;
  display: flex;
  flex-direction: column;
}

.screen-msg.them {
  align-items: flex-start;
}

.screen-msg.me {
  align-items: flex-end;
}

.screen-bubble {
  padding: 4px 7px;
  border-radius: 8px;
  font-size: 5px;
  max-width: 70%;
  line-height: 1.4;
  color: white;
}

.screen-msg.them .screen-bubble {
  background: #555;
  border-radius: 2px 8px 8px 8px;
}

.screen-msg.me .screen-bubble {
  background: var(--navy);
  border-radius: 8px 2px 8px 8px;
}

/* プロフィール画面 */
.screen-profile {
  background: #f5f5f5;
}

.screen-profile-header {
  background: var(--navy);
  height: 55px;
  margin-top: 22px;
  padding: 8px;
  text-align: center;
}

.screen-profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  margin: 0 auto;
  border: 2px solid white;
}

.screen-profile-name {
  font-size: 6px;
  color: white;
  font-weight: bold;
  margin-top: 2px;
}

.screen-profile-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 6px;
  background: white;
}

.screen-stat {
  text-align: center;
}

.screen-stat-num {
  font-size: 7px;
  font-weight: bold;
  color: var(--navy);
}

.screen-stat-label {
  font-size: 4.5px;
  color: #888;
}

.screen-profile-section {
  margin: 5px 8px;
}

.screen-profile-section-title {
  font-size: 5.5px;
  font-weight: bold;
  color: var(--navy);
  border-bottom: 0.5px solid var(--gold);
  padding-bottom: 2px;
  margin-bottom: 4px;
}

.screen-history-item {
  background: white;
  padding: 4px 5px;
  border-radius: 4px;
  margin-bottom: 3px;
  display: flex;
  gap: 4px;
  align-items: center;
}

.screen-history-thumb {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(135deg, #2a4a7a, #D6A84F);
  flex-shrink: 0;
}

.screen-history-text {
  font-size: 4.5px;
  color: #444;
  line-height: 1.4;
}

.screen-label-btn {
  background: var(--navy);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  width: 100%;
  max-width: 200px;
  border: 1px solid var(--gold);
}

/* ===== DARK SECTION (下部) ===== */
.dark-section {
  background: var(--navy-dark);
  padding: 80px 24px;
  position: relative;
  border-top: 1px solid rgba(214,168,79,0.3);
}

/* 和柄背景 - dark */
.dark-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: 
    radial-gradient(circle at 20px 20px, var(--gold) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.dark-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  position: relative;
}

.dark-col-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
  letter-spacing: 0.08em;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(214,168,79,0.3);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dark-col-title::before,
.dark-col-title::after {
  content: '—';
  font-size: 0.8rem;
  opacity: 0.6;
}

.dark-col p {
  color: rgba(255,255,255,0.72);
  font-size: 0.85rem;
  line-height: 2;
  letter-spacing: 0.03em;
}

/* お知らせ */
.news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(214,168,79,0.15);
  color: rgba(255,255,255,0.72);
  font-size: 0.83rem;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.news-date {
  color: var(--gold);
  font-size: 0.78rem;
  margin-right: 12px;
  font-family: 'Noto Serif JP', serif;
}

.news-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 28px;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.83rem;
  border-radius: 4px;
  transition: all 0.2s;
  letter-spacing: 0.06em;
}

.news-btn:hover {
  background: rgba(214,168,79,0.15);
}

/* 運営メッセージ */
.dark-message {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 2.2;
  letter-spacing: 0.06em;
  border-left: 2px solid var(--gold);
  padding-left: 20px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--cream);
  padding: 40px 24px;
  border-top: 1px solid rgba(214,168,79,0.4);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gold);
  font-family: 'Noto Serif JP', serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
}

.footer-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  padding: 0 12px;
  border-right: 1px solid rgba(0,0,0,0.15);
}

.footer-links a:last-child {
  border-right: none;
}

.footer-links a:hover {
  color: var(--gold-dark);
}

.footer-copy {
  color: var(--text-mid);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

/* ===== SUB PAGES ===== */
.subpage-hero {
  background: var(--navy-dark);
  padding: 120px 24px 60px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(214,168,79,0.3);
}

.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #031426 0%, #071F3A 100%);
  z-index: 0;
}

.subpage-hero-inner {
  position: relative;
  z-index: 1;
}

.subpage-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.subpage-subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

.subpage-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.content-card {
  background: var(--card-white);
  border-radius: 16px;
  padding: 48px 52px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
  border: 1px solid rgba(214,168,79,0.2);
}

.content-card h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(214,168,79,0.3);
  letter-spacing: 0.06em;
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card p {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 2;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.content-card ul {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 2;
  letter-spacing: 0.04em;
  padding-left: 20px;
  margin-bottom: 12px;
}

.content-card ul li {
  margin-bottom: 6px;
}

/* お問い合わせフォーム */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1px solid rgba(214,168,79,0.4);
  border-radius: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: white;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  background: var(--navy);
  color: white;
  border: 1px solid var(--gold);
  padding: 14px 40px;
  border-radius: 8px;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-start;
}

.form-submit:hover {
  background: rgba(7,31,58,0.85);
  box-shadow: 0 4px 16px rgba(214,168,79,0.2);
  transform: translateY(-1px);
}

/* ===== 新モックアップ共通スタイル ===== */
.ms-status {
  height: 22px;
  background: #071F3A;
  flex-shrink: 0;
}

.ms-header {
  background: #071F3A;
  padding: 5px 10px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #D6A84F;
  flex-shrink: 0;
}

.ms-header-title {
  font-size: 7px;
  font-weight: bold;
  color: white;
  letter-spacing: 0.03em;
}

.ms-header-sub {
  font-size: 4px;
  color: var(--gold);
  margin-top: 1px;
}

.ms-icon-btn {
  font-size: 7px;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
}

.ms-search {
  background: white;
  border-radius: 12px;
  margin: 5px 8px 4px;
  padding: 4px 8px;
  font-size: 5px;
  color: #aaa;
  border: 0.5px solid #e8e8e8;
  flex-shrink: 0;
}

.ms-tab-row {
  display: flex;
  background: white;
  border-bottom: 0.5px solid #eee;
  flex-shrink: 0;
}

.ms-tab {
  flex: 1;
  text-align: center;
  padding: 5px 0 4px;
  font-size: 5px;
  color: #aaa;
}

.ms-tab.active {
  color: #D6A84F;
  font-weight: bold;
  border-bottom: 1.5px solid #D6A84F;
}

.ms-post {
  background: white;
  margin: 4px 6px;
  border-radius: 8px;
  padding: 7px 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.ms-post-top {
  display: flex;
  gap: 5px;
  align-items: flex-start;
  margin-bottom: 4px;
}

.ms-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #ddd;
}

.ms-post-meta {
  flex: 1;
  min-width: 0;
}

.ms-uname {
  font-size: 5.5px;
  font-weight: bold;
  color: #071F3A;
}

.ms-verified {
  font-size: 5px;
  color: #D6A84F;
}

.ms-age-loc {
  font-size: 4px;
  color: #888;
  margin-top: 1px;
}

.ms-time {
  font-size: 4px;
  color: #D6A84F;
  margin-top: 1px;
}

.ms-post-text {
  font-size: 5px;
  color: #333;
  line-height: 1.5;
  margin-bottom: 4px;
}

.ms-post-img-placeholder {
  width: 100%;
  height: 32px;
  border-radius: 4px;
  background: linear-gradient(135deg, #c8a06040, #071F3A30);
  margin-bottom: 4px;
}

.ms-post-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 2px;
}

.ms-heart-filled {
  font-size: 5px;
  color: #D6A84F;
}

.ms-comment {
  font-size: 5px;
  color: #888;
}

.ms-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 0.5px solid #eee;
  display: flex;
  padding: 4px 0 6px;
}

.ms-nav-item {
  flex: 1;
  text-align: center;
  font-size: 8px;
  color: #bbb;
  line-height: 1.2;
}

.ms-nav-item span {
  display: block;
  font-size: 3.5px;
}

.ms-nav-item.active {
  color: #D6A84F;
}

/* 同行者カード */
.ms-recruit-card {
  background: white;
  margin: 4px 6px;
  border-radius: 8px;
  padding: 7px 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.ms-event-box {
  background: #f8f5ee;
  border-radius: 5px;
  padding: 4px 6px;
  margin-bottom: 3px;
}

.ms-event-row {
  font-size: 4.5px;
  color: #444;
}

.ms-tag {
  background: rgba(7,31,58,0.08);
  color: #071F3A;
  font-size: 4px;
  padding: 1px 4px;
  border-radius: 3px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav { display: none; }
  .hamburger { display: flex; }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .screens-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dark-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .castle-visual {
    opacity: 0.25;
    width: 100%;
  }
  
  .hero-title {
    font-size: 4.5rem;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  
  .screens-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .footer-links {
    gap: 8px 12px;
  }
  
  .footer-links a {
    border-right: none;
    padding: 0;
  }
  
  .content-card {
    padding: 28px 24px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
}

/* アニメーション */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.moon {
  animation: float 6s ease-in-out infinite;
}

/* スクロールアニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
