:root {
    --ink: #202124;
    --muted: #5f6368;
    --line: #dfe4de;
    --surface: #f7f9f6;
    --surface-strong: #eef3ee;
    --accent: #0f6b5e;
    --accent-strong: #0a5248;
    --warm: #9a5b17;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
}

.page {
    width: min(100%, 1040px);
    margin: 0 auto;
    padding: 28px 0 48px; /* 左右を 0 にして枠の端まで開放 */
}

/* 2. ヘッダーを枠内いっぱいに配置する */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 16px;
    border-bottom: 1px solid var(--line);
    width: 100%;
}

/* 3. ロゴの配置を「画像内の余白」に合わせて微調整する */
.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 0;
    line-height: 0;

    /* 【最重要：調整変数】
       画像内の余白を打ち消すための数値です。
       デプロイ後、ロゴの左端と下の文章の左端が一直線に揃うまで、
       この数値を -1px 刻みで調整してください。 */
    margin-left: -12px; 
}

.brand img {
    display: block;
    height: 64px; /* デザイン案に合わせたしっかりしたサイズ */
    width: auto;
    transition: opacity 0.2s ease;
}

.brand:hover img {
    opacity: 0.7;
}

/* ナビゲーション */
.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.site-nav a {
    padding: 8px 12px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
    color: var(--accent);
    background: var(--surface-strong);
    outline: none;
}

.hero {
    padding: 56px 0 44px;
    border-bottom: 1px solid var(--line);
}

.contact-hero {
    padding-bottom: 36px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--warm);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

h1,
h2 {
    line-height: 1.3;
}

h1 {
    margin: 0;
    font-size: 2.4rem;
}

h2 {
    margin: 0 0 14px;
    font-size: 1.45rem;
}

p {
    margin: 0 0 14px;
}

.lead {
    max-width: 720px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 1.12rem;
}

.concept {
    color: var(--muted);
    font-style: italic;
}

.content-section {
    padding: 34px 24px; /* 左右に 24px の適切な余白を保持 */
    border-bottom: 1px solid var(--line);
}

table {
    width: 100%;
    margin-top: 16px;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    width: 30%;
    background: var(--surface);
    font-weight: 700;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.service-list li {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.contact-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 34px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.primary-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 0;
    border-radius: 6px;
    color: var(--white);
    background: var(--accent);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.primary-button:hover,
.primary-button:focus-visible {
    background: var(--accent-strong);
    outline: none;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    padding: 34px 0 0;
    align-items: start;
}

.form-panel,
.info-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.form-panel {
    padding: 28px;
}

.info-panel {
    padding: 24px;
    background: var(--surface);
}

.form-heading {
    margin-bottom: 22px;
}

.form-heading p,
.info-panel p,
.info-list dd {
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field-group {
    display: grid;
    gap: 8px;
}

.field-group.full,
.privacy-check.full {
    grid-column: 1 / -1;
}

label {
    font-weight: 700;
}

.required {
    margin-left: 6px;
    color: var(--accent);
    font-size: 0.78rem;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #cfd7cf;
    border-radius: 6px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

textarea {
    min-height: 180px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(15, 107, 94, 0.16);
}

.spam-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.privacy-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 400;
}

.privacy-check input {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin-top: 4px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

.primary-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.form-status {
    min-height: 28px;
    margin: 14px 0 0;
    font-weight: 700;
}

.form-status.is-success {
    color: var(--accent);
}

.form-status.is-error {
    color: #b42318;
}

.info-list {
    margin: 20px 0;
}

.info-list dt {
    margin-top: 16px;
    font-weight: 700;
}

.info-list dd {
    margin: 6px 0 0;
}

.text-link {
    color: var(--accent);
    font-weight: 700;
}

.site-footer {
    padding-top: 34px;
    color: var(--muted);
}

@media (max-width: 760px) {
    .page {
        padding: 20px 18px 36px;
    }

    .site-header,
    .contact-cta {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .hero {
        padding: 40px 0 32px;
    }

    h1 {
        font-size: 2rem;
    }

    .service-list,
    .contact-layout,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-panel,
    .info-panel,
    .contact-cta {
        padding: 20px;
    }

    .form-actions {
        justify-content: stretch;
    }

    .primary-button {
        width: 100%;
    }
}

@media (max-width: 560px) {
    th,
    td {
        display: block;
        width: 100%;
        padding: 12px;
    }

    th {
        border-bottom: 0;
    }
}
