/* ============================================================
   TOBIRA - 共通スタイルシート
   style.css  /  public_html/style.css に設置
   ============================================================ */

/* ===== CSS変数 ===== */
:root {
  --ink: #1a1814; --ink2: #3d3830; --ink3: #7a7060;
  --paper: #f7f4ee; --paper2: #edeae0; --paper3: #e2ddd0;
  --gold: #c8a84b; --gold2: #a88830; --gold-soft: rgba(200,168,75,0.12);
  --white: #ffffff; --radius: 4px; --radius-lg: 12px;
  --mono: 'DM Mono', monospace;
  --sans: 'Zen Kaku Gothic New', sans-serif;
  --serif: 'Shippori Mincho', serif;
  --display: 'DM Serif Display', serif;
}

/* ===== リセット ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* ===== ノイズテクスチャ ===== */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.6;
}

/* ===== ヘッダー ===== */
header {
  position: sticky; top: 0; z-index: 100;
  padding: 20px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(247,244,238,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--paper3);
}
.logo {
  font-family: var(--display);
  font-size: 24px; letter-spacing: 0.08em;
  color: var(--ink); text-decoration: none;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.85; }
.logo span { color: var(--gold); }

header nav { display: flex; gap: 32px; align-items: center; }
header nav a {
  font-size: 13px; font-weight: 500;
  color: var(--ink3); text-decoration: none;
  letter-spacing: 0.04em; transition: color 0.2s;
}
header nav a:hover { color: var(--ink); }

.btn-nav {
  padding: 8px 20px;
  background: var(--ink); color: var(--paper) !important;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 700;
  transition: background 0.2s;
}
.btn-nav:hover { background: var(--ink2) !important; }

/* ハンバーガーボタン */
.hamburger {
  display: none;
  background: none; border: none;
  font-size: 24px; color: var(--ink2);
  cursor: pointer; padding: 4px 8px; line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

/* メニューオーバーレイ */
.menu-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(26,24,20,0.5); z-index: 98;
  backdrop-filter: blur(2px);
}
.menu-overlay.open { display: block; }

/* ===== フッター ===== */
footer {
  background: var(--ink);
  color: rgba(247,244,238,0.5);
  padding: 48px;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  font-family: var(--display);
  font-size: 20px; color: var(--paper); letter-spacing: 0.08em;
}
.footer-logo span { color: var(--gold); }
footer p { font-size: 12px; letter-spacing: 0.04em; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a {
  font-size: 12px; color: rgba(247,244,238,0.5);
  text-decoration: none; transition: color 0.2s;
}
.footer-nav a:hover { color: var(--paper); }

/* ===== 共通コンポーネント ===== */
p { font-size: 14px; color: var(--ink2); line-height: 2; margin-bottom: 12px; }
ol, ul { padding-left: 24px; margin-bottom: 12px; }
ol li, ul li { font-size: 14px; color: var(--ink2); line-height: 2; margin-bottom: 4px; }

.btn-primary {
  padding: 14px 32px; background: var(--gold); color: var(--ink);
  border-radius: var(--radius); font-size: 14px; font-weight: 700;
  letter-spacing: 0.06em; text-decoration: none;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(200,168,75,0.3);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(200,168,75,0.4); }

.btn-secondary {
  padding: 14px 28px; background: transparent; color: var(--ink2);
  border: 1px solid var(--paper3); border-radius: var(--radius);
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  text-decoration: none; transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--ink3); background: var(--paper2); }

.highlight-box {
  background: var(--gold-soft); border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 20px 24px; margin: 20px 0;
}
.highlight-box p { color: var(--ink2); margin: 0; }

/* ===== サブページ共通レイアウト ===== */
.page-hero {
  padding: 80px 48px 60px;
  background: var(--ink); color: var(--paper);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(200,168,75,0.08) 0%, transparent 60%);
}
.page-hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.page-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.page-eyebrow::before { content: ''; display: block; width: 24px; height: 1px; background: var(--gold); }
.page-title {
  font-family: var(--serif); font-size: clamp(28px, 4vw, 48px);
  font-weight: 700; color: var(--paper); line-height: 1.3;
}
.page-content { max-width: 900px; margin: 0 auto; padding: 64px 48px; }
.section { margin-bottom: 56px; }
.section-title {
  font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink);
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--gold);
  display: flex; align-items: center; gap: 10px;
}
.section-title::before { content: ''; display: block; width: 4px; height: 22px; background: var(--gold); border-radius: 2px; }

.info-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.info-table th {
  width: 200px; padding: 14px 20px;
  background: var(--paper2); border: 1px solid var(--paper3);
  font-size: 13px; font-weight: 700; color: var(--ink2);
  text-align: left; vertical-align: top;
}
.info-table td { padding: 14px 20px; border: 1px solid var(--paper3); font-size: 14px; color: var(--ink2); line-height: 1.8; }
.info-table tr:hover th, .info-table tr:hover td { background: rgba(200,168,75,0.04); }

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

/* ===== TOPページ固有 ===== */
.app { display: flex; min-height: 100vh; }

/* ヒーロー */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 48px 80px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(200,168,75,0.08) 0%, transparent 60%), radial-gradient(ellipse 40% 40% at 20% 80%, rgba(45,106,79,0.05) 0%, transparent 50%); }
.hero-door { position: absolute; right: 8%; top: 50%; transform: translateY(-50%); width: 320px; height: 480px; opacity: 0; animation: doorReveal 1.2s cubic-bezier(0.16,1,0.3,1) 0.3s forwards; }
@keyframes doorReveal { from { opacity: 0; transform: translateY(-50%) scale(0.95); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
.hero-content { max-width: 600px; position: relative; z-index: 2; opacity: 0; animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.1s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.hero-eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: var(--gold); }
.hero-title { font-family: var(--serif); font-size: clamp(36px, 5vw, 60px); font-weight: 800; line-height: 1.3; color: var(--ink); margin-bottom: 12px; white-space: normal; }
.hero-title .accent { color: var(--gold); font-style: italic; font-family: var(--display); }
.hero-subtitle { font-family: var(--serif); font-size: clamp(18px, 2.5vw, 26px); font-weight: 400; color: var(--ink2); margin-bottom: 28px; line-height: 1.6; }
.hero-desc { font-size: 15px; color: var(--ink3); line-height: 1.9; margin-bottom: 40px; max-width: 500px; }
.hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* セクション共通 */
section { padding: 100px 48px; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.section-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--gold); }
.section-title-top { font-family: var(--serif); font-size: clamp(28px, 4vw, 48px); font-weight: 700; line-height: 1.3; color: var(--ink); margin-bottom: 16px; }
.section-desc { font-size: 15px; color: var(--ink3); line-height: 1.9; max-width: 560px; }

/* コンセプト */
.concept { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.concept::before { content: 'TOBIRA'; position: absolute; font-family: var(--display); font-size: 280px; color: rgba(255,255,255,0.02); top: 50%; left: 50%; transform: translate(-50%,-50%); white-space: nowrap; pointer-events: none; }
.concept .section-title-top { color: var(--paper); }
.concept .section-desc { color: rgba(247,244,238,0.7); }
.concept .section-label { color: var(--gold); }
.concept .section-label::before { background: var(--gold); }
.concept-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 64px; max-width: 1000px; }
.concept-card { padding: 36px; border: 1px solid rgba(247,244,238,0.08); border-radius: var(--radius-lg); background: rgba(247,244,238,0.03); transition: border-color 0.3s, background 0.3s; position: relative; overflow: hidden; }
.concept-card:hover { border-color: rgba(200,168,75,0.3); background: rgba(200,168,75,0.04); }
.concept-number { font-family: var(--display); font-size: 64px; color: rgba(200,168,75,0.15); position: absolute; top: 20px; right: 28px; line-height: 1; }
.concept-icon { font-size: 32px; margin-bottom: 16px; }
.concept-card h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--paper); margin-bottom: 10px; }
.concept-card p { font-size: 14px; color: rgba(247,244,238,0.6); line-height: 1.8; }

/* ステップ */
.steps { display: flex; flex-direction: column; gap: 0; margin-top: 64px; position: relative; }
.steps::before { content: ''; position: absolute; left: 28px; top: 40px; bottom: 40px; width: 1px; background: linear-gradient(to bottom, var(--gold), var(--paper3)); }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 32px; padding: 32px 0; align-items: start; opacity: 0; transform: translateX(-20px); transition: opacity 0.6s, transform 0.6s; }
.step.visible { opacity: 1; transform: translateX(0); }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--ink); font-family: var(--display); font-size: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 16px rgba(200,168,75,0.3); position: relative; z-index: 1; }
.step-body h3 { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 8px; padding-top: 12px; }
.step-body p { font-size: 14px; color: var(--ink3); line-height: 1.9; max-width: 560px; }
.step-tag { display: inline-block; padding: 4px 12px; background: var(--gold-soft); color: var(--gold2); border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 8px; }

/* フィーチャー */
.features { background: var(--paper2); }
.features-inner { max-width: 1100px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 56px; }
.feature-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px 28px; border: 1px solid var(--paper3); transition: transform 0.25s, box-shadow 0.25s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(26,24,20,0.08); }
.feature-icon { width: 48px; height: 48px; background: var(--gold-soft); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.feature-card h3 { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--ink3); line-height: 1.8; }

/* ドリーム */
.dream { background: linear-gradient(135deg, #1a1814 0%, #2d2518 50%, #1a1814 100%); color: var(--paper); text-align: center; padding: 120px 48px; position: relative; overflow: hidden; }
.dream::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 30% 40%, rgba(200,168,75,0.08) 0%, transparent 60%), radial-gradient(ellipse 40% 40% at 70% 70%, rgba(45,106,79,0.06) 0%, transparent 50%); }
.dream-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.dream .section-title-top { color: var(--paper); font-size: clamp(28px,4vw,52px); margin-bottom: 24px; }
.dream-desc { font-size: 16px; color: rgba(247,244,238,0.7); line-height: 2; margin-bottom: 20px; }
.dream-highlight { font-family: var(--serif); font-size: clamp(18px,2.5vw,28px); color: var(--gold); font-weight: 600; line-height: 1.7; margin: 32px 0; padding: 24px 32px; border-left: 3px solid var(--gold); text-align: left; background: rgba(200,168,75,0.05); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.world-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 32px 0; }
.world-tag { padding: 8px 18px; border: 1px solid rgba(200,168,75,0.3); border-radius: 24px; font-size: 13px; color: rgba(247,244,238,0.8); background: rgba(200,168,75,0.05); }

/* お問い合わせフォーム */
.contact-box { background: var(--white); border: 1px solid var(--paper3); border-radius: var(--radius-lg); padding: 56px 48px; max-width: 640px; margin-top: 48px; box-shadow: 0 4px 32px rgba(26,24,20,0.06); }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-group label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink2); }
.form-group input, .form-group textarea, .form-group select { padding: 11px 14px; border: 1px solid var(--paper3); border-radius: var(--radius); font-size: 16px; font-family: var(--sans); color: var(--ink); background: var(--paper); transition: border-color 0.2s, box-shadow 0.2s; width: 100%; -webkit-appearance: none; appearance: none; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a5a72' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-color: var(--paper); padding-right: 32px; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-form { width: 100%; padding: 14px; background: var(--ink); color: var(--paper); border: none; border-radius: var(--radius); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; cursor: pointer; transition: background 0.2s, transform 0.2s; font-family: var(--sans); }
.btn-form:hover { background: var(--ink2); transform: translateY(-1px); }

/* タブ */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--paper3); }
.tab { padding: 10px 16px; font-size: 13px; color: var(--ink2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.15s; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
  .concept-grid { grid-template-columns: 1fr; gap: 20px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  /* ヘッダー */
  header { padding: 14px 20px; }
  .logo { font-size: 20px; }
  header nav { gap: 0; }
  header nav a:not(.btn-nav) { display: none; }
  .hamburger { display: block; }

  /* ドロワーナビ */
  #main-nav {
    position: fixed; top: 0; right: -280px; width: 260px; height: 100vh;
    background: var(--paper); z-index: 99;
    flex-direction: column; align-items: flex-start;
    padding: 80px 32px 32px; gap: 0;
    transition: right 0.3s cubic-bezier(0.16,1,0.3,1);
    box-shadow: -4px 0 24px rgba(26,24,20,0.15);
  }
  #main-nav.open { right: 0; }
  #main-nav a { display: block; width: 100%; padding: 14px 0; font-size: 15px; font-weight: 500; color: var(--ink2); border-bottom: 1px solid var(--paper3); }
  #main-nav a:last-child { border-bottom: none; }
  #main-nav .btn-nav { margin-top: 20px; padding: 12px 20px; text-align: center; background: var(--ink); color: var(--paper) !important; border-radius: var(--radius); border-bottom: none; width: 100%; }

  /* フッター */
  footer { padding: 28px 20px; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .footer-nav { justify-content: center; gap: 12px; }

  /* ヒーロー */
  .hero { padding: 90px 20px 50px; min-height: auto; }
  .hero-door { display: none; }
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 16px; }
  .hero-desc { font-size: 14px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta a { text-align: center; justify-content: center; }

  /* セクション */
  section { padding: 56px 20px; }
  .section-title-top { font-size: 26px; }
  .concept-grid { grid-template-columns: 1fr; gap: 16px; }
  .concept-card { padding: 24px 20px; }
  .steps::before { display: none; }
  .step { grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; }
  .step-num { width: 44px; height: 44px; font-size: 18px; }
  .step-body h3 { font-size: 17px; }
  .features-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card { padding: 22px 18px; }
  .dream { padding: 64px 20px; }
  .dream-highlight { padding: 16px 18px; font-size: 16px; }
  .world-tags { gap: 8px; }
  .world-tag { font-size: 12px; padding: 6px 12px; }
  .contact-box { padding: 24px 18px; }

  /* サブページ */
  .page-hero { padding: 60px 20px 40px; }
  .page-content { padding: 40px 20px; }
  .section-title { font-size: 18px; }
  .info-table th { width: 110px; padding: 10px 12px; font-size: 12px; }
  .info-table td { padding: 10px 12px; font-size: 13px; }
}

@media (max-width: 390px) {
  .hero-title { font-size: 30px; }
  .btn-primary, .btn-secondary { padding: 12px 20px; font-size: 13px; }
  .footer-nav a { font-size: 11px; }
}
