:root {
    --forest-950: #173a28;
    --forest-900: #204a32;
    --forest-800: #2f6040;
    --forest-700: #3f7550;
    --forest-600: #4d7c54;
    --forest-100: #dce9dd;
    --forest-50: #f3f8f3;
    --leaf: #8fb35b;
    --charcoal: #25312a;
    --muted: #637069;
    --border: #dfe7e1;
    --accent: #4d7c54;
    --accent-soft: #e7f2e8;
    --accent-ink: #285737;
    --white: #fff;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--charcoal);
    background: var(--white);
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    line-height: 1.8;
    letter-spacing: 0;
}

body[data-service="learning"] {
    --accent: #df7b38;
    --accent-soft: #fff0e5;
    --accent-ink: #9a4b1d;
}

body[data-service="community"] {
    --accent: #3f78aa;
    --accent-soft: #e8f2fa;
    --accent-ink: #285779;
}

body[data-service="benefits"] {
    --accent: #d55e79;
    --accent-soft: #fdebf0;
    --accent-ink: #943c52;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.container {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--forest-100);
    box-shadow: 0 4px 20px rgba(23, 58, 40, 0.06);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: block;
    overflow: hidden;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--forest-100);
    box-shadow: 0 8px 18px rgba(77, 124, 84, 0.22);
}

.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: "Noto Serif JP", serif; font-size: 17px; font-weight: 700; color: var(--forest-900); }
.brand-en { font-size: 9px; font-weight: 700; color: var(--leaf); letter-spacing: 0.12em; }

.desktop-nav { display: flex; align-items: center; gap: 4px; }
.desktop-nav a { padding: 8px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; color: #46534b; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--forest-700); background: var(--forest-50); }

.header-cta, .primary-button, .secondary-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.header-cta {
    padding: 10px 19px;
    color: var(--white);
    background: linear-gradient(90deg, var(--forest-600), var(--forest-700));
    font-size: 13px;
    box-shadow: 0 8px 20px rgba(47, 96, 64, 0.18);
}

.header-cta:hover, .primary-button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(47, 96, 64, 0.24); }

.menu-button {
    width: 44px;
    height: 44px;
    display: none;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--charcoal);
    cursor: pointer;
}

.menu-button svg { width: 25px; height: 25px; }

.mobile-nav {
    display: none;
    padding: 8px 20px 20px;
    background: var(--white);
    border-top: 1px solid var(--forest-100);
}

.mobile-nav.is-open { display: grid; }
.mobile-nav a { padding: 12px 4px; border-bottom: 1px solid var(--forest-100); font-size: 14px; font-weight: 600; }

.service-hero {
    min-height: 570px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background-size: cover;
    background-position: center;
}

.service-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(23, 58, 40, 0.82) 0%, rgba(32, 74, 50, 0.6) 38%, rgba(32, 74, 50, 0.12) 72%, rgba(32, 74, 50, 0) 100%);
}

.hero-content { position: relative; z-index: 1; width: min(660px, 62%); padding-block: 88px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; color: rgba(255,255,255,0.82); font-size: 12px; }
.breadcrumb svg { width: 13px; height: 13px; }

.service-hero h1 {
    margin: 0 0 22px;
    font-family: "Noto Serif JP", serif;
    font-size: 52px;
    line-height: 1.28;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.service-hero p {
    max-width: 610px;
    margin: 0 0 30px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.9;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 8px rgba(0,0,0,0.18);
}

.primary-button { padding: 13px 24px; color: var(--white); background: var(--accent); font-size: 14px; }
.primary-button svg, .secondary-button svg, .header-cta svg { width: 18px; height: 18px; }

.section { padding: 88px 0; }
.section.soft { background: var(--forest-50); }
.section.accent-soft { background: var(--accent-soft); }
.section-heading { margin-bottom: 40px; }
.section-heading.center { max-width: 760px; margin-inline: auto; text-align: center; }
.section-heading h2 { margin: 0 0 14px; font-family: "Noto Serif JP", serif; font-size: 34px; line-height: 1.45; color: var(--forest-950); }
.section-heading p { margin: 0; color: var(--muted); }
.accent-line { width: 48px; height: 3px; margin-top: 20px; background: var(--accent); }
.section-heading.center .accent-line { margin-inline: auto; }

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 70px;
    align-items: start;
}

.intro-label { font-family: "Noto Serif JP", serif; font-size: 24px; line-height: 1.55; color: var(--accent-ink); }
.intro-copy { margin: 0; color: #4d5952; font-size: 16px; }
.intro-copy + .intro-copy { margin-top: 18px; }

.wide-media {
    position: relative;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 48px rgba(23, 58, 40, 0.12);
}
.wide-media img { width: 100%; height: 100%; object-fit: cover; }

.service-list { border-top: 1px solid var(--border); }
.service-row {
    display: grid;
    grid-template-columns: 58px minmax(180px, 0.45fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.service-number { font-family: "Noto Serif JP", serif; font-size: 22px; color: var(--accent); }
.service-row h3 { margin: 0; font-size: 18px; line-height: 1.6; }
.service-row p { margin: 0; color: var(--muted); font-size: 14px; }

.audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.audience-item { padding: 22px; background: var(--white); border: 1px solid color-mix(in srgb, var(--accent) 22%, white); border-radius: 8px; }
.audience-item svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }
.audience-item h3 { margin: 0 0 7px; font-size: 16px; }
.audience-item p { margin: 0; color: var(--muted); font-size: 13px; }

.process-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.process-item { padding: 30px 24px; border-right: 1px solid var(--border); }
.process-item:last-child { border-right: 0; }
.process-number { display: block; margin-bottom: 12px; font-family: "Noto Serif JP", serif; font-size: 28px; color: var(--accent); }
.process-item h3 { margin: 0 0 8px; font-size: 15px; }
.process-item p { margin: 0; color: var(--muted); font-size: 12px; }

.other-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.other-service { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); font-weight: 700; font-size: 14px; }
.other-service:hover { border-color: var(--forest-600); color: var(--forest-700); }
.other-service svg { width: 18px; height: 18px; flex: 0 0 auto; }

.contact-band { padding: 58px 0; color: var(--white); background: var(--forest-800); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.contact-inner h2 { margin: 0 0 8px; font-family: "Noto Serif JP", serif; font-size: 28px; }
.contact-inner p { margin: 0; color: rgba(255,255,255,0.82); font-size: 14px; }
.secondary-button { flex: 0 0 auto; padding: 13px 24px; color: var(--forest-900); background: var(--white); font-size: 14px; }

.site-footer { padding: 48px 0; color: var(--slate-400); background: var(--slate-900); border-top: 1px solid var(--slate-800); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-about { max-width: 440px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 15px; color: var(--white); font-family: "Noto Serif JP", serif; font-weight: 700; }
.footer-mark { width: 40px; height: 40px; display: block; overflow: hidden; border: 1px solid var(--slate-700); border-radius: 50%; background: var(--white); }
.footer-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.footer-about p { margin: 0; color: var(--slate-500); font-size: 12px; line-height: 1.9; }
.footer-column h2 { margin: 0 0 16px; color: var(--white); font-family: "Noto Serif JP", serif; font-size: 14px; }
.footer-column ul { list-style: none; margin: 0; padding: 0; }
.footer-column li { margin-top: 8px; color: var(--slate-500); font-size: 12px; line-height: 1.7; }
.footer-column a { color: var(--slate-400); transition: color 160ms ease; }
.footer-column a:hover { color: var(--white); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 32px; border-top: 1px solid var(--slate-800); color: var(--slate-500); font-size: 12px; }
.footer-policy { display: flex; gap: 24px; }
.footer-policy a:hover { color: var(--slate-400); }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, white); outline-offset: 3px; }

@media (max-width: 1100px) {
    .desktop-nav a { padding-inline: 7px; font-size: 12px; }
    .header-cta { padding-inline: 15px; }
}

@media (max-width: 860px) {
    .desktop-nav, .header-cta { display: none; }
    .menu-button { display: grid; }
    .service-hero { min-height: 540px; background-position: 62% center; }
    .hero-content { width: min(620px, 76%); }
    .service-hero h1 { font-size: 43px; }
    .intro-grid { grid-template-columns: 1fr; gap: 24px; }
    .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-item:nth-child(2) { border-right: 0; }
    .process-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 700px) {
    .container { width: min(100% - 32px, 1120px); }
    .header-inner { min-height: 80px; }
    .brand-mark { width: 42px; height: 42px; }
    .brand-name { font-size: 15px; }
    .service-hero { min-height: 520px; background-position: 60% center; }
    .service-hero::before { background: linear-gradient(90deg, rgba(23, 58, 40, 0.82) 0%, rgba(32, 74, 50, 0.6) 68%, rgba(32, 74, 50, 0.22) 100%); }
    .hero-content { width: 100%; padding-block: 68px; }
    .breadcrumb { margin-bottom: 18px; }
    .service-hero h1 { font-size: 34px; }
    .service-hero p { font-size: 15px; max-width: 92%; }
    .section { padding: 64px 0; }
    .section-heading { margin-bottom: 30px; }
    .section-heading h2 { font-size: 27px; }
    .intro-label { font-size: 21px; }
    .wide-media { aspect-ratio: 4 / 3; }
    .service-row { grid-template-columns: 42px 1fr; gap: 14px; }
    .service-row p { grid-column: 2; }
    .audience-grid, .other-services { grid-template-columns: 1fr; }
    .process-list { grid-template-columns: 1fr; }
    .process-item { border-right: 0; border-bottom: 1px solid var(--border); }
    .process-item:last-child { border-bottom: 0; }
    .contact-inner { align-items: flex-start; flex-direction: column; }
    .secondary-button { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
    .footer-policy { flex-wrap: wrap; gap: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}
