/* TOP. Responsive layout on the shared tokens in chrome.css.
   Breakpoints: ≥1024 desktop, 768–1023 tablet, <768 phone. Figma 2:2 is the visual reference, not a pixel grid. */
body[data-page="home"] #app{color:var(--navy)}
body[data-page="home"] #app :is(h1,h2,h3,h4,p,ul){margin:0}
body[data-page="home"] #app ul{list-style:none;padding:0}
body[data-page="home"] a:focus-visible,body[data-page="home"] button:focus-visible{outline:2px solid var(--terracotta);outline-offset:3px}

.hm-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 26px;background:var(--navy);color:white;border-radius:999px;font:700 15px/1 "Noto Sans JP",sans-serif;white-space:nowrap}

.hm-link{display:inline-block;font:700 var(--fs-sm)/1.8 "Noto Sans JP",sans-serif;text-decoration:underline;text-underline-offset:4px}
.hm-link span{margin-left:6px}
/* サービス欄のリンクは2本（一覧 / 徳島県の方へ）を縦に並べる。 */
.hm-services-links{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.hm-eyebrow{font:700 var(--fs-xs)/1.6 "Noto Sans JP",sans-serif;letter-spacing:.08em;color:var(--navy)}
.hm-hero-copy>p,.hm-topics-copy>p,.hm-product-copy>p:not(.hm-eyebrow),.hm-services-intro>p:not(.hm-eyebrow),.hm-cases-intro>p:not(.hm-eyebrow),.hm-founder-copy>p:not(.hm-eyebrow){font:400 var(--fs-body)/1.95 "Noto Serif JP",serif;color:var(--ink)}
.hm-hero-copy>p{font-size:var(--fs-lead)}
/* 短い説明文は、語の途中（「授業づく／り」「未／来」）ではなく文節の切れ目で折り返す。対応していないブラウザでは今までどおり。 */
.hm-service-bottom p,.hm-founder-copy>p,.hm-product-copy>p,.hm-topics-copy>p,.hm-services-intro>p,.hm-cases-intro>p,.hm-case-card p,.hm-case-card h4{word-break:auto-phrase;overflow-wrap:anywhere}
.hm-round{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;border-radius:50%;background:var(--navy);color:white;font:700 15px/1 sans-serif}

/* Hero: photo bleeds to the right edge; copy aligns with the header. */
.hm-hero{position:relative;display:flex;align-items:center;min-height:clamp(460px,calc(100svh - 72px),780px);overflow:hidden;background:white}
.hm-hero-media{position:absolute;inset:0 0 0 38%}
/* 写真は右端に寄せて切り出す。人物は写真の右半分にいて、62% では右端の女の子が切れていた。 */
.hm-hero-media img{width:100%;height:100%;object-fit:cover;object-position:100% 70%}
.hm-hero:after{content:"";position:absolute;inset:0 auto 0 38%;width:22%;background:linear-gradient(90deg,#fff,rgba(255,255,255,0))}
.hm-hero-inner{position:relative;z-index:1;padding-block:var(--section-y)}
.hm-hero-copy{max-width:720px;display:flex;flex-direction:column;align-items:flex-start;gap:clamp(18px,2vw,28px)}
.hm-hero h1{font-size:var(--fs-hero);line-height:1.38;letter-spacing:.03em}

.hm-topics{background:var(--band);padding-block:var(--section-y)}
.hm-topics-inner{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(32px,5vw,80px);align-items:center}
.hm-topics-photo{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-radius:4px}
.hm-topics-copy{display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.hm-meta{display:flex;justify-content:space-between;width:100%;font:700 var(--fs-xs)/1.6 "Noto Sans JP",sans-serif;letter-spacing:.08em}
.hm-meta time{font-weight:400}
.hm-topics h2{font-size:var(--fs-h2s);line-height:1.55}

.hm-product{padding-block:var(--section-y)}
.hm-product-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) minmax(0,.7fr);gap:clamp(24px,3vw,48px);align-items:center}
.hm-product-copy{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.hm-product h2{font:900 clamp(44px,1.6rem + 3.2vw,80px)/1.1 "Noto Sans JP",sans-serif;color:#000}
.hm-product h3{font:700 clamp(19px,.9rem + 1vw,28px)/1.4 "Noto Sans JP",sans-serif;color:#000}
.hm-product-copy .hm-button{margin-top:8px}
.hm-product-photo{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-radius:4px}
.hm-product-illustration{width:100%;height:auto;aspect-ratio:1;object-fit:contain}

.hm-services{background:var(--band);padding-block:var(--section-y)}
.hm-services-inner{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(0,3fr);gap:clamp(28px,4vw,64px);align-items:center}
.hm-services-intro{display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.hm-services h2{font-size:var(--fs-h2s);line-height:1.55;text-wrap:balance}
.hm-service-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,1.4vw,20px)}
.hm-service-grid li{display:flex}
.hm-service-card{display:flex;flex-direction:column;gap:14px;width:100%;padding:12px 12px 16px;background:white;border:1px solid var(--border);border-radius:6px;transition:box-shadow .2s,transform .2s}

.hm-service-photo{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:3px}
.hm-service-heading{display:flex;gap:10px;align-items:flex-start;padding-inline:4px}
.hm-service-heading img{width:26px;height:26px;flex-shrink:0}
.hm-service-heading h3{font:700 clamp(14px,.75rem + .35vw,17px)/1.5 "Noto Sans JP",sans-serif}
.hm-service-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin-top:auto;padding-inline:4px}
.hm-service-bottom p{font:400 var(--fs-sm)/1.75 "Noto Sans JP",sans-serif;color:var(--ink);text-wrap:pretty;min-width:0;overflow-wrap:anywhere}
/* ↑ 文節で折り返す指定（auto-phrase）だと、「アップデートします。」のような長い文節は途中で切れない。
   スマホの2列カードではそれが枠より広くなり、隣の丸い矢印をカードの外へ押し出していた。
   入りきらないときだけ文節の途中でも折り返せるようにし、横並びの中で縮めるようにする。 */

/* Region: two full-bleed halves. The left copy lines up with the container edge. */
.hm-region{--region-y:clamp(32px,3vw,48px);display:grid;grid-template-columns:1fr 1fr;min-height:clamp(300px,22vw,480px)}
.hm-place{position:relative;display:flex;align-items:center;color:white;overflow:hidden}
.hm-place>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hm-place:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,20,33,.78),rgba(0,20,33,.55) 50%,rgba(0,20,33,.1))}
.hm-place-copy{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start;gap:18px;padding:var(--region-y) clamp(24px,4vw,56px) var(--region-y) var(--edge)}
.hm-place h2{font-size:var(--fs-h2);line-height:1.5;color:white}
.hm-place p{font:400 var(--fs-body)/1.95 "Noto Serif JP",serif}
.hm-place .hm-link{color:white}
.hm-founder{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);background:white}
.hm-founder-copy{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:16px;padding:var(--region-y) clamp(16px,2vw,32px) var(--region-y) clamp(28px,4vw,64px);position:relative;z-index:1}
.hm-founder h2{font-size:var(--fs-h2s);line-height:1.55}
.hm-founder-photo{position:relative;overflow:hidden}
.hm-founder-photo:after{content:"";position:absolute;inset:0 auto 0 0;width:18%;background:linear-gradient(90deg,#fff,rgba(255,255,255,0));pointer-events:none}
.hm-founder-photo>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:36% 30%}
.hm-founder-photo>p{position:absolute;z-index:1;right:24px;bottom:20px;white-space:nowrap;background:rgba(255,255,255,.94);padding:10px 16px;font:400 var(--fs-xs)/1.7 "Noto Sans JP",sans-serif;border-radius:3px}

.hm-cases{padding-block:var(--section-y)}
.hm-cases-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.6fr) minmax(0,2.2fr);gap:clamp(24px,3.5vw,56px);align-items:start}
.hm-cases-intro{display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.hm-cases-intro h2{font-size:var(--fs-h2s);line-height:1.55}
.hm-map>div{display:flex;align-items:baseline;gap:10px}
.hm-map strong{font:700 clamp(40px,1.6rem + 2vw,64px)/1 "Noto Sans JP",sans-serif}
.hm-map span{font:700 var(--fs-xs)/1 "Noto Sans JP",sans-serif;letter-spacing:.08em}
.hm-map img{margin-top:12px;width:100%;height:auto}
.hm-case-list{border-left:1px solid var(--border);padding-left:clamp(20px,3vw,48px)}
.hm-case-list>h3{font:700 var(--fs-sm)/1.6 "Noto Sans JP",sans-serif;margin-bottom:14px!important}
/* Three equal tracks for the three real case cards. */
.hm-case-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,1.8vw,28px)}
.hm-case-card{position:relative;display:block}
.hm-case-card h4{font:700 var(--fs-sm)/1.6 "Noto Sans JP",sans-serif;margin-top:12px!important}
.hm-case-card>p{font:400 var(--fs-sm)/1.7 "Noto Sans JP",sans-serif;color:var(--ink)}
.hm-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px!important}
.hm-tags li{border:1px solid var(--border);border-radius:3px;background:#f6f7f9;padding:1px 7px;font-size:var(--fs-xs);line-height:1.7}
/* Real case photos (site/assets/cases/), replacing the old sprite-crop fills. */
.hm-case-photo{position:relative;aspect-ratio:4/3;overflow:hidden;border-radius:3px}
.hm-case-photo img{width:100%;height:100%;object-fit:cover;display:block}
.hm-case-photo .hm-round{position:absolute;right:10px;bottom:10px}
/* コラムのアイキャッチは 2:1（2026-09-30 から）。コラム側のヒーロー・カードと同じ枠。 */
.hm-journal-photo{width:100%;height:auto;aspect-ratio:2/1;object-fit:cover;border-radius:4px}

.hm-updates{background:var(--band);padding-block:var(--section-y)}
.hm-updates-inner{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:clamp(32px,5vw,80px)}
.hm-journal{display:grid;grid-template-columns:minmax(160px,.8fr) minmax(0,2fr);gap:clamp(20px,3vw,40px)}
.hm-journal-intro{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.hm-journal-intro h2,.hm-news-intro h2{font-size:clamp(17px,.8rem + .6vw,22px);line-height:1.6}
.hm-journal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,1.5vw,20px)}
.hm-journal-card time{display:block;margin-top:10px;font:400 var(--fs-xs)/1.6 "Noto Sans JP",sans-serif;color:var(--muted)}
.hm-journal-card h3{font:400 var(--fs-sm)/1.65 "Noto Sans JP",sans-serif}
.hm-news{border-left:1px solid var(--border);padding-left:clamp(24px,3vw,48px)}
.hm-news-intro{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:10px}
.hm-news-intro h2{font-family:"Noto Sans JP",sans-serif;font-weight:700;letter-spacing:.08em}
.hm-news-more{margin-top:16px}
.hm-news-list :is(a,div){display:grid;grid-template-columns:92px 1fr;gap:12px;padding-block:14px;border-bottom:1px solid var(--border);font:400 var(--fs-sm)/1.7 "Noto Sans JP",sans-serif}
.hm-news-list time{color:var(--muted)}
.hm-news-list span{color:var(--ink)}


.hm-contact{position:relative;background:#ecf3f9;padding-block:clamp(40px,4.5vw,72px);overflow:hidden}
.hm-contact:before{content:"";position:absolute;inset:0 0 0 50%;background:linear-gradient(90deg,#ecf3f9,rgba(236,243,249,0) 60%),url('/site/assets/shared/img36cta.webp') center/cover}
.hm-contact-inner{position:relative;display:flex;align-items:center;justify-content:space-between;gap:32px}
.hm-contact h2{font-size:var(--fs-h2s);line-height:1.55}
.hm-contact p{margin-top:8px!important;font:400 var(--fs-body)/1.8 "Noto Serif JP",serif;color:var(--ink)}
.hm-contact .hm-button{min-width:200px;min-height:56px}

/* Tablet */
@media(max-width:1023px){
 /* この幅で画面いっぱいの高さにすると写真の枠が縦長になり、右寄せの切り出しでは左の男の子が
    白いぼかしの下に沈む。高さを幅に比例させ、3人とも入る横長の枠にする。 */
 .hm-hero{min-height:clamp(420px,58vw,600px)}
 /* 文章の幅が画面の半分ほどしか無いので、見出しを一段小さくして2行に収める（「を。」だけが3行目に落ちていた）。 */
 .hm-hero h1{font-size:clamp(28px,4.4vw,44px)}
 .hm-hero-media{left:30%}
 .hm-hero:after{left:30%;width:30%}
 .hm-hero-copy{max-width:52%}
 .hm-product-inner{grid-template-columns:minmax(0,1.4fr) minmax(0,.6fr)}
 .hm-product-copy{grid-column:1/-1}
 .hm-services-inner{grid-template-columns:1fr}
 .hm-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hm-region{grid-template-columns:1fr}
 .hm-place-copy{padding-left:var(--gutter-x)}
 .hm-founder{min-height:380px}
 .hm-founder-photo>p{right:var(--gutter-x)}
 .hm-cases-inner{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
 .hm-case-list{grid-column:1/-1;border-left:0;padding-left:0;border-top:1px solid var(--border);padding-top:28px}
 .hm-updates-inner{grid-template-columns:1fr}
 .hm-news{border-left:0;padding-left:0;border-top:1px solid var(--border);padding-top:28px}
}
/* Phone */
@media(max-width:767px){
 .hm-hero{flex-direction:column;align-items:stretch;min-height:0}
 .hm-hero-media{position:relative;inset:auto;aspect-ratio:4/3}
 .hm-hero:after{inset:auto 0 auto 0;top:calc(75vw - 80px);width:100%;height:80px;background:linear-gradient(0deg,#fff,rgba(255,255,255,0))}
 .hm-hero-inner{padding-block:8px 48px}
 .hm-hero-copy{max-width:none}
 .hm-hero h1{line-height:1.45}
 .hm-topics-inner,.hm-product-inner,.hm-cases-inner{grid-template-columns:1fr}
 .hm-topics h2 br,.hm-product-copy>p br{display:none}
 .hm-product-illustration{max-width:220px;justify-self:center}
 .hm-service-grid{gap:10px}
 .hm-service-card{padding:8px 8px 12px;gap:10px}
 .hm-service-heading{gap:6px;padding:0}
 .hm-service-heading img{width:20px;height:20px}
 .hm-service-heading h3{font-size:13px}
 .hm-service-bottom{padding:0}
 .hm-service-bottom p{font-size:var(--fs-sm)}
 .hm-round{width:26px;height:26px;font-size:13px}
 .hm-place-copy{padding-block:56px}
 .hm-founder{grid-template-columns:1fr;min-height:0}
 .hm-founder-copy{padding:48px var(--gutter-x) 24px}
 .hm-founder-photo{aspect-ratio:4/3}
 .hm-founder-photo:after{inset:0 0 auto 0;width:100%;height:30%;background:linear-gradient(180deg,#fff,rgba(255,255,255,0))}
 .hm-map{max-width:280px}
 .hm-case-grid{grid-template-columns:1fr;gap:28px}
 .hm-journal{grid-template-columns:1fr}
 .hm-journal-card h3 br{display:none}
 .hm-contact:before{left:0;opacity:.35}
 .hm-contact-inner{flex-direction:column;align-items:flex-start}
 .hm-contact .hm-button{min-width:0}
}
