:root {
    --ink: #342f2c;
    --muted: #746d68;
    --brown: #875752;
    --brown-dark: #503331;
    --cream: #f7f4ef;
    --pink: #f8edef;
    --green: #edf3e6;
    --white: #fff;
    --line: rgba(52, 47, 44, .14);
    --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; line-height: 1.9; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.screen-reader-text:focus { width: auto; height: auto; clip: auto; z-index: 100; top: 10px; left: 10px; padding: 10px; background: white; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.container--narrow { max-width: 880px; }

.site-header { position: fixed; z-index: 50; top: 0; left: 0; width: 100%; min-height: 92px; padding: 16px clamp(22px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; color: white; transition: min-height .3s, padding .3s, color .3s, background-color .3s, box-shadow .3s; }
.admin-bar .site-header { top: 32px; }
.admin-bar .site-header:not(.is-scrolled) .site-navigation { top: 32px; }
.site-header.is-scrolled, body:not(.home) .site-header { min-height: 72px; padding-block: 8px; color: var(--ink); background: rgba(255, 255, 255, .96); box-shadow: 0 6px 30px rgba(52, 47, 44, .08); backdrop-filter: blur(14px); }
.site-brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; }
.site-brand__mark { position: relative; display: block; width: 45px; height: 45px; flex: 0 0 45px; }
.site-brand__logo { position: absolute; inset: 0; width: 45px; height: 45px; object-fit: contain; transition: opacity .3s; }
.site-brand__logo--white { opacity: 1; }
.site-brand__logo--dark { opacity: 0; }
.site-header.is-scrolled .site-brand__logo--white, body:not(.home) .site-brand__logo--white { opacity: 0; }
.site-header.is-scrolled .site-brand__logo--dark, body:not(.home) .site-brand__logo--dark { opacity: 1; }
.site-navigation { display: flex; align-items: center; gap: clamp(18px, 2.3vw, 36px); }
.site-navigation a { color: inherit; text-decoration: none; font-size: .86rem; font-weight: 600; letter-spacing: .08em; }
.site-navigation a::after { content: ""; display: block; width: 0; height: 1px; margin-top: 3px; background: currentColor; transition: width .25s; }
.site-navigation a:hover::after, .site-navigation a:focus-visible::after { width: 100%; }
.menu-toggle { display: none; padding: 8px; border: 0; color: inherit; background: transparent; cursor: pointer; }
.menu-toggle__lines, .menu-toggle__lines::before, .menu-toggle__lines::after { display: block; width: 28px; height: 1px; background: currentColor; content: ""; transition: transform .25s; }
.menu-toggle__lines::before { transform: translateY(-8px); }
.menu-toggle__lines::after { transform: translateY(7px); }
.menu-toggle__label { display: block; margin-top: 11px; font-size: .58rem; letter-spacing: .14em; }

.site-header:not(.is-scrolled) .menu-toggle { position: relative; z-index: 2; display: block; }
.site-header:not(.is-scrolled) .site-navigation { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 30px; color: white; background: rgba(80, 51, 49, .98); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.site-header:not(.is-scrolled) .site-navigation.is-open { opacity: 1; visibility: visible; }
.site-header:not(.is-scrolled) .site-navigation a { font-size: 1.2rem; }
.menu-toggle[aria-expanded="true"] { color: white; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before { transform: translateY(0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::after { transform: translateY(-1px) rotate(-45deg); }

.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; color: white; background: #2e3028 url('../images/img/img-houjin-header-photo.png') center / cover no-repeat; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35, 32, 28, .58) 0%, rgba(35, 32, 28, .15) 55%, rgba(35, 32, 28, .1) 100%), linear-gradient(0deg, rgba(21, 20, 17, .42), transparent 55%); }
.hero__content { position: relative; width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
.hero__eyebrow { margin: 0 0 22px; font-size: .72rem; font-weight: 700; letter-spacing: .28em; }
.hero h1 { max-width: 720px; margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(3rem, 6.5vw, 6.5rem); font-weight: 400; line-height: 1.35; letter-spacing: .08em; text-shadow: 0 4px 24px rgba(0, 0, 0, .16); }
.hero__lead { margin: 30px 0 0; font-size: clamp(.95rem, 1.35vw, 1.15rem); letter-spacing: .08em; }
.hero__scroll { position: absolute; right: clamp(24px, 5vw, 74px); bottom: 42px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: white; text-decoration: none; font-size: .62rem; letter-spacing: .2em; }
.hero__scroll i { width: 1px; height: 54px; background: rgba(255, 255, 255, .75); }

.section { position: relative; overflow: hidden; padding: clamp(110px, 13vw, 190px) 0; }
.section-heading { margin-bottom: clamp(48px, 6vw, 78px); }
.section-heading--center { text-align: center; }
.section-heading__en { margin: 0 0 10px; color: var(--brown); font-size: .7rem; font-weight: 700; letter-spacing: .28em; }
.section-heading h2 { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 400; line-height: 1.35; letter-spacing: .12em; }
.section-heading > p:last-child:not(.section-heading__en) { margin: 24px 0 0; color: var(--muted); }

.section--intro { background: var(--cream); }
.facility-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
.facility-card { padding: clamp(30px, 4vw, 54px); background: white; box-shadow: 0 24px 70px rgba(70, 52, 45, .07); }
.facility-card__heading { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.facility-card__heading img { max-width: 180px; max-height: 70px; object-fit: contain; }
.facility-card__heading a { white-space: nowrap; color: var(--brown); font-size: .75rem; text-decoration: none; }
.facility-card__details { display: grid; grid-template-columns: 7em 1fr; margin: 26px 0 0; }
.facility-card__details dt, .facility-card__details dd { margin: 0; padding: 11px 0; border-bottom: 1px solid rgba(52, 47, 44, .08); font-size: .9rem; }
.facility-card__details dt { color: var(--muted); }

.section--news { background: white; }
.news-list, .document-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 9em 1fr auto; gap: 24px; align-items: center; padding: 24px 10px; text-decoration: none; }
.news-list time { color: var(--muted); font-size: .82rem; letter-spacing: .08em; }
.news-list i { color: var(--brown); font-style: normal; font-size: 1.3rem; }

.section--history { min-height: 680px; background: var(--pink); }
.history-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(60px, 10vw, 150px); }
.history-layout__lead { color: var(--muted); }
.timeline { position: relative; margin: 20px 0 0; padding: 0; list-style: none; }
.timeline::before { position: absolute; top: 8px; bottom: 8px; left: 7px; width: 1px; content: ""; background: rgba(135, 87, 82, .35); }
.timeline li { position: relative; padding: 0 0 65px 42px; }
.timeline li::before { position: absolute; top: 8px; left: 2px; width: 11px; height: 11px; border-radius: 50%; content: ""; background: var(--brown); }
.timeline time { color: var(--brown); font-weight: 700; letter-spacing: .08em; }
.timeline p { margin: 8px 0 0; font-size: 1.1rem; }
.section-decoration { position: absolute; right: -40px; bottom: 0; width: min(34vw, 430px); opacity: .16; }

.section--disclosure { background: white; }
.document-list li { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 25px 8px; border-bottom: 1px solid var(--line); }
.document-list__type { display: inline-block; margin-right: 18px; padding: 3px 11px; color: white; background: var(--brown); font-size: .65rem; letter-spacing: .1em; }
.document-list__download { color: var(--brown); font-size: .82rem; text-decoration: none; }
.document-list .post-password-form { grid-column: 1 / -1; margin: 0; padding: 20px; background: var(--cream); }
.document-list .post-password-form input { max-width: 240px; padding: 10px; border: 1px solid var(--line); }
.document-list .post-password-form input[type="submit"] { width: auto; color: white; border: 0; background: var(--brown); cursor: pointer; }
.empty-message { color: var(--muted); text-align: center; }

.section--recruit { background: var(--green); }
.recruit-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 9vw, 130px); align-items: center; }
.recruit-layout__image img { filter: drop-shadow(0 18px 24px rgba(43, 57, 33, .12)); }
.recruit-layout__content h3 { margin: 0 0 26px; color: #668c38; font-size: clamp(1.25rem, 2.3vw, 1.8rem); line-height: 1.7; }

.site-footer { padding: 90px 24px; color: white; text-align: center; background: var(--brown-dark); }
.site-footer__inner img { width: 85px; }
.site-footer__name { margin: 12px 0 0; font-weight: 700; letter-spacing: .08em; }
.site-footer__policy { margin: 25px 0; font-family: "Yu Mincho", serif; font-size: 1.6rem; letter-spacing: .12em; }
.site-footer__copyright { margin: 0; color: rgba(255, 255, 255, .6); font-size: .7rem; letter-spacing: .1em; }

@media (max-width: 860px) {
    .site-header { min-height: 76px; padding: 10px 20px; }
    .site-brand span { font-size: .78rem; }
    .site-brand img { width: 38px; height: 38px; }
    .menu-toggle { position: relative; z-index: 2; display: block; }
    .site-navigation { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 28px; color: white; background: rgba(80, 51, 49, .98); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
    .site-navigation.is-open { opacity: 1; visibility: visible; }
    .site-navigation a { font-size: 1.15rem; }
    .hero { background-position: 56% center; }
    .hero h1 { font-size: clamp(2.5rem, 11vw, 4.3rem); }
    .hero__lead br { display: none; }
    .facility-grid, .history-layout, .recruit-layout { grid-template-columns: 1fr; }
    .facility-grid { gap: 22px; }
    .history-layout { gap: 20px; }
    .recruit-layout__image { max-width: 430px; margin: auto; }
}

@media (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
    .admin-bar .site-header:not(.is-scrolled) .site-navigation { top: 46px; }
}

@media (max-width: 560px) {
    .container { width: min(100% - 32px, var(--container)); }
    .site-brand span { max-width: 12em; line-height: 1.35; }
    .hero__content { width: calc(100% - 36px); margin: 0 auto; }
    .hero__eyebrow { font-size: .6rem; }
    .hero__scroll { right: 18px; bottom: 24px; }
    .section { padding: 95px 0; }
    .facility-card { padding: 28px 22px; }
    .facility-card__heading { align-items: flex-start; flex-direction: column; }
    .facility-card__details { grid-template-columns: 6.2em 1fr; }
    .news-list a { grid-template-columns: 1fr auto; gap: 6px 16px; }
    .news-list time { grid-column: 1 / -1; }
    .document-list li { grid-template-columns: 1fr; }
}
