.history-page{color:#171717}
.history-hero{position:relative;isolation:isolate;height:min(360px,25vw);overflow:hidden;background:#edf7fc}
.history-hero-media,.history-hero-media>img{position:absolute;inset:0;width:100%;height:100%}
.history-hero-media{z-index:-2}.history-hero-media>img{object-fit:cover;object-position:center 54%}
.history-hero-mist{position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse 33% 120% at 27% 54%,#fffffff5 0%,#ffffffeb 40%,#ffffffb8 65%,#ffffff40 85%,#ffffff00 100%)}
.history-hero-copy{position:relative;padding-top:calc(114 * var(--space-unit));margin-left:14.027778%;color:#17314a}
.history-eyebrow{display:flex;align-items:center;gap:calc(10 * var(--space-unit));font-family:var(--font-en);font-size:calc(11 * var(--type-unit));font-weight:700;letter-spacing:.28em;line-height:calc(16 * var(--type-unit));color:#87cfc0}
.history-eyebrow:after{content:"";width:92px;height:1px;background:currentColor}
.history-hero h1{font-size:calc(37 * var(--type-unit));font-weight:700;line-height:1.4;letter-spacing:.07em;margin-top:calc(12 * var(--space-unit))}
.history-content{position:relative;padding-top:var(--key-visual-content-gap);padding-bottom:156px;background:linear-gradient(to right,#fff 0%,#fff 36.25%,#fffbf2 36.25%,#fffbf2 100%)}
.history-layout{display:grid;grid-template-columns:36.25% minmax(0,1fr);align-items:start}
.history-gallery{position:relative;min-width:0}
.history-picture{position:absolute;left:auto;right:calc(198 * var(--u));transform:translateX(50%);margin:0;text-align:center}
.history-picture img{width:100%;object-fit:cover;border-radius:var(--corner-radius);box-shadow:3px 3px 4px rgba(0,0,0,.25);background:#fff}
.history-picture img.history-contain{object-fit:contain}
.history-logo-picture img{padding:14px}
.history-picture figcaption{position:relative;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(380 * var(--u));font-weight:500;font-size:calc(14 * var(--type-unit));letter-spacing:.08em;line-height:1.7;margin-top:calc(37 * var(--u));overflow-wrap:anywhere}
.history-timeline{position:relative;border-left:2.5px solid #eaeaea;padding:0 calc(164 * var(--u)) 0 calc(28 * var(--u));min-width:0}
.history-timeline:before{content:"";position:absolute;left:-2.5px;top:calc(-1 * var(--key-visual-content-gap));width:2.5px;height:var(--key-visual-content-gap);background:#eaeaea}
.history-year{--year-dot:#6dddba;position:relative}
.history-year+.history-year{margin-top:calc(63 * var(--space-unit))}
.history-year h2{position:relative;display:flex;align-items:baseline;gap:3px;color:#6dddba;font-family:var(--font-numerals);font-weight:600;line-height:1.3}
.history-year h2:before{content:"";position:absolute;top:calc(7 * var(--type-unit));left:calc(-28 * var(--u) - 11px);width:19px;height:19px;border-radius:50%;background:var(--year-dot);transform:scale(1.1);transform-origin:center}
.history-year-number{font-size:calc(29 * var(--type-unit))}.history-year-unit{font-size:calc(16 * var(--type-unit))}
.history-event{position:relative;display:grid;grid-template-columns:calc(49 * var(--space-unit)) minmax(0,1fr);gap:calc(16 * var(--space-unit));margin-top:calc(28 * var(--space-unit));font-size:calc(16 * var(--type-unit));line-height:1.8}
.history-month{white-space:nowrap}.history-repeated-month{visibility:hidden}
.history-event-body{display:flex;flex-wrap:wrap;justify-content:space-between;gap:calc(12 * var(--space-unit)) calc(18 * var(--space-unit));align-items:center;min-width:0}
.history-event-text{min-width:0;overflow-wrap:anywhere}
.history-milestone{margin-left:auto;font-family:inherit;font-size:inherit;line-height:inherit;white-space:nowrap}
.history-milestone mark{position:relative;color:#171717;background:rgba(253,243,150,.7);font-weight:700;padding:1px 3px;white-space:nowrap}
.history-milestone-rays{position:absolute;right:-15px;top:-21px;width:33px;height:25px;pointer-events:none}.history-milestone-rays>span{position:absolute;display:block;width:2.8px;height:12.65px;background:var(--year-dot);transform-origin:50% 100%}.history-milestone-rays>span:nth-child(1){left:6px;top:0;transform:rotate(-20deg)}.history-milestone-rays>span:nth-child(2){left:11px;top:3px;transform:rotate(35deg)}.history-milestone-rays>span:nth-child(3){left:18px;top:6px;transform:rotate(65deg)}
#history-load-error{text-align:center;padding:30px}
@media(min-width:768px) and (max-width:1100px){.history-timeline{padding-right:6vw}.history-event{grid-template-columns:38px minmax(0,1fr);gap:10px}.history-milestone{white-space:normal}}
@media(max-width:1049px){.history-hero{height:auto;overflow:visible;background:#fff}.history-hero-media{position:relative;height:calc(288 * 100vw / 390);z-index:0}.history-hero-media>img{object-position:75% center}.history-hero-mist{display:none}.history-hero-copy{padding-top:calc(30 * var(--space-unit));margin:0 auto;width:86.666667%}.history-hero h1{font-size:calc(29 * var(--type-unit))}}
@media(max-width:767px){.history-content{background:#fffbf2;padding-inline:6.666667%}.history-layout{grid-template-columns:minmax(0,1fr)}.history-gallery{display:none}.history-timeline{padding-left:20px;padding-right:0}.history-year h2:before{left:-30.75px}.history-event{grid-template-columns:34px minmax(0,1fr);gap:10px;font-size:calc(14.5 * var(--type-unit));line-height:calc(25 * var(--type-unit));margin-top:calc(26 * var(--space-unit))}.history-milestone{white-space:normal;margin-top:8px}.history-eyebrow{font-size:calc(9 * var(--type-unit))}}
.history-timeline:after{content:"";position:absolute;left:-2.5px;top:100%;width:2.5px;height:calc(156px + var(--history-tail-extra,0px));background:#eaeaea}

.history-milestone-arrow{display:inline-block;position:relative;width:16px;height:9px;margin-right:8px;vertical-align:middle;color:#000}.history-milestone-arrow:before{content:"";position:absolute;left:0;right:4px;top:4px;height:1px;background:currentColor}.history-milestone-arrow:after{content:"";position:absolute;right:0;top:0;border-top:4.5px solid transparent;border-bottom:4.5px solid transparent;border-left:4.5px solid currentColor}

.history-year h2,.history-month,.history-event-text,.history-milestone{letter-spacing:.05em}

.history-event:has(>.history-repeated-month){margin-top:calc(28 * var(--space-unit) - 20px)}
@media(max-width:767px){.history-event:has(>.history-repeated-month){margin-top:calc(26 * var(--space-unit) - 20px)}}

.history-event+.history-event:not(:has(>.history-repeated-month)){margin-top:calc(28 * var(--space-unit) + 3px)}
@media(max-width:767px){.history-event+.history-event:not(:has(>.history-repeated-month)){margin-top:calc(26 * var(--space-unit) + 3px)}}

.history-caption-part{white-space:nowrap}

.history-picture-media{display:block;overflow:hidden;border-radius:var(--corner-radius);box-shadow:3px 3px 4px rgba(0,0,0,.25)}.history-picture-media img{box-shadow:none;transition:transform .5s}@media(min-width:768px) and (hover:hover){.history-picture-media:hover img{transform:scale(1.035)}}

.history-picture-media{width:100%;padding:0;border:0;background:transparent;cursor:pointer}.history-picture-media:focus-visible{outline:2px solid #5992db;outline-offset:4px}.history-image-dialog{position:fixed;inset:0;margin:auto;width:max-content;max-width:92vw;max-height:92vh;padding:40px 20px 20px;border:0;border-radius:var(--corner-radius);background:#fff;overflow:auto}.history-image-dialog::backdrop{background:rgba(0,0,0,.7)}.history-image-dialog>img{display:block;width:auto;height:auto;max-width:85vw;max-height:75vh;object-fit:contain;margin:auto}.history-image-dialog>p{text-align:center;margin-top:12px;white-space:pre-line}.history-image-close{position:absolute;top:4px;right:8px;width:32px;height:32px;border:0;background:transparent;font-size:28px;cursor:pointer}

.history-image-dialog{width:min(1000px,92vw);overflow:hidden}.history-image-controls{display:flex;justify-content:center;align-items:center;gap:12px;margin-bottom:12px}.history-image-controls button{min-width:36px;height:34px;padding:0 10px;border:1px solid #ccc;border-radius:6px;background:#fff;cursor:pointer}.history-image-controls button:disabled{opacity:.35;cursor:default}.history-image-controls output{min-width:55px;text-align:center;font-family:var(--font-numerals)}.history-image-viewport{height:min(65vh,720px);width:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;background:#f7f7f7}.history-image-viewport img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;flex-shrink:0;object-fit:contain;transform-origin:center;user-select:none}.history-image-viewport.is-zoomed{cursor:grab}.history-image-viewport.is-dragging{cursor:grabbing}

.history-image-dialog{padding:0;border-radius:0;background:transparent;overflow:visible;width:min(1000px,92vw);max-height:92vh}.history-image-close{position:fixed;top:12px;right:12px;width:40px;height:40px;padding:0;color:#fff;font-size:36px;line-height:1;background:transparent;z-index:2}.history-image-viewport{height:min(75vh,800px);background:transparent}.history-image-viewport img{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover}.history-image-dialog>p{margin:0;padding:16px 20px;background:#fff;color:#171717}

.history-image-dialog{width:max-content}.history-image-viewport{width:auto;height:auto}.history-image-viewport img{width:auto;height:auto;max-width:min(1000px,92vw);max-height:75vh;object-fit:contain}

.history-image-dialog{border-radius:var(--corner-radius)}.history-image-viewport{border-radius:var(--corner-radius) var(--corner-radius) 0 0}.history-image-dialog>p{border-radius:0 0 var(--corner-radius) var(--corner-radius)}

.history-image-dialog{inset:0;width:100vw;height:100vh;max-width:none;max-height:none;margin:0;padding:50px 24px 24px;border:0;border-radius:0;overflow:auto;box-sizing:border-box;background:transparent}.history-image-panel{margin:0 auto;border-radius:var(--corner-radius);overflow:hidden}.history-image-viewport{display:block;width:100%;height:auto;overflow:visible;border-radius:0;background:transparent}.history-image-viewport img{display:block;max-width:none;max-height:none;margin:0;object-fit:contain}.history-image-panel>p{margin:0;padding:16px 20px;text-align:center;white-space:pre-line;background:#fff;color:#171717}.history-image-close{right:24px}

.history-image-dialog[data-kind="photo"] .history-image-viewport img{object-fit:cover}.history-image-dialog[data-kind="logo"] .history-image-viewport{background:#fff}.history-image-dialog[data-kind="logo"] .history-image-viewport img{object-fit:contain;padding:40px;box-sizing:border-box;background:#fff}.history-image-dialog[data-kind="flyer"]{padding-top:0;padding-bottom:0}.history-image-dialog[data-kind="flyer"] .history-image-viewport img{object-fit:contain}

.history-image-viewport{cursor:grab}.history-image-viewport.is-dragging{cursor:grabbing}.history-image-panel{will-change:transform}

.history-page .brand{margin-top:30px}.history-page #main{background:#fff}.history-image-panel>p{white-space:nowrap}

/* Phone history: the same fixed images follow their associated events. */
.history-opening-word{white-space:nowrap;display:inline-block}
@media(min-width:768px){
.history-content{padding-bottom:126px}
.history-timeline:after{height:calc(126px + var(--history-tail-extra,0px))}
}
@media(max-width:1049px){.history-hero-copy{display:none}}
@media(max-width:767px){
.history-content{padding-top:calc(84 * var(--space-unit));padding-left:calc(6.666667% - 1.25px);padding-right:6.666667%;padding-bottom:156px;background:linear-gradient(to right,#fff 0%,#fff 6.666667%,#fffbf2 6.666667%,#fffbf2 100%)}
.history-timeline{padding-left:20px;padding-right:0}
.history-timeline:before{top:calc(-84 * var(--space-unit));height:calc(84 * var(--space-unit))}
.history-year h2:before{width:16px;height:16px;left:-29.25px;top:calc(9 * var(--type-unit) - 2px);transform:none}
.history-year-number{font-size:calc(22 * var(--type-unit))}
.history-year-unit{font-size:calc(15 * var(--type-unit))}
.history-event{grid-template-columns:calc(27 * var(--space-unit)) minmax(0,1fr);gap:calc(8 * var(--space-unit));font-size:calc(14.5 * var(--type-unit));line-height:calc(25 * var(--type-unit))}
.history-event-body{display:block}
.history-event-text,.history-milestone{letter-spacing:.08em}
.history-milestone{margin-left:0;margin-top:calc(24 * var(--space-unit));line-height:calc(25 * var(--type-unit))}
.history-inline-picture{position:relative;left:auto;right:auto;top:auto;transform:none;margin:calc(38 * var(--space-unit)) 0 0;max-width:100%;text-align:left}
.history-inline-picture figcaption{position:static;left:auto;transform:none;width:max-content;max-width:calc(100vw - 13.333334vw - 58px);margin-top:calc(18 * var(--space-unit));font-size:calc(11 * var(--type-unit));font-weight:500;line-height:1.8;text-align:left;letter-spacing:.08em}
.history-inline-picture img{display:block;max-width:100%}
.history-inline-picture .history-caption-part{white-space:normal}
.history-inline-picture .history-picture-media{max-width:100%}
.history-inline-picture.history-logo-picture img{padding:10px}
.history-milestone-rays{transform:scale(.8);transform-origin:left bottom}
}

@media(max-width:767px){.history-school-branch{white-space:nowrap;display:inline-block}.history-inline-picture figcaption{white-space:nowrap;overflow-wrap:normal}.history-event:has(.history-inline-picture)+.history-event{margin-top:45px}.history-year:has(.history-event:last-child .history-inline-picture)+.history-year{margin-top:45px}}

@media(max-width:767px){.history-event:has(>.history-repeated-month){margin-top:calc(26 * var(--space-unit) - 14px)}.history-event:has(.history-inline-picture)+.history-event{margin-top:45px}}

@media(max-width:767px){
.history-milestone{margin-top:calc(24 * var(--space-unit) + 10px)}
.history-event:has(.history-milestone):not(:has(.history-inline-picture))+.history-event{margin-top:calc(26 * var(--space-unit) + 18px)}
.history-event:has(.history-milestone):not(:has(.history-inline-picture))+.history-event:has(>.history-repeated-month){margin-top:calc(26 * var(--space-unit) + 1px)}
.history-year:has(.history-event:last-child .history-milestone):not(:has(.history-event:last-child .history-inline-picture))+.history-year{margin-top:calc(63 * var(--space-unit) + 15px)}
}

/* Keep the viewer within the screen and balance the desktop photo column. */
.history-image-dialog{overflow-x:hidden;overflow-y:auto;padding-left:0;padding-right:0;scrollbar-gutter:stable both-edges}
.history-image-panel{max-width:calc(100% - 32px)}
@media(max-width:767px){
.history-image-close{display:none}
.history-event:has(.history-milestone):not(:has(.history-inline-picture))+.history-event{margin-top:calc(26 * var(--space-unit) + 28px)}
.history-event:has(.history-milestone):not(:has(.history-inline-picture))+.history-event:has(>.history-repeated-month){margin-top:calc(26 * var(--space-unit) + 11px)}
.history-event:has(.history-milestone):has(.history-inline-picture)+.history-event{margin-top:55px}
.history-year:has(.history-event:last-child .history-milestone):not(:has(.history-event:last-child .history-inline-picture))+.history-year{margin-top:calc(63 * var(--space-unit) + 25px)}
.history-year:has(.history-event:last-child .history-milestone):has(.history-event:last-child .history-inline-picture)+.history-year{margin-top:55px}
}

@media(min-width:768px){.history-content{background:linear-gradient(to right,#fff 0%,#fff 36.25%,var(--history-background,#fffbf2) 36.25%,var(--history-background,#fffbf2) 100%)}}
@media(max-width:767px){.history-image-panel{position:relative;left:50%;margin-left:0;margin-right:0;max-width:none}.history-image-dialog{overflow-x:clip}}

/* Animate a solid color beneath the fixed white left gutter. */
.history-content{--history-white-edge:36.25%;background-image:linear-gradient(to right,#fff 0%,#fff var(--history-white-edge),transparent var(--history-white-edge),transparent 100%);background-color:var(--history-background,#fffbf2);transition:background-color .85s ease}
@media(max-width:767px){.history-content{--history-white-edge:6.666667%}}

.history-scroll-progress{display:none}@media(max-width:767px){.history-scroll-progress{display:block;position:fixed;inset:0 0 auto;height:3px;z-index:110;pointer-events:none;background:#e13a491f}.history-scroll-progress>span{display:block;width:100%;height:100%;background:#e13a49;transform:scaleX(0);transform-origin:left center}}

.history-milestone mark{padding-inline:7px;margin-right:6px}@media(min-width:768px){.history-milestone{margin-right:16px}}@media(max-width:767px){.history-scroll-progress{position:absolute;top:100%;bottom:auto}}

@media(max-width:767px){.history-scroll-progress{background:#fff}}

.history-scroll-progress>span{background:linear-gradient(90deg,#e13a49 0%,#e08d21 100%)}@media(max-width:767px){.history-honmachi-current-name{display:inline-block;max-width:100%}.history-honmachi-current-branch{display:inline-block;white-space:nowrap}}

.history-scroll-progress>span{width:0;transform:none;background:linear-gradient(90deg,#e13a49 0%,#b3ebda 100%);background-size:100% 100%;background-repeat:no-repeat}

@media(max-width:767px){.history-scroll-progress>span{background-size:100vw 100%;background-position:left center}}

@media(max-width:767px){.history-scroll-progress>span{background:var(--red)}}

/* Enlarge the count, highlight and rays together without scaling the sentence. */
.history-milestone mark{display:inline-block;zoom:1.3}
@media(max-width:767px){.history-inline-picture figcaption{font-size:calc(13 * var(--type-unit))}}

/* Major milestones: cumulative scale 1.3 × 1.2 × 1.4 × 0.8 × 0.85. */
.history-milestone:is([data-count='50'],[data-count='100'],[data-count='150']) mark{zoom:1.48512}

/* History entrance: backdrop/hero first, then individual dated rows. */
@media(prefers-reduced-motion:no-preference){
 html.history-preparing .history-hero{opacity:0}
 html.history-preparing .history-content{background-color:transparent}
 .history-page.history-motion .history-hero{opacity:0;transition:opacity 1s ease}
 .history-page.history-entered .history-hero{opacity:1}
 .history-page.history-motion .history-content{transition:background-color 1s ease}
 html.history-preparing .history-year>h2,
 html.history-preparing .history-event,
 html.history-preparing .history-gallery>.history-picture,
 .history-page.history-motion .history-year>h2,
 .history-page.history-motion .history-event,
 .history-page.history-motion .history-gallery>.history-picture{opacity:0;transition:opacity .9s ease var(--history-reveal-delay,0s)}
 .history-page.history-motion .history-year>h2.history-row-visible,
 .history-page.history-motion .history-event.history-row-visible,
 .history-page.history-motion .history-gallery>.history-picture.history-row-visible{opacity:1}
}

/* SP major milestones match all other milestone markers and rays. */
@media(max-width:767px){.history-milestone:is([data-count='50'],[data-count='100'],[data-count='150']) mark{zoom:1.3}}

@media(max-width:767px){.history-image-dialog[data-kind='flyer']{padding-top:50px;padding-bottom:24px}}

@media(max-width:767px){
 .history-image-dialog,.history-image-dialog[data-kind='flyer']{height:100dvh;padding:0}
 .history-image-panel{position:absolute;left:50%;top:45%;margin:0}
}

/* Captions use the text column's right gutter, not the photograph's width. */
@media(max-width:767px){
 .history-inline-picture figcaption{max-width:var(--history-caption-max-width,100%);white-space:nowrap;overflow-wrap:normal}
 .history-inline-picture figcaption.history-caption-wrapped{white-space:normal;overflow-wrap:anywhere}
 .history-caption-location-break[hidden],.history-caption-gap[hidden]{display:none}
}
