/* 施設詳細: 要点タイル・開所時間の棒・年齢別の表・項目一覧 */
.od-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.od-tiles li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 8px; align-items: center; padding: 13px 14px; background: var(--c-bg-alt); border-radius: var(--radius); }
.od-tiles .icon { color: var(--c-primary); }
.od-tile-label { font-size: .74rem; color: var(--c-text-sub); }
.od-tiles strong { grid-column: 1 / -1; margin-top: 5px; font-size: 1.06rem; line-height: 1.35; color: var(--c-text); }
.od-tiles small { grid-column: 1 / -1; margin-top: 2px; font-size: .74rem; color: var(--c-text-sub); }

.od-lead { margin: 0 0 18px; font-size: 1rem; line-height: 1.95; color: var(--c-text); }
.od-text-block { padding: 16px 0; border-top: 1px solid var(--c-border); }
.od-text-block h3 { margin: 0 0 7px; font-size: .9rem; font-weight: 700; color: var(--c-text); font-family: inherit; }
.od-text-block p { margin: 0; font-size: .92rem; line-height: 1.9; color: var(--c-text-sub); }
.od-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.od-badges li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; background: var(--c-primary-bg); color: var(--c-primary-dark); font-size: .8rem; font-weight: 700; }
.od-badges .icon { width: 14px; height: 14px; }

.od-note { margin: 12px 0 0; font-size: .76rem; line-height: 1.7; color: var(--c-text-mute); }

/* 開所時間 */
.od-hour-list { margin: 0; }
.od-hour-list > div, .od-hour-axis { display: grid; grid-template-columns: 92px minmax(0, 1fr) 112px; column-gap: 14px; align-items: center; }
.od-hour-list > div { min-height: 42px; border-top: 1px solid var(--c-border); }
.od-hour-list dt { font-size: .86rem; font-weight: 700; color: var(--c-text); }
.od-hour-list dd { margin: 0; }
.od-hour-time { font-size: .88rem; font-variant-numeric: tabular-nums; text-align: right; color: var(--c-text); white-space: nowrap; }
.od-hour-bar { position: relative; height: 12px; border-radius: 6px; background: var(--c-bg-alt); overflow: hidden; }
.od-hour-bar span { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--c-primary); }
.is-extended .od-hour-bar span { background: #e0a23c; }
.is-after .od-hour-bar span { background: #6f9a6a; }
.od-hour-axis { margin-bottom: 4px; }
.od-hour-axis > div { display: flex; justify-content: space-between; }
.od-hour-axis i { font-style: normal; font-size: .68rem; color: var(--c-text-mute); }

/* 年齢別・料金の表 */
.od-matrix { width: 100%; min-width: 320px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.od-matrix th, .od-matrix td { padding: 11px 8px; border: 0; border-bottom: 1px solid var(--c-border); background: none; text-align: right; font-size: .92rem; color: var(--c-text); white-space: nowrap; }
.od-matrix thead th { padding-top: 4px; padding-bottom: 8px; border-bottom: 2px solid var(--c-border-strong); font-size: .78rem; font-weight: 700; color: var(--c-text-sub); }
.od-matrix thead td { border-bottom: 2px solid var(--c-border-strong); }
.od-matrix tbody th { position: sticky; left: 0; padding-left: 0; background: #fff; text-align: left; font-size: .84rem; font-weight: 700; }
.od-matrix tbody tr:last-child th, .od-matrix tbody tr:last-child td { border-bottom: 0; }
.od-none { color: var(--c-border-strong); }

/* 保育の特徴 */
.od-feature-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; margin: 0; padding: 0; list-style: none; }
.od-feature-groups li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.od-feature-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c-primary-bg); color: var(--c-primary); }
.od-feature-groups h3 { margin: 0; font-size: .9rem; font-weight: 700; font-family: inherit; line-height: 1.5; }
.od-feature-groups h3 a { color: var(--c-text); text-decoration: none; }
.od-feature-groups h3 a:hover { color: var(--c-primary); text-decoration: underline; }
.od-feature-groups p { margin: 2px 0 0; font-size: .8rem; line-height: 1.6; color: var(--c-text-sub); }

/* 料金の一覧 */
.od-fee-list { margin: 16px 0 0; }
.od-fees .table-scroll + .od-note + .od-fee-list { margin-top: 18px; }
.od-fee-list > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-top: 1px solid var(--c-border); }
.od-fee-list dt { font-size: .86rem; font-weight: 700; color: var(--c-text); }
.od-fee-list dd { margin: 0; }
.od-fee-list strong { font-size: .98rem; color: var(--c-text); font-variant-numeric: tabular-nums; }
.od-fee-list small { font-size: .76rem; font-weight: 400; color: var(--c-text-sub); }
.od-fee-list p { margin: 2px 0 0; font-size: .86rem; line-height: 1.8; color: var(--c-text-sub); }

/* 項目一覧（枠線のない 見出し + 値） */
.od-spec-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 34px; }
.od-spec-group h3 { margin: 0 0 6px; padding-bottom: 7px; border-bottom: 2px solid var(--c-border-strong); font-size: .86rem; font-weight: 700; color: var(--c-text); font-family: inherit; }
.od-spec { margin: 0; }
.od-spec > div { display: grid; grid-template-columns: minmax(84px, 40%) minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--c-border); }
.od-spec > div:last-child { border-bottom: 0; }
.od-spec dt { font-size: .8rem; color: var(--c-text-sub); }
.od-spec dd { margin: 0; font-size: .86rem; line-height: 1.6; color: var(--c-text); overflow-wrap: anywhere; }
.od-sidebar .od-spec > div { grid-template-columns: 1fr; gap: 1px; }
.od-sidebar .od-spec a { font-weight: 700; }

/* 近隣比較 */
.od-compare th[scope="row"] { white-space: nowrap; }
.od-compare td { font-size: .84rem; line-height: 1.6; }

@media (max-width: 760px) {
    .od-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .od-tiles li { padding: 11px 12px; }
    .od-tiles strong { font-size: .98rem; }
    .od-lead { font-size: .96rem; }
    .od-hour-list > div, .od-hour-axis { grid-template-columns: 78px minmax(0, 1fr) 96px; column-gap: 8px; }
    .od-hour-time { font-size: .8rem; }
    .od-feature-groups, .od-spec-groups { grid-template-columns: 1fr; }
    .od-fee-list > div { grid-template-columns: 1fr; gap: 3px; }
    .od-matrix th, .od-matrix td { padding: 10px 6px; font-size: .86rem; }
}

/* 比較表は罫線を減らし、横に見比べやすくする */
.od-compare th, .od-compare td { border-left: 0; border-right: 0; background: none; vertical-align: top; }
.od-compare tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; background: #fff; font-weight: 700; color: var(--c-text-sub); }
.od-compare td { white-space: pre-line; }
.od-compare td.is-current { background: var(--c-primary-bg); }
.od-tiles li { align-content: start; }
.od-fee-list:first-child { margin-top: 0; }
.od-fee-list:first-child > div:first-child { border-top: 0; padding-top: 0; }
.od-source-note p, .od-source-note small { color: var(--c-text-sub); }
.od-source-note a { color: var(--c-primary); }

/* 狭い画面では所在地・アクセスを早い位置に表示する。 */
@media (max-width: 1023px) {
    .od-about { order: 1; }
    .od-information { order: 2; }
    .od-map-card { order: 3; }
    .od-hours { order: 4; }
    .od-ages { order: 5; }
    .od-care { order: 6; }
    .od-fees { order: 7; }
    .od-spec-section { order: 8; }
    .od-nearby { order: 10; }
    .od-source-note { order: 12; }
    .od-provider { order: 13; }
    .od-service-guide { order: 14; }
}

/* 園選びの要点と、次に取る行動を読み取りやすくする。 */
.office-page { font-size: 15px; }
.od-role-bar { border-bottom: 0; background: transparent; }
.od-role-bar > .container { padding-top: 17px; padding-bottom: 17px; }
.od-role-bar p { font-size: .8rem; }
.od-card-header h2 { font-size: 22px; }
.od-section-eyebrow { font-size: .65rem; color: #6b765a; }
.od-note, .od-info-source-note { font-size: .8rem; color: var(--od-body); }
.od-tile-label, .od-tiles small { font-size: .8rem; }
.od-feature-groups h3 { font-size: .94rem; }
.od-feature-groups p { font-size: .86rem; }
.od-spec dt { font-size: .85rem; }
.od-spec dd { font-size: .92rem; line-height: 1.85; }
.od-sidebar .od-spec > div { gap: 5px; padding: 13px 0; }
.od-spec dd a, .od-map-address { font-size: .9rem; }
.od-map summary { min-height: 48px; font-size: .88rem; }
.od-local-link { font-size: .85rem; min-height: 44px; }
.od-source-note strong, .od-source-note p { font-size: .82rem; }
.od-source-note small { font-size: .75rem; }
.od-expand-text summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; min-height: 44px; list-style: none; }
.od-expand-text summary::-webkit-details-marker { display: none; }
.od-expand-text summary h3 { margin: 0; }
.od-expand-text summary > span { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: .8rem; color: var(--od-orange); }
.od-expand-text summary .icon { width: 16px; height: 16px; }
.od-expand-text[open] summary .icon { transform: rotate(180deg); }
.od-expand-text[open] p { margin-top: 12px; }
.od-compare { min-width: 760px; }
.od-compare thead th { font-size: .87rem; }
.od-compare thead th a { display: inline-block; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.od-compare-link { min-height: 44px; font-size: .8rem; }
.od-scroll-hint { font-size: .8rem; }
@media (max-width: 900px) {
    .page-office.has-callbar { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
    .page-office.has-callbar .scroll-top-btn { bottom: calc(102px + env(safe-area-inset-bottom)); }
}
@media (max-width: 1023px) and (min-width: 768px) {
    .od-sidebar .od-spec > div { grid-template-columns: minmax(90px, 24%) minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 767px) {
    .office-page { font-size: 15px; }
    .od-role-bar p { font-size: .77rem; line-height: 1.85; }
    .od-card-header, .od-sidebar .od-card-header { padding: 20px 18px 16px; }
    .od-card-header h2, .od-sidebar .od-card-header h2 { font-size: 20px; }
    .od-card-body, .od-sidebar .od-card-body { padding: 20px 18px; }
    .od-content { padding-top: 20px; }
    .od-tiles { margin-bottom: 20px; }
    .od-tiles strong { overflow-wrap: anywhere; }
    .od-hour-list > div { row-gap: 6px; padding: 12px 0; grid-template-columns: minmax(0, 1fr) auto; }
    .od-hour-list dt { font-size: .9rem; }
    .od-hour-time { grid-column: 2; grid-row: 1; font-size: .9rem; }
    .od-hour-bar { grid-column: 1 / -1; grid-row: 2; height: 10px; }
    .od-hour-axis { display: none; }
    .od-callbar { gap: 8px; padding-inline: 12px; }
    .od-callbar .btn { font-size: .8rem; min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
    html:has(.page-office) { scroll-behavior: auto; }
}
