/* ========================================
   基本設定
======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        "Helvetica Neue",
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans",
        Meiryo,
        sans-serif;
    color: #333;
    line-height: 1.7;
    
    /* 全体背景 */
    background-image: url("../img/haikei.jpg");
    background-repeat: repeat;
    background-position: center top;
    background-size: auto;
    background-attachment: fixed;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}


/* ========================================
   共通レイアウト
======================================== */

.site-wrapper {
    width: 100%;
}

.section-inner {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}

section {
    padding: 70px 0;
}

section h2 {
    margin-bottom: 40px;
    font-size: 2rem;
    text-align: center;
}

section h2::after {
    content: "";
    display: block;

    width: 60px;
    height: 2px;

    margin: 10px auto 0;

    background-color: #b8b8b8;
    border-radius: 999px;
}


/* ========================================
   ヘッダー
======================================== */

.site-header {
    width: 100%;
    background-color: #eeeeee;
    border-bottom: 1px solid #ddd;
    overflow: visible;
}

.header-inner {
    width: min(1200px, calc(100% - 40px));
    min-height: 90px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.site-title {
    margin: 0;
    font-size: 1.6rem;
    white-space: nowrap;
}

.site-title a {
    display: block;
}


/* ========================================
   ナビゲーション
======================================== */

.nav-list {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;
    padding: 12px 0;

    font-size: 0.82rem;
    white-space: nowrap;

    transition:
        color 0.2s,
        opacity 0.2s,
        transform 0.2s;
}


/* ナビアイコン */

.nav-list a i {
    color: #789c90;
    font-size: 1.2rem;

    transition: transform 0.2s;
}


/* ホバー */

.nav-list a:hover {
    color: #789c90;
    opacity: 0.75;
}

.nav-list a:hover i {
    transform: translateY(-2px);
}

.nav-list li:last-child a {
    padding: 9px 15px;

    color: #fff;
    background-color: #7fa89a;

    border-radius: 12px;

    transition:
        background-color 0.2s,
        transform 0.2s;
}

.nav-list li:last-child a i {
    color: #fff;
}

.nav-list li:last-child a:hover {
    color: #fff;
    background-color: #6f9789;
    opacity: 1;

    transform: translateY(-2px);
}


/* ========================================
   メインビジュアル
======================================== */

.hero {
    min-height: 500px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background-image: url("../img/toppage.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-inner {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    margin: 0;

    color: #fff;

    font-family:
        "Yu Mincho",
        "Hiragino Mincho ProN",
        "Hiragino Mincho Pro",
        serif;

    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.12em;

    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);

    opacity: 0;
    transform: translateY(25px);

    animation: heroFadeIn 1.8s ease-out 0.3s forwards;
}


/* ふわっと浮かび上がる */

@keyframes heroFadeIn {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

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

}


/* ========================================
   共通ボタン
======================================== */

.button {
    display: inline-block;
    padding: 12px 30px;

    border: 1px solid #333;
    border-radius: 4px;

    background-color: #fff;

    transition:
        background-color 0.2s,
        color 0.2s;
}

.button:hover {
    color: #fff;
    background-color: #333;
}

/* ========================================
   SNSアイコン
======================================== */

.sns-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;

    margin-top: 20px;
}

.sns-links a {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 3.5rem;

    transition: transform 0.2s, opacity 0.2s;
}

.sns-links a:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

.shop .section-heading h2 {
    margin-bottom: 10px;
}

/* ========================================
   店舗紹介
======================================== */

.shop-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;

    margin-top: 40px;
}

.shop-text {
    flex: 0 1 430px;
}

.shop-image {
    flex: 0 1 500px;
}

.shop-image img {
    width: 100%;
    border-radius: 8px;
}

/* ========================================
   修理・引取案内
======================================== */

.repair-guide {
    margin-top: 50px;
    text-align: center;
}

.repair-guide p {
    margin-bottom: 15px;
}

.repair-guide .button {
    display: inline-block;

    padding: 12px 32px;

    color: #fff;
    background-color: #e8a9ad;

    border: none;
    border-radius: 999px;

    font-weight: bold;

    transition:
        background-color 0.2s,
        transform 0.2s;
}

.repair-guide .button:hover {
    color: #fff;
    background-color: #dc9298;
    transform: translateY(-2px);
}

/* ========================================
   イベント情報
======================================== */

.event-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;

    max-width: 1050px;
    margin: 0 auto;
}


/* イベントカード */

.event-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid #ead8c7;
    border-radius: 18px;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.event-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}


/* イベント画像 */

.event-image {
    position: relative;

    padding: 20px 20px 0;
}

.event-image img {
    width: 100%;
    height: 280px;

    margin: 0;

    object-fit: contain;

    background-color: #fff;
    border-radius: 12px;
}


/* 開催状況 */

.event-status {
    position: absolute;
    top: 32px;
    left: 32px;

    display: inline-block;

    padding: 5px 15px;

    color: #fff;
    background-color: #e8a985;

    border-radius: 999px;

    font-size: 0.8rem;
    font-weight: bold;

    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.1);
}


/* 終了イベント */

.event-status.ended {
    background-color: #aaa;
}

.event-ended {
    background-color: rgba(250, 250, 250, 0.88);
}


/* イベント本文 */

.event-content {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 25px 30px 30px;

    text-align: center;
}

.event-content h3 {
    margin-bottom: 14px;

    font-size: 1.2rem;
    line-height: 1.6;
}


/* 開催日 */

.event-date {
    margin-bottom: 18px;

    color: #b87859;
    font-weight: bold;
}

.event-date i {
    margin-right: 6px;
}


/* 説明 */

.event-text {
    margin-bottom: 25px;

    font-size: 0.95rem;
    line-height: 1.9;
}


/* 詳細ボタン */

.event-button {
    display: inline-block;

    margin-top: auto;
    padding: 11px 30px;

    align-self: center;

    color: #fff;
    background-color: #e8b07a;

    border-radius: 999px;

    font-size: 0.9rem;
    font-weight: bold;

    transition:
        background-color 0.2s,
        transform 0.2s;
}

.event-button:hover {
    color: #fff;
    background-color: #dc9d61;

    transform: translateY(-2px);
}

.event-button i {
    margin-left: 7px;

    font-size: 0.75rem;
}


/* スマホ */

@media (max-width: 768px) {

    .event-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .event-card {
        max-width: 500px;
        width: 100%;

        margin: 0 auto;
    }

    .event-image {
        padding: 15px 15px 0;
    }

    .event-image img {
        height: auto;
        max-height: 280px;
    }

    .event-status {
        top: 25px;
        left: 25px;
    }

    .event-content {
        padding: 20px 20px 25px;
    }

    .event-content h3 {
        font-size: 1.05rem;
    }

    .event-text {
        font-size: 0.9rem;
    }

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

/* ========================================
   ダイハク家具の特典
======================================== */

.benefit-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


/* 特典カード */

.benefit-card {
    position: relative;

    padding: 30px 25px;

    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #cbdcc5;
    border-radius: 18px;

    text-align: center;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.benefit-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09);
}


/* アイコン */

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;

    margin: 0 auto 18px;

    background-color: #eef8f4;
    border-radius: 50%;

    color: #6f998a;
    font-size: 1.6rem;
}


/* タイトル */

.benefit-card h3 {
    margin-bottom: 14px;

    font-size: 1.15rem;
}


/* 説明文 */

.benefit-card p {
    margin-bottom: 10px;

    font-size: 0.95rem;
    line-height: 1.8;
}


/* 強調する文字 */

.benefit-card .benefit-highlight {
    font-size: 1.1rem;
    font-weight: bold;
}


/* 小さい補足 */

.benefit-note {
    display: block;

    margin-top: 10px;

    color: #777;
    font-size: 0.8rem;
}


/* 無料バッジ */

.benefit-badge {
    display: inline-block;

    margin-top: 10px;
    padding: 4px 14px;

    background-color: #fff0f2;
    border-radius: 999px;

    color: #b96f79;
    font-size: 0.8rem;
    font-weight: bold;
}


/* カード内リンク */

.benefit-link {
    display: inline-block;

    margin-top: 10px;

    font-size: 0.85rem;
    text-decoration: underline;
}

.benefit-link:hover {
    opacity: 0.6;
}

.benefit-link i {
    margin-left: 4px;

    font-size: 0.7rem;
}

/* ========================================
   新着情報
======================================== */

.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;

    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.news-item dt {
    width: 180px;
    flex-shrink: 0;
    font-weight: bold;
    white-space: nowrap;
}

.news-item dd {
    margin: 0;
    flex: 1;
}

/* ========================================
   お支払方法
======================================== */

.payment-lead,
.payment-note {
    text-align: center;
}

/* 支払い方法 1段 */
.payment-group {
    display: flex;
    align-items: stretch;

    max-width: 1000px;
    margin: 0 auto 3px;

    border: 1px solid #d8c3d8;
    border-radius: 7px;

    overflow: hidden;
}

/* 左側の種類名 */
.payment-group h3 {
    width: 180px;
    flex-shrink: 0;

    margin: 0;
    padding: 25px 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #f1f7fb;
    border-right: 1px solid #d8c3d8;

    text-align: center;
    font-size: 1rem;
}

/* 右側のロゴ部分 */
.payment-logos {
    flex: 1;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;

    gap: 18px;
    padding: 20px 30px;

    background-color: #fff;
}

/* ロゴサイズ */
.payment-logos img {
    width: auto;
    max-width: 85px;
    max-height: 45px;
    object-fit: contain;
}

/* ========================================
   フッター
======================================== */

.site-footer {
    padding: 25px 0 15px;
    background-color: #eeeeee;
    text-align: center;
}

.footer-inner {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
}

.company-info h2 {
    margin: 0 0 15px;
    font-size: 1.6rem;
}

.company-info h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    margin: 8px auto 0;
    background-color: #b8b8b8;
    border-radius: 999px;
}

.company-info dl {
    max-width: 550px;
    margin: 0 auto 15px;
}

.company-item {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 2px 0;
}

.company-item dt {
    width: 100px;
    flex-shrink: 0;
    text-align: right;
    font-weight: bold;
}

.company-item dd {
    width: 300px;
    margin: 0;
    text-align: left;
}

.footer-links {
    margin: 12px 0;
}

.footer-links a {
    text-decoration: underline;
}

.copyright-note {
    margin: 8px 0;
    font-size: 0.85rem;
}

.copyright {
    margin: 0;
    font-size: 0.8rem;
}

.site-footer .company-info {
    padding: 0;
}

/* ========================================
   ページトップ
======================================== */

.page-top {
    padding: 30px 0;
    text-align: center;
}

.page-top a {
    display: inline-block;
    padding: 10px 28px;

    color: #fff;
    background-color: #aaa;

    border-radius: 999px;

    font-size: 0.9rem;

    transition:
        background-color 0.2s,
        transform 0.2s;
}

.page-top a:hover {
    background-color: #888;
    transform: translateY(-2px);
}

/* ハンバーガーボタン */
.menu-toggle {
    display: none;
}

/* ========================================
   タブレット・スマートフォン
======================================== */

@media (max-width: 768px) {

    .section-inner {
        width: min(100% - 30px, 1100px);
    }

    section {
        padding: 50px 0;
    }

    section h2 {
        margin-bottom: 30px;
        font-size: 1.6rem;
    }


    /* ヘッダー */

    .header-inner {
        position: relative;
        width: 100%;
        min-height: 70px;
        padding: 12px 15px;

        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;

        overflow: visible;
    }

    .site-title {
        font-size: 1.4rem;
        text-align: left;
    }


    /* ハンバーガーボタン */

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;

        width: 44px;
        height: 44px;
        padding: 8px;

        background: none;
        border: none;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;

        background-color: #789c90;
        border-radius: 999px;

        transition:
            transform 0.3s,
            opacity 0.3s;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }


    /* スマホナビ */

    .global-nav {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;

        width: 100%;

        background-color: #f7f7f7;
        border-top: 1px solid #ddd;
        box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
    }

    .global-nav.active {
        display: block;
    }

    .nav-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;

        width: min(500px, 100%);
        margin: 0 auto;
        padding: 15px;
    }

    .nav-list li {
        width: auto;
        text-align: center;
    }

    .nav-list a {
        padding: 14px 8px;
        font-size: 0.9rem;
    }

    .nav-list li:last-child a {
        margin: 5px;
    }


    /* メインビジュアル */

    .hero {
        min-height: 350px;
    }

    .hero-inner {
        width: calc(100% - 30px);
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }


    /* 店舗紹介 */

    .shop-content {
        flex-direction: column;
        gap: 30px;
        margin-top: 30px;
    }

    .shop-text,
    .shop-image {
        width: 100%;
    }


    /* イベント */

    .event-list {
        flex-direction: column;
        gap: 40px;
    }

    .event-card {
        width: 100%;
        max-width: none;
    }


    /* サービス */

    .benefit-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefit-card {
        padding: 25px 20px;
    }


    /* 新着情報 */

    .news-item {
        flex-direction: column;
        gap: 5px;
    }

    .news-item dt {
        width: auto;
    }
}

/* ========================================
   準備中ページ
======================================== */

.wait-message {
    max-width: 650px;
    margin: 30px auto;
    padding: 60px 30px;

    background-color: rgba(255, 255, 255, 0.9);

    border: 1px solid #ddd;
    border-radius: 12px;

    text-align: center;
}

.wait-message h2 {
    margin-bottom: 20px;

    font-size: 1.8rem;
}

.wait-message h2::after {
    display: none;
}

.wait-message p {
    margin-bottom: 35px;

    line-height: 2;
}

.wait-button {
    display: inline-block;

    padding: 12px 30px;

    background-color: #f5fffe;

    border: 1px solid #aaa;
    border-radius: 999px;

    transition:
        color 0.2s,
        background-color 0.2s;
}

.wait-button:hover {
    color: #fff;
    background-color: #888;
}


@media (max-width: 768px) {

    .wait-message {
        margin: 10px auto;
        padding: 45px 20px;
    }

    .wait-message h2 {
        font-size: 1.4rem;
    }

    .wait-message p {
        font-size: 0.9rem;
    }

}

