/* top のデザイン（保存したホームページから移したもの） */
body{margin:0;background:#FAF8F4}
a{color:#3E5A4F}a:hover{color:#2C4239}
.mn{font-family:"Shippori Mincho","Yu Mincho","Hiragino Mincho ProN",serif;font-weight:500}
.en{font-family:"Shippori Mincho","Yu Mincho","Hiragino Mincho ProN",serif;font-weight:500}
.ph{background-color:#E4ECE7;background-image:url(../img/washi-fiber.svg),url(../img/washi-kumo.svg);background-size:480px 480px,600px 600px;border:1px solid #DAD5CB;outline:1px solid rgba(62,90,79,.28);outline-offset:-12px;box-shadow:0 1px 0 #FFFFFF,0 2px 6px rgba(43,43,40,.08);color:#5E5D58;display:flex;align-items:center;justify-content:center;text-align:center;font-size:14px;line-height:1.7;padding:24px;box-sizing:border-box}
.paper{background-color:#FAF8F4;background-image:url(../img/washi-fiber.svg),url(../img/washi-kumo.svg);background-size:480px 480px,600px 600px}
.paper2{position:relative;background-color:#F5F2EC;background-image:url(../img/washi-fiber.svg);background-size:480px 480px;background-position:120px 60px}
.paper2 [style*="color: #5E5D58"]{color:#45443F !important}
.paper2 .en[style*="font-size: 96px"]{color:#8CA597 !important}
.paper2::before,.paper2::after{content:"";position:absolute;left:0;right:0;height:18px;background-repeat:repeat-x;background-size:480px 18px;pointer-events:none;z-index:1}
.paper2::before{top:-17px;background-image:url(../img/deckle-top.svg)}
.paper2::after{bottom:-17px;background-image:url(../img/deckle-bottom.svg)}
.cloth{background-color:#3E5A4F;background-image:url(../img/cloth-fiber.svg),repeating-linear-gradient(0deg,rgba(255,255,255,.02) 0 1px,transparent 1px 3px);background-size:480px 480px,auto}
.cloth.wave{background-image:url(../img/seigaiha.svg);background-size:80px 40px;opacity:1}
.cloth-dark{background-color:#2C4239;background-image:url(../img/cloth-fiber.svg),repeating-linear-gradient(0deg,rgba(255,255,255,.03) 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,rgba(0,0,0,.07) 0 1px,transparent 1px 3px);background-size:480px 480px,auto,auto}
.seal{writing-mode:vertical-rl;align-self:flex-end;padding:10px 6px;background:#A4532B;color:#FAF8F4;font-size:14px;letter-spacing:.2em;border-radius:3px;box-shadow:inset 0 0 0 2px #A4532B,inset 0 0 0 3px rgba(250,248,244,.55)}
.frame{position:absolute;inset:24px;border:1px solid rgba(201,214,206,.45);outline:1px solid rgba(201,214,206,.25);outline-offset:-6px;pointer-events:none}
.ribbon{position:absolute;top:-112px;left:200px;width:26px;height:218px;z-index:2;background-color:#3E5A4F;background-image:repeating-linear-gradient(90deg,rgba(255,255,255,.06) 0 1px,transparent 1px 3px),url(../img/cloth-fiber.svg);clip-path:polygon(0 0,100% 0,100% 100%,50% 86%,0 100%);box-shadow:inset 3px 0 0 rgba(255,255,255,.08)}
.plate{margin:0;position:relative;border:1px solid #DAD5CB;box-shadow:0 1px 0 #FFFFFF,0 2px 6px rgba(43,43,40,.08);box-sizing:border-box}
.plate img{display:block;object-fit:cover;object-position:center;filter:sepia(.14) saturate(1.06) brightness(1.03)}
.leader{flex:1 1 auto;border-bottom:1px dotted #A9BFB3;transform:translateY(-6px);min-width:24px}
table{border-collapse:collapse;width:100%}
th,td{text-align:left;vertical-align:top;border-bottom:1px solid #DAD5CB}
/* ===== motion：仕様書8章。ゆっくり減速して止まる動きのみ ===== */
:root{--ease-out:cubic-bezier(0.22,1,0.36,1);--ease-in-out:cubic-bezier(0.65,0,0.35,1);--ease-soft:cubic-bezier(0.25,0.1,0.25,1)}
@keyframes fadeUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes fadeUpBlur{from{opacity:0;transform:translateY(12px);filter:blur(4px)}to{opacity:1;transform:none;filter:blur(0)}}
@keyframes fadeDown{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
@keyframes maskRight{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes maskUp{from{clip-path:inset(100% 0 0 0);transform:translateY(24px)}to{clip-path:inset(0 0 0 0);transform:none}}
@keyframes drawLine{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes waveReveal{from{clip-path:inset(-24px 100% -24px 0)}to{clip-path:inset(-24px 0 -24px 0)}}
@keyframes ribbonDrop{from{clip-path:polygon(0 0,100% 0,100% 0,50% 0,0 0)}to{clip-path:polygon(0 0,100% 0,100% 100%,50% 86%,0 100%)}}
@keyframes lineGrow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes cue{0%{transform:translateY(-100%)}60%,100%{transform:translateY(260%)}}

/* ヒーロー：読み込み時に上から順に */
.hero-head{animation:fadeDown 900ms var(--ease-out) 200ms both}
#top>*{animation:fadeUpBlur 1100ms var(--ease-out) both}
#top>*:nth-child(1){animation-delay:500ms}
#top>*:nth-child(2){animation-delay:700ms}
#top>h1{animation:maskRight 1400ms var(--ease-in-out) 1050ms both}
#top>*:nth-child(4){animation-delay:1600ms}
#top>*:nth-child(5){animation-delay:1800ms}
@keyframes waveA{0%{transform:translate(0,0) scaleY(1)}50%{transform:translate(-12px,-8px) scaleY(1.18)}100%{transform:translate(10px,5px) scaleY(.86)}}
@keyframes waveB{0%{transform:translate(0,0) scaleY(1)}50%{transform:translate(14px,7px) scaleY(.84)}100%{transform:translate(-8px,-6px) scaleY(1.14)}}
.hero-wave{transform-box:fill-box;transform-origin:50% 50%;will-change:transform;animation:waveReveal 2600ms var(--ease-in-out) 400ms both,waveA 18s var(--ease-in-out) 3000ms infinite alternate}
.hero-wave+.hero-wave{animation:waveReveal 3000ms var(--ease-in-out) 700ms both,waveB 23s var(--ease-in-out) 3700ms infinite alternate}
/* 波と文字が重なったら文字優先：生成り色のにじみで文字の周りだけ線を隠す */
#top h1,#top p{text-shadow:0 0 4px #FAF8F4,0 0 10px #FAF8F4,0 0 16px #FAF8F4,0 0 24px #FAF8F4}
.scroll-cue{position:absolute;left:50%;bottom:24px;width:1px;height:56px;margin-left:-.5px;background:#DAD5CB;overflow:hidden;animation:fadeUp 800ms var(--ease-out) 2400ms both}
.scroll-cue::after{content:"";position:absolute;left:0;top:0;width:1px;height:40%;background:#3E5A4F;animation:cue 2400ms var(--ease-in-out) 2600ms infinite}

/* ホバー：色・下線・矢印4pxのみ（画像は動かさない） */
header nav a:not(.tomari-cta){background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;padding-bottom:4px;transition:background-size 500ms var(--ease-out),color 300ms var(--ease-soft)}
a.tomari-cta{transition:filter 300ms var(--ease-soft),transform 100ms var(--ease-soft)}
a.tomari-cta svg{transition:transform 400ms var(--ease-out)}
@media (hover:hover){
header nav a:not(.tomari-cta):hover{background-size:100% 1px;color:#3E5A4F}
a.tomari-cta:hover{filter:brightness(.88)}
a.tomari-cta:hover svg{transform:translateX(4px)}
}
a.tomari-cta:active{transform:scale(.98)}
@keyframes wmFloat{0%{transform:translate(-50%,-50%) rotate(-1.5deg)}100%{transform:translate(-50%,-52%) rotate(1.5deg)}}
.msg-watermark{animation:wmFloat 16s var(--ease-in-out) infinite alternate}
.btn-green{transition:background-color 300ms var(--ease-soft)}
.btn-green svg{transition:transform 400ms var(--ease-out)}
@container page (max-width:374px){.btn-green{gap:8px !important;padding:0 16px !important;letter-spacing:0.02em !important;white-space:nowrap}}@supports not (container-type:inline-size){@media (max-width:374px){.btn-green{gap:8px !important;padding:0 16px !important;letter-spacing:0.02em !important;white-space:nowrap}}}
@media (hover:hover){.btn-green:hover{background-color:#2C4239 !important;color:#FFFFFF !important}.btn-green:hover svg{transform:translateX(4px)}}

/* 追従目次（右側に固定・ファーストビュー以降に表示・現在地を強調） */
.toc-fixed{transition:opacity 600ms var(--ease-out),transform 600ms var(--ease-out),visibility 0s linear 600ms}
.toc-fixed.is-shown{transition:opacity 600ms var(--ease-out),transform 600ms var(--ease-out),visibility 0s}
.toc-fixed a{transition:color 300ms var(--ease-soft),border-color 400ms var(--ease-out),background-color 300ms var(--ease-soft)}
@media (hover:hover){.toc-fixed a:hover{color:#3E5A4F;background-color:rgba(228,236,231,.5)}}
@media (max-width:1023px){.toc-fixed{display:none}}
/* 追従目次のぶん本文を左に寄せ、右に目次の通り道を確保（1024px以上） */
@container page (min-width:1024px){
section[id]:not(#top):not(#message):not(#contact){padding-right:268px !important;padding-left:56px !important}
section[id]:not(#top)>div[style*="max-width: 1120px"]{max-width:1040px !important}
section[id]:not(#top)>div[style*="max-width: 1120px"]{column-gap:72px !important}
section[id] div[style*="flex: 0 1 280px"]{flex-basis:240px !important}
section[id] .ribbon{left:176px}
}@supports not (container-type:inline-size){@media (min-width:1024px){
section[id]:not(#top):not(#message):not(#contact){padding-right:268px !important;padding-left:56px !important}
section[id]:not(#top)>div[style*="max-width: 1120px"]{max-width:1040px !important}
section[id]:not(#top)>div[style*="max-width: 1120px"]{column-gap:72px !important}
section[id] div[style*="flex: 0 1 280px"]{flex-basis:240px !important}
section[id] .ribbon{left:176px}
}}
@container page (min-width:1024px) and (max-width:1279px){
section[id]:not(#top):not(#message):not(#contact){padding-left:40px !important}
section[id]:not(#top)>div[style*="max-width: 1120px"]{column-gap:48px !important}
section[id] div[style*="flex: 0 1 280px"]{flex-basis:200px !important}
section[id] .en[style*="font-size: 96px"]{font-size:72px !important}
section[id] .ribbon{left:140px}
}@supports not (container-type:inline-size){@media (min-width:1024px) and (max-width:1279px){
section[id]:not(#top):not(#message):not(#contact){padding-left:40px !important}
section[id]:not(#top)>div[style*="max-width: 1120px"]{column-gap:48px !important}
section[id] div[style*="flex: 0 1 280px"]{flex-basis:200px !important}
section[id] .en[style*="font-size: 96px"]{font-size:72px !important}
section[id] .ribbon{left:140px}
}}
/* ===== スマートフォン・タブレット（仕様書5.1・7.3） ===== */
.sp-actions{display:none}
.drawer{position:fixed;inset:0;z-index:60;display:flex;flex-direction:column;padding:16px 20px 32px;box-sizing:border-box;overflow-y:auto;background-color:#FAF8F4;background-image:url(../img/washi-fiber.svg);background-size:480px 480px;clip-path:circle(0 at calc(100% - 42px) 38px);visibility:hidden;transition:clip-path 600ms cubic-bezier(.65,0,.35,1),visibility 0s linear 600ms}
.drawer.is-open{clip-path:circle(150% at calc(100% - 42px) 38px);visibility:visible;transition:clip-path 600ms cubic-bezier(.65,0,.35,1),visibility 0s}
.drawer li{opacity:0;transform:translateY(12px);transition:opacity 400ms cubic-bezier(.22,1,.36,1),transform 400ms cubic-bezier(.22,1,.36,1)}
.drawer.is-open li{opacity:1;transform:none}
.drawer.is-open li:nth-child(1){transition-delay:200ms}.drawer.is-open li:nth-child(2){transition-delay:260ms}.drawer.is-open li:nth-child(3){transition-delay:320ms}.drawer.is-open li:nth-child(4){transition-delay:380ms}.drawer.is-open li:nth-child(5){transition-delay:440ms}.drawer.is-open li:nth-child(6){transition-delay:500ms}.drawer.is-open li:nth-child(7){transition-delay:560ms}.drawer.is-open li:nth-child(8){transition-delay:620ms}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid #DAD5CB;border-radius:999px;background:rgba(250,248,244,.9);color:#3E5A4F;cursor:pointer}
.icon-btn:focus-visible,.drawer a:focus-visible{outline:2px solid #3E5A4F;outline-offset:3px}
@container page (max-width:1023px){
header nav[aria-label="グローバルナビ"]{display:none !important}
.sp-actions{display:flex;align-items:center;gap:10px}
}@supports not (container-type:inline-size){@media (max-width:1023px){
header nav[aria-label="グローバルナビ"]{display:none !important}
.sp-actions{display:flex;align-items:center;gap:10px}
}}
@container page (max-width:767px){
.paper{font-size:16px !important}
header{padding:14px 16px !important}
header a img{height:36px !important}
header .tl span:last-child{font-size:19px !important}
/* ファーストビュー */
#top{padding:8px 20px 88px !important}
#top>img{width:150px !important}
#top .tl span:first-child{font-size:12px !important}
#top .tl span:last-child{font-size:40px !important;margin-top:10px !important}
#top h1{font-size:24px !important;letter-spacing:.08em !important;line-height:1.7 !important;margin:36px 0 14px !important;padding:0 !important}
#top p{font-size:15px !important;padding:0 !important;line-height:1.9 !important}
#top a.tomari-cta{width:100%;justify-content:center;box-sizing:border-box}
#top>div{width:100%;padding:0 !important}
/* メッセージ */
#message{padding:72px 20px !important;min-height:auto !important}
#message>div{padding:0 !important}
#message h2{font-size:23px !important}
#message p{font-size:15px !important;line-height:2 !important;text-align:left}
#message p br{display:none}
#message a{width:100%;justify-content:center;box-sizing:border-box}
.msg-watermark{width:90% !important}
/* 章 */
section[id]:not(#top):not(#message):not(#contact){padding:88px 20px !important}
section[id]>div[style*="max-width: 1120px"]{gap:28px !important}
section[id] div[style*="flex: 0 1 280px"]{flex:1 1 100% !important}
section[id] .en[style*="font-size: 96px"]{font-size:60px !important}
section[id] h2{font-size:24px !important}
section[id] .ribbon{top:-88px;left:auto;right:4px;height:160px;width:22px}
section[id] h3{font-size:19px !important}
[style*="white-space: nowrap"]:not(h2){white-space:normal !important}
section[id] [style*="font-size: 17px"],section[id] [style*="font-size: 18px"]{font-size:16px !important}
section[id] [style*="grid-template-columns: repeat(2"]{grid-template-columns:1fr !important;gap:28px !important}
section[id] figure.sm img{height:150px !important}
section[id] th{width:34% !important;padding-right:12px !important;font-size:14px !important}
section[id] td,section[id] th{padding-top:14px !important;padding-bottom:14px !important}
section[id] dt{flex-basis:100% !important}
section[id] dd span[style*="font-size: 32px"]{font-size:26px !important}
section[id] .ph{font-size:13px;padding:16px}
/* CTA・フッター */
#contact{padding:88px 20px !important}
#contact .frame{inset:12px !important}
#contact h2{font-size:24px !important}
#contact .tel-num{font-size:32px !important}
#contact a.tomari-cta{width:100%;min-width:0 !important}
footer{padding:56px 20px 28px !important}
footer img{height:52px !important}
footer ul{gap:6px 18px !important}
}@supports not (container-type:inline-size){@media (max-width:767px){
.paper{font-size:16px !important}
header{padding:14px 16px !important}
header a img{height:36px !important}
header .tl span:last-child{font-size:19px !important}
/* ファーストビュー */
#top{padding:8px 20px 88px !important}
#top>img{width:150px !important}
#top .tl span:first-child{font-size:12px !important}
#top .tl span:last-child{font-size:40px !important;margin-top:10px !important}
#top h1{font-size:24px !important;letter-spacing:.08em !important;line-height:1.7 !important;margin:36px 0 14px !important;padding:0 !important}
#top p{font-size:15px !important;padding:0 !important;line-height:1.9 !important}
#top a.tomari-cta{width:100%;justify-content:center;box-sizing:border-box}
#top>div{width:100%;padding:0 !important}
/* メッセージ */
#message{padding:72px 20px !important;min-height:auto !important}
#message>div{padding:0 !important}
#message h2{font-size:23px !important}
#message p{font-size:15px !important;line-height:2 !important;text-align:left}
#message p br{display:none}
#message a{width:100%;justify-content:center;box-sizing:border-box}
.msg-watermark{width:90% !important}
/* 章 */
section[id]:not(#top):not(#message):not(#contact){padding:88px 20px !important}
section[id]>div[style*="max-width: 1120px"]{gap:28px !important}
section[id] div[style*="flex: 0 1 280px"]{flex:1 1 100% !important}
section[id] .en[style*="font-size: 96px"]{font-size:60px !important}
section[id] h2{font-size:24px !important}
section[id] .ribbon{top:-88px;left:auto;right:4px;height:160px;width:22px}
section[id] h3{font-size:19px !important}
[style*="white-space: nowrap"]:not(h2){white-space:normal !important}
section[id] [style*="font-size: 17px"],section[id] [style*="font-size: 18px"]{font-size:16px !important}
section[id] [style*="grid-template-columns: repeat(2"]{grid-template-columns:1fr !important;gap:28px !important}
section[id] figure.sm img{height:150px !important}
section[id] th{width:34% !important;padding-right:12px !important;font-size:14px !important}
section[id] td,section[id] th{padding-top:14px !important;padding-bottom:14px !important}
section[id] dt{flex-basis:100% !important}
section[id] dd span[style*="font-size: 32px"]{font-size:26px !important}
section[id] .ph{font-size:13px;padding:16px}
/* CTA・フッター */
#contact{padding:88px 20px !important}
#contact .frame{inset:12px !important}
#contact h2{font-size:24px !important}
#contact .tel-num{font-size:32px !important}
#contact a.tomari-cta{width:100%;min-width:0 !important}
footer{padding:56px 20px 28px !important}
footer img{height:52px !important}
footer ul{gap:6px 18px !important}
}}
@media (prefers-reduced-motion:reduce){.drawer,.drawer li{transition:none !important}}
/* スクロール表示：対応ブラウザのみ（非対応は最初から静止表示） */
@supports (animation-timeline:view()){
section[id]:not(#top) h2,
section[id] .en[style*="font-size: 96px"],
section[id] .en[style*="letter-spacing: 0.2em"],
section[id]>div>div>p,
section[id] li,section[id] tr,section[id] dl>div,
section[id] h3{animation:fadeUp linear both;animation-timeline:view();animation-range:entry 0% entry 100%}
section[id]:not(#top) h2{animation-name:maskUp;animation-range:entry 0% entry 100%}
.ribbon{animation:ribbonDrop linear both;animation-timeline:view();animation-range:entry 0% entry 100%}
}

@media (prefers-reduced-motion:reduce){
*,*::before,*::after{animation:none !important;transition-duration:1ms !important}
.hero-wave{clip-path:none}
.scroll-cue::after{display:none}
}
@media print{*,*::before,*::after{animation:none !important}}
/* ===== v1.4 スマートフォンの固定ボタン（電話・見学）：ファーストビューを過ぎてから画面下に表示、見学CTA・フッターでは隠す ===== */
.sp-bar{position:fixed;left:0;right:0;bottom:0;z-index:50;display:flex;gap:6px;padding:10px 10px calc(10px + env(safe-area-inset-bottom));box-sizing:border-box;background:rgba(250,248,244,.96);border-top:1px solid #DAD5CB;box-shadow:0 -4px 16px rgba(43,43,40,.06);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);transform:translateY(110%);visibility:hidden;transition:transform 400ms cubic-bezier(.22,1,.36,1),visibility 0s linear 400ms}
.sp-bar.is-shown{transform:none;visibility:visible;transition:transform 400ms cubic-bezier(.22,1,.36,1),visibility 0s}
.sp-bar a,.sp-bar button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;height:52px;padding:0 8px;border-radius:999px;font:inherit;font-size:15px;font-weight:600;letter-spacing:.02em;line-height:1;white-space:nowrap;text-decoration:none;box-sizing:border-box;cursor:pointer}
.sp-bar-menu{flex:2 1 0;border:1px solid #3E5A4F;color:#3E5A4F;background:#FAF8F4}
.sp-bar-cta{flex:3 1 0;border:0;background:#A4532B;color:#FFFFFF}
.sp-bar a:focus-visible,.sp-bar button:focus-visible{outline:2px solid #3E5A4F;outline-offset:3px}
@media (prefers-reduced-motion:reduce){.sp-bar,.sp-bar.is-shown{transition:none}}
/* ===== v1.9 画面下のボタン：幅の狭いスマートフォンでも文字を枠の中に収める ===== */
.sp-bar svg{flex:none}
.sp-bar-label{min-width:0;white-space:normal;line-height:1.2;text-align:center;word-break:keep-all;overflow-wrap:anywhere}
@media (max-width:374px){.sp-bar a,.sp-bar button{gap:4px;padding:0 6px;font-size:14px;letter-spacing:0}.sp-bar-cta svg{display:none}}
@media (max-width:339px){.sp-bar-menu svg{display:none}}
/* ===== v1.9 ファーストビューの高さ：ブラウザのバーを除いた見えている範囲（svh。対応しないブラウザは100vh） ===== */
@supports (min-height:100svh){#hero{min-height:min(100svh,1080px) !important}}
/* ===== v1.4 アクセシビリティ：本文へ移動リンク・キーボード操作時の強調表示（11.1） ===== */
.skip-link{position:fixed;left:16px;top:16px;z-index:100;padding:12px 22px;border-radius:999px;background:#3E5A4F;color:#FFFFFF;font-size:15px;letter-spacing:.08em;text-decoration:none;transform:translateY(-200%);transition:transform 200ms ease-out}
.skip-link:focus{transform:none;outline:2px solid #3E5A4F;outline-offset:3px}
.page a:focus-visible,.page button:focus-visible,.page summary:focus-visible,nav a:focus-visible{outline:2px solid #3E5A4F;outline-offset:3px;border-radius:2px}
#contact a:focus-visible,#contact button:focus-visible,footer a:focus-visible{outline-color:#FAF8F4}
[tabindex="-1"]:focus{outline:none}
@media (prefers-reduced-motion:reduce){.skip-link{transition:none}}
/* ===== v1.4 PC読みやすさ（全幅共通：本文の太さ・補足文の色・小さい文字） ===== */
.page p,.page li,.page td,.page dd,.page label{font-weight:500}
.page [style*="color: #5E5D58"]{color:#45443F !important}
.page [style*="font-size: 12px"],.page [style*="font-size: 13px"]{font-size:14px !important}
/* ===== v1.4 スマートフォン改善（読みやすさ・改行・小さい文字） ===== */
.page{container-type:inline-size;container-name:page}
h1,h2,h3,p,li,dd,td,th,legend,label{word-break:auto-phrase}
.sp-br{display:none}
@container page (max-width:767px){
.sp-br{display:inline}
.page p,.page li,.page td,.page dd,.page th,.page label{font-weight:500}
.page p,.page li,.page td,.page dd{line-height:1.95}
#message p{font-size:16px !important;color:#2B2B28}
.page [style*="font-size: 12px"],.page [style*="font-size: 13px"]{font-size:14px !important}
.page [style*="color: #5E5D58"]{color:#45443F !important}
#top>img{width:128px !important}
#top .tl span:last-child{font-size:36px !important}
#top h1{margin-top:28px !important}
section[id] .ribbon{right:14px !important}
}@supports not (container-type:inline-size){@media (max-width:767px){
.sp-br{display:inline}
.page p,.page li,.page td,.page dd,.page th,.page label{font-weight:500}
.page p,.page li,.page td,.page dd{line-height:1.95}
#message p{font-size:16px !important;color:#2B2B28}
.page [style*="font-size: 12px"],.page [style*="font-size: 13px"]{font-size:14px !important}
.page [style*="color: #5E5D58"]{color:#45443F !important}
#top>img{width:128px !important}
#top .tl span:last-child{font-size:36px !important}
#top h1{margin-top:28px !important}
section[id] .ribbon{right:14px !important}
}}
/* ===== v1.5 改行位置の指定：<wbr>を入れた要素は、その位置でだけ改行する（iPhoneのSafariでも言葉の途中で切れない） ===== */
.page :has(> wbr){word-break:keep-all;overflow-wrap:break-word}
.page p,.page li,.page dd,.page td,.page th,.page label,.page figcaption{text-wrap-style:pretty}
.page h1,.page h2,.page h3{text-wrap-style:balance}
/* ===== v1.5 とまりの特徴：パンフレットの「3つのポイント」と同じ形（緑の丸数字＋アイコン付きの見出し＋説明）、横幅いっぱいの3段 ===== */
.feat{list-style:none;margin:0;padding:0;border-bottom:1px solid #DAD5CB}
.feat li{display:flex;align-items:flex-start;gap:24px;padding:28px 0;border-top:1px solid #DAD5CB}
.feat li>div{flex:1 1 auto;min-width:0}
.feat h3{display:flex;align-items:flex-start;gap:10px;margin:0 0 8px;font-size:21px;font-weight:600;line-height:1.6}
.feat h3 svg{flex:none;margin-top:6px}
.feat p{margin:0}
/* ===== v1.5 入居までの流れ：緑の丸数字を線でつなぐ・PCは2列（1〜4／5〜7） ===== */
.flow{flex:1 1 520px;min-width:0;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,auto);grid-auto-flow:column;column-gap:48px}
.flow li{position:relative;display:flex;align-items:flex-start;gap:20px;padding:0 0 32px}
.flow li::before{content:"";position:absolute;left:21px;top:44px;bottom:0;width:2px;background:#C9D6CE}
.flow li:nth-child(4),.flow li:last-child{padding-bottom:0}
.flow li:nth-child(4)::before,.flow li:last-child::before{content:none}
.flow-no{flex:none;position:relative;z-index:1;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:#3E5A4F;color:#FAF8F4;font-size:18px;line-height:1;font-feature-settings:'tnum' 1}
.flow-t{display:block;margin-top:4px;font-size:21px;font-weight:600;line-height:1.6}
.flow-d{display:block;margin-top:2px;font-size:15px;line-height:1.8;color:#45443F}
/* ===== v1.5 お部屋の写真：ラベル（パンフレットと同じ）・色味を和紙になじむ暖かさに ===== */
.plate figcaption{position:absolute;left:12px;bottom:12px;padding:2px 12px;background:rgba(250,248,244,.94);color:#2B2B28;font-size:14px;line-height:1.8;letter-spacing:.08em;border-radius:2px;pointer-events:none}
@container page (max-width:767px){
.feat li{gap:16px;padding:24px 0}
.feat h3 svg{margin-top:4px}
.flow{grid-template-columns:1fr;grid-template-rows:none;grid-auto-flow:row}
.flow li{gap:16px;padding-bottom:28px}
.flow li:nth-child(4){padding-bottom:28px}
.flow li:nth-child(4)::before{content:""}
.flow li::before{left:19px;top:40px}
.flow-no{width:40px;height:40px;font-size:17px}
.flow-t{margin-top:2px}
.plate figcaption{left:8px;bottom:8px;padding:1px 10px}
}@supports not (container-type:inline-size){@media (max-width:767px){
.feat li{gap:16px;padding:24px 0}
.feat h3 svg{margin-top:4px}
.flow{grid-template-columns:1fr;grid-template-rows:none;grid-auto-flow:row}
.flow li{gap:16px;padding-bottom:28px}
.flow li:nth-child(4){padding-bottom:28px}
.flow li:nth-child(4)::before{content:""}
.flow li::before{left:19px;top:40px}
.flow-no{width:40px;height:40px;font-size:17px}
.flow-t{margin-top:2px}
.plate figcaption{left:8px;bottom:8px;padding:1px 10px}
}}
/* ===== v1.7 スマートフォン：支援の「日中・夜間」は2列のまま ===== */
@container page (max-width:767px){
#support div[style*="flex: 1 1 200px"]{flex:1 1 0 !important;min-width:0;padding:20px 12px 20px 0 !important}
}@supports not (container-type:inline-size){@media (max-width:767px){
#support div[style*="flex: 1 1 200px"]{flex:1 1 0 !important;min-width:0;padding:20px 12px 20px 0 !important}
}}
/* ===== v1.7 スマートフォン：章の見出しを小さくまとめる（数字と英字を横一列・数字40px）・章の上下余白72px ===== */
@container page (max-width:767px){
section[id]:not(#top):not(#message):not(#contact){padding:72px 20px !important}
section[id] div[style*="flex: 0 1 280px"],section[id] div[style*="flex: 0 1 240px"]{display:grid !important;grid-template-columns:auto minmax(0,1fr);align-items:baseline;column-gap:14px}
section[id] div.en[style*="font-size: 96px"],section[id] div[style*="font-size: 96px"]{font-size:40px !important;line-height:1 !important}
section[id] div[style*="flex: 0 1 280px"]>div[style*="letter-spacing: 0.2em"],section[id] div[style*="flex: 0 1 240px"]>div[style*="letter-spacing: 0.2em"]{margin-top:0 !important}
section[id] div[style*="flex: 0 1 280px"]>h2,section[id] div[style*="flex: 0 1 240px"]>h2,section[id] div[style*="flex: 0 1 280px"]>p,section[id] div[style*="flex: 0 1 240px"]>p{grid-column:1 / -1}
section[id] .ribbon{top:-72px !important;height:120px !important}
}@supports not (container-type:inline-size){@media (max-width:767px){
section[id]:not(#top):not(#message):not(#contact){padding:72px 20px !important}
section[id] div[style*="flex: 0 1 280px"],section[id] div[style*="flex: 0 1 240px"]{display:grid !important;grid-template-columns:auto minmax(0,1fr);align-items:baseline;column-gap:14px}
section[id] div.en[style*="font-size: 96px"],section[id] div[style*="font-size: 96px"]{font-size:40px !important;line-height:1 !important}
section[id] div[style*="flex: 0 1 280px"]>div[style*="letter-spacing: 0.2em"],section[id] div[style*="flex: 0 1 240px"]>div[style*="letter-spacing: 0.2em"]{margin-top:0 !important}
section[id] div[style*="flex: 0 1 280px"]>h2,section[id] div[style*="flex: 0 1 240px"]>h2,section[id] div[style*="flex: 0 1 280px"]>p,section[id] div[style*="flex: 0 1 240px"]>p{grid-column:1 / -1}
section[id] .ribbon{top:-72px !important;height:120px !important}
}}
