/* スタイルは元のまま維持 */
body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 15px;
}

h1,
h2,
h3 {
    color: #1a73e8;
}

h1 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 30px;
}

h1 .h1-line2 {
    display: block;
    margin-top: 0.25em;
}

.conbini-hero {
    margin-bottom: 20px;
}

.conbini-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(20px, 5vw, 24px);
    line-height: 1.5;
    text-align: left;
}

.conbini-hero .h1-line2 {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.conbini-hero__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

@media (min-width: 980px) {
    .conbini-hero {
        position: relative;
        display: flex;
        align-items: flex-end;
        min-height: 450px;
        overflow: hidden;
        border-radius: 10px;
        isolation: isolate;
    }

    .conbini-hero::after {
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(to bottom, transparent 35%, rgba(8, 25, 45, .35) 55%, rgba(8, 25, 45, .94) 100%);
        content: "";
    }

    .conbini-hero .conbini-hero__image {
        position: absolute;
        inset: 0;
        z-index: 0;
        height: 100%;
        object-fit: cover;
    }

    .conbini-hero h1 {
        position: relative;
        z-index: 2;
        margin: 0;
        padding: 32px;
        color: #fff;
        font-size: 32px;
        line-height: 1.45;
    }

    .conbini-hero .h1-line2 {
        font-size: 18px;
    }
}

h2 {
    font-size: 1.5em;
    border-bottom: 2px solid #1a73e8;
    padding-bottom: 5px;
    margin-top: 40px;
}

h2::first-letter {
    text-shadow: none;
}

h3 {
    font-size: 1.2em;
    margin-top: 30px;
}

p {
    margin-bottom: 15px;
}

a {
    color: #1a73e8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    background-color: #1a73e8;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #005cb2;
    color: #fff;
}

/* サイト共通のリンク色（#a60303）が青地のボタンに乗らないようにする */
a.btn, a.btn:visited, a.btn:hover {
    color: #fff !important;
}

.center-text {
    text-align: left;
}

.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-box {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-warning {
    background-color: #fff3cd;
    border-left: 5px solid #ffeeba;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-left: 5px solid #bee5eb;
    color: #0c5460;
}

.answer-box {
    background: #f7fbff;
    border: 1px solid #b8d5f6;
    border-left: 5px solid #1a73e8;
    border-radius: 8px;
    padding: 18px;
    margin: 22px 0;
}

.answer-box h2 {
    margin-top: 0;
    font-size: 1.35em;
}

.answer-box ol {
    padding-left: 22px;
    margin-bottom: 14px;
}

/* 共通CSSの table { transform: translateY(20px) } を無効化（後続テキストとの重なり防止） */
.answer-box table,
main table { transform: none; transition: none; }

.price-summary {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 0.95em;
}

.price-summary th,
.price-summary td {
    border: 1px solid #d7e3f4;
    padding: 9px;
    text-align: left;
}

.price-summary th {
    background: #eef4fb;
}

.highlight {
    background-color: #e9ecef;
    padding: 2px 4px;
    border-radius: 3px;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

figcaption {
    text-align: center;
    font-size: 0.9em;
    color: #555;
    margin-top: 5px;
}

.cta-section {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 30px;
}

.career-context-link {
    margin: 12px 0 20px;
    font-size: 0.95em;
}

.career-context-link a {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.career-support-card {
    margin: 24px 0 4px;
    padding: 20px;
    background: #f7f8fa;
    border: 1px solid #cbd3dc;
    border-left: 4px solid #66788a;
    border-radius: 8px;
}

.career-support-card__label {
    display: inline-block;
    margin: 0 0 8px;
    padding: 3px 9px;
    color: #344454;
    background: #e7ebef;
    border-radius: 999px;
    font-size: 0.82em;
    font-weight: bold;
}

.career-support-card h3 {
    margin: 0 0 10px;
    color: #344454;
}

.career-support-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    max-width: 100%;
    padding: 10px 14px;
    color: #244f75;
    background: #fff;
    border: 2px solid #52779a;
    border-radius: 6px;
    font-weight: bold;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.career-support-card__link:link,
.career-support-card__link:visited {
    color: #244f75;
}

.career-support-card__link:hover {
    color: #173b5b;
    background: #eef3f7;
}

.career-support-card__link:focus-visible,
.career-context-link a:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 3px;
}

.career-support-card__note {
    margin: 10px 0 0;
    color: #4f5d6b;
    font-size: 0.9em;
}

.career-support-card__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 25px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
}

h1,
h1 a,
h1 a:link,
h1 a:visited,
h1 a:hover,
h1 a:active,
h2 {
    text-shadow: none;
}

.cta-section a:visited,
.cta-section a:link {
    color: #fff;
    text-decoration: none;
}

h2:after {
    border-bottom: 2px solid #1a73e8;
    content: "";
    display: block;
    width: 100%;
}

h2:before {
    content: "";
    width: 100%;
    height: 2px;
    background-color: #1a73e8;
    margin-bottom: 10px;
    text-shadow: none;
}

.content-menu ul li {
    list-style: none;
}

.foldable-section {
    margin: 30px 0;
    border: 1px solid #d9e6f7;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.foldable-section[open] {
    border-color: #b8d5f6;
    box-shadow: 0 8px 22px rgba(26, 115, 232, 0.08);
}

.foldable-section>summary {
    cursor: pointer;
    list-style: none;
    position: relative;
    padding: 16px 18px;
    background: #f5f9ff;
    color: #1a73e8;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 52px;
    border-bottom: 1px solid transparent;
    user-select: none;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.foldable-section>summary:hover,
.foldable-section>summary:focus {
    background: #eaf3ff;
}

.foldable-section>summary::-webkit-details-marker {
    display: none;
}

.foldable-section>summary::after {
    content: "開く";
    position: static;
    flex: 0 0 auto;
    transform: none;
    display: inline-block;
    width: auto;
    max-width: 128px;
    white-space: nowrap;
    color: #fff;
    background: #1a73e8;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.85em;
    line-height: 1;
    text-align: center;
    box-shadow: 0 3px 9px rgba(26, 115, 232, 0.22);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.foldable-section>summary:hover::after,
.foldable-section>summary:focus::after {
    box-shadow: 0 5px 14px rgba(26, 115, 232, 0.28);
}

.foldable-section[open]>summary::after {
    content: "閉じる";
    background: #5f6368;
    box-shadow: 0 3px 9px rgba(95, 99, 104, 0.22);
}

.foldable-section[open]>summary {
    border-bottom-color: #d9e6f7;
}

.foldable-section>summary h2,
.foldable-section>summary h3 {
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    border: 0;
    color: inherit;
    font-size: 1.2em;
    min-width: 0;
}

.foldable-section>summary h2::before,
.foldable-section>summary h2::after {
    content: none;
    display: none;
}

.foldable-body {
    padding: 0 18px 18px;
    overflow: hidden;
    transform-origin: top;
}

.foldable-section[open] .foldable-body {
    animation: foldableBodyOpen 0.28s ease-out;
}

.foldable-section.is-closing .foldable-body {
    animation: foldableBodyClose 0.22s ease-in forwards;
}

@keyframes foldableBodyOpen {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes foldableBodyClose {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-6px);
    }
}

.guide-menu {
    margin: 24px 0 26px;
    border-color: #b8d5f6;
    background-color: #f7fbff;
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.08);
}

.guide-menu>summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: auto;
    padding: 14px 18px;
    background: #eef4fb;
}

.guide-menu>summary::after {
    content: "目次を開く";
    position: static;
    flex: 0 0 auto;
    transform: none;
    color: #1a73e8;
    background: #fff;
    border: 1px solid #1a73e8;
    box-shadow: none;
    padding: 7px 12px;
    font-size: 0.9em;
}

.guide-menu>summary:hover::after,
.guide-menu>summary:focus::after {
    transform: none;
    background: #1a73e8;
    color: #fff;
    box-shadow: none;
}

.guide-menu[open]>summary::after {
    content: "目次を閉じる";
    color: #5f6368;
    background: #fff;
    border-color: #9aa0a6;
    box-shadow: none;
}

.guide-menu .foldable-body {
    padding-top: 14px;
}

@media (max-width: 480px) {
    .career-support-card {
        padding: 16px;
    }

    .career-support-card__link {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 10px 12px;
        overflow-wrap: anywhere;
        text-align: center;
    }

    .foldable-section>summary {
        display: block;
        padding: 14px;
    }

    .foldable-section>summary::after {
        content: "タップして開く";
        position: static;
        transform: none;
        display: block;
        max-width: none;
        width: auto;
        margin-top: 10px;
        padding: 9px 14px;
        font-size: 0.95em;
    }

    .foldable-section>summary:hover::after,
    .foldable-section>summary:focus::after {
        transform: none;
    }

    .guide-menu>summary {
        display: block;
        padding: 14px;
    }

    .guide-menu>summary::after {
        content: "目次を開く";
    }

    .guide-menu[open]>summary::after {
        content: "目次を閉じる";
    }
}

@media (prefers-reduced-motion: reduce) {
    .foldable-section,
    .foldable-section>summary,
    .foldable-section>summary::after,
    .foldable-section[open] .foldable-body,
    .foldable-section.is-closing .foldable-body {
        animation: none;
        transition: none;
    }
}

/* アンカーリンクのジャンプ位置調整 */
section[id],
h2[id],
h3[id] {
    scroll-margin-top: 80px;
}

@media (min-width: 980px) {

    section[id],
    h2[id],
    h3[id] {
        scroll-margin-top: 200px;
    }
}

.pr-compare-main figure,
.pr-compare-grid figure { margin: 0 0 12px; }

.pr-compare-main img,
.pr-compare-grid img { display: block; max-width: 100%; height: auto; border-radius: 5px; }

.pr-compare-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }

@media (min-width: 768px) {
    .pr-compare-grid { grid-template-columns: repeat(3, 1fr); }
}

/* お知らせ */
.whats-new { border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px 16px; margin: 0 0 20px; background: #f9fafb; }
.whats-new-title { font-size: .8rem; font-weight: 700; color: #374151; letter-spacing: .08em; margin: 0 0 6px; }
.whats-new-list { list-style: none; padding: 0; margin: 0; }
.whats-new-list li { font-size: .9rem; color: #374151; display: flex; align-items: baseline; gap: 8px; line-height: 1.6; }
.whats-new-list time { flex-shrink: 0; color: #9ca3af; font-size: .8rem; }
.whats-new-text { flex: 1 1 auto; min-width: 0; }
.whats-new-list a { display: inline; font-size: inherit; line-height: inherit; color: #1a73e8; text-decoration: underline; margin: 0; padding: 0; }
.badge-new { flex-shrink: 0; display: inline-block; background: #d32f2f; color: #fff; border-radius: 999px; padding: 1px 7px; font-size: .7rem; font-weight: 700; }

/* 美肌モード Before/After */
.bihada-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.bihada-compare figure { margin: 0; }
.bihada-compare img { display: block; width: 100%; height: auto; border-radius: 5px; }
.bihada-compare figcaption { text-align: center; font-size: .85rem; color: #555; margin-top: 6px; }
.bihada-compare button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.bihada-zoom-note { display: block; font-size: .75rem; color: #888; }
.bihada-dialog { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.bihada-dialog::backdrop { background: rgba(0,0,0,.85); }
.bihada-dialog-body { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.bihada-dialog img { max-width: 94vw; max-height: 86vh; width: auto; height: auto; border-radius: 6px; }
.bihada-dialog-caption { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: #fff; font-size: .9rem; }
.bihada-dialog-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #111; font-size: 24px; line-height: 44px; cursor: pointer; }

/* 「写真」アプリへの保存方法（parts/save-to-photos.php） */
.stp details { border: 1px solid #e5e7eb; border-radius: 12px; margin: 0 0 12px; background: #fff; }
.stp summary { padding: 14px 16px; font-weight: 700; color: #111827; cursor: pointer; }
.stp details[open] summary { border-bottom: 1px solid #e5e7eb; }
.stp .stp-body { padding: 12px 16px 16px; }
.stp ol { padding-left: 1.4em; margin: 0 0 10px; }
.stp ol li { display: list-item; list-style: decimal; margin-bottom: 6px; }
.stp .stp-note { font-size: .85rem; color: #4b5563; }
