*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  color: #1a1a1a; background: #fff; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* HEADER */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid #e8e6df;
  padding: 0 32px;
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s;
}
#header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.06); }
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 68px; max-width: 1280px; margin: 0 auto;
}
.logo-wrap { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 38px; height: 38px;
  background: #3a7b52; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem; color: #fff; letter-spacing: 0.05em; flex-shrink: 0;
}
.logo-text-wrap strong { display: block; font-size: 0.9rem; font-weight: 900; color: #1a1a1a; }
.logo-text-wrap span { font-size: 0.62rem; color: #aaa; letter-spacing: 0.08em; }
.header-nav { display: flex; align-items: center; gap: 2px; }
.header-nav a {
  padding: 8px 12px; font-size: 0.8rem; font-weight: 700;
  color: #555; border-radius: 4px; transition: all 0.2s;
}
.header-nav a:hover { background: #f5f4f0; color: #1a1a1a; }
.header-cta {
  border: 1.5px solid #3a7b52 !important; color: #3a7b52 !important;
  border-radius: 4px !important; padding: 7px 16px !important;
}
.header-cta:hover { background: #3a7b52 !important; color: #fff !important; }
.hbg { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hbg span { width: 24px; height: 2px; background: #1a1a1a; border-radius: 2px; }

/* MOBILE MENU */
#mmenu { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.4); }
#mmenu.open { display: block; }
.mmenu-panel {
  position: absolute; top: 0; right: 0;
  width: min(300px, 88vw); height: 100%;
  background: #fff; padding: 28px 20px;
  display: flex; flex-direction: column;
}
.mmenu-close { align-self: flex-end; background: none; border: none; font-size: 1.5rem; cursor: pointer; margin-bottom: 20px; color: #1a1a1a; }
.mmenu-panel a { display: block; padding: 14px 8px; font-size: 0.95rem; font-weight: 700; border-bottom: 1px solid #f0f0f0; color: #333; }
.mmenu-cta { margin-top: 16px; background: #3a7b52; color: #fff !important; text-align: center; border-radius: 4px; padding: 15px !important; border: none !important; }

/* PAGE HERO */
.page-hero { position: relative; height: 460px; overflow: hidden; margin-top: 68px; }
.page-hero img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.35) brightness(0.82) contrast(1.05) saturate(1.1); }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,10,5,0.82) 0%, rgba(30,15,5,0.35) 55%, rgba(20,10,5,0.12) 100%);
}
.page-hero-overlay::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='1' height='1' fill='rgba(255,255,255,0.025)'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.page-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  max-width: 1280px; margin: 0 auto;
  padding: 0 40px 48px; color: #fff;
}
.breadcrumb { display: inline-block; font-size: 0.76rem; color: rgba(255,255,255,0.55); margin-bottom: 14px; transition: color 0.2s; }
.breadcrumb:hover { color: #3a7b52; }
.service-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5rem; color: rgba(255,255,255,0.07);
  line-height: 1; position: absolute; right: 40px; bottom: 32px;
  letter-spacing: -0.02em;
}
.page-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 10px;
}
.page-hero-content p { font-size: 0.95rem; color: rgba(255,255,255,0.72); }

/* MAIN */
.service-main { max-width: 1100px; margin: 0 auto; padding: 0 32px 100px; }

/* INTRO */
.service-intro { padding: 72px 0 56px; border-bottom: 1px solid #e8e6df; }
.service-intro h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.18; margin-bottom: 18px; }
.service-intro p { font-size: 0.95rem; color: #555; line-height: 1.9; max-width: 660px; }

/* FEATURE CARDS */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 56px 0; }
.feature-card {
  border-radius: 8px; overflow: hidden; border: 1px solid #e8e6df;
  transition: box-shadow 0.25s, transform 0.25s; background: #fff;
}
.feature-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.08); transform: translateY(-3px); }
.fc-img-wrap { overflow: hidden; aspect-ratio: 4/3; }
.fc-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.feature-card:hover .fc-img-wrap img { transform: scale(1.05); }
.fc-body { padding: 20px 22px; }
.fc-icon { font-size: 1.4rem; margin-bottom: 10px; }
.fc-body h3 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.fc-body p { font-size: 0.83rem; color: #666; line-height: 1.7; }

/* SECTION HEADING */
.section-h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 28px; }

/* BRANDS */
.brands-section { padding: 56px 0; border-top: 1px solid #e8e6df; }
.brands-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.brand-tag {
  background: #f7f6f3; border: 1px solid #e8e6df;
  border-radius: 4px; padding: 7px 18px;
  font-size: 0.83rem; font-weight: 700; color: #444;
}
.brands-note { font-size: 0.78rem; color: #aaa; }

/* INFO SECTIONS */
.info-section { padding: 56px 0; border-top: 1px solid #e8e6df; }
.info-badge {
  display: inline-block;
  background: #e8f3ed; color: #3a7b52;
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 4px; margin-bottom: 14px;
}
.info-lead { font-size: 0.92rem; color: #555; line-height: 1.85; max-width: 740px; margin-bottom: 32px; }
.info-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.info-col-title {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: #999; margin-bottom: 12px; padding-bottom: 7px; border-bottom: 1px solid #e8e6df;
}
.info-list { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.info-list li { background: #f7f6f3; border: 1px solid #e8e6df; border-radius: 4px; padding: 7px 14px; font-size: 0.83rem; font-weight: 700; }
.school-group { margin-bottom: 18px; }
.school-label {
  display: inline-block; background: #3a7b52; color: #fff;
  font-size: 0.68rem; font-weight: 800; padding: 2px 9px; border-radius: 3px; margin-bottom: 7px;
}
.school-group p { font-size: 0.86rem; color: #444; line-height: 1.9; }

/* PRICE TABLE */
.price-block { display: flex; flex-direction: column; gap: 32px; }
.price-block-group h4 {
  font-size: 0.88rem; font-weight: 800; color: #1a1a1a;
  padding-bottom: 8px; border-bottom: 2px solid #3a7b52;
  margin-bottom: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.price-note { font-size: 0.73rem; font-weight: 400; color: #aaa; }
.price-table { width: 100%; max-width: 500px; border-collapse: collapse; }
.price-table tr { border-bottom: 1px solid #e8e6df; }
.price-table tr:hover td { background: #f7f6f3; }
.price-table td { padding: 11px 14px; font-size: 0.86rem; color: #444; }
.price-table td:last-child { text-align: right; font-weight: 800; color: #3a7b52; font-family: 'Bebas Neue', sans-serif; font-size: 1.02rem; letter-spacing: 0.05em; }

/* TROPHY */
.trophy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.trophy-item { background: #f7f6f3; border-radius: 8px; padding: 28px 24px; border: 1px solid #e8e6df; }
.trophy-icon { font-size: 1.8rem; margin-bottom: 12px; }
.trophy-item h4 { font-size: 1rem; font-weight: 800; margin-bottom: 9px; }
.trophy-item p { font-size: 0.83rem; color: #666; line-height: 1.7; }

/* FLOW */
.flow-section { padding: 56px 0; border-top: 1px solid #e8e6df; }
.flow-steps { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.flow-step { flex: 1; min-width: 200px; background: #f7f6f3; border-radius: 8px; padding: 24px 20px; border: 1px solid #e8e6df; }
.step-num { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; color: #3a7b52; line-height: 1; margin-bottom: 10px; }
.flow-step h3 { font-size: 0.95rem; font-weight: 800; margin-bottom: 7px; }
.flow-step p { font-size: 0.81rem; color: #666; line-height: 1.7; }
.flow-arrow { font-size: 1.3rem; color: #ccc; align-self: center; flex-shrink: 0; margin-top: -16px; }

/* SERVICE CTA */
.service-cta {
  background: #1a1a1a; border-radius: 12px;
  padding: 56px 44px; text-align: center;
  margin: 56px 0; color: #fff;
}
.service-cta h2 { font-size: 1.7rem; font-weight: 900; margin-bottom: 9px; }
.service-cta p { color: rgba(255,255,255,0.6); margin-bottom: 28px; font-size: 0.9rem; }
.cta-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-g { display: inline-block; background: #3a7b52; color: #fff; padding: 12px 26px; border-radius: 4px; font-size: 0.86rem; font-weight: 700; transition: background 0.2s; }
.btn-g:hover { background: #2c5f3e; }
.btn-ghost { display: inline-block; border: 1px solid #333; color: rgba(255,255,255,0.65); padding: 12px 26px; border-radius: 4px; font-size: 0.86rem; font-weight: 700; transition: all 0.2s; }
.btn-ghost:hover { border-color: #fff; color: #fff; }

/* OTHER SERVICES */
.other-services { padding: 56px 0; border-top: 1px solid #e8e6df; }
.other-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.other-card { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.other-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.other-card:hover img { transform: scale(1.06); }
.other-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.68) 0%, transparent 58%);
  display: flex; align-items: flex-end; padding: 14px;
  transition: background 0.3s;
}
.other-card:hover .other-overlay { background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.18) 60%); }
.other-overlay span { color: #fff; font-size: 0.8rem; font-weight: 800; }

/* FOOTER */
footer { background: #111; color: rgba(255,255,255,0.48); padding: 60px 32px 28px; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid #1e1e1e; margin-bottom: 24px; }
.footer-brand p { font-size: 0.8rem; line-height: 1.85; margin-top: 12px; }
.footer-logo-text { color: #fff; font-weight: 900; font-size: 0.92rem; margin-top: 8px; }
.footer-col h4 { color: #fff; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 0.8rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: #3a7b52; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 0.74rem; }

/* ANIMATIONS */
.reveal { opacity: 1; transform: none; transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .other-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .info-two-col { grid-template-columns: 1fr; gap: 24px; }
  .trophy-grid { grid-template-columns: 1fr; }
  .service-main { padding: 0 24px 80px; }
}
@media (max-width: 640px) {
  #header { padding: 0 16px; }
  .header-nav { display: none; }
  .hbg { display: flex; }
  .page-hero { height: 300px; margin-top: 60px; }
  .page-hero-content { padding: 0 20px 32px; }
  .page-hero-content h1 { font-size: clamp(1.55rem, 6vw, 2.1rem); }
  .page-hero-content p { font-size: 0.83rem; }
  .service-num { display: none; }
  .service-main { padding: 0 16px 60px; }
  .service-intro { padding: 44px 0 36px; }
  .service-intro h2 { font-size: 1.45rem; }
  .features-grid { grid-template-columns: 1fr; gap: 12px; padding: 36px 0; }
  .fc-body { padding: 16px 18px; }
  .section-h2 { font-size: 1.25rem; margin-bottom: 18px; }
  .brands-section, .info-section, .other-services, .flow-section { padding: 36px 0; }
  .brand-tag { padding: 5px 12px; font-size: 0.78rem; }
  .flow-steps { flex-direction: column; gap: 10px; }
  .flow-arrow { display: none; }
  .flow-step { min-width: unset; padding: 18px 16px; }
  .service-cta { padding: 32px 18px; margin: 36px 0; border-radius: 8px; }
  .service-cta h2 { font-size: 1.25rem; }
  .cta-btns { flex-direction: column; align-items: center; }
  .btn-g, .btn-ghost { width: 100%; max-width: 260px; text-align: center; padding: 13px; }
  .other-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  footer { padding: 44px 16px 22px; }
  .footer-top { grid-template-columns: 1fr; gap: 18px; padding-bottom: 24px; }
  .footer-bottom { flex-direction: column; gap: 5px; }
  .price-table td { padding: 9px 10px; font-size: 0.81rem; }
  .trophy-item { padding: 20px 16px; }
}
@media (max-width: 400px) {
  .page-hero { height: 255px; }
  .page-hero-content h1 { font-size: 1.4rem; }
  .service-main { padding: 0 14px 52px; }
}
