@charset "utf-8";

/* =========================================================
   会員画面ガイド（職員向け）- Smile to Smile
   画像デザイン完全再現用スタイル
   ========================================================= */

:root {
    --brand: #f5a623;
    --brand-strong: #f0982a;
    --brand-soft: #fff8e8;
    --brand-border: #f4d79a;
    --ink: #2f3338;
    --ink-soft: #5c636b;
    --ink-mute: #8a929b;
    --line: #e7eaee;
    --line-soft: #eef1f4;
    --bg: #fdfbf6;
    --card: #ffffff;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-card: 0 1px 3px rgba(31, 41, 51, .06), 0 1px 2px rgba(31, 41, 51, .04);
    --font: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.material-icons {
    font-feature-settings: "liga";
    line-height: 1;
    vertical-align: middle;
    user-select: none;
}

/* ---------------- トップバー ---------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 86px;
    padding: 0 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.topbar__back {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 21px;
    border: 1.5px solid var(--brand-border);
    border-radius: 999px;
    background: #fff;
    color: var(--brand-strong);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s, box-shadow .15s;
}

.topbar__back:hover {
    background: #fdeccb;
    border-color: var(--brand);
    color: var(--brand-strong);
    box-shadow: 0 2px 6px rgba(245, 166, 35, .25);
}

.topbar__back .material-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 16px;
}

.topbar__brand {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
}

.topbar__logo-img {
    display: block;
    height: 44px;
    width: auto;
}

.topbar__service {
    color: #4c535c;
    font-size: 22px;
    font-weight: 700;
    margin-left: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar__meta {
    color: var(--ink-mute);
    font-size: 13px;
    white-space: nowrap;
}

/* このサイトについて ボタン（右上） */
.topbar__about {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 21px;
    border: 1.5px solid var(--brand-border);
    border-radius: 999px;
    background: #fff;
    color: var(--brand-strong);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, border-color .15s, box-shadow .15s;
}

.topbar__about:hover {
    background: #fdeccb;
    border-color: var(--brand);
    box-shadow: 0 2px 6px rgba(245, 166, 35, .25);
}

.topbar__about .material-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 16px;
}

/* ---------------- 注意帯 ---------------- */
.notice-bar {
    position: sticky;
    top: 86px;
    z-index: 29;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 24px;
    background: #fffbf0;
    border-bottom: 1px solid #f4d79a;
    color: #8a6b2f;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    text-align: right;
}

.notice-bar__icon {
    flex: 0 0 auto;
    font-size: 18px;
    color: var(--brand-strong);
}

.notice-bar__text {
    min-width: 0;
}

/* ---------------- レイアウト ---------------- */
.layout {
    display: flex;
    align-items: flex-start;
    max-width: none;
    margin: 0 auto;
}

/* ---------------- サイドバー ---------------- */
.sidebar {
    position: sticky;
    top: 135px;
    flex: 0 0 328px;
    width: 328px;
    align-self: flex-start;
    max-height: calc(100vh - 135px);
    overflow-y: auto;
    padding: 30px 24px 40px;
    border-right: 1px solid var(--line);
}

.sidebar__title {
    margin: 0 0 14px 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-mute);
    letter-spacing: .4px;
}

.sidebar__section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 34px 0 22px 10px;
    color: var(--ink-mute);
    font-size: 16px;
    font-weight: 700;
}

.sidebar__section-title::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--line);
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar__item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--ink-soft);
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.sidebar__item .material-icons {
    font-size: 26px;
    color: var(--ink-mute);
    transition: color .15s;
}

.sidebar__item:hover {
    background: #f3f4f6;
    color: var(--ink);
}

.sidebar__item:hover .material-icons {
    color: var(--ink-soft);
}

.sidebar__item.is-active {
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(245, 166, 35, .35);
}

.sidebar__item.is-active .material-icons {
    color: #fff;
}

/* ---------------- メインコンテンツ ---------------- */
.content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 48px 72px 56px;
}

.content__loading {
    padding: 80px 0;
    text-align: center;
    color: var(--ink-mute);
}

/* ---------------- トップページ ---------------- */
.home-page {
    max-width: 1040px;
    margin: 0 auto;
}

.home-head {
    margin: 0 0 35px;
}

.home-head__title {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0;
}

.home-head__lead {
    margin: 0;
    color: #454b53;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.85;
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 32px;
}

.home-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 303px;
    padding: 22px 30px 19px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 9px rgba(31, 41, 51, .1);
    color: var(--ink);
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    transition: transform .15s, border-color .15s, box-shadow .15s;
}

.home-category-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-border);
    box-shadow: 0 8px 22px rgba(31, 41, 51, .14);
}

.home-category-card__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 94px;
    height: 94px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--brand-soft);
}

.home-category-card__icon {
    color: var(--brand);
    font-size: 54px;
}

.home-category-card__title {
    display: block;
    min-height: 38px;
    color: var(--ink);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.45;
}

.home-category-card__line {
    display: block;
    width: 100%;
    height: 1px;
    margin: 13px 0 13px;
    background: var(--brand);
}

.home-category-card__text {
    display: block;
    min-height: 56px;
    color: #4d545d;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
}

.home-category-card__arrow {
    display: block;
    margin-top: auto;
    color: var(--brand);
    font-size: 34px;
    line-height: 1;
}

.home-updates {
    margin: 40px 0 32px;
    padding: 24px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fcfcfd;
}

.home-updates__title {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
}

.home-updates__list {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.home-updates__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
}

.home-updates__item:last-child {
    border-bottom: none;
}

.home-updates__date {
    flex: 0 0 auto;
    color: var(--ink-mute);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.home-updates__item-title {
    flex: 1 1 auto;
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.65;
}

.home-updates__show-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 20px;
    border: 1.5px solid var(--brand);
    border-radius: 8px;
    background: #fff;
    color: var(--brand-strong);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.home-updates__show-all:hover {
    background: var(--brand);
    color: #fff;
}

.home-note {
    margin: 38px 0 0;
    color: #454b53;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.site-footer--home {
    max-width: 1040px;
    margin-right: auto;
    margin-left: auto;
}

/* パンくず */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-mute);
    margin-bottom: 18px;
}

.breadcrumb .material-icons {
    font-size: 17px;
}

.breadcrumb__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink-mute);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: color .15s;
}

.breadcrumb__link:hover {
    color: var(--ink-soft);
}

.breadcrumb__sep {
    color: #c4cad1;
    font-size: 12px;
}

.breadcrumb__current {
    color: var(--ink-soft);
    font-weight: 500;
}

/* タイトル行 */
.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.page-head__title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 27px;
    font-weight: 700;
    color: var(--ink);
}

.page-head__title .material-icons {
    font-size: 30px;
    color: var(--ink);
}

.page-head__download-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 9px 16px;
    border: 1.5px solid var(--brand);
    border-radius: 8px;
    background: #fff;
    color: var(--brand-strong);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.page-head__download-btn .material-icons {
    font-size: 18px;
}

.page-head__download-btn:hover {
    background: var(--brand);
    color: #fff;
}

.page-head__download-btn.is-disabled {
    border-color: var(--line);
    background: #f6f7f9;
    color: var(--ink-mute);
    cursor: default;
    font-weight: 500;
}

.page-head__download-btn.is-disabled:hover {
    background: #f6f7f9;
    color: var(--ink-mute);
}

.page-desc {
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-size: 15px;
}

/* セクション一覧 */
.section-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: -10px 0 26px;
    padding: 13px 16px;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    background: var(--brand-soft);
}

.section-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.section-nav__button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}

.section-nav__button:hover {
    border-color: var(--brand);
    background: #fdeccb;
    color: var(--brand-strong);
    box-shadow: 0 2px 6px rgba(245, 166, 35, .18);
}

.section-nav__icon {
    color: var(--brand-strong);
    font-size: 18px;
}

/* 情報ストリップ */
.info-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 26px;
    margin: 20px 0 26px;
    padding: 15px 22px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
}

.info-strip__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ink-soft);
}

.info-strip__item .material-icons {
    font-size: 19px;
    color: var(--brand-strong);
}

.info-strip__item strong {
    color: var(--ink);
    font-weight: 700;
}

.info-strip__sep {
    width: 1px;
    height: 18px;
    background: var(--brand-border);
}

/* 画面セクション */
.screen-section {
    margin-bottom: 36px;
    scroll-margin-top: 112px;
}

.screen-section:last-of-type {
    margin-bottom: 0;
}

.screen-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand-border);
}

.screen-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
}

.screen-section__title::before {
    content: "";
    width: 5px;
    height: 19px;
    border-radius: 3px;
    background: var(--brand);
}

.screen-section__download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 8px 14px;
    border: 1.5px solid var(--brand);
    border-radius: 8px;
    background: #fff;
    color: var(--brand-strong);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.screen-section__download-btn .material-icons {
    font-size: 17px;
}

.screen-section__download-btn:hover {
    background: var(--brand);
    color: #fff;
}

.screen-section__download-btn.is-disabled {
    border-color: var(--line);
    background: #f6f7f9;
    color: var(--ink-mute);
    cursor: default;
    font-weight: 500;
}

.screen-section__download-btn.is-disabled:hover {
    background: #f6f7f9;
    color: var(--ink-mute);
}

/* 画面カードグリッド */
.screen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.screen-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 18px 18px 20px;
    scroll-margin-top: 80px;
    transition: box-shadow .2s, border-color .2s, transform .2s;
}

.screen-card.is-highlight {
    z-index: 2;
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow:
        0 0 0 4px rgba(245, 166, 35, .55),
        0 0 0 9px rgba(245, 166, 35, .18),
        0 16px 34px rgba(120, 85, 24, .18);
}

.screen-card.is-highlight::before,
.screen-card.is-highlight::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 3px solid rgba(245, 166, 35, .7);
    border-radius: calc(var(--radius) + 8px);
    pointer-events: none;
    animation: target-wave 1.45s ease-out infinite;
}

.screen-card.is-highlight::after {
    animation-delay: .45s;
}

.screen-card.is-highlight.is-highlight-ending {
    border-color: var(--brand-border);
    transform: translateY(0);
    box-shadow:
        0 0 0 2px rgba(245, 166, 35, .18),
        0 8px 18px rgba(120, 85, 24, .08);
    transition: box-shadow .9s ease-out, border-color .9s ease-out, transform .9s ease-out;
}

.screen-card.is-highlight.is-highlight-ending::before,
.screen-card.is-highlight.is-highlight-ending::after {
    animation: none;
    opacity: 0;
    transform: scale(1.07);
    transition: opacity .9s ease-out, transform .9s ease-out;
}

@keyframes target-wave {
    0% {
        opacity: .85;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.055);
    }
}

@media (prefers-reduced-motion: reduce) {
    .screen-card.is-highlight {
        transform: none;
    }

    .screen-card.is-highlight.is-highlight-ending {
        transform: none;
    }

    .screen-card.is-highlight::before,
    .screen-card.is-highlight::after {
        animation: none;
        opacity: 1;
    }
}

.screen-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.screen-card__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex: 0 0 auto;
}

.screen-card__id {
    color: var(--ink-mute);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
}

.screen-card__title {
    margin: 2px 0 14px;
    font-size: 17.5px;
    font-weight: 700;
    color: var(--ink);
}

/* スマホ枠（キャプチャ） */
.phone {
    position: relative;
    display: block;
    width: 100%;
    max-width: 360px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    overflow: hidden;
    margin: 0 auto 12px;
    padding: 0;
    text-align: left;
    font-family: inherit;
}

.phone--clickable {
    cursor: zoom-in;
    transition: box-shadow .15s, border-color .15s;
}

.phone--clickable:hover {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(245, 166, 35, .2);
}

/* キャプチャ拡大アイコン */
.phone__zoom {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(47, 51, 56, .6);
    color: #fff;
    opacity: 0;
    transition: opacity .15s;
}

.phone--clickable:hover .phone__zoom {
    opacity: 1;
}

.phone__zoom .material-icons {
    font-size: 19px;
}

.phone__body {
    display: block;
    aspect-ratio: 478 / 844;
    height: auto;
    min-height: 0;
    background: #fcfcfd;
    overflow: hidden;
}

.phone__body--image {
    background: #fff;
}

.phone__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* ダウンロードボタン（カード内・共通） */
.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border: 1.5px solid var(--brand);
    border-radius: 8px;
    background: #fff;
    color: var(--brand-strong);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.btn-download .material-icons {
    font-size: 18px;
}

.btn-download:hover {
    background: var(--brand);
    color: #fff;
}

.btn-download--card {
    width: 100%;
    margin-bottom: 16px;
}

.btn-download.is-disabled {
    border-color: var(--line);
    background: #f6f7f9;
    color: var(--ink-mute);
    cursor: default;
    font-weight: 500;
}

.btn-download.is-disabled:hover {
    background: #f6f7f9;
    color: var(--ink-mute);
}

/* 説明文 */
.screen-desc {
    margin: 0 0 16px;
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.75;
}

/* 進む先 */
.transitions {
    /* 横並びカードで「この画面から進む先」の開始位置を上揃えにする（下端揃えにしない） */
    margin-top: 0;
    padding-top: 4px;
}

.transitions__title {
    margin: 0 0 9px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
}

.transitions__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 遷移先ボタン（押しやすさ重視） */
.transition-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--brand-border);
    border-radius: 9px;
    background: var(--brand-soft);
    color: var(--ink);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.transition-btn:hover {
    background: #fdeccb;
    border-color: var(--brand);
}

.transition-btn__name {
    flex: 1 1 auto;
    min-width: 0;
}

.transition-btn__icon {
    flex: 0 0 auto;
    font-size: 20px;
    color: var(--brand-strong);
}

/* 更新履歴詳細 */
.updates-detail {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.updates-detail__entry {
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fcfcfd;
}

.updates-detail__date {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-strong);
}

.updates-detail__title {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}

.updates-detail__items {
    margin: 0;
    padding-left: 22px;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.8;
}

.updates-detail__items li {
    margin-bottom: 6px;
}

.updates-detail__items li:last-child {
    margin-bottom: 0;
}

/* フッター */
.site-footer {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--ink-mute);
    font-size: 12.5px;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    margin-bottom: 14px;
}

.site-footer__links a {
    color: var(--ink-mute);
    text-decoration: none;
    font-size: 12.5px;
    transition: color .15s;
}

.site-footer__links a:hover {
    color: var(--ink-soft);
    text-decoration: underline;
}

.site-footer__copyright {
    margin: 0;
    letter-spacing: .3px;
}

/* 読み込みエラー */
.load-error {
    margin: 40px 0;
    padding: 22px;
    border: 1px solid #f0c8c8;
    border-radius: var(--radius);
    background: #fdf4f4;
    color: #8a3a3a;
    font-size: 14px;
}

.load-error code {
    display: inline-block;
    margin: 6px 0;
    padding: 3px 8px;
    background: #fff;
    border-radius: 5px;
    font-size: 13px;
    color: #555;
}

/* ---------------- キャプチャ拡大モーダル ---------------- */
body.is-modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal[hidden] {
    display: none;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(31, 41, 51, .62);
}

.modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 720px;
    width: 100%;
    max-height: calc(100vh - 48px);
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(31, 41, 51, .35);
}

.modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}

.modal__close {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: #f3f4f6;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background .15s;
}

.modal__close:hover {
    background: #e7eaee;
}

.modal__body {
    flex: 1 1 auto;
    overflow: auto;
    padding: 18px;
    background: #fcfcfd;
    text-align: center;
}

.modal__img {
    width: 100%;
    max-width: 430px;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.modal__foot {
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.modal__foot .btn-download {
    width: 100%;
}

/* ---------------- このサイトについて モーダル ---------------- */
.modal__dialog--about {
    max-width: 640px;
}

.modal__title-icon {
    font-size: 22px;
    margin-right: 8px;
    color: var(--brand-strong);
}

.modal__body--about {
    text-align: left;
    background: #fff;
    padding: 24px 28px 10px;
}

.about__lead {
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink-soft);
}

.about__lead strong {
    color: var(--ink);
}

.about__section {
    margin: 0 0 20px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fcfcfd;
}

.about__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

.about__heading-icon {
    font-size: 22px;
    color: var(--brand-strong);
}

.about__list {
    margin: 0;
    padding-left: 22px;
    color: var(--ink-soft);
    font-size: 15.5px;
    line-height: 1.85;
}

.about__list li {
    margin-bottom: 8px;
}

.about__list li:last-child {
    margin-bottom: 0;
}

.about__list strong {
    color: var(--ink);
    font-weight: 700;
}

.about__note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 4px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.75;
}

.about__note-icon {
    flex: 0 0 auto;
    font-size: 21px;
    color: var(--brand-strong);
    margin-top: 1px;
}

.modal__foot--about {
    text-align: right;
}

/* 主要操作ボタン（モーダルの閉じる等） */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 11px 24px;
    border: 0;
    border-radius: 9px;
    background: var(--brand);
    color: #fff;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}

.btn-primary:hover {
    background: var(--brand-strong);
}

/* ---------------- レスポンシブ ---------------- */
@media (max-width: 920px) {
    .sidebar {
        display: none;
    }
    .content {
        padding: 22px 20px 48px;
    }
    .home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .screen-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .topbar {
        height: 64px;
        padding: 0 16px;
        gap: 8px;
    }
    .topbar__back {
        padding: 8px 11px;
    }
    .topbar__back .material-icons {
        width: 22px;
        height: 22px;
        font-size: 16px;
    }
    .topbar__back-label {
        display: none;
    }
    .topbar__brand {
        gap: 10px;
    }
    .topbar__logo-img {
        height: 34px;
    }
    .topbar__service {
        font-size: 15px;
    }
    .notice-bar {
        top: 64px;
        padding: 8px 16px;
        font-size: 12px;
    }
    .notice-bar__icon {
        font-size: 16px;
    }
    .home-head__title {
        font-size: 24px;
    }
    .home-head__lead {
        font-size: 15px;
    }
    .home-category-grid {
        grid-template-columns: 1fr;
    }
    .home-category-card {
        min-height: 0;
    }
    .section-nav {
        align-items: flex-start;
        flex-direction: column;
    }
    .section-nav__list {
        width: 100%;
    }
    .section-nav__button {
        flex: 1 1 auto;
        justify-content: space-between;
    }
    .screen-grid {
        grid-template-columns: 1fr;
    }
    .page-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-head__download-btn,
    .screen-section__download-btn {
        width: 100%;
        justify-content: center;
    }
    .screen-section__head {
        flex-direction: column;
        align-items: flex-start;
    }
    /* 狭幅ではボタンをアイコンのみに */
    .topbar__about {
        padding: 8px 11px;
    }
    .topbar__about-label {
        display: none;
    }
}
