:root{--plum:var(--theme-primary);--paper:var(--theme-paper);--mauve:var(--theme-mauve);--muted:var(--theme-muted);--line:var(--theme-line);--copper:var(--theme-accent);--gap:clamp(240px,20vw,320px);font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;color:var(--plum);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;font-size:16px;line-height:1.9}a{color:inherit;text-underline-offset:6px}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--copper);outline-offset:5px}img{display:block;width:100%;height:auto}figure{margin:0;min-width:0}figcaption,.image-caption{font-size:12px;letter-spacing:.04em;color:var(--muted)}figcaption{padding-top:12px}h1,h2,h3,p{margin:0}h2{font-size:clamp(32px,4vw,52px);font-weight:600;letter-spacing:.12em;line-height:1.5}h3{font-size:clamp(24px,2.5vw,36px);font-weight:600;line-height:1.6}.small{font-size:.55em;letter-spacing:.04em}.muted{color:var(--muted);font-size:15px}.eyebrow{font-size:12px;letter-spacing:.22em;color:var(--copper);margin-bottom:20px}.container{width:min(1160px,calc(100% - 160px));margin-inline:auto}.section{padding-block:var(--gap)}.section-heading{margin-bottom:100px}.section-heading .muted{margin-top:24px}.header{position:fixed;top:0;left:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:28px;width:100%;padding:26px 64px;background:var(--plum);color:var(--paper)}.brand{font-size:24px;letter-spacing:.1em;font-weight:600;text-decoration:none;white-space:nowrap}.brand span{font-size:14px}.header nav{display:none;position:absolute;top:100%;right:0;width:min(400px,100%);padding:24px 32px 32px;background:var(--plum);color:var(--paper);flex-direction:column;gap:8px}.header nav.open{display:flex}.header nav a{display:block;padding:12px 0;font-size:16px;text-decoration:none}.header nav a:hover{text-decoration:underline}.menu-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;flex:none;width:48px;height:48px;padding:0;border:0;background:transparent;color:inherit}.menu-button span{display:block;width:26px;height:2px;background:currentColor;transition:transform .2s,opacity .2s}.menu-button[aria-expanded="true"] span:nth-child(1){transform:translateY(8px) rotate(45deg)}.menu-button[aria-expanded="true"] span:nth-child(2){opacity:0}.menu-button[aria-expanded="true"] span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}.header :focus-visible{outline-color:var(--paper)}.skip{position:fixed;top:12px;left:12px;z-index:100;transform:translateY(-180%);padding:10px 20px;background:white}.skip:focus{transform:none}.social{position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:30;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-right:0;border-radius:8px 0 0 8px;box-shadow:0 2px 6px var(--theme-shadow)}.social button{display:grid;place-items:center;width:60px;height:60px;padding:0;border:0;background:transparent}.social button+button{height:61px;border-top:1px solid var(--line)}.social button:hover{background:#f5f5f5}.social img{width:20px;height:20px;object-fit:contain}.social [data-social="Facebook"] img{width:28px;height:28px}.social [data-social="Instagram"] img{width:30px;height:30px}.toast{position:fixed;right:68px;top:50%;max-width:260px;z-index:40;padding:12px 18px;background:var(--plum);color:white;font-size:13px;opacity:0;pointer-events:none;transition:opacity .2s}.toast.visible{opacity:1}.hero{position:relative;min-height:100svh;display:grid;align-items:center;overflow:hidden;background:var(--mauve);padding-top:100px}.hero-image{position:absolute;inset:100px 0 0 37%;will-change:transform}.hero-image img{height:100%;object-fit:cover;object-position:70% center}.image-caption{position:absolute;right:80px;bottom:20px;color:var(--plum);background:var(--mauve);padding:3px 10px}.hero-copy{position:relative;z-index:2;width:50%;padding:80px 0 120px max(64px,calc((100vw - 1160px)/2))}.hero h1{font-size:clamp(48px,6.3vw,100px);letter-spacing:.03em;font-weight:400;line-height:1.2;margin-bottom:18px}.hero h1 span{display:block;white-space:nowrap}.hero-name{font-size:clamp(26px,3.2vw,48px);font-weight:600;margin-top:48px}.hero-name span{font-size:.5em}.draft-note{font-size:11px;color:var(--muted);margin-top:30px}.scroll-cue{position:absolute;left:50%;bottom:24px;z-index:3;text-decoration:none;font-size:10px;letter-spacing:.22em;display:flex;align-items:center;flex-direction:column;gap:6px}.scroll-cue span{font-size:22px}.message-content{display:grid;grid-template-columns:1fr 1fr;gap:100px;align-items:center;margin-top:96px}.placeholder-title{font-size:clamp(36px,4vw,64px);line-height:1.7;letter-spacing:.12em}.placeholder-lines{width:100%;display:flex;flex-direction:column;gap:16px;margin-top:28px}.placeholder-lines>span{display:block;height:8px;background:#c9c4c6;width:100%}.placeholder-lines>span:last-child{width:66%}.message{min-height:90svh;display:flex;align-items:center}.policies{padding-top:80px}.policy{min-height:95svh;display:grid;grid-template-columns:.9fr 1.1fr;gap:90px;align-items:center;padding-block:120px}.policy+.policy{margin-top:100px}.policy-reverse .policy-copy{order:2}.policy-reverse figure{order:1}.policy figure img{aspect-ratio:3/2;object-fit:cover}.policy-number{font-size:16px;display:flex;align-items:baseline;gap:15px;margin-bottom:30px}.policy-number span{font-family:Georgia,serif;font-size:90px;line-height:1;font-weight:400;color:#826b79}.policy h3{letter-spacing:.15em}.policy-copy .placeholder-lines{margin-top:44px}.profile{margin-top:var(--gap);background:var(--theme-profile)}.profile-intro{display:grid;grid-template-columns:.8fr 1fr;gap:100px;align-items:center}.profile-portrait{max-width:400px}.profile-portrait img{width:100%;height:auto;object-fit:contain}.profile-name{font-size:40px;font-weight:600;margin-bottom:24px}.profile-block{margin-top:120px;padding-top:48px;border-top:1px solid var(--line)}.profile-block h3{font-size:24px;margin-bottom:36px}.profile-block>.placeholder-lines{max-width:900px}.timeline{list-style:none;padding:0 0 0 20px;margin:0}.timeline li{position:relative;display:grid;grid-template-columns:120px 1fr;gap:36px;align-items:center;border-left:1px solid #b69eab;min-height:80px;padding-left:32px}.timeline li:before{content:"";position:absolute;left:-5px;top:35px;width:9px;height:9px;background:var(--plum);border-radius:50%}.timeline .placeholder-lines{margin:0}.activity{display:grid;grid-template-columns:1fr 1fr;gap:80px}.activity-list{padding-left:20px;margin:0}.activity-list li{padding:16px 0;border-bottom:1px solid var(--line);letter-spacing:.2em}.activity img{aspect-ratio:3/2;object-fit:cover}.contact{padding-top:calc(var(--gap) + 80px);padding-bottom:180px}.form-container{width:min(720px,calc(100% - 160px));margin-inline:auto}.preview-notice{font-size:14px;line-height:1.9;margin-top:32px;border-left:2px solid var(--copper);padding-left:20px}.field{margin-bottom:36px}.field>label{display:block;font-weight:600;margin-bottom:12px}.badge{font-size:11px;letter-spacing:.06em;background:var(--plum);color:#fff;padding:3px 8px;border-radius:2px;margin-left:12px;display:inline-block;vertical-align:middle}.badge.optional{background:#7b7479}.field input,.field textarea{display:block;width:100%;border:1px solid #b9abb3;border-radius:0;background:#fffdfa;color:var(--plum);padding:14px 16px;font-size:16px;min-height:54px}.field textarea{resize:vertical;min-height:200px}.field-help{font-size:13px;color:var(--muted);margin:6px 0 10px}.privacy{margin-top:56px;background:var(--mauve);padding:32px}.privacy h3{font-size:20px;margin-bottom:16px}.privacy p{font-size:14px}.consent{margin-top:28px;display:flex;align-items:flex-start;gap:14px;font-size:14px;cursor:pointer}.consent input{width:22px;height:22px;flex:none;margin:3px 0;accent-color:var(--plum)}.submit{display:flex;justify-content:space-between;align-items:center;width:100%;padding:20px 28px;background:var(--plum);color:white;border:1px solid var(--plum);margin-top:36px;letter-spacing:.1em}.submit:hover{background:var(--theme-hover)}.submit span{font-size:24px}#form-status{margin-top:24px;font-size:14px}#form-status:not(:empty){padding:20px;border:1px solid var(--copper)}.footer{padding:52px 80px;background:var(--plum);color:var(--paper);display:flex;justify-content:space-between;gap:28px;flex-wrap:wrap;font-size:12px}.reveal{opacity:1;transform:none}.motion-ready .reveal{transition:opacity .85s ease,transform 1s cubic-bezier(.2,.65,.3,1)}.motion-ready .reveal.pending{opacity:0;transform:translateY(36px)}
@media(min-width:1600px){.hero-image{left:42%}.hero-image img{object-position:65% center}}
@media(max-width:900px){.header{padding:26px 28px}.brand{font-size:20px}.container{width:calc(100% - 120px)}.hero-copy{padding-left:40px}.policy{gap:40px}.profile-intro{gap:50px}.form-container{width:calc(100% - 140px)}}
@media(max-width:640px){:root{--gap:150px}html{scroll-padding-top:80px}.header{padding:16px 24px;min-height:80px}.brand{font-size:20px}.header nav{left:0;width:100%;padding:16px 24px 24px}.social{top:auto;bottom:calc(24px + env(safe-area-inset-bottom,0px));transform:none;border-radius:6px 0 0 6px}.toast{right:76px;max-width:220px}.container,.form-container{width:auto;margin-left:24px;margin-right:24px}.hero{display:flex;flex-direction:column;align-items:stretch;min-height:0;padding-top:80px}.hero-image{position:relative;inset:auto;height:66svh;min-height:390px;max-height:680px;transform:none!important;will-change:auto}.hero-image img{object-position:70% center}.image-caption{right:12px;bottom:12px;font-size:10px}.hero-copy{width:100%;padding:80px 24px 140px;background:var(--paper)}.hero h1{font-size:clamp(38px,11vw,62px)}.hero .eyebrow{font-size:10px;letter-spacing:.1em}.hero-name{font-size:30px;margin-top:48px}.hero .draft-note{max-width:240px}.scroll-cue{bottom:34px;left:50%}.message{min-height:90svh}.message-content{grid-template-columns:1fr;gap:60px;margin-top:72px}.placeholder-title{font-size:42px}.placeholder-lines{gap:15px}.placeholder-lines>span{height:7px}.section-heading{margin-bottom:80px}h2{font-size:32px;letter-spacing:.08em}.policies{padding-top:60px}.policy{min-height:100svh;display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:48px;padding-block:90px}.policy+.policy{margin-top:80px}.policy figure{order:0}.policy .policy-copy{order:1}.policy-number{margin-bottom:28px}.policy-number span{font-size:76px}.policy h3{font-size:30px}.policy figure img{aspect-ratio:4/3}.policy-copy .placeholder-lines{margin-top:32px}.profile{margin-top:150px}.profile-intro{display:flex;flex-direction:column;align-items:stretch;gap:44px}.profile-portrait{width:100%;max-width:280px}.profile-name{font-size:32px}.profile-block{margin-top:90px;padding-top:36px}.timeline li{grid-template-columns:64px 1fr;gap:14px;padding-left:20px;font-size:14px}.activity{display:flex;flex-direction:column;gap:44px}.contact{padding-top:210px;padding-bottom:130px}.preview-notice{font-size:13px;padding-left:14px}.field{margin-bottom:32px}.field>label{font-size:15px}.badge{margin-left:8px;font-size:10px}.privacy{padding:22px 18px}.privacy h3{font-size:18px}.consent{gap:10px}.consent .badge{margin-left:0}.submit{padding:18px 16px;font-size:15px}.footer{padding:44px 24px;flex-direction:column;gap:20px}.draft-note{font-size:10px}}
@media(prefers-reduced-motion:reduce){.menu-button span{transition:none}html{scroll-behavior:auto}.motion-ready .reveal,.motion-ready .reveal.pending{transition:none;opacity:1;transform:none}.hero-image{transform:none!important}}

.header{transition:padding .2s ease,min-height .2s ease}
.header .brand{transition:font-size .2s ease}
.header .menu-button{transition:height .2s ease}
.header.is-compact{padding-top:4px;padding-bottom:4px;min-height:52px}
.header.is-compact .brand{font-size:20px;line-height:1.4}
.header.is-compact .menu-button{height:44px}
@media(max-width:640px){.header.is-compact{padding-top:0;padding-bottom:0;min-height:44px}}
@media(prefers-reduced-motion:reduce){.header,.header .brand,.header .menu-button{transition:none}}
.hero-tagline{font-size:clamp(20px,2.5vw,36px);font-weight:600;line-height:1.7;letter-spacing:.04em}.hero-image img{object-position:center 25%}.message-lead{font-size:clamp(25px,3vw,44px);line-height:1.7;font-weight:600}.message-text p+p{margin-top:1.5em}.policy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 80px}.policy-card{padding:55px 0;border-top:1px solid var(--line)}.policy-card h3{letter-spacing:.05em}.policy-card>p:last-child{margin-top:24px}.policy-card .policy-number{margin-bottom:18px}.policy-card .policy-number span{font-size:54px}.profile-list{padding-left:1.3em}.profile-list li{padding:8px 0}@media(max-width:640px){.hero-image img{object-position:center 22%}.policy-grid{grid-template-columns:1fr}.policy-card{padding:40px 0}.message-lead{font-size:28px}}
.hero-image img{object-position:center top}@media(max-width:640px){.hero-image img{object-position:center top}}
.policy-intro{max-width:760px;margin-top:24px}.policy-text{margin-top:24px}.policy-text p+p{margin-top:1em}
/* 見出しは明朝体、本文と操作部分は読みやすいゴシック体に。 */
:root{font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif}
h1,h2,h3,.hero-tagline,.hero-name,.message-lead,.profile-name{font-family:"Hiragino Mincho ProN","Yu Mincho","YuMincho","Noto Serif JP",serif;font-weight:600}
.hero h1{font-weight:500;letter-spacing:.08em}.hero-tagline{line-height:1.8}.brand{font-family:"Hiragino Mincho ProN","Yu Mincho","YuMincho","Noto Serif JP",serif;font-weight:600}

/* チラシに合わせて Noto Sans JP の太さで階層を表現する。 */
:root{font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif}
h1,h2,h3,.hero-tagline,.hero-name,.message-lead,.profile-name,.brand{font-family:inherit;font-weight:700}
.hero h1{font-weight:700}
.hero-name{font-size:clamp(32px,3.8vw,56px)}
@media(max-width:640px){.hero-name{font-size:36px}}
.policy-grid{grid-template-columns:1fr}

/* Shippori Mincho と読みやすい文字サイズ */
:root{font-family:"Shippori Mincho","Hiragino Mincho ProN","Yu Mincho",serif}
body{font-size:18px;line-height:2}
h2{font-size:clamp(36px,4.3vw,56px)}
h3{font-size:clamp(27px,2.7vw,39px)}
.header nav a{font-size:18px}.eyebrow{font-size:14px}.muted{font-size:17px}.preview-notice,.privacy p,.consent{font-size:16px}.field-help{font-size:15px}.footer{font-size:14px}
.field input,.field textarea{font-size:18px}
@media(max-width:640px){body{font-size:17px}h2{font-size:36px}.policy h3{font-size:32px}.hero .eyebrow{font-size:12px}.preview-notice{font-size:15px}.field>label{font-size:17px}.field input,.field textarea{font-size:17px}.submit{font-size:17px}}
/* 全画面幅で写真と本文を縦に並べる */
.hero{display:flex;flex-direction:column;align-items:stretch;min-height:0;padding-top:100px}
.hero-image{position:relative;inset:auto;height:min(72svh,800px);min-height:420px;transform:none!important;will-change:auto}
.hero-image img{object-position:center 18%}
.hero-copy{width:100%;padding:80px max(64px,calc((100vw - 1160px)/2)) 140px;background:var(--paper)}
.message-content,.profile-intro{grid-template-columns:1fr}
.message-content{gap:48px}
.profile-intro{gap:48px}
.profile-portrait{max-width:400px;width:100%}
@media(max-width:640px){.hero{padding-top:80px}.hero-image{height:66svh;min-height:390px;max-height:680px}.hero-image img{object-position:center top}.hero-copy{padding:80px 24px 140px}.message-content{gap:48px}.profile-portrait{max-width:280px}}
@media(min-width:641px){
  .hero{display:grid;align-items:center;min-height:100svh;padding-top:100px}
  .hero-image{position:absolute;inset:100px 0 0 37%;height:auto;min-height:0;will-change:transform}
  .hero-image img{object-position:center top}
  .hero-copy{width:50%;padding:80px 0 120px max(64px,calc((100vw - 1160px)/2));background:transparent}
  .profile-intro{grid-template-columns:.8fr 1fr;gap:100px}
}
@media(min-width:641px) and (max-width:900px){.hero-copy{padding-left:40px}.profile-intro{gap:50px}}
@media(min-width:1600px){.hero-image{left:42%}}

/* BIZ UDP明朝 */
:root{font-family:"BIZ UDPMincho","Hiragino Mincho ProN","Yu Mincho",serif}
/* ページ全体の文字サイズ */
body{font-size:20px}
h2{font-size:clamp(39px,4.6vw,60px)}
h3{font-size:clamp(30px,3vw,42px)}
.brand{font-size:27px}.header nav a{font-size:20px}.eyebrow{font-size:16px}
.hero h1{font-size:clamp(54px,6.8vw,108px)}.hero-tagline{font-size:clamp(23px,2.7vw,39px)}.hero-name{font-size:clamp(35px,4vw,60px)}
.policy-number{font-size:18px}.preview-notice,.privacy p,.consent{font-size:18px}.field-help,.footer{font-size:16px}.field input,.field textarea{font-size:20px}.badge{font-size:13px}
@media(max-width:640px){body{font-size:19px}h2{font-size:38px}h3,.policy h3{font-size:32px}.brand{font-size:22px}.hero h1{font-size:clamp(44px,12vw,68px)}.hero-tagline{font-size:23px}.hero-name{font-size:39px}.field>label,.field input,.field textarea,.submit{font-size:19px}.preview-notice{font-size:17px}}

.profile-role{font-weight:700;margin-bottom:1.5em}
/* 画面幅に応じて連続的に変化するヘッダーとたすきのトップ画面 */
:root { --header-height:clamp(80px,calc(60px + 3.125vw),100px); }
html { scroll-padding-top:var(--header-height); }
.header {
  min-height:var(--header-height);
  padding:calc((var(--header-height) - 48px)/2) clamp(24px,5vw,64px);
}
.header .brand { font-size:clamp(22px,calc(17px + .78125vw),27px); line-height:1.4; }
.header.is-compact {
  --compact-height:clamp(44px,calc(36px + 1.25vw),52px);
  min-height:var(--compact-height);
  padding-top:calc((var(--compact-height) - 44px)/2);
  padding-bottom:calc((var(--compact-height) - 44px)/2);
}
.header.is-compact .brand { font-size:20px; }
.hero {
  display:grid;
  padding:var(--header-height) 0 0;
  /* 帯を最初の画面内に保ち、横幅だけでは縦に伸ばさない。 */
  height:var(--hero-height,clamp(560px,100svh,960px));
  min-height:0;
  background:#fff;
  isolation:isolate;
}
.hero-image {
  position:absolute;
  inset:auto 0 0 auto;
  /* 小さい画面では人物を拡大し、幅が広がるにつれて元のサイズへ戻す。 */
  --portrait-growth:clamp(0px,calc(120px - 17vw),52px);
  bottom:0;
  /* 人物の顔の中心を約 2/3 に置き、狭い画面では右端に揃える。 */
  right:max(0px,calc(33.333% - (var(--hero-height,clamp(560px,100svh,960px)) - var(--header-height) - 32px) * .28));
  width:calc(clamp(50%,calc(300px + 40vw),90%) + var(--portrait-growth));
  max-width:100%;
  height:calc(100% - var(--header-height) - clamp(32px,calc(338px - 34vw),100px));
  min-height:0;
  max-height:none;
  transform:none!important;
  will-change:auto;
}
/* 帯と名前を同じ枠に置き、下側の曲線までヒーロー内に収める。 */
.hero-sash {
  position:absolute;
  inset:auto 0 max(32px,env(safe-area-inset-bottom,0px));
  height:clamp(140px,22vw,300px);
  z-index:3;
  pointer-events:none;
  background:url("/assets/tasuki-wave.svg") left top / max(100%,900px) 100% no-repeat;
}
.hero-image { z-index:0; }
.hero-image img { height:100%; object-fit:contain; object-position:right bottom; }
.hero-copy {
  align-self:stretch;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  width:100%;
  padding:clamp(24px,calc(8vw - 27px),100px) 5vw max(80px, 12%);
  background:transparent;
}
.hero h1 { font-size:clamp(58px,8vw,128px); margin-bottom:24px; }
.hero-tagline { font-size:clamp(22px,2.8vw,42px); line-height:1.65; }
.hero-name { position:absolute; top:62%; left:5vw; transform:translateY(-50%); color:white; margin:0; white-space:nowrap; font-size:clamp(32px,4.5vw,64px); line-height:1.3; }
.hero .scroll-cue { display:none; }

#send-notice{margin-top:32px}
.submit:disabled{cursor:not-allowed;background:#665866;margin-top:8px}

/* 意味のまとまりを保ち、サイズと太さでもキーワードを強調する。 */
.hero h1.hero-tagline {
  width:fit-content;
  max-width:100%;
  margin:0;
  font-size:clamp(22px,3.5vw,54px);
  font-weight:400;
  line-height:1.7;
  letter-spacing:.035em;
  color:#3d3541;
}
.hero h1.hero-tagline .tagline-line {
  display:block;
  white-space:nowrap;
  font-size:1.04em;
}
.hero-tagline strong {
  font-size:1.10em;
  font-weight:700;
  color:#D86040;
}

/* 本文をひとまわり小さくする。 */
.message-text,.policy-text { font-size:18px; }
@media(max-width:640px){.message-text,.policy-text { font-size:17px; }}

.profile-intro {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,.8fr);
  align-items:center;
  gap:clamp(16px,5vw,80px);
}
.profile-portrait { width:100%; max-width:220px; justify-self:center; }
.profile-portrait img { max-height:580px; }
@media(max-width:640px){
  .profile-name { font-size:clamp(24px,6vw,32px); }
  .profile-portrait { max-width:145px; }
}

/* 写真を左、キャッチフレーズを右に配置する。 */
    .hero-image {
      left:calc(max(0px,calc(33.333% - (var(--hero-height,clamp(560px,100svh,960px)) - var(--header-height) - 32px) * .39)) - clamp(0px,calc(64px - 8vw),36px));
      right:auto;
    }
    .hero-image img { object-position:left bottom; }
    .hero-copy { align-items:flex-end; }
    .hero-message { max-width:100%; position:relative; isolation:isolate; }
/* 案1の波をキャッチコピーの裏だけに置く。写真や本文には広げない。 */
.hero-message::before {
  content:"";
  position:absolute;
  inset:-70% -60%;
  z-index:-1;
  background:url("/assets/catchphrase-wave.webp") center 35% / 100% auto no-repeat;
  transform:translateY(-30%) scaleY(1.4);
  mask-image:linear-gradient(to right,transparent 20%,black 45%);
  opacity:.9;
  pointer-events:none;
}

.profile { margin-top:0; }

/* Light-colored themes retain dark, readable lettering on their surfaces. */
.header,.header nav,.footer{background:var(--theme-surface,var(--plum));color:var(--theme-on-surface,var(--paper))}
.header :focus-visible{outline-color:var(--theme-on-surface,var(--paper))}
.hero-name{color:var(--theme-on-surface,white)}

.profile-personal{margin:48px 0 0;padding-top:32px;border-top:1px solid var(--line)}
.profile-personal>div+div{margin-top:24px}
.profile-personal dt{font-weight:700;margin-bottom:8px}
.profile-personal dd{margin:0}
.profile-personal ul{margin:0;padding-left:1.4em}

/* 胸元で見切る構図。顔を少し拡大し、頭上には余白を残す。 */
.hero-image {
  bottom:-80px;
  height:calc(100% - var(--header-height) - clamp(32px,calc(338px - 34vw),100px) + 60px);
  clip-path:inset(0 -100vw 30% -100vw);
}
.hero-image img { width:auto; max-width:none; height:100%; }
@media(min-width:641px){.hero-image { clip-path:inset(0 -100vw 25% -100vw); }}

/* 1行目を少し左へずらし、2行目とリズムをつける。 */
.hero-tagline .tagline-line:first-child { transform:translateX(-.6em); }

/* 広い画面では人物も段階的に拡大。頭上の位置とスマホの構図は維持する。 */
@media(min-width:1100px){
  .hero-image {
    --wide-portrait-growth:clamp(0px,calc((100vw - 1100px) * .45),400px);
    height:calc(100% - var(--header-height) - 32px + 60px + var(--wide-portrait-growth));
    bottom:calc(-80px - var(--wide-portrait-growth));
    clip-path:inset(0 -100vw calc(25% + var(--wide-portrait-growth) * .8) -100vw);
  }
}

/* Narrow screens keep the entire face within the viewport. */
@media(max-width:360px){
  .hero { height:calc(var(--header-height) + 260px + 100vw * 1.067); }
  .hero-image { top:calc(var(--header-height) + 140px); bottom:auto; height:calc(100vw * 1.6); clip-path:inset(0 -100vw 30% -100vw); }
}
/* Give the name sash more room below the enlarged desktop portrait. */
@media(min-width:1100px){
  .hero { height:clamp(560px,100svh,clamp(960px,calc(800px + 12.5vw),1040px)); }
}
/* 大画面では名前の帯を初期画面の下端近くへ。 */
@media(min-width:1600px){
  .hero { height:clamp(560px,100svh,1080px); }
  .hero-sash { bottom:calc(env(safe-area-inset-bottom,0px) - 8px); }
}
@media(min-width:1600px){
  .hero-image { clip-path:inset(0 -100vw calc(25% + var(--wide-portrait-growth) * .74) -100vw); }
}

.hero h1.hero-tagline { font-style:italic; font-synthesis:style; }

.hero h1.hero-tagline .tagline-line { font-size:.9em; }

@media(max-width:772px){
  .hero h1.hero-tagline { font-size:clamp(23px,6.15vw,27px); }
}

/* 写真を帯に重ね、画面幅に合わせて文字を連続的に拡大する。 */
@media(max-width:640px){
  .hero-image { translate:0 28px; clip-path:inset(0 -100vw calc(30% - 32px) -100vw); }
}
@media(min-width:441px){
  .hero h1.hero-tagline { font-size:clamp(27px,calc(18.8px + 1.864vw),48px); }
}
.hero-name { font-size:clamp(32px,calc(18px + 3.5vw),72px); }
@media(max-width:360px){
  .hero-image { clip-path:inset(0 -100vw 30% -100vw); }
}

/* 顔の拡大を画面の高さから切り離し、横幅に対して滑らかにする。 */
.hero-image {
  --portrait-size:clamp(512px,calc(352px + 50vw),736px);
  height:var(--portrait-size);
  top:auto;
  translate:none;
  bottom:calc(max(32px,env(safe-area-inset-bottom,0px)) + clamp(140px,22vw,300px) * .55 - var(--portrait-size) * .3);
  clip-path:inset(0 -100vw 30% -100vw);
}
@media(min-width:769px){
  .hero-image { --portrait-size:calc(544px + 25vw); }
}
@media(min-width:1280px){
  .hero-image { --portrait-size:67.5vw; }
}
@media(min-width:1600px){
  .hero-image { bottom:calc(env(safe-area-inset-bottom,0px) - 8px + 165px - var(--portrait-size) * .3); }
}
@media(max-width:1099px){
  .hero { height:min(var(--hero-height,clamp(560px,100svh,960px)),calc(var(--header-height) + 182px + clamp(512px,calc(352px + 50vw),736px) * .7 + clamp(140px,22vw,300px) * .55)); }
}
@media(min-width:1100px){
  .hero-image {
    bottom:calc(max(32px,env(safe-area-inset-bottom,0px)) + clamp(140px,22vw,300px) * .55 - var(--portrait-size) * .45);
    clip-path:inset(0 -100vw 45% -100vw);
  }
}
@media(min-width:1600px){
  .hero-image { bottom:calc(env(safe-area-inset-bottom,0px) - 8px + 165px - var(--portrait-size) * .45); }
}
/* タブレットからPCへの切り取り位置も連続的につなぐ。 */
.hero-image {
  --extra-crop:clamp(0px,calc((100vw - 768px) * .253125),129.6px);
  --sash-bottom:max(32px,env(safe-area-inset-bottom,0px));
  bottom:calc(var(--sash-bottom) + clamp(140px,22vw,300px) * .55 - var(--portrait-size) * .3 - var(--extra-crop));
  clip-path:inset(0 -100vw calc(30% + var(--extra-crop)) -100vw);
}
@media(min-width:1280px){.hero-image { --extra-crop:calc(var(--portrait-size) * .15); }}
@media(min-width:1600px){.hero-image { --sash-bottom:calc(env(safe-area-inset-bottom,0px) - 8px); }}

/* 1280pxを基準に、広いPC画面では文字も同じ比率で拡大する。 */
@media(min-width:1280px){
  .hero h1.hero-tagline { font-size:3.33275vw; }
  .hero-name { font-size:4.90625vw; }
}
/* 高さの低い横画面では、写真を左側に収めてキャッチと分離する。 */
@media(min-width:640px) and (max-width:1099px) and (max-height:500px) and (orientation:landscape){
  .hero-image { --portrait-size:min(58vw,540px); --extra-crop:0px; left:0; }
  .hero h1.hero-tagline { font-size:clamp(24px,3.2vw,32px); }
}

/* 縦長画面では長い2行目を横幅いっぱいに広げる。 */
@media(max-width:1099px) and (orientation:portrait){
  .hero h1.hero-tagline { font-size:calc(7.5vw - 1px); }
}
@media(min-width:441px) and (max-width:1099px) and (orientation:portrait){
  .hero { height:calc(min(var(--hero-height,clamp(560px,100svh,960px)),var(--header-height) + 182px + clamp(512px,calc(352px + 50vw),736px) * .7 + clamp(140px,22vw,300px) * .55) + clamp(0px,calc((100vw - 440px) * .25),165px)); }
}

/* スマホ縦表示はキャッチの下に余白を取り、写真と帯を一緒に下げる。 */
@media(max-width:440px) and (orientation:portrait){
  .hero-copy { padding-top:20px; }
  .hero { height:calc(min(var(--hero-height,clamp(560px,100svh,960px)),var(--header-height) + 182px + clamp(512px,calc(352px + 50vw),736px) * .7 + clamp(140px,22vw,300px) * .55) + 28px); }
}

/* 名前は約2倍を目標に、画面幅と帯の高さの両方で上限を設ける。 */
.hero-sash {
  --name-band-height:clamp(140px,25vw,400px);
  height:var(--name-band-height);
}
.hero-name {
  font-size:min(clamp(64px,calc(36px + 7vw),144px),15vw,calc(var(--name-band-height) * .45));
  line-height:1;
  letter-spacing:0;
  white-space:nowrap;
  top:64%;
  transform:translateY(-50%);
  transform-origin:left center;
}
@media(min-width:1280px){
  .hero-name { font-size:min(9.8125vw,calc(var(--name-band-height) * .45)); }
}
/* Float keeps the biography beside the portrait, then returns to full width. */
.profile-with-photo{display:flow-root}
.approved-profile-photo{float:left;width:clamp(110px,26%,260px);margin:0 clamp(16px,3vw,40px) 16px 0}
.approved-profile-photo img{width:100%;height:auto;object-fit:contain}
.profile-with-photo .message-text{display:block;transform:none}
@media(max-width:700px){.approved-profile-photo{width:41%;max-width:170px;margin-right:18px}}
@media(min-width:701px){.approved-profile-photo{width:clamp(230px,calc(30vw - 60px),480px);max-width:42%}}
/* 写真は胸元まで。回り込みの高さも見えている写真に合わせる。 */
.approved-profile-photo{aspect-ratio:1;overflow:hidden}
.approved-profile-photo img{width:110%;max-width:none;margin-left:-5%}
/* Desktop: portrait pauses below the header while the biography scrolls. */
@media(min-width:901px){
  .profile .container{width:min(1600px,calc(100% - 96px))}
  .profile-with-photo{display:grid;grid-template-columns:clamp(230px,calc(30vw - 60px),480px) minmax(0,1fr);gap:clamp(32px,4vw,72px);align-items:start}
  .approved-profile-photo{position:sticky;top:calc(var(--header-height) + 24px);float:none;width:100%;max-width:none;margin:0}
}
/* Keep a constant text column even below the portrait. */
@media(max-width:900px){
  .profile-with-photo{display:grid;grid-template-columns:min(41%,170px) minmax(0,1fr);gap:18px;align-items:start}
  .approved-profile-photo{float:none;width:100%;max-width:none;margin:0}
}
/* Mobile/tablet: keep the portrait near the left edge and reserve more text width. */
@media(max-width:900px){
  .profile .container{width:calc(100% - 12px);margin-inline:6px}
  .profile .section-heading{padding-inline:18px}
  .profile-with-photo{width:100%;margin-left:0;grid-template-columns:clamp(108px,34vw,170px) minmax(0,1fr);gap:8px}
  .approved-profile-photo{position:sticky;top:calc(clamp(44px,calc(36px + 1.25vw),52px) + 12px)}
  .approved-profile-photo img{margin-left:-24%}
}
/* iPhone-sized layouts gain one body character without moving the right edge. */
@media(min-width:361px) and (max-width:440px){
  .profile-with-photo{grid-template-columns:calc(34vw - 13px) minmax(0,1fr);gap:4px}
  /* Keep the original portrait scale; its transparent right margin can extend beyond the column. */
  .approved-profile-photo{width:34vw}
}
@media(min-width:361px) and (max-width:440px){
  .profile-with-photo .message-text p{text-wrap:pretty}
}
