/* ---------- Google Fonts (loaded via HTML) ---------- */

/* ---------- CSS Variables ---------- */
:root {
  --green:        #3dba5e;
  --green-dark:   #2a9648;
  --green-light:  #e8f9ed;
  --blue:         #1a73e8;
  --blue-dark:    #0d5fc2;
  --navy:         #0f1f3d;
  --navy-light:   #1e3566;
  --accent:       #f5a623;
  --accent2:      #ff6b35;
  --gray:         #666;
  --gray-mid:     #999;
  --gray-light:   #f5f5f5;
  --white:        #fff;
  --text:         #1a1a1a;
  --border:       #e5e7eb;
  --radius:       16px;
  --radius-sm:    8px;
  --shadow:       0 8px 32px rgba(0,0,0,0.09);
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.14);
  --header-h:     70px;
  --font-display: 'Zen Maru Gothic', sans-serif;
  --font-mono:    'Orbitron', sans-serif;
  --font-body:    'Noto Sans JP', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  box-shadow: 0 2px 16px rgba(61,186,94,0.10);
  transition: box-shadow .3s;
}

.site-header.scrolled { box-shadow: 0 4px 24px rgba(61,186,94,0.18); }

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 20px;
  background: linear-gradient(135deg, var(--green-dark), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.site-nav a:hover { background: var(--green-light); color: var(--green-dark); }

.site-nav a.active { color: var(--green-dark); background: var(--green-light); }

.nav-cta {
  background: linear-gradient(135deg, var(--green), var(--green-dark)) !important;
  color: white !important;
  border-radius: 24px !important;
  padding: 10px 22px !important;
  box-shadow: 0 4px 16px rgba(61,186,94,0.30);
  margin-left: 8px;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61,186,94,0.42) !important;
  background: var(--green-light) !important;
  color: var(--green-dark) !important;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: white;
  border-bottom: 2px solid var(--green);
  padding: 16px 24px 24px;
  z-index: 199;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  flex-direction: column;
  gap: 4px;
}

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

.mobile-nav a {
  text-decoration: none;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: background .2s;
}

.mobile-nav a:hover, .mobile-nav a.active {
  background: var(--green-light);
  color: var(--green-dark);
}

.mobile-nav a.nav-cta {
  background: linear-gradient(135deg, var(--green), var(--green-dark)) !important;
  color: white !important;
  text-align: center;
  margin-top: 8px;
  border-radius: 24px !important;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  padding-top: var(--header-h);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 50%, #1a4a9e 100%);
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  padding: 60px 24px;
}

.page-hero-badge {
  display: inline-block;
  background: rgba(61,186,94,0.25);
  border: 1.5px solid rgba(61,186,94,0.7);
  color: #7effa0;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 24px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.2;
  margin-bottom: 14px;
}

.page-hero h1 em {
  font-style: normal;
  color: #7effa0;
}

.page-hero p {
  font-size: clamp(14px, 2vw, 17px);
  color: rgba(255,255,255,0.80);
  line-height: 1.85;
}

/* Deco blocks */
.page-hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-hero-deco span {
  position: absolute;
  border-radius: 6px;
  opacity: 0.10;
  animation: floatBlock linear infinite;
}

@keyframes floatBlock {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-20px) rotate(8deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* ---------- Sections ---------- */
.section { padding: 88px 24px; }
.section--alt { background: var(--gray-light); }
.section--dark {
  background: linear-gradient(160deg, var(--navy), var(--navy-light));
  color: white;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}
.container--sm { max-width: 780px; margin: 0 auto; }

/* Section labels / titles */
.section-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section--dark .section-label { color: #7effa0; }

.section-title {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3.5vw, 42px);
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 16px;
}
.section--dark .section-title { color: white; }
.section-title span { color: var(--green-dark); }
.section--dark .section-title span { color: #7effa0; }

.section-desc {
  text-align: center;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.85;
  max-width: 600px;
  margin: 0 auto 56px;
}
.section--dark .section-desc { color: rgba(255,255,255,0.72); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
  line-height: 1;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn--primary {
  background: linear-gradient(135deg, var(--green), #1fc776);
  color: white;
  font-size: 15px;
  padding: 15px 40px;
  box-shadow: 0 8px 28px rgba(61,186,94,0.42);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(61,186,94,0.55); }

.btn--outline {
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
  font-size: 15px;
  padding: 13px 36px;
  backdrop-filter: blur(6px);
}
.btn--outline:hover { background: rgba(255,255,255,0.22); transform: translateY(-3px); }

.btn--white {
  background: white;
  color: var(--green-dark);
  font-size: 15px;
  padding: 15px 44px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}
.btn--white:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(0,0,0,0.26); }

.btn--ghost {
  background: transparent;
  color: var(--green-dark);
  font-size: 14px;
  padding: 10px 28px;
  border: 2px solid var(--green);
}
.btn--ghost:hover { background: var(--green-light); }

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-row--center { justify-content: center; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--blue-dark));
  color: white;
  text-align: center;
  padding: 88px 24px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.cta-banner__inner { position: relative; z-index: 1; }

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 900;
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 15px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 40px;
  line-height: 1.8;
}

.cta-tel-label {
  font-size: 13px;
  color: rgba(255,255,255,0.70);
  margin-top: 32px;
  margin-bottom: 6px;
}

.cta-tel-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 900;
  color: white;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 1px;
  transition: color .2s;
}
.cta-tel-num:hover { color: #7effa0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.72);
  padding: 64px 48px 32px;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo-text {
  display: block;
  font-size: 22px;
  margin-bottom: 18px;
  -webkit-text-fill-color: #7effa0;
}

.footer-brand address {
  font-style: normal;
  font-size: 13px;
  line-height: 2;
}

.footer-col h4 {
  color: white;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green);
  letter-spacing: 1px;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  text-decoration: none;
  font-size: 13px;
  color: rgba(255,255,255,0.60);
  transition: color .2s;
}
.footer-col a:hover { color: #7effa0; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.35); }

.footer-sns {
  display: flex;
  gap: 12px;
}

.footer-sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.60);
  text-decoration: none;
  font-size: 15px;
  transition: background .2s, color .2s;
}
.footer-sns a:hover { background: var(--green); color: white; }

/* ---------- Icon Images ---------- */
/* アイコン画像の共通スタイル */
.icon-img {
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
  flex-shrink: 0;
}
/* src が空のときのプレースホルダー */
.icon-img[src=""] {
  background: var(--gray-light);
  border-radius: 4px;
  /* broken-image アイコンを非表示 */
  color: transparent;
  font-size: 0;
}
/* サイズバリエーション */
.icon-img--sm  { width: 18px;  height: 18px;  border-radius: 3px; }
.icon-img--md  { width: 32px;  height: 32px;  border-radius: 6px; }
.icon-img--lg  { width: 48px;  height: 48px;  border-radius: 8px; }
.icon-img--xl  { width: 72px;  height: 72px;  border-radius: 12px; }
.icon-img--hero{ width: 120px; height: 120px; border-radius: 16px; }

/* アイコン付きボタン内 */
.btn .icon-img--sm { margin-right: 6px; vertical-align: middle; }

/* アイコン付き見出し */
.icon-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 740px; margin: 0 auto; }

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

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  transition: color .2s;
}
.faq-question:hover { color: var(--green-dark); }

.faq-q-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--green), #1fc776);
  color: white;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900;
  font-family: var(--font-mono);
}

.faq-arrow {
  margin-left: auto;
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s, background .2s;
}
/* CSS三角形で矢印を表現（imgが未用意の場合のフォールバック） */
.faq-arrow::after {
  content: '';
  display: block;
  width: 7px; height: 7px;
  border-right: 2px solid var(--green-dark);
  border-bottom: 2px solid var(--green-dark);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: border-color .2s;
}
.faq-arrow img {
  /* 実画像が入った場合は表示、未設定時は非表示 */
  width: 12px; height: 12px;
  background: transparent;
  border-radius: 0;
  display: none; /* src空のためCSS矢印を優先 */
}
.faq-item.open .faq-arrow { transform: rotate(180deg); background: var(--green); }
.faq-item.open .faq-arrow::after { border-color: white; }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-answer { max-height: 240px; }

.faq-answer-inner {
  padding: 0 0 24px 46px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--gray);
}

/* ---------- News ---------- */
.news-list {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background .2s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--green-light); }

.news-date { font-size: 12px; color: var(--gray); white-space: nowrap; padding-top: 3px; min-width: 88px; }

.news-badge {
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 12px; white-space: nowrap;
}
.news-badge--new    { background: var(--green-light); color: var(--green-dark); }
.news-badge--site   { background: #eff6ff; color: var(--blue-dark); }
.news-badge--course { background: #fff7ed; color: #c2410c; }

.news-title { font-size: 14px; line-height: 1.6; }

/* ---------- Info Table ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.info-table tr { border-bottom: 1px solid var(--border); }
.info-table tr:last-child { border-bottom: none; }
.info-table th {
  background: var(--navy);
  color: white;
  font-size: 13px; font-weight: 700;
  padding: 18px 24px;
  text-align: left;
  width: 160px;
  vertical-align: top;
  white-space: nowrap;
}
.info-table td { padding: 18px 24px; font-size: 14px; line-height: 1.8; }
.info-table a { color: var(--green-dark); font-weight: 700; }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger helpers */
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .18s; }
.reveal-d3 { transition-delay: .28s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .site-header { padding: 0 20px; }
  .site-nav .desktop-nav-item { display: none; }
  .hamburger { display: flex; }

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

@media (max-width: 600px) {
  .section { padding: 64px 16px; }
  .btn-row { justify-content: center; }
}
