*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --color-accent: #c8522a;
    --color-text: #333333;
    --color-background: #ffffff;
}

body {
    font-family: sans-serif;
    color: var(--color-text);
    margin: 0;
    padding: 0;
}

main {
    max-width: 100%;
    margin: 0;
    padding: 0;
    padding-top: 64px;
}

section {
    padding: 60px 0;
}

/* セクション内のコンテンツを中央寄せ（btnとareaは除外） */
section > *:not(.btn):not(.area) {
    display: block;
    width: 90%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    font-size: 2rem;
    line-height: 1.6;
}

h2 {
    font-size: 1.5rem;
    line-height: 1.6;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 10px;
    margin-bottom: 24px;
}

h3 {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--color-accent);
    margin-top: 32px;
    margin-bottom: 16px;
}

p {
    line-height: 1.8;
    margin-bottom: 12px;
}

/* ── HEADER ── */
header {
    background: var(--color-text);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

header p {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
}

header nav {
    display: flex;
    gap: 24px;
}

header nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
}

header nav a:hover {
    color: var(--color-accent);
}

/* ── FOOTER ── */
footer {
    background: var(--color-text);
    padding: 20px 40px;
    margin-top: 60px;
}

footer p {
    color: #ffffff;
    font-size: 0.85rem;
    text-align: center;
    margin: 0;
}

/* ── HERO ── */
.hero {
    background: #f8f6f2;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.2rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.hero p:not(.area) {
    font-size: 1.1rem;
    color: #666666;
    margin-bottom: 40px;
}

/* ── BUTTON ── */
.btn {
    display: table;
    background: var(--color-accent);
    color: #ffffff;
    padding: 16px 40px;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 4px;
    margin-left: auto;
    margin-right: auto;
}

.btn:hover {
    background: #a8421a;
}

/* ── AREA BADGE ── */
.area {
    display: block;
    background: var(--color-accent);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 2px;
    margin-bottom: 16px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* ── NOTICE ── */
.notice {
    background: #ffffff;
}

.notice ul {
    padding-left: 0;
    list-style: none;
}

.notice li {
    padding: 20px 24px;
    margin-bottom: 12px;
    background: #f8f6f2;
    border-left: 4px solid var(--color-accent);
}

.notice li p:first-child {
    font-weight: bold;
    margin-bottom: 4px;
}

.law-box {
    background: #fff8f5;
    border: 1.5px solid var(--color-accent);
    border-radius: 4px;
    padding: 16px 20px;
    margin: 24px 0;
}

.law-title {
    font-weight: bold;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.law-article-title {
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 16px;
    margin-bottom: 6px;
}

.law-article-text {
    font-size: 0.9rem;
    background: #ffffff;
    border-left: 3px solid var(--color-accent);
    padding: 12px 16px;
    line-height: 1.9;
    margin-bottom: 0;
}

.external-link-text a {
    color: var(--color-accent);
}

/* ── FEATURES ── */
.features {
    background: #f8f6f2;
}

.features ul {
    padding-left: 0;
    list-style: none;
}

.features ul li {
    padding: 14px 20px;
    margin-bottom: 12px;
    background: #ffffff;
    border-left: 4px solid var(--color-accent);
}

/* ── FLOW ── */
.flow {
    background: #ffffff;
}

.flow ol {
    padding-left: 0;
    list-style: none;
    counter-reset: flow-step;
}

.flow ol li {
    border-left: 4px solid var(--color-accent);
    padding: 16px 20px 16px 60px;
    margin-bottom: 16px;
    background: #f8f6f2;
    position: relative;
}

.flow ol li::before {
    counter-increment: flow-step;
    content: counter(flow-step);
    position: absolute;
    left: 16px;
    top: 16px;
    width: 28px;
    height: 28px;
    background: var(--color-accent);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.flow ol li p:first-child {
    font-weight: bold;
    font-size: 1.05rem;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.flow ol li p:not(:first-child) {
    font-size: 0.95rem;
    color: #555555;
}

/* ── PRICE ── */
.price {
    background: #f8f6f2;
}

/* ── CONTACT ── */
.contact {
    background: #ffffff;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.contact input,
.contact select,
.contact textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1.5px solid #dddddd;
    border-radius: 4px;
    font-family: inherit;
}

.contact label:not(.option-card) {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.contact button {
    background: var(--color-accent);
    color: #ffffff;
    padding: 16px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.contact button:hover {
    background: #a8421a;
}

/* ── OPTION CARDS (見積りフォーム用) ── */
.option-group {
    border: none;
    padding: 0;
    margin: 0 0 28px 0;
    min-width: 0;
}

.option-group legend {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 12px;
    padding: 0;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1.5px solid #dddddd;
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.option-card input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin: 0;
}

.option-card span {
    font-size: 1rem;
    line-height: 1;
}

.option-card:has(input:checked) {
    background: #fff8f5;
    border-color: var(--color-accent);
}

.option-card input:checked + span {
    font-weight: bold;
    color: var(--color-accent);
}

.preview-link {
    margin-top: -6px;
    margin-bottom: 20px;
    padding-left: 4px;
}

.preview-link a {
    color: var(--color-accent);
    font-size: 0.9rem;
}

/* ── FAQ ── */
.faq {
    background: #ffffff;
}

.faq-list details {
    background: #f8f6f2;
    border-left: 4px solid var(--color-accent);
    margin-bottom: 12px;
    padding: 16px 20px;
}

.faq-list summary {
    font-weight: bold;
    font-size: 1.05rem;
    cursor: pointer;
    padding: 4px 0;
    list-style: none;
    position: relative;
    padding-left: 28px;
}

.faq-list summary::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    transition: transform 0.2s;
}

.faq-list details[open] summary::before {
    transform: rotate(90deg);
}

.faq-list details p {
    margin-top: 12px;
    margin-bottom: 0;
}

.faq-list details[open] {
    background: #fff8f5;
    border-left-color: #a8421a;
}

/* ── PRICE TABLE ── */
.table-scroll {
    overflow-x: auto;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
}

.table-scroll .price-table {
    margin-bottom: 0;
}

.price-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 24px;
}

.price-table th,
.price-table td {
    border: 1px solid #dddddd;
    padding: 12px 16px;
    text-align: left;
}

.price-table th {
    background: var(--color-accent);
    color: #ffffff;
}

.price-table tbody tr:nth-child(even) {
    background: #f8f6f2;
}

.price-note {
    font-size: 0.85rem;
    color: #666666;
}

.price-cta {
    text-align: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #dddddd;
}

/* ── レスポンシブ対応（画面幅768px以下） ── */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 20px;
    }

    header nav {
        width: 100%;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 4px;
    }

    header nav a {
        white-space: nowrap;
    }

    /* ── THANKS ── */
.thanks {
    background: #fff8f5;
    text-align: center;
    padding: 100px 0;
}
}