/* ============================================
   BUSHIDO — Design System
   Nike/Jordan style: black · white · orange
   ============================================ */

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

/* ─── TOKENS ─── */
:root {
  --bg:      #0d0d0d;
  --bg-2:    #111;
  --bg-3:    #161616;
  --white:   #fff;
  --grey:    #8a8a8a;
  --grey-lt: rgba(255,255,255,0.55);
  --orange:  #ff4500;
  --line:    rgba(255,255,255,0.09);
  --nav-h:   68px;
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --font-en: 'Inter', 'Arial Black', sans-serif;
  --font-ja: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;

  /* ── 旧デザインの変数を新デザインへマッピング ──
     各ページに残るインラインスタイルを壊さないための互換レイヤー */
  --color-primary:      #0d0d0d;
  --color-primary-dark: #000;
  --color-accent:       #ff4500;
  --color-white:        #fff;
  --color-text-muted:   #8a8a8a;
  --gradient-accent:    #ff4500;   /* グラデ廃止 → 単色オレンジ */

  --radius-md: 0;   /* 角丸は全廃（シャープに） */
  --radius-lg: 0;
  --radius-xl: 0;

  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-6:  26px;
  --space-8:  40px;
  --space-10: 56px;
  --space-12: 76px;

  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 14px;
  --text-lg:   clamp(15px, 1.7vw, 17px);
  --text-xl:   clamp(16px, 2vw, 20px);
  --text-2xl:  clamp(19px, 2.4vw, 25px);
  --text-3xl:  clamp(23px, 3.2vw, 34px);
  --text-4xl:  clamp(28px, 4.4vw, 52px);
}

/* ── 旧デザインの名残を打ち消す ── */

/* グラデーション文字 → 純白ソリッド */
[style*="text-fill-color"] {
  -webkit-text-fill-color: var(--white) !important;
  background: none !important;
  color: var(--white) !important;
}

/* インラインのカラーグラデ背景 → 落ち着いたダークサーフェス */
[style*="linear-gradient"] {
  background: var(--bg-3) !important;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-ja);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  width: 100%;
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img, .logo-blend img {
  width: 164px;   /* 740:144 の比率を厳守 */
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--grey);
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-links .nav-cta {
  background: var(--white);
  color: var(--bg) !important;
  padding: 9px 20px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.nav-links .nav-cta:hover {
  background: var(--orange);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── PAGE HEADER ─── */
.page-header {
  padding: calc(var(--nav-h) + clamp(64px, 9vw, 130px)) 0 clamp(56px, 8vw, 110px);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}

.breadcrumb a { color: var(--grey); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .separator { margin: 0 10px; opacity: 0.4; }

.page-header h1 {
  font-family: var(--font-en);
  font-size: clamp(38px, 8vw, 110px);
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 0.9;
  color: var(--white);
  word-break: break-word;
}

.page-header p {
  font-size: clamp(14px, 1.7vw, 17px);
  color: var(--grey-lt);
  margin-top: 22px;
  max-width: 620px;
  line-height: 1.85;
}

/* ─── SECTION ─── */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-dark { background: var(--bg-2); }

.section-header { margin-bottom: clamp(44px, 6vw, 80px); }

.section-subtitle {
  display: block;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}

.section h2 {
  font-size: clamp(24px, 3.6vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--white);
}

.section h3 {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}

.section p { color: var(--grey); font-size: 14px; line-height: 1.9; }

.section-icon, .inline-icon {
  width: 22px; height: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  display: inline-block;
  vertical-align: -4px;
  margin-right: 8px;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  font-family: var(--font-ja);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 13px 30px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.btn-primary {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}

.btn-primary:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}

.btn-secondary:hover { border-color: var(--white); }

.btn-lg { padding: 16px 42px; font-size: 14px; font-weight: 900; letter-spacing: 0.1em; }
.btn-sm { padding: 9px 20px; font-size: 12px; }

.btn-arrow::after { content: ' →'; }

/* ─── GRIDS ─── */
.grid-2, .grid-3, .features-grid, .program-grid,
.online-programs, .testimonials-grid, .achievement-grid {
  display: grid;
  gap: 2px;
}

.grid-2, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
.grid-3, .features-grid, .online-programs, .achievement-grid { grid-template-columns: repeat(3, 1fr); }
.program-grid { grid-template-columns: repeat(2, 1fr); }

/* ─── CARDS ─── */
.card, .feature-card, .program-card, .online-card,
.testimonial-card, .country-card, .achievement-card {
  background: var(--bg-3);
  padding: clamp(26px, 3.5vw, 46px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.25s;
}

.section-dark .card, .section-dark .feature-card,
.section-dark .program-card, .section-dark .online-card,
.section-dark .testimonial-card, .section-dark .country-card,
.section-dark .achievement-card { background: var(--bg); }

a.card:hover, a.feature-card:hover, a.program-card:hover,
a.country-card:hover, a.achievement-card:hover { background: #1c1c1c; }

.card h3, .feature-card h3, .program-card h3, .online-card h3 {
  font-size: clamp(16px, 1.9vw, 21px);
  font-weight: 900;
  color: var(--white);
  margin: 0;
}

.card p, .feature-card p, .program-card p {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.8;
  margin: 0;
}

.card-icon img, .feature-icon img, .online-icon img,
.card-icon, .feature-icon, .online-icon {
  width: 32px; height: 32px;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  margin-bottom: 6px;
}

.featured { border-top: 2px solid var(--orange); }

/* ─── PROGRAM HERO ─── */
.program-hero {
  position: relative;
  min-height: 62svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 60px) 0 clamp(48px, 6vw, 88px);
  overflow: hidden;
}

.program-hero-bg { position: absolute; inset: 0; }

.program-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.program-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(13,13,13,0.95) 0%, rgba(13,13,13,0.6) 50%, rgba(13,13,13,0.3) 100%);
}

.program-hero-content { position: relative; z-index: 2; width: 100%; }

.program-hero-content h1 {
  font-family: var(--font-en);
  font-size: clamp(36px, 8vw, 104px);
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 0.9;
  word-break: break-word;
}

/* 日本語見出し用：英語用の文字詰め・大文字化を外して読みやすく */
.program-hero-content h1.ja,
.page-header h1.ja {
  font-family: var(--font-ja);
  font-size: clamp(26px, 3.8vw, 48px);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
  font-weight: 900;
  max-width: 21em;   /* 横いっぱいに広がらないよう幅を絞る */
}

.program-hero-content p {
  max-width: 560px;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--grey-lt);
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}

/* ─── HERO STATS ─── */
.hero-stat { text-align: left; }

.hero-stat-number {
  font-family: var(--font-en);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
}

.hero-stat-label {
  font-size: 11px;
  color: var(--grey);
  margin-top: 5px;
  letter-spacing: 0.06em;
}

/* ─── PHOTO GALLERY ───
   すべて同じ縦横比（3:2）に揃えた均等グリッド。
   masonry（段組み）をやめたので、余白や段差が出ず、
   左→右の順に整然と並ぶ。 */
.photo-gallery, .country-photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 4px;
  margin-top: 32px;
}

.photo-gallery-item {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 3 / 2;
  background: var(--bg-3);
}

.photo-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;   /* 人物が上寄りの写真が多いため */
  display: block;
  transition: transform 0.6s var(--ease);
}

.photo-gallery-item:hover img { transform: scale(1.05); }

.photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
}

.photo-gallery-item:hover .photo-overlay { opacity: 1; }

.photo-caption { font-size: 13px; font-weight: 700; color: var(--white); }
.photo-sub { font-size: 11px; color: var(--grey-lt); margin-top: 3px; }
.photo-zoom { display: none; }

/* ─── COUNTRY CARD ─── */
.country-card { padding: 0; overflow: hidden; }

/* 他の写真と同じ 3:2 に統一（切り出し済みなので余計な切り取りは起きない） */
.country-card-image {
  width: 100%;
  height: auto;          /* HTMLのheight属性でaspect-ratioが無効化されるのを防ぐ */
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 0.6s var(--ease);
}

.country-card:hover .country-card-image { transform: scale(1.05); }

.country-card-body { padding: clamp(22px, 3vw, 36px); }

.country-card-flag { font-size: 34px; line-height: 1; margin-bottom: 12px; }

.country-card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }

.country-tag {
  font-size: 11px;
  color: var(--grey);
  border: 1px solid var(--line);
  padding: 4px 11px;
  letter-spacing: 0.04em;
}


/* ─── 訪問国一覧（代表が実際に訪れた国） ─── */
.visited-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.visited-item {
  background: var(--bg);
  padding: clamp(22px, 2.6vw, 32px) 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: background 0.25s;
}

.visited-item:hover { background: var(--bg-3); }

.visited-flag { font-size: clamp(30px, 3.4vw, 40px); line-height: 1; }

.visited-item span:last-child {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}

/* ─── ACHIEVEMENT CARD ─── */
.achievement-card { padding: 0; overflow: hidden; }

.achievement-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 42%;
}

.achievement-card-body { padding: clamp(22px, 3vw, 34px); }

/* ─── ONLINE CARD ─── */
.online-card-header { margin-bottom: 14px; }
.online-card-body { display: flex; flex-direction: column; gap: 10px; }
.online-sub { font-size: 12px; color: var(--orange); font-weight: 700; letter-spacing: 0.06em; }

/* ─── FLOW STEPS ─── */
.flow-steps { display: flex; flex-direction: column; }

.flow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.flow-step:first-child { border-top: 1px solid var(--line); }

.flow-step-number {
  font-family: var(--font-en);
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--orange);
  min-width: 1.6em;
}

.flow-step-content h3 { margin-bottom: 8px; }
.flow-step-content p { font-size: 13px; color: var(--grey); line-height: 1.85; }

/* ─── FAQ ─── */
.faq-category { margin-bottom: clamp(48px, 6vw, 80px); }

.faq-category h3 {
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--orange);
  display: inline-flex;
  align-items: center;
}

.faq-list { margin-top: 4px; }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-ja);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
  padding: 24px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.faq-toggle {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 300;
  color: var(--grey);
  flex-shrink: 0;
  transition: transform 0.3s, color 0.3s;
  margin-top: 2px;
}

.faq-item.active .faq-toggle { transform: rotate(45deg); color: var(--orange); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-item.active .faq-answer { max-height: 600px; }

.faq-answer p {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.95;
  padding-bottom: 24px;
}

/* ─── TESTIMONIALS ─── */
.testimonial-text {
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.95;
  color: var(--white);
  margin-bottom: 20px;
}

.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }

.testimonial-avatar {
  width: 40px; height: 40px;
  object-fit: cover;
  background: var(--bg-2);
  flex-shrink: 0;
}

.testimonial-info { font-size: 12px; font-weight: 700; color: var(--orange); letter-spacing: 0.05em; }

/* ─── CONTACT ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contact-info-list { display: flex; flex-direction: column; gap: 26px; }

.contact-info-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.contact-info-icon img, .contact-info-icon {
  width: 20px; height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--grey-lt);
  margin-bottom: 9px;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--white);
  font-family: var(--font-ja);
  font-size: 14px;
  padding: 13px 16px;
  transition: border-color 0.2s;
}

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

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ─── CTA SECTION ─── */
.cta-section {
  background: var(--bg-2);
  text-align: center;
  padding: clamp(72px, 12vw, 160px) 0;
  border-top: 1px solid var(--line);
}

.cta-content h2 {
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 20px;
  max-width: 22em;          /* 長い行が中途半端に折り返すのを防ぐ */
  margin-left: auto;
  margin-right: auto;
}

.cta-content p {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.9;
  max-width: 460px;
  margin: 0 auto 40px;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 80px) 0 clamp(24px, 3vw, 36px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: clamp(36px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.footer-brand .nav-logo img, .footer-brand .logo-blend img {
  width: 144px;   /* フッターは少し小さく（比率は維持） */
  height: 28px;
}

.footer-brand p {
  font-size: 12px;
  color: var(--grey);
  line-height: 1.8;
  max-width: 250px;
  margin-top: 16px;
}

.footer-col h4 {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col li a { font-size: 13px; color: var(--grey); transition: color 0.2s; }
.footer-col li a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(18px, 2.5vw, 28px);
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom p { font-size: 11px; color: var(--grey); letter-spacing: 0.05em; }

.footer-socials { display: flex; gap: 18px; }
.footer-social-link { opacity: 0.45; transition: opacity 0.2s; }
.footer-social-link:hover { opacity: 1; }
.social-icon { width: 17px; height: 17px; filter: brightness(0) invert(1); }

/* ─── ANIMATION ─── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.animate-on-scroll.animated { opacity: 1; transform: none; }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ─── UTILITIES ─── */
.mt-4 { margin-top: 32px; }
.br-sp { display: none; }
.br-pc { display: inline; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 12px; }
  .grid-3, .features-grid, .online-programs, .achievement-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 26px 24px 36px;
    gap: 0;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }

  .nav-links.active { display: flex; }

  .nav-links a {
    padding: 15px 0;
    font-size: 15px;
    color: var(--white);
    border-bottom: 1px solid var(--line);
    width: 100%;
  }

  .nav-links .nav-cta {
    margin-top: 20px;
    border-bottom: none;
    text-align: center;
  }

  .grid-2, .grid-3, .features-grid, .program-grid,
  .online-programs, .testimonials-grid, .achievement-grid {
    grid-template-columns: 1fr;
  }

  .flow-step { grid-template-columns: 1fr; gap: 10px; }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .br-sp { display: inline; }
  .br-pc { display: none; }
}

@media (max-width: 768px) {
}

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* インラインの min-width がモバイルで横スクロールを生むのを防ぐ */
@media (max-width: 768px) {
  [style*="min-width:300px"],
  [style*="min-width: 300px"],
  [style*="min-width:280px"],
  [style*="min-width: 280px"] {
    min-width: 0 !important;
    width: 100% !important;
    flex: 1 1 100% !important;
  }
}

/* ─── スマホ用：ギャラリーの「もっと見る」ボタン ─── */
.gallery-more {
  display: none;
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--grey-lt);
  font-family: var(--font-ja);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.gallery-more:hover { border-color: var(--orange); color: var(--white); }

/* スマホは2カラム（1カラムだと縦に長くなりすぎる） */
@media (max-width: 768px) {
  .photo-gallery, .country-photo-strip,
}


/* ─── スマホ用：国ごとの折りたたみ ─── */
.country-more {
  display: none;
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--grey-lt);
  font-family: var(--font-ja);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.country-more:hover { border-color: var(--orange); color: var(--white); }

/* スマホのときだけ隠す。PCでは常に表示（レイアウトに影響なし） */
@media (max-width: 768px) {
  .card:not(.open) > .m-collapse,
  .card:not(.open) .m-collapse { display: none; }
}

/* ─── スマホ：縦の長さを詰める ─── */
@media (max-width: 768px) {
  /* セクションの上下余白を圧縮 */
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 32px; }

  /* 実績カード（🇺🇸などの大きな色面）を小さく */
  .achievement-card-img { aspect-ratio: 3 / 2; }   /* 写真と同じ比率にして切り取りを無くす */
  .achievement-card-img span { font-size: 40px !important; }
  .achievement-card-body { padding: 18px; }

  /* 数字（500+ など）の行を詰める */
  .hero-stat-number { font-size: 30px; }
  .hero-stat-label { font-size: 10px; }

  /* 訪問国タイルを小さく（15カ国で縦に伸びるため） */
  .visited-grid { grid-template-columns: repeat(3, 1fr); }
  .visited-item { padding: 14px 6px; gap: 6px; }
  .visited-flag { font-size: 26px; }
  .visited-item span:last-child { font-size: 11px; letter-spacing: 0; }

  /* 国カードの余白 */
  .card, .feature-card, .program-card, .online-card,
  .testimonial-card, .country-card, .achievement-card { padding: 22px; }

  /* フッター */
  .footer { padding: 40px 0 24px; }
  .footer-grid { gap: 24px; padding-bottom: 28px; }
}

/* ─── 言語切替（日本語 / EN） ─── */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  margin-left: 8px;
  flex-shrink: 0;
}

.lang-switch button {
  background: transparent;
  border: none;
  color: var(--grey);
  font-family: var(--font-ja);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 7px 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.lang-switch button:hover { color: var(--white); }
.lang-switch button.active { background: var(--white); color: var(--bg); }

@media (max-width: 768px) {
  .lang-switch { margin: 22px 0 0; width: 100%; }
  .lang-switch button { flex: 1; padding: 13px; font-size: 13px; }
}

/* ─── ページ見出しに背景写真（留学先ページ） ─── */
.page-header-photo {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.page-header-bg {
  position: absolute;
  inset: 0;
}

.page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;    /* 人物の頭が切れないよう上寄せ */
}

.page-header-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(13,13,13,0.95) 0%,
    rgba(13,13,13,0.72) 55%,
    rgba(13,13,13,0.45) 100%);
}

.page-header-photo .page-header-content {
  position: relative;
  z-index: 2;
}

/* ─── 国カードの代表写真（折りたたみ時も見える） ─── */
.country-lead-photo {
  display: block;
  margin: 20px 0 24px;
  overflow: hidden;
}

.country-lead-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;     /* 写真と同じ比率にして切り取りを無くす */
  object-fit: cover;
  object-position: center 45%;
  display: block;
  transition: transform 0.6s var(--ease);
}

.country-lead-photo:hover img { transform: scale(1.04); }

/* PCでは詳細の写真が別にあるため控えめに */
@media (min-width: 769px) {
  .country-lead-photo { display: none; }
}

/* ─── 写真の拡大表示（ライトボックス） ───
   これが無いと ✕ ‹ › のボタンだけがページ上に出てしまう */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 20px 96px;
}

/* 拡大時は写真の全体を表示（切り取らない） */
.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lightbox-close:hover,
.lightbox-nav:hover { background: var(--orange); border-color: var(--orange); }

.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev  { left: 18px;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 18px; top: 50%; transform: translateY(-50%); }

.lightbox-counter {
  position: absolute;
  top: 24px;
  left: 24px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--grey-lt);
}

.lightbox-caption {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 24px;
}

.lightbox-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.lightbox-sub {
  display: block;
  font-size: 12px;
  color: var(--grey);
  margin-top: 5px;
}

/* 写真をクリックできることを示す */
.photo-gallery-item { cursor: zoom-in; }

@media (max-width: 768px) {
  .lightbox-content { padding: 56px 12px 88px; }
  .lightbox-close, .lightbox-nav { width: 40px; height: 40px; font-size: 19px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* ─── ヒーローで picture を使う場合（スマホ用の切り出しを別に用意） ─── */
.program-hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* スマホは専用の切り出しなので、中央基準で全体を見せる */
@media (max-width: 768px) {
  .program-hero-bg img { object-position: center center !important; }
}

/* 小さい画面（〜360px）：見出しが1〜2文字だけ次の行にこぼれないよう少し縮める */
@media (max-width: 360px) {
  .page-header h1 { font-size: 28px; }
  h2, .section-header h2, .cta-content h2 { font-size: 21px !important; }
  h3 { font-size: 16px !important; }
  .program-hero h1, .program-hero-content h1 { font-size: 30px !important; }
}

@media (max-width: 400px) {
  .cc-sub { display: block; margin-left: 0 !important; margin-top: 4px; }
}

/* CTA下のInstagram DM導線 */
.dm-alt { margin-top: 20px; font-size: 13px; }
.dm-alt a { color: rgba(255,255,255,0.7); border-bottom: 1px solid var(--orange); padding-bottom: 2px; }
.dm-alt a:hover { color: #fff; }
.dm-profile { display: inline-block; margin: 12px 0 0 14px; font-size: 13px; color: rgba(255,255,255,0.7); border-bottom: 1px solid var(--orange); }
.ty-sns { display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin: 0 auto; }
.ty-sns .btn { justify-content: center; }
.ty-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.ty-line { background: #06C755; color: #fff; }
