/*
Theme Name: 兵庫菅公学生服 | GRAVITI
Theme URI: https://hyogo-kanko-gakuseifuku.com/
Author: GRAVITI
Description: 兵庫菅公学生服株式会社のために制作したオリジナルコーポレートテーマ。制服・体操服のモデルチェンジ、教育支援、ショールーム、着こなしセミナー、会社案内、採用情報を紹介。季節で切り替わる写真と、スマートフォンでも読みやすいレイアウトを備えています。お問い合わせはGRAVITI Forms、SEOはRank Mathに対応。
Version: 1.3.19
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: hyogo-kanko-corporate
Tags: custom-logo, featured-images, translation-ready
*/

/* 1. Foundation */
:root {
    --red: #cf001c;
    --red-dark: #a90017;
    --ink: #262628;
    --muted: #6d6b6b;
    --paper: #f4f3f0;
    --line: #e2dfda;
    --gutter: clamp(22px, 5.5vw, 92px);
    --section-space: clamp(72px, 8vw, 128px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; color: var(--ink); background: #fff; font-family: 'Noto Sans JP', sans-serif; font-size: 15px; line-height: 1.95; letter-spacing: .045em; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; text-underline-offset: .25em; }
a, button { -webkit-tap-highlight-color: transparent; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3, h4, ul, ol { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.5; letter-spacing: .04em; }
h1 { font-size: clamp(28px, 3.2vw, 46px); }
h2 { font-size: clamp(25px, 2.5vw, 36px); }

h3 { font-size: clamp(21px, 2vw, 29px); }
[hidden] { display: none !important; }
.wrap { width: min(1180px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.narrow { max-width: 880px; }
.eyebrow { color: var(--red); font-size: 11px; font-weight: 600; letter-spacing: .18em; line-height: 1.8; margin-bottom: 18px; }
/* Shared CSS arrows: no font glyphs or icon fonts. */
.icon-arrow { display: inline-block; position: relative; width: 18px; height: 18px; flex: 0 0 18px; vertical-align: middle; }
.icon-arrow::before { content: ''; position: absolute; width: 18px; height: 1.5px; background: currentColor; left: -1px; top: 9px; transform: rotate(-45deg); }
.icon-arrow::after { content: ''; position: absolute; width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; right: 2px; top: 2px; }
.icon-arrow--down { transform: rotate(135deg); }
.icon-arrow--left { transform: rotate(225deg); }
.icon-arrow--right { transform: rotate(45deg); }
.breadcrumb-separator { width: 5px; height: 5px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); align-self: center; }
.post-navigation a, .nav-links .prev, .nav-links .next { display: inline-flex; align-items: center; gap: 12px; }
.skip-link { position: absolute; left: 20px; top: -100px; background: #fff; padding: 12px 20px; z-index: 100; }
.skip-link:focus { top: 15px; }
.button { display: inline-flex; min-height: 58px; padding: 14px 30px; align-items: center; gap: 48px; background: var(--red); color: #fff; border: 1px solid var(--red); cursor: pointer; font-weight: 500; font-size: 14px; }
.button:hover { color: #fff; background: var(--red-dark); border-color: var(--red-dark); }
.button span { font-size: 22px; }
.text-link { display: flex; width: fit-content; min-width: 180px; justify-content: space-between; align-items: center; gap: 36px; padding: 12px 0; margin-top: 25px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 500; }
.text-link span { color: var(--red); font-size: 22px; }

/* 2. Global header, navigation and footer */
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 25px 3.2vw; background: #fff; border-top: 4px solid var(--red); }
.brand { flex: 0 0 215px; }
.brand img { width: 175px; }
.brand-name { display: block; font-size: 10px; letter-spacing: .1em; margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 28px); font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.site-nav > a { padding-block: 10px; }
.site-nav .nav-arrow { display: none; }
.site-nav [aria-current] { color: var(--red); }
.site-nav .nav-contact { display: flex; align-items: center; gap: 24px; padding: 12px 20px; background: var(--red); color: #fff; }
.nav-contact:hover { background: var(--red-dark); }
.menu-toggle { display: none; border: 0; background: var(--red); color: #fff; cursor: pointer; padding: 0; width: 64px; height: 64px; border-radius: 50%; flex-direction: column; justify-content: center; gap: 9px; }
.menu-label { font: 600 11px/1 'Barlow Condensed', sans-serif; letter-spacing: .12em; }
/* Keep the same icon box in both states so label spacing stays consistent. */
.menu-icon { position: relative; display: block; width: 22px; height: 18px; flex: 0 0 18px; }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; width: 22px; height: 1px; background: currentColor; left: 0; transition: transform .2s, top .2s; }
.menu-icon::before { top: 4px; }
.menu-icon::after { top: 14px; }
.menu-toggle[aria-expanded='true'] .menu-icon::before { top: 9px; transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-icon::after { top: 9px; transform: rotate(-45deg); }
.site-footer { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 48px 65px; padding-block: 60px 25px; }
.footer-company img { width: 210px; margin-bottom: 12px; }
.footer-company .brand-name { margin: 0 0 18px; font-size: 12px; }
.footer-company address { font-size: 13px; color: var(--muted); font-style: normal; line-height: 1.75; }
.footer-company address a { display: inline-block; color: var(--ink); margin-top: 10px; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; align-content: end; gap: 14px 28px; font-size: 12px; line-height: 1.6; }
.copyright { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.contact-band { background: var(--red); color: #fff; padding: 70px max(var(--gutter), calc((100% - 1180px) / 2)); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px 35px; margin-top: var(--section-space); }
.home .contact-band { margin-top: 0; }
.contact-band h2 { font-size: clamp(22px, 2.1vw, 30px); }
.contact-band .eyebrow { grid-column: 1 / -1; color: #fff; margin: 0; }
.contact-band .button { flex-shrink: 0; background: #fff; border-color: #fff; color: var(--red); border-radius: 50px; }

/* 3. Home: oversized type, asymmetric photography and alternating color fields */
.hero { position: relative; display: grid; grid-template-columns: 52% 34% 14%; padding-top: 125px; width: 100%; margin: 30px 0 0; }
.hero-word { position: absolute; top: 0; left: var(--gutter); z-index: 2; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: clamp(100px, 14.7vw, 220px); letter-spacing: -.035em; line-height: .9; color: var(--red); pointer-events: none; white-space: nowrap; }
.hero-word span { -webkit-text-stroke: 1.5px var(--red); color: transparent; margin-left: .08em; }
.hero-photo { position: relative; margin: 0; align-self: start; }
.hero-photo img { width: 100%; height: clamp(480px, 43vw, 690px); object-fit: cover; object-position: 56% center; border-radius: 0 100px 0 0; }
.hero-side-photo { align-self: start; }
.hero-side-photo img { width: 100%; height: clamp(480px, 43vw, 690px); object-fit: cover; object-position: 51% center; border-radius: 100px 0 0 0; }
.hero-photo figcaption { font-size: 9px; letter-spacing: .14em; padding: 15px var(--gutter); }
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: center; padding: 70px clamp(20px, 2.8vw, 60px) 50px; }
.hero-copy .eyebrow { font-size: 12px; margin-bottom: 24px; text-align: center; }
.hero h1 { font-size: clamp(28px, 3.2vw, 58px); line-height: 1.55; letter-spacing: .06em; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero-business { font-size: 10px; margin-top: 25px; line-height: 1.9; text-align: center; }
.hero-services-link { margin-top: 35px; min-width: 230px; }
.intro { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px 60px; padding: 85px max(var(--gutter), calc((100% - 1180px) / 2)) 130px; margin-top: 60px; background: var(--red); color: #fff; }
.intro .eyebrow { color: #fff; grid-column: 1 / -1; margin: 0; }
.intro h2 { font-size: clamp(28px, 2.8vw, 43px); line-height: 1.7; }
.intro h2 em { font-style: normal; border-bottom: 1px solid rgba(255,255,255,.6); }
.intro > p:not(.eyebrow) { font-size: 13px; align-self: center; line-height: 2.4; }
.intro .text-link { grid-column: 2; color: #fff; border-color: #fff; margin: 0; }
.intro .text-link span { color: #fff; }
.purpose-word { position: absolute; bottom: -28px; left: var(--gutter); font: 600 clamp(70px, 12vw, 180px)/1 'Barlow Condensed', sans-serif; color: rgba(255,255,255,.13); white-space: nowrap; pointer-events: none; }
.services { padding-top: 100px; scroll-margin-top: 25px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin-bottom: 70px; }
.section-heading h2 { font-size: clamp(32px, 4vw, 58px); }
.section-heading > p { font-size: 13px; color: var(--muted); }
.service-feature { display: grid; grid-template-columns: 58% 42%; margin-top: 100px; position: relative; }
.feature-image { overflow: hidden; border-radius: 0 70px 0 0; }
.feature-image img { width: 100%; height: 100%; min-height: 410px; object-fit: cover; transition: transform .6s; }
.feature-image:hover img { transform: scale(1.035); }
.feature-copy { padding: 15px 0 15px 60px; align-self: center; }
.service-number { font: 500 95px/1 'Barlow Condensed', sans-serif; color: var(--red); margin-bottom: 22px; }
.service-number span { display: block; font: 500 10px/1.8 'Noto Sans JP', sans-serif; letter-spacing: .12em; margin-top: 12px; }
.feature-copy h3 { font-size: clamp(23px, 2.4vw, 35px); margin-bottom: 22px; }
.feature-copy > p:not(.service-number) { font-size: 13px; }
.service-feature.reverse { grid-template-columns: 42% 58%; margin-top: 120px; }
.reverse .feature-image { grid-column: 2; grid-row: 1; border-radius: 70px 0 0 0; }
.reverse .feature-copy { grid-column: 1; grid-row: 1; padding: 15px 60px 15px 0; }
.service-links { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; margin-top: 95px; }
.service-links > a { border-bottom: 1px solid var(--ink); padding-bottom: 30px; position: relative; }
.service-links img { width: 100%; aspect-ratio: 1.9; object-fit: cover; margin-bottom: 25px; }
.service-links .eyebrow { margin-bottom: 10px; }
.service-links h3 { font-size: 25px; margin-bottom: 12px; }
.service-links p { font-size: 12px; color: var(--muted); }
.arrow { color: var(--red); position: absolute; right: 0; bottom: 22px; font-size: 28px; }
.news-section { display: grid; grid-template-columns: 1fr 2.4fr; gap: 40px; padding-block: 120px; }
.news-section h2 { font-size: 37px; }
.news-list { list-style: none; padding: 0; }
.news-list li { border-top: 1px solid var(--line); }
.news-list li:last-child { border-bottom: 1px solid var(--line); }
.news-list a { display: flex; align-items: baseline; gap: 20px; padding: 25px 0; font-size: 13px; }
.news-list time { color: var(--muted); font-size: 11px; letter-spacing: .05em; white-space: nowrap; }
.news-category { color: var(--red); font-size: 10px; border: 1px solid var(--line); padding: 0 10px; white-space: nowrap; }
.news-list a > span:last-child { margin-left: auto; color: var(--red); }
.about-section { display: grid; grid-template-columns: 55% 45%; align-items: center; background: var(--paper); width: 100%; max-width: none; padding: 70px max(var(--gutter), calc((100% - 1180px) / 2)); }
.about-section > img { width: 100%; border-radius: 0 65px 0 0; }
.about-section > div { padding: 35px 0 35px 65px; }
.about-section h2 { font-size: clamp(28px, 3vw, 44px); margin-bottom: 25px; }
.about-section p:not(.eyebrow) { font-size: 13px; }

/* Page openings: photographic banner and light outlined typography */
.page-masthead { position: relative; background: var(--paper); overflow: hidden; }
.masthead-title { position: relative; padding-block: 55px 75px; z-index: 1; }
.masthead-title .eyebrow { font-size: 10px; margin-bottom: 18px; }
.masthead-title h1 { position: relative; z-index: 2; font-size: clamp(30px, 3.3vw, 48px); max-width: 1000px; }
.masthead-word { position: absolute; left: 33%; bottom: -42px; color: transparent; -webkit-text-stroke: 1px rgba(93,70,70,.3); font: 500 clamp(110px, 13vw, 195px)/1 'Barlow Condensed', sans-serif; letter-spacing: .02em; white-space: nowrap; pointer-events: none; }
.masthead-photo { width: calc(100% - var(--gutter)); }
.masthead-photo img { width: 100%; height: clamp(300px, 28vw, 430px); object-fit: cover; object-position: center 48%; border-radius: 0 100px 0 0; }
.masthead-lead { color: var(--ink); position: relative; margin-block: 0 40px; padding: 22px 0 22px 30px; text-wrap: pretty; font-size: 15px; font-weight: 500; line-height: 1.9; letter-spacing: .055em; }
.masthead-lead::before { content: ''; position: absolute; left: 0; top: calc(22px + .95em - .5px); width: 20px; height: 1px; background: var(--red); }
.masthead-spacing { height: 65px; }
@media (max-width: 760px) {
    .masthead-title { padding-block: 35px 55px; }
    .masthead-title h1 { font-size: 28px; }
    .masthead-word { font-size: 90px; left: 12%; bottom: -22px; }
    .masthead-photo { width: calc(100% - 22px); }
    .masthead-photo img { height: 220px; border-top-right-radius: 60px; }
    .masthead-lead { margin-block: 0 30px; padding-block: 18px; font-size: 14px; }
    .masthead-lead::before { top: calc(18px + .95em - .5px); }
    .masthead-spacing { height: 40px; }
}

/* 4. PHP pages and block-based posts */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 15px; color: var(--muted); font-size: 10px; padding-top: 30px; }
.page-heading { padding-block: 55px 65px; }
.page-heading .eyebrow { font: 600 15px/1.5 'Barlow Condensed', sans-serif; color: var(--red); letter-spacing: .13em; margin-bottom: 20px; }
.page-heading h1 { max-width: 1000px; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.55; }
.page-heading h1:after { content: ''; display: block; width: 100%; height: 1px; background: var(--line); margin-top: 32px; }
.page-lead { margin-top: 32px; max-width: 770px; font-size: 17px; line-height: 2; }
.page-photo { margin-bottom: 70px; }
.page-photo img { width: 100%; max-height: 490px; object-fit: cover; border-radius: 0 70px 0 0; }
.prose p { margin-bottom: 1.4em; }
.prose h2 { margin: 65px 0 25px; font-size: clamp(23px, 2.3vw, 31px); }
.prose h3 { margin: 35px 0 16px; font-size: 21px; }
.prose h4 { margin: 25px 0 12px; font-size: 18px; }
.prose ul, .prose ol { padding-left: 1.5em; margin-bottom: 28px; }
.prose li { margin-bottom: 8px; }
.prose a:not(.button):not(.text-link) { color: var(--red); text-decoration: underline; }
.prose img { max-height: 680px; object-fit: contain; margin-block: 28px; }
.prose figure { margin-block: 28px; }
.prose figcaption { font-size: 12px; color: var(--muted); text-align: center; }
.prose .wp-block-image img { margin: 0; }
.prose .wp-block-button__link { background: var(--red); color: #fff !important; border-radius: 0; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: 15px; text-align: left; }
.prose blockquote { padding: 0; margin: 30px 0; }
.prose iframe { max-width: 100%; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: start; }
.content-section { padding-block: 60px; border-top: 1px solid var(--line); }
.prose .content-section > h2 { margin-top: 0; }
.prose .content-section > .eyebrow { margin-bottom: 10px; }
.prose .content-section > .eyebrow + h2 { margin-top: 0; }
.prose > .content-section:first-child { border-top: 0; padding-top: 0; }
.prose > h2:first-child { margin-top: 0; }
.lead-sentence { display: block; }
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; margin-block: 24px; }
.brand-grid > img { width: 100%; height: auto; max-height: 240px; margin: 0; object-fit: contain; }
main + .contact-band { margin-top: 100px; }
@media (max-width: 760px) { main + .contact-band { margin-top: 64px; } }
.prose > .content-section:last-child { padding-bottom: 0; }
.brand-card { border: 1px solid var(--line); padding-bottom: 18px; }
.brand-card img { margin: 0; aspect-ratio: 2.78; width: 100%; object-fit: cover; }
.brand-card h3 { margin: 18px 20px 0; font-size: 15px; }
.brand-card:hover { border-color: var(--red); }

/* Model change process: one continuous sequence on every screen. */
.prose .change-process { list-style: none; padding: 0; margin: 32px 0 0; }
.prose .change-process li { position: relative; display: grid; grid-template-columns: 44px 1fr; align-items: start; gap: 22px; padding: 0 0 22px; margin: 0; font-size: 15px; font-weight: 500; line-height: 1.8; }
.change-process li > span:last-child { padding-top: 8px; }
.change-process li::before { content: ''; position: absolute; top: 44px; bottom: 0; left: 21px; width: 1px; background: var(--line); }
.prose .change-process li:last-child { padding-bottom: 0; }
.change-process li:last-child::before { display: none; }
.process-number { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--red); border-radius: 50%; color: var(--red); font: 500 22px/1 'Barlow Condensed', sans-serif; letter-spacing: .02em; }
@media (max-width: 760px) {
    .prose .change-process { margin-top: 24px; }
    .prose .change-process li { gap: 16px; font-size: 14px; }
}

.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { counter-increment: step; padding: 0 20px 0 0; font-size: 13px; }
.steps li:before { content: '0' counter(step); display: block; font-size: 24px; color: var(--red); margin-bottom: 10px; }
.steps h3 { font-size: 18px; margin: 0 0 10px; }
.company-details { display: grid; grid-template-columns: 180px 1fr; margin: 30px 0; }
.company-details dt, .company-details dd { border-top: 1px solid var(--line); padding: 19px 15px; margin: 0; }
.company-details dt { color: var(--muted); font-size: 13px; }
.company-details dd { font-size: 14px; }
.company-details dt:last-of-type, .company-details dd:last-of-type { border-bottom: 1px solid var(--line); }
.history { list-style: none; padding: 0 !important; }
.history li { display: grid; grid-template-columns: 100px 1fr; padding: 15px 0; border-bottom: 1px solid var(--line); gap: 20px; font-size: 14px; }
.history time { color: var(--red); }
.shop-list { margin-top: 35px; }
.shop-list article { display: grid; grid-template-columns: 1fr 1.4fr; gap: 45px; padding-block: 35px; border-bottom: 1px solid var(--line); }
.shop-list article:first-child { padding-top: 0; }
.shop-list article:last-child { border-bottom: 0; padding-bottom: 0; }
.shop-list h3 { font-size: 21px; margin: 0; line-height: 1.7; }
.shop-list .shop-location { font: 600 14px/1.4 'Barlow Condensed', sans-serif; letter-spacing: .1em; color: var(--red); margin-bottom: 16px; }
.shop-information { font-size: 14px; }
.shop-information address { font-style: normal; line-height: 1.75; }
.shop-information address a { display: inline-block; margin-top: 10px; color: var(--ink) !important; text-decoration: none !important; font: 500 20px/1.5 'Barlow Condensed', sans-serif; letter-spacing: .05em; }
.shop-hours { display: grid; grid-template-columns: 75px 1fr; gap: 5px 15px; margin: 18px 0 0; font-size: 12px; }
.shop-hours dt { color: var(--muted); }
.shop-hours dd { margin: 0; }
.shop-information .text-link { margin-top: 20px; font-size: 12px; }
.notice { padding: 0; font-size: 13px; color: var(--muted); margin-block: 24px; }
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }

.prose .voice { margin: 0; }
.prose .voice blockquote { position: relative; margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 18px; font-size: 13px; line-height: 2; }
.prose .voice blockquote::after { content: ''; position: absolute; bottom: -7px; left: 28px; width: 12px; height: 12px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.prose .voice blockquote p { margin: 0; }
.prose .voice figcaption { margin: 16px 0 0 24px; text-align: left; font-size: 12px; color: var(--muted); }
.prose .voice figcaption::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 9px; vertical-align: middle; }
.teacher-voices { display: grid; gap: 30px; }

.post-date { color: var(--muted); font-size: 12px; margin-bottom: 15px; }
.post-article .page-heading { padding-bottom: 50px; }
.post-article h1 { font-size: clamp(26px, 3vw, 38px); }
.post-navigation { display: flex; justify-content: space-between; gap: 30px; padding-block: 30px; margin-top: 50px; border-top: 1px solid var(--line); font-size: 13px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 15px; margin-block: 35px; }

/* 6. Responsive layout */
@media (min-width: 1500px) { .site-header { padding-inline: max(45px, calc((100vw - 1480px) / 2)); } }
@media (max-width: 1150px) {
    .site-header { flex-wrap: wrap; padding: 18px var(--gutter); }
    .site-nav { width: 100%; flex-wrap: wrap; padding-bottom: 10px; }
    .js .menu-toggle { display: flex !important; align-items: center; }
    .js .site-nav { display: none; }
    .menu-open { overflow: hidden; }
    .menu-open .site-header { position: relative; z-index: 100; }
    .menu-open .brand, .menu-open .menu-toggle { position: relative; z-index: 102; }
    .js .site-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: fixed; inset: 0; z-index: 101; padding: 130px max(var(--gutter), calc((100% - 650px) / 2)) 35px; background: var(--paper); overflow-y: auto; counter-reset: menu-item; }
    .site-nav.is-open > a { display: flex; align-items: center; gap: 22px; min-height: 66px; padding-block: 16px; border-bottom: 1px solid var(--line); font-size: clamp(17px, 3vw, 23px); font-weight: 600; }
    .site-nav.is-open > a:before { counter-increment: menu-item; content: '0' counter(menu-item); font: 500 15px/1 'Barlow Condensed', sans-serif; color: var(--red); }
    .site-nav.is-open .nav-arrow { display: inline-block; margin-left: auto; color: var(--red); }
    .site-nav.is-open .nav-contact { margin-top: 24px; padding: 20px 24px; border: 0; font-size: 16px; min-height: 65px; }
    .site-nav.is-open .nav-contact:before { display: none; }
    .site-nav.is-open .nav-contact span { margin-left: auto; }
    .hero-copy { padding-inline: 20px; }
    .hero-services-link { min-width: 0; width: 100%; gap: 12px; font-size: 11px; }
    .news-section { grid-template-columns: 25% 75%; gap: 0; }
    .about-section > div { padding-left: 40px; }
}
@media (max-width: 760px) {
    body { font-size: 14px; }
    .site-header { gap: 15px; }
    .brand { width: 155px; flex-basis: 155px; }
    .brand img { width: 155px; }
    .hero { grid-template-columns: 72% 28%; padding-top: 85px; margin-top: 30px; }
    .hero-word { font-size: 15.1vw; top: 0; left: var(--gutter); }
    .hero-photo { grid-column: 1 / -1; margin-right: 35px; }
    .hero-side-photo { margin-top: 25px; }
    .hero-side-photo img { height: 290px; border-radius: 45px 0 0 0; }
    .hero-photo img { height: 330px; min-height: 0; border-radius: 0 60px 0 0; object-position: 56% center; }
    .hero-photo figcaption { padding-block: 10px; font-size: 7px; }
    .hero-copy { padding: 25px 15px 35px; }
    .hero h1 { font-size: clamp(23px, 7.5vw, 36px); line-height: 1.5; }
    .hero-copy .eyebrow { font-size: 10px; margin-bottom: 15px; }
    .hero-business { max-width: 240px; font-size: clamp(8px, 2.3vw, 9px); margin-top: 20px; }
    .intro { grid-template-columns: 1fr; gap: 20px; padding-block: 50px 80px; margin-top: 20px; }
    .intro .eyebrow { margin-bottom: 0; }
    .intro h2 { font-size: 27px; }
    .intro > p:not(.eyebrow) { font-size: 12px; }
    .intro br { display: none; }
    .intro h2 br { display: initial; }
    .intro .text-link { grid-column: 1; }
    .purpose-word { font-size: 19vw; bottom: -10px; }
    .services { padding-top: 65px; }
    .section-heading { display: block; margin-bottom: 25px; }
    .section-heading > p { margin-top: 20px; }
    .service-feature, .service-feature.reverse { grid-template-columns: 1fr; margin-top: 35px; }
    .reverse .feature-image, .reverse .feature-copy { grid-column: auto; grid-row: auto; }
    .feature-image img { min-height: 0; aspect-ratio: 1.45; }
    .feature-copy, .reverse .feature-copy { padding: 25px 0 0; }
    .service-number { font-size: 65px; }
    .feature-image, .reverse .feature-image { border-radius: 0 45px 0 0; }
    .service-links, .news-section, .about-section, .two-column, .voice-grid { grid-template-columns: 1fr; gap: 25px; }
    .service-links { margin-top: 35px; }
    .service-links > a { padding-block: 25px; }
    .news-section { gap: 30px; }
    .news-list a { flex-wrap: wrap; gap: 8px 16px; padding: 20px 0; }
    .news-list a > span:nth-last-child(2) { flex-basis: 85%; }
    .about-section { padding: 45px var(--gutter); }
    .about-section > div { padding: 15px 0 0; }
    .contact-band { grid-template-columns: 1fr; gap: 18px; padding-block: 45px; }
    .contact-band .button { justify-self: start; margin-top: 8px; }
    .site-footer { grid-template-columns: 1fr; gap: 40px; padding-top: 50px; }
    .copyright { display: block; font-size: 9px; }
    .copyright span { display: block; margin-top: 12px; }
    .page-heading { padding-block: 40px 45px; }
    .page-heading .eyebrow { font-size: 13px; margin-bottom: 15px; }
    .page-lead { font-size: 15px; }
    .page-photo { margin-bottom: 35px; }
    .content-section { padding-block: 40px; }
    .brand-grid { gap: 16px; }
    .brand-card h3 { font-size: 12px; margin: 12px 12px 0; }
    .steps { grid-template-columns: 1fr; gap: 15px; }
    .company-details { grid-template-columns: 100px 1fr; }
    .company-details dt, .company-details dd { padding: 16px 5px; font-size: 12px; }
    .history li { grid-template-columns: 70px 1fr; gap: 15px; font-size: 12px; }
    .shop-list article { grid-template-columns: 1fr; gap: 20px; padding-block: 30px; }
    .shop-list h3 { font-size: 20px; }
    .shop-information { font-size: 13px; }
    .prose h2 { margin-top: 45px; }
    .post-navigation { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Access information and map action share one compact alignment. */
.access-section { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: start; }
.access-details p { line-height: 1.9; }
.prose .access-details a[href^="tel:"] { display: inline-block; margin-top: 8px; color: var(--ink); text-decoration: none; }
.map-button { background: transparent; color: var(--red); gap: 28px; min-height: 50px; font-size: 13px; }
@media (max-width: 760px) {
    .access-section { grid-template-columns: 1fr; gap: 20px; }
    .prose .access-section h2 { margin-bottom: 0; }
}

.recruitment .button { width: min(100%, 300px); min-height: 58px; justify-content: space-between; gap: 16px; }
.recruitment > .button + .content-section { margin-top: 48px; }
@media (max-width: 760px) {
    .recruitment > .button + .content-section { margin-top: 36px; }
}

/* Seminar content stays compact, with consistent numbered rows. */
.prose .seminar-topics { list-style: none; padding: 0; margin: 30px 0 0; counter-reset: topic; }
.prose .seminar-topics li:last-child { border-bottom: 0; }
.prose .seminar-topics li { position: relative; counter-increment: topic; display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 24px 0 24px 52px; margin: 0; border-bottom: 1px solid var(--line); }
.seminar-topics li::before { content: counter(topic, decimal-leading-zero); position: absolute; left: 0; top: 26px; color: var(--red); font: 500 24px/1.2 'Barlow Condensed', sans-serif; }
.prose .seminar-topics h3 { font-size: 18px; line-height: 1.7; margin: 0; }
.prose .seminar-topics p { font-size: 14px; line-height: 1.9; margin: 0; }
.seminar-effect { display: grid; grid-template-columns: 1fr 200px; gap: 45px; align-items: center; }
.prose .seminar-effect h2 { margin: 0 0 20px; }
.prose .seminar-effect p { margin: 0; }
.prose .seminar-effect img { width: 100%; height: auto; max-height: 240px; margin: 0; }
@media (max-width: 760px) {
    .prose .seminar-topics li { grid-template-columns: 1fr; gap: 8px; padding-left: 42px; }
    .prose .seminar-topics h3 { font-size: 17px; }
    .prose .seminar-topics p { font-size: 13px; }
    .seminar-effect { grid-template-columns: 1fr 100px; gap: 20px; }
    .prose .seminar-effect h2 { font-size: 21px; }
    .prose .seminar-effect p { font-size: 13px; }
    .prose .seminar-effect img { max-height: 140px; }
}

.business-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 32px; }
.prose .business-grid img { width: 100%; height: 210px; object-fit: cover; margin: 0 0 24px; border-radius: 0 36px 0 0; }
.prose .business-grid .business-education { object-fit: contain; border-radius: 0; }
.prose .business-label { margin: 0 0 10px; color: var(--red); font: 600 14px/1.5 'Barlow Condensed', sans-serif; letter-spacing: .1em; }
.prose .business-grid h3 { font-size: 20px; margin: 0 0 16px; line-height: 1.6; }
.prose .business-grid section > p:last-child { font-size: 14px; line-height: 1.9; margin: 0; }
@media (max-width: 760px) {
    .business-grid { grid-template-columns: 1fr; gap: 36px; }
    .prose .business-grid img { height: 190px; margin-bottom: 20px; }
}


.seminar-support { display: grid; grid-template-columns: 180px 1fr; gap: 26px; margin-block: 32px; align-items: baseline; }
.prose .seminar-support p { font-size: 13px; line-height: 1.9; margin: 0; }
.prose .seminar-support .support-title { font-size: 16px; font-weight: 600; color: var(--red); }
@media (max-width: 760px) {
    .seminar-support { grid-template-columns: 1fr; gap: 10px; }
}

.seminar-header-photo img { object-position: 68% 50%; }
@media (max-width: 760px) { .seminar-header-photo img { object-position: 72% 50%; } }

/* The desktop hero reveals two windows onto the same panoramic photo. */
@media (min-width: 761px) {
    .hero-photo { overflow: hidden; border-top-right-radius: 100px; }
    .hero-side-photo { overflow: hidden; border-top-left-radius: 100px; }
    .hero-photo img, .hero-side-photo img { width: 100vw; max-width: none; border-radius: 0; object-position: center center; }
    .hero-side-photo img { margin-left: calc(100% - 100vw); }
}
@media (max-width: 760px) {
    .hero-photo img { object-position: left center; }
    .hero-side-photo img { object-position: right center; }
}

/* Center the message between the large word and the photograph bottom. */
.hero-message { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; }
.hero-copy .eyebrow { position: absolute; bottom: 100%; margin: 0 0 24px; width: 100%; }
@media (min-width: 761px) {
    .hero-copy { margin-top: 73px; height: calc(clamp(480px, 43vw, 690px) - 73px); justify-content: center; padding-block: 24px; }
}
@media (max-width: 760px) {
    .hero-copy { padding: 64px 24px 40px; }
    .hero-copy .eyebrow { margin-bottom: 20px; }
    .hero-services-link { width: min(100%, 260px); min-width: 0; margin-top: 28px; gap: 16px; font-size: 12px; padding-block: 14px; }
    .hero-business { margin-top: 22px; line-height: 1.8; }
}

.about-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; max-width: 420px; }
.about-links .text-link { width: 100%; min-width: 0; margin-top: 0; gap: 16px; }
@media (max-width: 760px) { .about-links { gap: 24px; margin-top: 32px; max-width: none; } }

/* Both photo windows share the same seasonal fade. */
.hero-photo-frame { position: relative; height: clamp(480px, 43vw, 690px); overflow: hidden; }
.hero-season { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease-in-out; pointer-events: none; }
.hero-season.is-active { opacity: 1; }
.hero-photo figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-slideshow-toggle { border: 0; background: none; padding: 2px 0; color: var(--muted); font: inherit; letter-spacing: 0; cursor: pointer; }
.hero-slideshow-toggle:hover { color: var(--red); }
.hero-slideshow-toggle[hidden] { display: none; }
@media (max-width: 760px) {
    .hero-photo .hero-photo-frame { height: 330px; border-radius: 0 60px 0 0; }
    .hero-side-photo .hero-photo-frame { height: 290px; border-radius: 45px 0 0 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-season { transition: none; } }

/* Keep the top of all three panoramas visible, including spring on wide screens.
 * The left and right windows share one vertical crop for a continuous scene. */
@media (min-width: 761px) {
    .hero-photo .hero-season img,
    .hero-side-photo .hero-season img { object-position: center top; }
}


.education-header-photo img { object-position: center 35%; }
@media (max-width: 760px) { .education-header-photo img { object-position: right 35%; } }

.contact-header-photo img { object-position: center 35%; }
@media (max-width: 760px) { .contact-header-photo img { object-position: 68% 35%; } }

.contact-header-photo img { object-position: center 35%; }
@media (max-width: 760px) { .contact-header-photo img { object-position: 68% 35%; } }

/* Crop the pair and the rear-view student separately from the same panorama.
 * Keep the complete canvas sharp by matching the HTML sizes attribute to it. */
.hero { --hero-height: clamp(480px, 43vw, 780px); }
.hero-season { --hero-pair-shift: -30%; --hero-rear-x: 94%; }
.hero-season[data-hero-season="0"] { --hero-pair-shift: -29%; --hero-rear-x: 90%; }
.hero-season[data-hero-season="1"] { --hero-rear-x: 96%; }
.hero .hero-photo-frame { height: var(--hero-height); }
.hero-photo .hero-season img {
    position: absolute; top: 0; left: 50%;
    width: max(200%, calc(var(--hero-height) * 2.3));
    max-width: none; height: 100%; margin-left: 0;
    object-fit: cover; object-position: left top;
    transform: translateX(var(--hero-pair-shift)); border-radius: 0;
}
.hero-side-photo .hero-season img {
    position: absolute; top: 0; left: 0;
    width: 100%; max-width: none; height: 100%; margin-left: 0;
    object-fit: cover; object-position: var(--hero-rear-x) top;
    transform: none; border-radius: 0;
}
@media (min-width: 761px) {
    .hero-copy { height: calc(var(--hero-height) - 73px); }
}
@media (max-width: 760px) {
    .hero { --hero-height: clamp(330px, 54vw, 410px); }
    .hero-photo .hero-photo-frame { height: var(--hero-height); }
    .hero-photo .hero-season img { width: max(200%, calc(var(--hero-height) * 2.8)); }
    .hero-side-photo .hero-photo-frame { height: 290px; }
}
