/* Shared header, footer, typography units and page spacing follow styles.css. */
.message-hero{position:relative;height:min(360px,25vw);overflow:hidden;isolation:isolate;background:#f5f8f6}
.message-hero-media,.message-hero-media>img{position:absolute;inset:0;width:100%;height:100%}
.message-hero-media{z-index:-2}.message-hero-media>img{object-fit:cover;object-position:center 58%}
.message-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%)}
.message-hero-copy{position:relative;padding-top:calc(114 * var(--space-unit));margin-left:14.027778%;color:#171717}
.message-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:#6cb6a3}
.message-eyebrow:after{content:"";width:92px;height:1px;background:currentColor}
.message-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))}
.message-content{position:relative;padding-top:var(--key-visual-content-gap);padding-bottom:calc(54 * var(--space-unit))}
.message-content h2{position:relative;z-index:1;border-left:3px solid #73cdbb;padding-left:calc(14 * var(--space-unit));font-family:"Zen Old Mincho",serif;font-size:calc(27 * var(--type-unit));font-weight:500;line-height:1.55;letter-spacing:.02em}
.message-content:before{content:"";position:absolute;right:3%;top:calc(72 * var(--space-unit));width:76px;height:100px;background:radial-gradient(circle,#9bdfd4 1px,transparent 1.3px) 0 0/12px 12px;opacity:.45;pointer-events:none}
.message-layout{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,3fr);gap:calc(36 * var(--space-unit));margin-top:calc(38 * var(--space-unit));align-items:stretch}
.president-prose{font-size:calc(16 * var(--type-unit));line-height:1.85;font-weight:400;letter-spacing:.01em}
.president-prose p+p{margin-top:calc(26 * var(--space-unit))}
.president-aside{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-width:0;padding-top:calc(40 * var(--space-unit));padding-bottom:calc(18 * var(--space-unit));isolation:isolate}
.president-city{width:100%;overflow:hidden;margin-bottom:calc(30 * var(--space-unit))}
.president-city img{width:118%;max-width:none;margin-left:-18%;height:auto}
.president-signature{position:relative;z-index:1;text-align:right;font-family:"Zen Old Mincho",serif;font-size:calc(18 * var(--type-unit));line-height:1.65;padding-right:calc(14 * var(--space-unit))}
.president-name{font-family:"Yuji Syuku","Yu Mincho",serif;font-size:calc(43 * var(--type-unit));line-height:1.5;white-space:nowrap;letter-spacing:.04em;margin-top:calc(16 * var(--space-unit))}
.president-leaves{position:absolute;z-index:-1;bottom:0;right:calc(-20 * var(--space-unit));width:60%;height:auto;opacity:.85}
@media(min-width:768px) and (max-width:1100px){.message-layout{grid-template-columns:minmax(0,7fr) minmax(0,3fr);gap:calc(28 * var(--space-unit))}.message-content h2{font-size:calc(23 * var(--type-unit))}.president-name{font-size:calc(32 * var(--type-unit))}.president-signature{font-size:calc(16 * var(--type-unit))}}
/* Temporary narrow-screen fallback; the detailed smartphone design is separate. */
@media(max-width:1049px){.message-hero{height:auto;overflow:visible;background:#fff}.message-hero-media{position:relative;height:calc(288 * 100vw / 390);max-height:460px;z-index:0}.message-hero-media>img{object-position:72% center}.message-hero-mist{display:none}.message-hero-copy{padding:calc(30 * var(--space-unit)) 0 0;margin:0 auto;width:86.666667%}.message-hero h1{font-size:calc(29 * var(--type-unit))}}
@media(max-width:767px){.message-layout{grid-template-columns:1fr}.message-content h2{font-size:calc(22 * var(--type-unit))}.president-aside{width:min(280px,80%);justify-self:end;padding-top:0}.president-prose{font-size:calc(14.5 * var(--type-unit));line-height:calc(25 * var(--type-unit))}.message-content:before{display:none}}
/* Recreated complete artwork: show every edge without cropping. */
.president-city img{width:100%;margin-left:0}
.president-leaves{width:70%}

.president-aside{justify-content:flex-start}.president-signature{margin-top:auto}

/* Enlarge the complete city artwork while keeping its left edge clear of the body text. */
@media(min-width:768px){.president-aside{padding-top:0}.president-city{width:130%;max-width:none;align-self:flex-start;margin-top:calc(-122 * var(--space-unit));margin-left:calc(-12 * var(--space-unit))}}



/* Anchor the decoration above the company and title, clear of the text. */
.president-signature .president-leaves{top:auto;bottom:calc(100% - 70 * var(--space-unit));right:calc(-20 * var(--space-unit));width:70%;pointer-events:none}

.president-signature>p{position:relative;z-index:1}

.president-signature>p:first-of-type{font-weight:500}

/* The centered section includes the city artwork's full horizontal extent. */
@media(min-width:768px){
.message-content{--message-extra-offset:calc(15.24 * var(--space-unit));width:calc(68.881944% - var(--message-extra-offset));margin-inline:auto;transform:none}
.message-content h2,.message-layout{width:calc((100% + var(--message-extra-offset)) / 1.09)}
.president-city{width:130%;max-width:none;margin-left:calc(-12 * var(--space-unit))}
.president-prose:before{content:none}
}
@media(min-width:768px) and (max-width:1100px){.message-content{--message-extra-offset:calc(14.52 * var(--space-unit))}}
@media(min-width:768px) and (max-width:1000px){.message-content{width:calc(93.74% - var(--message-extra-offset))}}
/* Align the decoration with the city artwork without moving the signature. */
@media(min-width:768px){.president-signature .president-leaves{right:calc(-30% + 12 * var(--space-unit))}}

.message-heading-sp{display:none}
@media(max-width:1049px){.message-hero-media{max-height:none}}
/* Smartphone layout at the 390px design reference. */
@media(max-width:767px){
.message-hero-copy{color:#17314a;padding-top:calc(26 * var(--space-unit))}
.message-eyebrow{font-size:calc(9 * var(--type-unit));line-height:calc(14 * var(--type-unit));letter-spacing:.2em;gap:calc(8 * var(--space-unit))}
.message-eyebrow:after{width:72px;height:1px}
.message-hero h1{font-size:calc(29 * var(--type-unit));line-height:1.5;margin-top:calc(10 * var(--space-unit))}
.message-content{width:86.666667%;max-width:none;padding-top:calc(34 * var(--space-unit));padding-bottom:calc(54 * var(--space-unit));transform:none}
.message-content h2{width:100%;font-family:var(--font-ja);font-size:calc(18 * var(--type-unit));font-weight:600;line-height:1.6;padding-left:calc(12 * var(--space-unit));border-left-width:3px;letter-spacing:0}
.message-heading-pc{display:none}.message-heading-sp{display:inline}
.message-layout{display:grid;width:100%;grid-template-columns:minmax(0,1fr);row-gap:0;margin-top:calc(22 * var(--space-unit))}
.president-aside{display:contents;width:auto;padding:0}
.president-city{grid-column:1;grid-row:1;justify-self:end;align-self:start;width:81.360947%;max-width:none;margin:0 0 calc(38 * var(--space-unit));overflow:visible}
.president-city img{width:100%;max-width:100%;height:auto;margin:0}
.president-prose{position:relative;isolation:isolate;grid-column:1;grid-row:2;font-size:calc(14.5 * var(--type-unit));line-height:calc(25 * var(--type-unit));letter-spacing:0}
.president-prose p+p{margin-top:calc(44 * var(--space-unit))}
.president-prose:after{content:"";position:absolute;z-index:-1;top:26%;right:0;width:90px;aspect-ratio:3/4;background:url("assets/message/leaves-recreated-optimized.webp") center/contain no-repeat;opacity:.6;transform:none;pointer-events:none}
.president-signature{grid-column:1;grid-row:3;position:relative;width:100%;margin-top:calc(56 * var(--space-unit));padding:0;text-align:right;font-size:calc(15 * var(--type-unit));line-height:1.6;isolation:isolate}
.president-name{font-size:calc(31 * var(--type-unit));margin-top:calc(12 * var(--space-unit));line-height:1.6}
.president-signature .president-leaves{width:30%;max-width:110px;right:auto;left:0;top:calc(-22 * var(--space-unit));bottom:auto;transform:scaleX(-1) rotate(8deg);opacity:.85}
}

@media(max-width:767px){.message-layout{margin-top:calc(4 * var(--space-unit))}.president-city{width:89.497042%}}

@media(max-width:767px){.president-city{position:relative;top:-25px;z-index:0}.message-content h2{z-index:2}}

@media(max-width:767px){
.president-wishes,.president-wishes>span{display:block}
.president-prose:after{content:none}
.president-learning{position:relative;isolation:isolate}
.president-learning:after{content:"";position:absolute;z-index:-1;top:calc(-20 * var(--space-unit));right:0;width:30%;aspect-ratio:3/4;background:url("assets/message/leaves-recreated-optimized.webp") center/contain no-repeat;opacity:.85;pointer-events:none}
}
@media(max-width:767px){.president-signature .president-leaves{content:url("assets/message/signature-leaves-sp.png");width:42%;max-width:145px;left:calc(-24 * var(--space-unit));top:calc(-30 * var(--space-unit));transform:none;opacity:.85}}

/* Decorations reach the viewport edges independently of the text gutters. */
@media(max-width:767px){
.message-content{clip-path:inset(-100px -6.666667vw -100px -6.666667vw)}
.president-learning:after{right:calc(-6.666667vw - 36 * var(--space-unit));width:clamp(120px,38.461538vw,180px);top:calc(-75 * var(--space-unit))}
.president-signature .president-leaves{left:calc(-6.666667vw - 20 * var(--space-unit));width:clamp(140px,43.589744vw,200px);max-width:none;top:calc(-45 * var(--space-unit))}
}
/* Align the signature bottom with the final paragraph; move the whole right column together. */
@media(min-width:768px){.president-aside{transform:translateY(calc(18 * var(--space-unit)))}}

@media(max-width:767px){.message-page #main{overflow-x:clip}}

/* Keep the message readable above overlapping photo and decorative artwork. */
.message-content .president-prose{position:relative;z-index:2}
.message-content .president-city{position:relative;z-index:0}
@media(max-width:767px){.message-content h2{font-family:"Zen Old Mincho",serif}}
/* Match the page-title gutter throughout the split-hero layout. */
@media(max-width:1049px){
 .message-page .message-hero-copy,
 .message-page .message-content{width:86.666667%;max-width:none;margin-inline:auto;transform:none}
 .message-page .message-content h2,
 .message-page .message-layout{width:100%;margin-left:0;margin-right:0}
 .message-page .president-prose{margin-left:0;padding-left:0;left:0}
}
/* President's message: hero and the complete content enter together. */
@media(prefers-reduced-motion:no-preference){
 html.message-preparing .message-hero{opacity:0}
 html.message-preparing .message-content{opacity:0;translate:0 40px}
 .message-page.message-motion .message-hero{opacity:0;transition:opacity 1s ease}
 .message-page.message-motion .message-content{opacity:0;translate:0 40px;transition:opacity .9s ease,translate 1s cubic-bezier(.22,.61,.36,1)}
 .message-page.message-entered .message-hero{opacity:1}
 .message-page.message-entered .message-content{opacity:1;translate:0 0}
}
@media(max-width:767px) and (prefers-reduced-motion:no-preference){.message-page.message-motion .message-hero,.message-page.message-motion .message-content{transition-duration:.65s}}

/* Original scanned signature, sized like the former name lettering. */
.president-name{height:1.5em}
.president-name .president-signature-image{position:absolute;right:0;top:50%;transform:translateY(-50%);display:block;width:4.46em;max-width:100%;height:auto;border-radius:0}
/* Shared stacking context: leaves, city, then all lettering. */
.message-content .president-signature{z-index:auto;isolation:auto}
.message-content .president-signature .president-leaves{z-index:0}
.message-content .president-city{z-index:1}
.message-content .president-signature>p{z-index:3}
@media(max-width:767px){.president-name{height:1.6em}}