/* TOP専用。親テーマや投稿ページに色・余白が波及しないようすべてスコープ化。 */
/* このファイルはTOPだけで読み込みます。移動自体はブラウザー標準のアンカーです。 */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body.yss-front {
    margin: 0;
    padding: 0;
    background: #fff;
}

#ys-site {
    --ys-text: #304c5c;
    --ys-title: #24546c;
    --ys-green: #236784;
    --ys-pale: #edf6fa;
    --ys-ivory: #fafcfb;
    --ys-line: #d8e7ed;
    width: 100%;
    background: #fff;
    color: var(--ys-text);
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.95;
    text-align: left;
    overflow-wrap: anywhere;
}

#ys-site *, #ys-site *::before, #ys-site *::after { box-sizing: border-box; }
#ys-site img { display: block; max-width: 100%; height: auto; }
#ys-site figure, #ys-site ul, #ys-site p { margin: 0; }
#ys-site a { color: var(--ys-green); text-decoration: none; }
#ys-site a:hover { text-decoration: underline; text-underline-offset: 4px; }
#ys-site a:focus-visible, #ys-site summary:focus-visible {
    outline: 3px solid #24789a;
    outline-offset: 5px;
}
#ys-site h1, #ys-site h2, #ys-site h3, #ys-site h4 {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: var(--ys-title);
    font-family: inherit;
    font-weight: 600;
    line-height: 1.65;
}
#ys-site h1::before, #ys-site h1::after,
#ys-site h2::before, #ys-site h2::after,
#ys-site h3::before, #ys-site h3::after,
#ys-site h4::before, #ys-site h4::after { content: none; }
#ys-site .ys-container { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }
#ys-site .ys-section { padding-block: 64px; scroll-margin-top: 24px; }
#ys-site .ys-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #43758a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    line-height: 1.6;
}
#ys-site .ys-section-heading { text-align: center; margin-bottom: 36px; }
#ys-site .ys-section-heading h2, #ys-site .ys-news-heading h2 { font-size: 30px; letter-spacing: .07em; }
#ys-site .ys-section-heading::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    margin: 16px auto 0;
    background: #77b5cf;
}

/* ヘッダーはTOP専用のheader-yasuragi.phpから出力。 */
#ys-site .ys-header { background: #fff; border-bottom: 1px solid var(--ys-line); }
#ys-site .ys-header-inner { display: flex; align-items: center; gap: 26px; min-height: 100px; padding-block: 16px; }
#ys-site .ys-logo { display: block; flex: 0 1 230px; }
#ys-site .ys-logo img { width: 230px; height: auto; }
#ys-site .ys-desktop-nav { display: flex; align-items: center; justify-content: center; gap: 20px; flex: 1; }
#ys-site .ys-desktop-nav a { font-size: 13px; white-space: nowrap; padding-block: 10px; }
#ys-site .ys-phone { flex: none; padding-left: 24px; border-left: 1px solid var(--ys-line); font-size: 21px; font-weight: 600; white-space: nowrap; line-height: 1.6; }
#ys-site .ys-phone small { display: block; color: #506c79; font-size: 11px; font-weight: 400; }
#ys-site .ys-mobile-menu { display: none; }
#ys-site .ys-hero img { width: 100%; height: clamp(220px, 29vw, 420px); object-fit: cover; object-position: center; }
#ys-site .ys-mission { padding: 40px 0; background: var(--ys-ivory); text-align: center; }
#ys-site .ys-mission h1 { margin-bottom: 16px; font-size: clamp(22px, 2.6vw, 32px); letter-spacing: .07em; }
#ys-site .ys-mission p { max-width: 940px; margin-inline: auto; font-size: 15px; }

/* お知らせ：画像を用意しなくても更新できる行形式。 */
#ys-site .ys-news { border-bottom: 1px solid var(--ys-line); padding-block: 42px; }
#ys-site .ys-news-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 48px; }
#ys-site .ys-news-heading .ys-button { margin-top: 22px; }
#ys-site .ys-news-list { padding: 0; list-style: none; }
#ys-site .ys-news-list li { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--ys-line); }
#ys-site .ys-news-row { display: grid; grid-template-columns: 100px 90px minmax(0, 1fr) 20px; gap: 16px; align-items: start; padding-block: 18px; color: var(--ys-text); }
#ys-site .ys-news-row:hover { text-decoration: none; background: #f5fafc; }
#ys-site .ys-news-row:hover .ys-news-title { text-decoration: underline; text-underline-offset: 4px; }
#ys-site .ys-news-row time { color: #55717d; font-size: 14px; font-variant-numeric: tabular-nums; }
#ys-site .ys-news-tag { min-width: 0; background: var(--ys-pale); color: var(--ys-green); padding: 2px 8px; border-radius: 4px; font-size: 12px; text-align: center; }
#ys-site .ys-news-title { font-size: 15px; }
#ys-site .ys-news-arrow { text-align: right; color: var(--ys-green); }
#ys-site .ys-empty { padding-block: 20px; }
#ys-site .ys-editor-note { margin-top: 10px; font-size: 13px; }
#ys-site .ys-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 46px;
    padding: 9px 25px;
    border: 1px solid var(--ys-green);
    border-radius: 999px;
    background: var(--ys-green);
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}
#ys-site .ys-button:hover { background: #194e66; color: #fff; text-decoration: none; }
#ys-site .ys-button-outline { background: #fff; color: var(--ys-green); }
#ys-site .ys-button-outline:hover { background: var(--ys-pale); color: var(--ys-green); }

/* 会社概要：挨拶、写真、情報表の全項目を表示。 */
#ys-site .ys-greeting { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 46px; align-items: center; }
#ys-site .ys-greeting p + p { margin-top: 12px; }
#ys-site .ys-greeting img { width: 260px; aspect-ratio: 1; border-radius: 12px 12px 40px 12px; }
#ys-site .ys-company-table { width: 100%; margin-top: 34px; border-collapse: collapse; border-spacing: 0; table-layout: fixed; font-size: 15px; }
#ys-site .ys-company-label { width: 27%; }
#ys-site .ys-company-table th, #ys-site .ys-company-table td { padding: 13px 20px; border: 0; border-bottom: 1px solid var(--ys-line); vertical-align: top; text-align: left; }
#ys-site .ys-company-table th { width: 27%; background: var(--ys-pale); color: var(--ys-title); font-weight: 600; }
#ys-site .ys-company-table td { background: #fff; }
#ys-site .ys-table-line { display: block; }

/* サービス：短期入所・移動支援の説明と施設情報リンクを掲載。 */
#ys-site .ys-services { background: var(--ys-ivory); }
#ys-site .ys-service-group { display: grid; grid-template-columns: 185px minmax(0, 1fr); gap: 32px; }
#ys-site .ys-service-group + .ys-service-group { margin-top: 34px; }
#ys-site .ys-group-heading { align-self: start; margin-top: 15px; padding-left: 16px; border-left: 3px solid #77b5cf; }
#ys-site .ys-group-heading h3 { font-size: 20px; }
#ys-site .ys-group-heading p { margin-top: 6px; color: #506c79; font-size: 13px; }
#ys-site .ys-service-item { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 24px; padding: 22px; background: #fff; border: 1px solid #e1ebef; border-radius: 10px; }
#ys-site .ys-service-item + .ys-service-item { margin-top: 16px; }
#ys-site .ys-service-icon { width: 100px; margin-top: 3px; }
#ys-site .ys-service-item h4 { margin-bottom: 8px; font-size: 21px; }
#ys-site .ys-service-item p { font-size: 15px; }
#ys-site .ys-service-item .ys-service-examples { margin-top: 12px; padding: 10px 14px; background: var(--ys-pale); color: #35647a; border-radius: 4px; font-size: 14px; }

/* 採用・資格取得支援：それぞれ写真と詳細リンクを維持。 */
#ys-site .ys-feature { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 30px; align-items: start; padding: 32px; border: 1px solid var(--ys-line); border-radius: 12px; background: #fff; }
#ys-site .ys-feature + .ys-feature { margin-top: 24px; }
#ys-site .ys-feature h3 { margin-bottom: 16px; font-size: 24px; }
#ys-site .ys-feature h4 { margin-bottom: 12px; font-size: 17px; }
#ys-site .ys-feature p { font-size: 15px; }
#ys-site .ys-feature .ys-feature-note { margin-top: 8px; font-size: 14px; }
#ys-site .ys-feature .ys-button { margin-top: 22px; }
#ys-site .ys-feature > img { width: 100%; border-radius: 8px; }

/* アクセスとフッター。地図は元のGoogleマップをそのまま使用。 */
#ys-site .ys-access { background: var(--ys-pale); }
#ys-site .ys-access > .ys-container > p { text-align: center; }
#ys-site .ys-map { margin-top: 26px; border-radius: 10px; overflow: hidden; }
#ys-site .ys-map iframe { display: block; width: 100%; height: 400px; border: 0; }
#ys-site .ys-footer-links { display: flex; justify-content: center; gap: 30px; padding-block: 20px; font-size: 13px; }
#ys-site .ys-footer-links a { padding-block: 8px; }
#ys-site .ys-footer { padding-block: 40px 20px; background: var(--ys-ivory); }
#ys-site .ys-footer-organizations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 54px; }
#ys-site .ys-organization { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px 20px; align-content: start; }
#ys-site .ys-organization h2 { grid-column: 1 / -1; font-size: 18px; }
#ys-site .ys-organization img { width: 130px; border-radius: 6px; }
#ys-site .ys-organization p { font-size: 13px; }
#ys-site .ys-copyright { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--ys-line); text-align: center; }
#ys-site .ys-copyright small { font-size: 12px; }
#ys-site .ys-sr-only, #ys-site .ys-skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#ys-site .ys-skip:focus { display: block; padding: 12px 24px; background: var(--ys-pale); }

@media (max-width: 1100px) {
    #ys-site .ys-header-inner { flex-wrap: wrap; gap: 12px 24px; }
    #ys-site .ys-logo { margin-right: auto; }
    #ys-site .ys-desktop-nav { flex: 0 0 100%; order: 3; }
    #ys-site .ys-service-group { grid-template-columns: 150px minmax(0, 1fr); gap: 22px; }
    #ys-site .ys-feature { grid-template-columns: minmax(0, 1fr) 240px; }
}

@media (max-width: 767px) {
    #ys-site .ys-container { width: calc(100% - 36px); }
    #ys-site .ys-section { padding-block: 42px; }
    #ys-site .ys-section-heading { margin-bottom: 26px; }
    #ys-site .ys-section-heading h2, #ys-site .ys-news-heading h2 { font-size: 26px; }
    #ys-site .ys-header-inner { gap: 12px; min-height: auto; padding-block: 14px; }
    #ys-site .ys-logo { flex: 0 1 165px; }
    #ys-site .ys-logo img { width: 165px; }
    #ys-site .ys-phone { padding-left: 10px; font-size: 16px; }
    #ys-site .ys-phone small { font-size: 10px; }
    #ys-site .ys-desktop-nav { display: none; }
    #ys-site .ys-mobile-menu { display: block; flex-basis: 100%; border-top: 1px solid var(--ys-line); }
    #ys-site .ys-mobile-menu summary { padding: 11px 4px; color: var(--ys-green); font-size: 14px; }
    #ys-site .ys-mobile-menu nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; padding: 4px 0 10px; }
    #ys-site .ys-mobile-menu nav a { display: block; padding: 10px 4px; font-size: 14px; }
    #ys-site .ys-mission { padding-block: 30px; }
    #ys-site .ys-mission h1 { font-size: 23px; }
    #ys-site .ys-news-layout { grid-template-columns: 1fr; gap: 16px; }
    #ys-site .ys-news-heading .ys-button { margin-top: 14px; }
    #ys-site .ys-news-row { grid-template-columns: 100px minmax(0, 1fr) 20px; gap: 6px 12px; }
    #ys-site .ys-news-tag { justify-self: start; min-width: 80px; max-width: 100%; }
    #ys-site .ys-news-title { grid-column: 1 / 3; }
    #ys-site .ys-news-arrow { grid-column: 3; grid-row: 2; }
    #ys-site .ys-greeting { grid-template-columns: 1fr; gap: 24px; }
    #ys-site .ys-greeting figure { grid-row: 1; }
    #ys-site .ys-greeting img { width: 190px; margin-inline: auto; }
    #ys-site .ys-company-table { font-size: 14px; }
    #ys-site .ys-company-table th, #ys-site .ys-company-table td { padding: 12px 10px; }
    #ys-site .ys-company-table th { width: 35%; }
    #ys-site .ys-company-label { width: 35%; }
    #ys-site .ys-service-group { display: block; }
    #ys-site .ys-group-heading { margin: 0 0 18px; }
    #ys-site .ys-service-item { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 20px 16px; }
    #ys-site .ys-service-item h4 { font-size: 19px; }
    #ys-site .ys-service-icon { width: 64px; }
    #ys-site .ys-feature { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
    #ys-site .ys-feature > img { width: min(100%, 360px); }
    #ys-site .ys-feature h3 { font-size: 22px; }
    #ys-site .ys-map iframe { height: 300px; }
    #ys-site .ys-footer-organizations { grid-template-columns: 1fr; gap: 32px; }
    #ys-site .ys-organization { grid-template-columns: 105px minmax(0, 1fr); gap: 12px 16px; }
    #ys-site .ys-organization img { width: 105px; }
}

@media (max-width: 380px) {
    #ys-site .ys-logo { flex-basis: 150px; }
    #ys-site .ys-phone { flex-basis: 100%; padding-left: 0; border-left: 0; }
    #ys-site .ys-service-item { grid-template-columns: 1fr; }
    #ys-site .ys-service-icon { width: 70px; }
}

/* ステイズ固有：2サービスと採用本文 */
#ys-site .ys-service-item h3 { margin-bottom: 10px; font-size: 23px; }
#ys-site .ys-service-item .ys-button { margin-top: 18px; }
#ys-site .ys-feature-content > p + p { margin-top: 10px; }
#ys-site .ys-access p + p { margin-top: 4px; }
#ys-site .ys-stays-items { max-width: 1040px; margin-inline: auto; }
#ys-site .ys-service-item { grid-template-columns: 110px minmax(0,1fr); gap: 32px; padding: 30px; }
#ys-site .ys-anchor-alias { display: block; scroll-margin-top: 24px; }
@media(max-width:767px) { #ys-site .ys-service-item { grid-template-columns: 75px minmax(0,1fr); padding: 22px 18px; gap: 18px; } #ys-site .ys-service-item h3 { font-size: 21px; } }
@media(max-width:380px) { #ys-site .ys-service-item { grid-template-columns: 1fr; } }
