/*
Theme Name: Fukuzawa
Description: 福澤建設 デモサイト
Version: 1.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    color: #333;
    line-height: 1.8;
    font-size: 16px;
    background: #fff;
}

a {
    color: #2a6496;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ヘッダー */
header {
    background: #d1eff9;
    color: #1a3a5c;
    padding: 20px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.site-title a {
    color: #1a3a5c;
    display: block;
}

.site-title a.site-logo-link {
    display: flex;
    align-items: center;
}

.site-logo-icon {
    display: block;
    height: 68px;
    width: auto;
}

.site-logo-divider {
    display: block;
    width: 2px;
    height: 40px;
    margin: 0 14px;
    background: #93aeb6;
}

.site-logo-text {
    display: block;
    height: 40px;
    width: auto;
}

.site-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-phone {
    font-size: 18px;
}

.site-phone a {
    color: #1a3a5c;
    font-weight: bold;
}

.site-contact-link a {
    color: #1a3a5c;
    padding: 8px 16px;
    border: 1px solid #1a3a5c;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
}

.site-contact-link a:hover {
    background: #1a3a5c;
    color: #fff;
    text-decoration: none;
}

/* お問い合わせフォーム */
.contact-message {
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.contact-message--success {
    background: #eaf7ea;
    color: #226622;
    border: 1px solid #b6e0b6;
}

.contact-message--error {
    background: #fdeaea;
    color: #a33;
    border: 1px solid #f0b8b8;
}

.contact-form {
    max-width: 560px;
}

.contact-field {
    margin-bottom: 20px;
}

.contact-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

.contact-field .required {
    color: #c33;
    font-size: 12px;
    font-weight: normal;
    margin-left: 4px;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
}

.contact-field-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.contact-submit {
    display: inline-block;
    background: #1a3a5c;
    color: #fff;
    border: none;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

.contact-submit:hover {
    background: #2a6496;
}

.contact-confirm-note {
    margin-bottom: 16px;
    font-weight: bold;
}

.contact-confirm-list dt {
    font-weight: bold;
    color: #1a3a5c;
    margin-top: 12px;
}

.contact-confirm-list dt:first-child {
    margin-top: 0;
}

.contact-confirm-list dd {
    margin-top: 4px;
    white-space: pre-wrap;
}

.contact-back {
    display: inline-block;
    background: #fff;
    color: #1a3a5c;
    border: 1px solid #1a3a5c;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

.contact-back:hover {
    background: #f0f4f8;
}

/* お問い合わせ確認モーダル */
body.contact-modal-open {
    overflow: hidden;
}

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

.contact-modal[hidden] {
    display: none;
}

.contact-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.contact-modal-box {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.contact-modal-box h3 {
    font-size: 18px;
    color: #1a3a5c;
    margin-bottom: 12px;
}

.contact-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* ヒーロー */
.hero {
    background: #f0f4f8;
    padding: 64px 0;
    text-align: center;
}

.hero-catch {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.6;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    color: #1a3a5c;
    border: none;
    padding: 0;
}

.hero-sub {
    font-size: 15px;
    color: #555;
}

/* メインコンテンツ */
main {
    padding-bottom: 60px;
}

/* セクション共通 */
section {
    padding: 48px 0;
    border-bottom: 1px solid #e8e8e8;
}

section:last-child {
    border-bottom: none;
}

section h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a3a5c;
    letter-spacing: 0.05em;
}

/* テーブル */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
    font-size: 15px;
}

table th,
table td {
    padding: 12px 16px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
    line-height: 1.7;
}

table th {
    background: #f4f6f8;
    font-weight: bold;
    width: 30%;
    white-space: nowrap;
}

thead th {
    background: #1a3a5c;
    color: #fff;
    width: auto;
}

/* 物件一覧 */
.property-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.property-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.property-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.property-item h3 {
    font-size: 15px;
    padding: 12px 12px 6px;
    line-height: 1.5;
}

.property-excerpt {
    font-size: 14px;
    color: #666;
    padding: 0 12px 12px;
    line-height: 1.7;
}

.properties-preview .container > p {
    text-align: right;
    margin-top: 8px;
}

/* 物件写真共通（スライダー・単体画像） */
.property-swiper,
.property-img-wrap,
.property-img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.property-img-placeholder {
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 13px;
}

.property-swiper .swiper-slide img,
.property-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.property-swiper .swiper-button-prev,
.property-swiper .swiper-button-next {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    color: #fff;
}

.property-swiper .swiper-button-prev::after,
.property-swiper .swiper-button-next::after {
    font-size: 13px;
    font-weight: bold;
}

/* 物件情報フィールド */
.property-info {
    padding: 12px;
}

.property-info h3 {
    font-size: 15px;
    margin-bottom: 8px;
}

.property-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    font-size: 14px;
    margin-bottom: 8px;
    color: #444;
}

.property-meta dt {
    font-weight: bold;
    white-space: nowrap;
    color: #1a3a5c;
}

.property-notes {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.property-notes strong {
    display: block;
    margin-bottom: 2px;
}

.back-link {
    margin-top: 32px;
}

/* 施工実績一覧 */
.construction-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.construction-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.construction-swiper,
.construction-img-wrap,
.construction-img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.construction-swiper .swiper-slide img,
.construction-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.construction-swiper .swiper-button-prev,
.construction-swiper .swiper-button-next {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    color: #fff;
}

.construction-swiper .swiper-button-prev::after,
.construction-swiper .swiper-button-next::after {
    font-size: 13px;
    font-weight: bold;
}

.construction-img-placeholder {
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 13px;
}

.construction-info {
    padding: 12px;
}

.construction-info h3 {
    font-size: 15px;
    margin-bottom: 8px;
}

.construction-date {
    font-size: 14px;
    font-weight: bold;
    color: #1a3a5c;
    margin-bottom: 8px;
}

.construction-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

.construction-preview .container > p {
    text-align: right;
    margin-top: 8px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    /* ヘッダー */
    header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .site-title {
        font-size: 17px;
    }

    .site-logo-icon {
        height: 44px;
    }

    .site-logo-divider {
        height: 28px;
        margin: 0 8px;
    }

    .site-logo-text {
        height: 26px;
    }

    .site-phone {
        font-size: 15px;
    }

    /* キャッチコピー */
    .hero {
        padding: 40px 0;
    }

    .hero-catch {
        font-size: 20px;
    }

    /* 物件グリッド */
    .property-list {
        grid-template-columns: 1fr;
    }

    /* 施工実績グリッド */
    .construction-list {
        grid-template-columns: 1fr;
    }

    /* テーブル */
    table {
        font-size: 13px;
    }

    table th {
        width: 35%;
    }

    /* セクション */
    section {
        padding: 32px 0;
    }

    section h2 {
        font-size: 18px;
    }
}

/* フッター */
footer {
    background: #1a3a5c;
    color: #ccc;
    padding: 24px 0;
    font-size: 14px;
    text-align: center;
}
