/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', 'Noto Serif JP', sans-serif; color: #2a1a1a; background: #fff; line-height: 1.7; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== VARIABLES ===== */
:root {
  /* メインカラー：赤・白 */
  --primary: #c5302d;       /* IBT赤 */
  --primary-dark: #a02624;  /* 濃い赤 */
  --primary-light: #e04540; /* 明るい赤 */
  /* 差し色：金 */
  --accent: #c8a96e;
  --accent-dark: #a8893e;
  --accent-light: #e8c98e;
  /* テキスト */
  --text: #1a0a0a;
  --text-mid: #4a3030;
  --text-light: #6a5050;
  /* 背景 */
  --bg-white: #ffffff;
  --bg-light: #fdf5f5;      /* 薄い赤みがかった白 */
  --bg-warm: #faf8f5;       /* 温かみのある白 */
  --bg-red: #c5302d;        /* 赤背景 */
  --bg-red-dark: #8a1f1d;   /* 濃い赤背景 */
  --bg-red-deep: #5c1210;   /* 最も濃い赤 */
  /* ボーダー */
  --border: #f0dada;
  --border-mid: #e0c0c0;
  /* その他 */
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(197,48,45,0.08);
  --shadow-lg: 0 8px 40px rgba(197,48,45,0.16);
  --max-width: 1200px;
  --transition: 0.25s ease;
}

/* ===== CONTAINER ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }

/* ===== HEADER ===== */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 2px 16px rgba(197,48,45,0.12);
  transition: var(--transition);
}
.header-inner {
  display: flex; align-items: center; justify-content: flex-start;
  height: 68px; gap: 36px; max-width: var(--max-width); margin: 0 auto; padding: 0 40px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 36px; width: auto; filter: none; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-mid); font-size: 0.88rem; font-weight: 600; letter-spacing: 0.04em; transition: color var(--transition); white-space: nowrap; }
.nav-links a:hover { color: var(--primary); }
.btn-nav {
  background: var(--primary); color: var(--white) !important;
  padding: 8px 20px; border-radius: 4px; font-weight: 600 !important;
  transition: background var(--transition) !important;
}
.btn-nav:hover { background: var(--primary-dark) !important; }
.lang-switcher { display: flex; gap: 4px; margin-left: auto; flex-shrink: 0; }
.lang-btn {
  background: transparent; border: 1px solid var(--border-mid);
  color: var(--text-light); padding: 4px 10px; border-radius: 3px;
  font-size: 0.75rem; font-weight: 600; cursor: pointer; letter-spacing: 0.06em;
  transition: all var(--transition);
}
.lang-btn:hover, .lang-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.hamburger { display: none; background: none; border: none; color: var(--primary); font-size: 1.5rem; cursor: pointer; margin-left: auto; }
.mobile-menu {
  display: none; flex-direction: column; padding: 16px 24px 20px;
  background: var(--bg-white); border-top: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(197,48,45,0.1);
}
.mobile-menu a { color: var(--text-mid); padding: 12px 0; font-size: 1rem; border-bottom: 1px solid var(--border); font-weight: 500; }
.mobile-menu.open { display: flex; }
.lang-switcher-mobile { display: flex; gap: 8px; margin-top: 16px; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block; background: var(--accent); color: #2a1a00;
  padding: 14px 32px; border-radius: 4px; font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.04em; transition: all var(--transition); border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(200,169,110,0.5); }
.btn-full { width: 100%; text-align: center; }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: white;
  padding: 14px 28px; border-radius: 4px; font-weight: 600; font-size: 0.95rem;
  transition: all var(--transition);
}
.btn-whatsapp:hover { background: #1da851; transform: translateY(-1px); }
.btn-whatsapp-lg {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: white;
  padding: 14px 28px; border-radius: 4px; font-weight: 600; font-size: 0.95rem;
  margin-top: 12px; transition: all var(--transition); width: 100%; justify-content: center;
}
.btn-whatsapp-lg:hover { background: #1da851; }

/* ===== HERO ===== */
#hero {
  position: relative; min-height: 100vh;
  background: url('images/hero_bg.png') center/cover no-repeat;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 68px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.10) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  padding: 80px 0 40px;
  max-width: 640px;
  text-align: left;
  margin-left: max(8%, calc((100vw - var(--max-width)) / 2 + 40px));
}
.hero-eyebrow {
  display: inline-block; color: #1a1a1a; font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(255,255,255,0.75); border: 1px solid rgba(0,0,0,0.2);
  padding: 5px 14px; border-radius: 3px;
  margin-bottom: 24px; white-space: nowrap;
  backdrop-filter: blur(4px);
}
.hero-content h1 {
  font-family: 'Noto Serif JP', serif; font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700; color: #111111; line-height: 1.2;
  margin-bottom: 20px; letter-spacing: -0.01em;
}
.hero-sub { color: rgba(30,30,30,0.90); font-size: 1rem; margin-bottom: 32px; max-width: 520px; line-height: 1.75; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.95);
  border-top: 4px solid var(--accent);
  backdrop-filter: blur(8px); margin-top: auto;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
}
.stats-inner {
  display: flex; justify-content: space-around; align-items: center;
  padding: 24px 40px; flex-wrap: wrap; gap: 16px;
  max-width: var(--max-width); margin: 0 auto;
}
.stat-item { text-align: center; flex: 1; min-width: 120px; }
.stat-num { display: block; font-family: 'Noto Serif JP', serif; font-size: 1.9rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.72rem; color: var(--text-light); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.4; }

/* ===== SECTIONS ===== */
.section-light { background: var(--bg-white); padding: 88px 0; }
.section-warm { background: var(--bg-light); padding: 88px 0; }
.section-dark { background: var(--bg-red-dark); padding: 88px 0; }
.section-alt {
  background: linear-gradient(160deg, var(--bg-red) 0%, var(--bg-red-dark) 100%);
  padding: 88px 0;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header.light h2, .section-header.light .section-eyebrow { color: var(--white); }
.section-header.light .section-desc { color: rgba(255,255,255,0.8); }
.section-eyebrow {
  display: inline-block; font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 12px; color: var(--primary);
  border-bottom: 2px solid var(--primary); padding-bottom: 4px;
}
.section-header.light .section-eyebrow {
  color: var(--accent-light);
  border-bottom-color: var(--accent-light);
}
.section-header h2 {
  font-family: 'Noto Serif JP', serif; font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; color: var(--text); margin-bottom: 14px; letter-spacing: -0.01em;
}
.section-dark .section-header h2, .section-alt .section-header h2 { color: var(--white); }
.section-desc { color: var(--text-light); font-size: 0.95rem; max-width: 580px; margin: 0 auto; line-height: 1.75; }

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px;
  transition: all var(--transition); position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-card h3 {
  font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 12px;
  padding-left: 12px; border-left: 3px solid var(--primary); line-height: 1.4;
}
.service-card p { color: var(--text-light); font-size: 0.88rem; margin-bottom: 16px; line-height: 1.7; }
.service-card blockquote {
  border-left: 3px solid var(--accent);
  font-style: italic; color: var(--text-light); font-size: 0.8rem;
  background: rgba(200,169,110,0.08); padding: 10px 12px; border-radius: 0 4px 4px 0;
  line-height: 1.6;
}

/* ===== WHY US ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius); padding: 28px 24px;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.why-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.why-card:hover { background: rgba(255,255,255,0.15); border-color: var(--accent); }
.why-card:hover::after { transform: scaleX(1); }
.why-num {
  font-family: 'Noto Serif JP', serif; font-size: 2rem; font-weight: 700;
  color: var(--accent); opacity: 0.85; margin-bottom: 8px; line-height: 1;
}
.why-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 8px; line-height: 1.4; }
.why-card p { color: rgba(255,255,255,0.75); font-size: 0.85rem; line-height: 1.7; }

/* ===== TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.team-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all var(--transition); box-shadow: var(--shadow);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-photo {
  width: 100%; aspect-ratio: 3/4; background-size: cover; background-position: center top;
  background-color: #f5e8e8;
}
.team-info { padding: 16px 18px; border-top: 3px solid var(--primary); }
.team-info h3 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 4px; line-height: 1.4; }
.team-role { font-size: 0.72rem; color: var(--primary); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; line-height: 1.4; }
.team-langs { font-size: 0.75rem; color: var(--text-light); line-height: 1.5; }

/* ===== CONTACT ===== */
.contact-wrapper { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.contact-form-cta {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 44px 40px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  box-shadow: var(--shadow); border-top: 4px solid var(--primary);
}
.form-cta-desc { color: var(--text-light); font-size: 0.95rem; line-height: 1.75; max-width: 480px; }
.btn-form-link {
  display: inline-flex; align-items: center;
  font-size: 1rem; padding: 14px 32px;
  background: var(--primary) !important; color: var(--white) !important;
}
.btn-form-link:hover { background: var(--primary-dark) !important; }
.form-note { font-size: 0.78rem; color: var(--text-light); margin-top: -4px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-block { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.contact-block h3 { font-size: 0.82rem; font-weight: 700; color: var(--text); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.contact-block p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 8px; line-height: 1.65; }
.contact-block a { color: var(--text); }
.contact-block a:hover { color: var(--primary); }
.license-block { background: var(--bg-red-dark); border-top: 3px solid var(--accent); }
.license-block h3 { color: var(--white) !important; }
.license-badge { font-size: 0.78rem; font-weight: 700; color: var(--accent) !important; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px !important; }
.license-detail { font-size: 0.8rem; color: rgba(255,255,255,0.8) !important; line-height: 1.65; }

/* ===== FOOTER ===== */
#footer { background: var(--bg-red-deep); border-top: 3px solid var(--accent); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.footer-logo-img { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-copy { color: rgba(255,255,255,0.5); font-size: 0.78rem; }

/* ===== CASE STUDY (kept for JS compatibility) ===== */
.cases-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn {
  background: var(--bg-white); border: 1px solid var(--border); color: var(--text-light);
  padding: 10px 24px; border-radius: 4px; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition); letter-spacing: 0.04em;
}
.tab-btn.active, .tab-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.case-content { animation: fadeIn 0.3s ease; }
.case-content.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.itinerary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.day-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px;
  font-size: 0.88rem; color: var(--text-light);
}
.day-card .day-label { display: block; font-size: 0.7rem; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; }
.day-card > span { font-family: 'Noto Serif JP', serif; font-size: 1.8rem; font-weight: 700; color: var(--primary); display: block; margin-bottom: 8px; }
.day-card p { line-height: 1.6; }

/* ===== RESPONSIVE: TABLET (max 1024px) ===== */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .header-inner { padding: 0 32px; }
  .footer-inner { padding: 0 32px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-wrapper { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-cta { padding: 36px 32px; }
  .hero-content { margin-left: 5%; }
}

/* ===== RESPONSIVE: MOBILE (max 768px) ===== */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .header-inner { padding: 0 20px; gap: 0; }
  .footer-inner { padding: 0 20px; }

  /* Nav */
  .nav-links { display: none; }
  .lang-switcher { display: none; }
  .hamburger { display: block; }

  /* Hero */
  .hero-content {
    margin-left: 0;
    padding: 60px 20px 32px;
    max-width: 100%;
  }
  .hero-eyebrow {
    font-size: 0.72rem;
    padding: 4px 12px;
    white-space: normal;
    display: inline-block;
    max-width: 280px;
  }
  .hero-content h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); margin-bottom: 16px; }
  .hero-sub { font-size: 0.9rem; margin-bottom: 24px; }
  .hero-cta { flex-direction: column; gap: 12px; }
  .hero-cta .btn-primary,
  .hero-cta .btn-whatsapp { width: auto; align-self: flex-start; }

  /* Stats */
  .stats-inner { padding: 20px 16px; gap: 12px; }
  .stat-item { min-width: 100px; flex: 1 1 calc(33% - 12px); }
  .stat-num { font-size: 1.5rem; }
  .stat-label { font-size: 0.65rem; }

  /* Sections */
  .section-light, .section-warm, .section-dark, .section-alt { padding: 56px 0; }
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: clamp(1.4rem, 5.5vw, 1.8rem); }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 24px 20px; }

  /* Why Us */
  .why-grid { grid-template-columns: 1fr; gap: 14px; }
  .why-card { padding: 24px 20px; }
  .why-num { font-size: 1.7rem; }

  /* Team */
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .team-info { padding: 14px 14px; }
  .team-info h3 { font-size: 0.85rem; }
  .team-role { font-size: 0.68rem; }
  .team-langs { font-size: 0.7rem; }

  /* Contact */
  .contact-form-cta { padding: 28px 20px; gap: 16px; }
  .contact-block { padding: 20px; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
}

/* ===== RESPONSIVE: SMALL MOBILE (max 480px) ===== */
@media (max-width: 480px) {
  .stats-inner { gap: 8px; }
  .stat-item { flex: 1 1 calc(50% - 8px); }
  .stat-num { font-size: 1.4rem; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-cta .btn-primary,
  .hero-cta .btn-whatsapp { width: 100%; justify-content: center; text-align: center; }
}
