/* KOYOMI biYORI 010 | UX proposal V0.18 | layout and presentation only */
.ux-top{--ux-navy:#192337;--ux-deep:#111b2d;--ux-gold:#D6B77E;--ux-ink:#1d293d;--ux-ivory:#f7f3e7;--ux-rule:#e5ddcf;background:#fefdfb;color:var(--ux-ink)}
.ux-top *{box-sizing:border-box}
.ux-top .shell{width:min(1180px,calc(100% - 64px));margin-inline:auto}
.ux-top h1,.ux-top h2,.ux-top h3{font-family:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif;letter-spacing:.035em}
.ux-top a:focus-visible,.ux-top button:focus-visible,.ux-top input:focus-visible,.ux-top summary:focus-visible{outline:3px solid #c79542;outline-offset:4px}
.ux-header{position:sticky;top:0;z-index:10;background:#fefdfb;border-bottom:1px solid #ede8de;box-shadow:0 4px 18px rgba(11,20,36,.04)}
.ux-header .header-inner{min-height:78px}
.ux-header .kb-brand .brand-seal{width:44px;height:44px;font-size:22px}
.ux-header .brand-text strong{font-size:21px;letter-spacing:.03em}
.ux-header .brand-text small{font-size:10px;letter-spacing:.045em}
.ux-header .site-nav{gap:26px;font-size:13px}
.ux-header .site-nav a[aria-current="page"]{color:#795824}
.ux-staging{background:#f7f3e7;border-bottom:1px solid #eadbc6;color:#6a5536;font-size:11px;letter-spacing:.04em}
.ux-staging .shell{display:flex;gap:10px;align-items:center;min-height:33px}
.ux-dot{width:7px;height:7px;border-radius:50%;background:#b8955c}
.ux-staging-sub{opacity:.7;margin-left:auto}
.ux-hero{background:radial-gradient(circle at 85% 22%,rgba(65,91,129,.29),transparent 34%),linear-gradient(135deg,#111b2d 0%,#192337 75%,#20304a 100%);color:#fff;overflow:hidden}
.ux-hero-grid{display:grid;grid-template-columns:minmax(0,1.47fr) minmax(310px,.75fr);align-items:stretch;gap:34px;padding-block:70px 72px}
.ux-hero-primary{min-width:0;padding-top:9px}
.ux-eyebrow,.ux-direction-eyebrow,.ux-small-label{font:700 11px/1.5 Georgia,serif;letter-spacing:.19em;color:var(--ux-gold)}
.ux-eyebrow{display:flex;align-items:center;gap:12px;margin:0 0 26px}
.ux-gold-rule{width:36px;height:2px;background:#d6b77e;flex-shrink:0}
.ux-hero h1{margin:0;color:#fff;font-size:clamp(42px,4.55vw,64px);line-height:1.25;letter-spacing:.06em;font-weight:600}
.ux-hero h1 span{white-space:nowrap}
.ux-hero-intro{font-size:15px;color:#d4dfef;margin:19px 0 25px}
.ux-koyomi .koyomi-glance-compact{background:transparent;border:0;border-radius:0;padding:0;box-shadow:none}
.ux-koyomi .koyomi-compact-date{display:flex;gap:8px 15px;align-items:baseline;flex-wrap:wrap;margin-bottom:18px}
.ux-koyomi .koyomi-compact-date time{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;color:#fff;font-size:clamp(24px,2.65vw,35px);letter-spacing:.02em;line-height:1.4}
.ux-koyomi .koyomi-compact-date #koyomi-glance-lunar{font-size:13px;color:#d2dae7}
.ux-koyomi .koyomi-pill-row{display:flex;gap:7px;flex-wrap:wrap;min-height:31px}
.ux-koyomi .koyomi-pill-row>span{background:#273954!important;border:1px solid #596984!important;border-radius:999px!important;color:#fff!important;min-height:28px!important;padding:4px 11px!important;font-size:11px!important;line-height:1.5!important;letter-spacing:.015em;white-space:nowrap}
.ux-koyomi .koyomi-pill-row>span[hidden]{display:none!important}
.ux-koyomi .koyomi-glance-message{font-size:11px;line-height:1.65;color:#adbad0;margin:15px 0 8px;max-width:610px}
.ux-koyomi .ux-hero-link{font-size:13px;color:#efce93;font-weight:750;display:inline-flex;align-items:center;gap:10px;text-decoration:none;border-bottom:1px solid rgba(214,183,126,.8);padding:9px 0;min-height:44px}
.ux-koyomi .ux-hero-link:hover{color:white}
.ux-direction{position:relative;isolation:isolate;min-width:0;background:#f7f3e7;color:#192337;border:1px solid rgba(214,183,126,.68);border-radius:15px;padding:34px 33px 27px;display:flex;flex-direction:column;justify-content:center;box-shadow:0 20px 50px rgba(2,10,24,.18);overflow:hidden}
.ux-direction:before{content:"";position:absolute;inset:-70px -90px auto auto;width:280px;height:280px;border:1px solid rgba(168,134,79,.28);border-radius:50%;z-index:-1;box-shadow:0 0 0 28px rgba(168,134,79,.055),0 0 0 70px rgba(168,134,79,.028)}
.ux-direction-motif{position:absolute;top:20px;right:20px;display:grid;place-items:center;width:82px;height:82px;border:1px solid rgba(168,134,79,.35);border-radius:50%;color:#886d40;font-size:9px;opacity:.65}
.ux-direction-motif:after{content:"";position:absolute;inset:10px;border:1px dashed #a8864f;border-radius:50%}
.ux-direction-motif span{position:absolute}.ux-direction-motif span:first-child{top:3px}.ux-direction-motif span:nth-child(2){right:5px}.ux-direction-motif span:nth-child(3){bottom:3px}.ux-direction-motif span:nth-child(4){left:5px}.ux-direction-motif b{font-size:26px;font-family:serif;font-weight:400}
.ux-direction-eyebrow{color:#866334;margin:0 0 18px;font-size:10px;max-width:180px}
.ux-direction h2{color:#192337;font-size:clamp(32px,3.4vw,45px);line-height:1.38;margin:0 0 17px;letter-spacing:.045em}
.ux-direction>p:not(.ux-direction-eyebrow):not(.ux-direction-foot){font-size:14px;color:#4f5c68;line-height:1.85;margin:0 0 27px;max-width:290px}
.ux-direction-button{background:#192337;color:#fff!important;text-decoration:none;border-radius:6px;min-height:54px;padding:13px 17px;font-weight:700;display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:14px;transition:background .16s,transform .16s}
.ux-direction-button:hover{background:#344963;transform:translateY(-2px)}
.ux-direction-foot{font-size:10px!important;line-height:1.7!important;color:#697180!important;margin:15px 0 0!important}
.ux-profile-section{background:#f7f3e7;border-bottom:1px solid #e8dfd1}
.ux-profile-panel{padding-block:29px;display:grid;grid-template-columns:54px minmax(0,1fr) minmax(235px,.63fr);gap:24px;align-items:center}
.ux-profile-icon{width:52px;height:52px;border:1px solid #c5a46f;border-radius:50%;display:grid;place-items:center;color:#866334;font:500 23px/1 serif}
.ux-profile-copy h2{margin:3px 0 8px;font-size:clamp(20px,2.4vw,26px);color:#192337}
.ux-profile-copy .ux-small-label{margin:0;color:#795824;font-size:10px}
.ux-profile-selected{color:#35445a;font-size:13px;font-weight:600;margin:0 0 7px}
.ux-profile-privacy{font-size:11px;color:#657081;line-height:1.65;margin:8px 0 0}
.ux-profile-privacy strong{color:#34425a}
.ux-profile-panel .portal-profile-list{gap:7px}
.ux-profile-panel .portal-profile-chip{background:#fff;border:1px solid #d6c3a4;border-radius:6px;min-height:34px;padding:5px 12px;font-size:12px;color:#192337}
.ux-profile-panel .portal-profile-chip[disabled]{background:#192337;color:#fff}
.ux-profile-actions{display:flex;flex-direction:column;gap:7px;align-items:stretch}
.ux-btn-outline{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 15px;min-height:48px;background:#fff;border:1px solid #b79a6e;border-radius:6px;color:#192337;text-decoration:none;font-weight:700;font-size:12px}
.ux-btn-outline:hover{border-color:#192337;box-shadow:0 5px 14px rgba(25,35,55,.08)}
.ux-text-action{font-size:12px;min-height:40px;display:flex;align-items:center;justify-content:center;color:#795824;text-decoration:none;border-bottom:1px solid transparent}
.ux-text-action:hover{text-decoration:underline}
.ux-birth-section{background:#fff;padding:64px 0 64px}
.ux-birth-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:55px;align-items:center}
.ux-birth-section .ux-small-label,.ux-catalog .ux-small-label,.ux-about .ux-small-label{color:#795824;margin:0 0 13px}
.ux-birth-section h2{font-size:clamp(28px,3.2vw,40px);line-height:1.52;color:#192337;margin:0}
.ux-birth-section h2 span{color:#8c6b3f}
.ux-birth-body>p{font-size:14px;color:#536074;line-height:1.95;margin:0 0 20px}
.ux-birth-links{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.ux-birth-links a{min-height:46px;display:inline-flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;font-weight:750;text-decoration:none;padding:10px 14px;border-radius:6px}
.ux-birth-links a:first-child{color:#fff;background:#192337}
.ux-birth-links a:last-child{color:#795824;border:1px solid #d5c0a0}
.ux-birth-steps{margin-top:14px;font-size:12px;color:#536074}
.ux-birth-steps summary{cursor:pointer;min-height:42px;display:flex;align-items:center;gap:8px;color:#795824;font-weight:700}
.ux-birth-steps ol{padding:0 0 0 19px;line-height:1.95;margin:2px 0 0}
.ux-catalog{background:#faf9f6;padding:68px 0 86px}
.ux-section-header{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:26px}
.ux-section-header h2{font-size:clamp(29px,3.5vw,43px);line-height:1.45;color:#192337;margin:0}
.ux-section-header h2 span{color:#8b6a3d}
.ux-section-header>p{font-size:13px;color:#697385;line-height:1.9;margin:0 0 6px}
.ux-controls{border-radius:9px;background:#fff;box-shadow:0 4px 20px rgba(25,35,55,.035);border-color:#e5dcd0;padding:19px 22px}
.ux-controls .search-field{border-radius:6px;background:#faf9f6;max-width:none}
.ux-controls .filters{margin-top:14px;gap:7px}
.ux-controls .filter{border-radius:999px;min-height:42px;padding:8px 17px;font-size:12px}
.ux-catalog .result-summary{margin:17px 0;color:#6e7785;font-size:12px}
.ux-catalog .app-grid{gap:14px;grid-template-columns:repeat(3,minmax(0,1fr))}
.ux-catalog .app-card{background:#fff;border:1px solid #e4dace;border-radius:9px;min-height:216px;padding:23px 24px;box-shadow:0 2px 3px rgba(25,35,55,.015)}
.ux-catalog .app-card h3{color:#192337;font-size:21px;min-height:0;margin:6px 0 12px}
.ux-catalog .app-card .card-group{color:#866539;font-size:11px}
.ux-catalog .app-card .card-desc{font-size:12px;line-height:1.8;color:#5d6877}
.ux-catalog .app-card .card-foot{margin-top:auto}
.ux-catalog .app-card .card-open{color:#795824;font-size:12px}
.ux-catalog .app-card .card-status{font-size:10px}
.ux-catalog a.app-card:hover{box-shadow:0 12px 30px rgba(25,35,55,.11);transform:translateY(-3px)}
.ux-catalog .app-card:not(.is-link){background:#faf9f7;border-style:dashed;opacity:.79}
.ux-about{background:#efe8da;padding:54px 0}
.ux-about-inner{display:grid;grid-template-columns:.9fr 1.1fr;gap:65px}
.ux-about h2{color:#192337;font-size:clamp(27px,3vw,36px);line-height:1.5;margin:0}
.ux-about-inner>div:last-child p{color:#536074;font-size:13px;line-height:2;margin:0 0 16px}
.ux-about-inner a{color:#795824;font-size:13px;min-height:44px;display:inline-flex;align-items:center;gap:8px;font-weight:750;text-decoration:none;border-bottom:1px solid #b69c70}
.ux-footer{padding:33px 0}
.ux-footer .footer-brand{font-size:19px}
.ux-footer nav a{font-size:12px}
@media(max-width:1000px){.ux-hero-grid{grid-template-columns:minmax(0,1.3fr) minmax(280px,.8fr);gap:20px}.ux-direction{padding:29px 25px}.ux-hero h1{font-size:clamp(42px,5vw,58px)}.ux-profile-panel{grid-template-columns:46px 1fr;gap:14px}.ux-profile-icon{width:46px;height:46px}.ux-profile-actions{grid-column:2;display:flex;flex-direction:row;flex-wrap:wrap}.ux-btn-outline{flex:1}.ux-text-action{flex:1}}
@media(max-width:740px){.ux-top .shell{width:min(100% - 36px,600px)}.ux-header .header-inner{min-height:70px}.ux-staging-sub{font-size:10px}.ux-hero-grid{grid-template-columns:1fr;padding-block:42px 47px;gap:27px}.ux-hero-primary{padding-top:0}.ux-eyebrow{font-size:9px;letter-spacing:.12em;margin-bottom:20px}.ux-hero h1{font-size:clamp(37px,8.5vw,54px)}.ux-hero-intro{margin:12px 0 15px}.ux-koyomi .koyomi-compact-date time{font-size:clamp(22px,5.6vw,29px)}.ux-direction{min-height:0;padding:27px 25px}.ux-direction h2{font-size:30px;margin-bottom:9px}.ux-direction h2 br{display:none}.ux-direction>p:not(.ux-direction-eyebrow):not(.ux-direction-foot){margin-bottom:16px;max-width:none}.ux-direction-motif{width:65px;height:65px}.ux-profile-panel{grid-template-columns:42px minmax(0,1fr);gap:10px;padding-block:26px}.ux-profile-icon{width:42px;height:42px;font-size:18px;align-self:start}.ux-profile-actions{grid-column:1/-1;display:flex;flex-direction:column;gap:5px}.ux-profile-copy h2{font-size:23px}.ux-profile-privacy{font-size:11px}.ux-birth-section{padding:44px 0}.ux-birth-grid{grid-template-columns:1fr;gap:17px}.ux-birth-section h2{font-size:30px}.ux-catalog{padding:49px 0}.ux-section-header{display:block}.ux-section-header>p{margin:12px 0}.ux-catalog .app-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ux-about-inner{grid-template-columns:1fr;gap:16px}.ux-about{padding:40px 0}}
@media(max-width:540px){.ux-hero h1{font-size:38px;letter-spacing:.04em}.ux-hero h1 span{white-space:normal}.ux-hero-intro{font-size:13px}.ux-koyomi .koyomi-compact-date{gap:4px;flex-direction:column}.ux-koyomi .koyomi-compact-date time{font-size:23px}.ux-koyomi .koyomi-pill-row{gap:6px}.ux-koyomi .koyomi-pill-row>span{font-size:10px!important;padding:3px 9px!important;min-height:26px!important}.ux-direction{padding:24px 20px}.ux-direction h2{font-size:28px}.ux-profile-panel{gap:11px}.ux-birth-links{flex-direction:column;align-items:stretch}.ux-birth-links a{width:100%}.ux-controls{padding:14px}.ux-controls .filters{flex-wrap:nowrap;overflow-x:auto;padding:0 2px 9px;scrollbar-width:thin}.ux-controls .filter{white-space:nowrap;flex-shrink:0;min-height:44px}.ux-catalog .app-grid{grid-template-columns:1fr}.ux-catalog .app-card{min-height:187px}.ux-section-header h2{font-size:29px}.ux-staging .shell{gap:6px}.ux-staging-sub{display:none}}
@media(prefers-reduced-motion:reduce){.ux-direction-button,.ux-catalog .app-card{transition:none!important}}
@media print{.ux-header,.ux-staging,.ux-direction,.ux-profile-section,.ux-birth-section,.ux-controls,.ux-footer{display:none!important}.ux-hero{background:white!important;color:#192337!important}.ux-hero h1,.ux-koyomi .koyomi-compact-date time{color:#192337!important}.ux-catalog .app-grid{grid-template-columns:repeat(2,1fr)}.ux-hero-grid{display:block;padding:20px 0}}
/* Final QA overrides: remove nested navy card and keep the mobile header/titles legible. */
.ux-top .ux-hero .ux-koyomi .koyomi-glance-compact{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important}
.ux-top .ux-hero .ux-koyomi .koyomi-compact-date{margin-bottom:17px!important}
@media(max-width:740px){.ux-header .nav-toggle{flex-shrink:0;white-space:nowrap;min-width:106px;min-height:44px;display:flex;gap:7px;justify-content:center;align-items:center;padding:8px 11px}.ux-header .nav-toggle span{white-space:nowrap;flex-shrink:0}.ux-header .nav-toggle-label{font-size:13px}}
@media(max-width:540px){.ux-hero h1{font-size:clamp(36px,9vw,43px);line-height:1.35}.ux-hero h1 span{display:block;white-space:nowrap}}
.ux-top .ux-hero .ux-koyomi .koyomi-glance-message{color:#ced8e9!important;font-size:12px!important;line-height:1.72!important}
