@charset "UTF-8";

/* =======================================================
    夢幻庵 トップページ用 CSS
    高級感：黒 × 深緑 × 金
    共通ヘッダー・フッター読み込み構造に対応
    ======================================================= */

/* ----------------- 基本スタイル ----------------- */
body {
    background-color: #000;          /* 黒ベース */
    color: #f5f5f0;                  /* 柔らかい白 */
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
}

/* ----------------- 見出し ----------------- */
h1, h2, h3 {
    font-family: 'Noto Serif JP', serif;
    color: #d4af37;                  /* 金 */
    margin: 0 0 20px 0;
    font-weight: 600;
    letter-spacing: 0.05em;
}


/* ----------------- セクション背景 ----------------- */
section {
    padding: 80px 0;
}

.section-dark {
    background: linear-gradient(180deg, #1f1f1f 0%, #2b2b2b 100%); /* 柔らかい濃グレーグラデ */
    color: #f5f5f5; /* 白より少し柔らかい文字色 */
    padding: 80px 10px;
    text-align: center;
}

.section-green { 
    background-color: #0b3d2e; 
    padding: 80px 10px; 
    text-align: center;
}

.section-lightgreen { 
    background-color: #7ec49d; 
    padding: 80px 0px; 
    text-align: center;
}

.section-white { 
    background-color: #ffffff; 
    padding: 80px 10px; 
    text-align: center;
}

#shop ul {
    list-style: none;
    padding-left: 0;
}

#sns img {
    height: 50px; 
    width: auto; 
    margin: 0 6px; 
}
/* ----------------- CTAボタン ----------------- */
.btn-gold {
    background-color: #cfa94a; /* ゴールド系 */
    color: #1f1f1f; /* 濃グレーとコントラスト */
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin: 10px 5px;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #e5c85b;
    transform: translateY(-2px);
}

/* ----------------- ヘッダー ----------------- */
header {
    background: #000;
    padding: 20px;
    border-bottom: 2px solid #d4af37;
}

header nav a {
    color: #f5f5f0;
    margin: 0 15px;
    text-decoration: none;
    font-weight: 500;
}

header nav a:hover {
    color: #d4af37;
}

/* ----------------- フッター ----------------- */
footer {
    background: #000;
    color: #aaa;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #333;
}

footer a {
    color: #d4af37;
    margin: 0 10px;
    text-decoration: none;
}

/* ----------------- 画像 ----------------- */
.full-width {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 40px auto;
}

/* ----------------- テキストリンク ----------------- */
a {
    color: #d4af37;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;            /* 高さを0にしてpadding-bottomで比率を作る */
    padding-bottom: 56.25%;   /* 16:9比率 */
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); /* 高級感のある影 */
    border-radius: 12px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

#sns div {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.youtube-container iframe {
    position: relative;
    z-index: 1;
}

#top {
    height: 1px; /* 1pxでもOK */
}

/* 共通化して全ページに効かせると楽 */
.cta-group {
    display: flex;
    justify-content: center; /* 中央寄せ */
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 30px auto;
    text-align: center;
    width: 100%;      /* ← 親幅に依存せず中央寄せ */
    max-width: 100%;  /* ← はみ出し防止 */
}


.cta-group .btn-gold {
    display: inline-block;
    min-width: 180px;
    max-width: 220px;
    padding: 12px 20px;
    font-size: 1rem;
}

/*　動画レスポンシブ対応　*/

/* 共通：iframeの幅はコンテナに合わせる */
.video-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* PC用横長動画（16:9） */
.pc-only {
    width: 100%;
    max-width: 800px; /* 任意で上限設定 */
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比率 */
    height: 0;
}

.pc-only iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* スマホ用縦長動画（9:16） */
.sp-only {
    width: 90%;
    max-width: 360px; /* 任意で上限設定 */
    margin: 0 auto;
    position: relative;
    padding-bottom: 177.78%; /* 9:16 比率 */
    height: 0;
}

.sp-only iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* メディアクエリで表示切替 */
/* PC表示：幅501px以上 */
@media (min-width: 501px) {
    .sp-only { display: none; }
}

/* スマホ表示：幅500px以下 */
@media (max-width: 500px) {
    .pc-only { display: none; }
}

/* --------------------- */


@media (max-width: 768px) {

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    /* --- アンカー補正（必ずCSSの最後あたりに置く） --- */

    :root { --headerHeight: 60px; } /* ヘッダー高さのデフォルト */
    html {
      scroll-padding-bottom: 80px;
    }


    /* IDを持つ要素だけ余白をつける */
    [id] {
        scroll-margin-top: calc(var(--headerHeight) + 5px);
    }

    /* トップの見出し */
    .top-heading {
        padding-top: calc(var(--headerHeight) + 5px); /* 余白を最小に */
    }

    
    /* =============================
       縦長動画のスマホ対応
       ============================= */


    .video-container {
        position: relative;
        width: calc(100% - 40px); /* 画面幅から左右の余白を引く */
        max-width: 480px;          /* 任意で最大幅 */
        margin: 0 auto 20px auto;  /* 中央寄せ */
        aspect-ratio: 9 / 16;
        overflow: hidden;
    }

    .video-container iframe {
        position: absolute;  /* 親に対して絶対位置 */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;      /* 縦横比を親に合わせる */
        border: none;
    }

    /* 画像をレスポンシブに調整 */
    img {
        width: 100%;
        height: auto;
        object-fit: cover;
        aspect-ratio: auto;
    }

      /* SNSセクション調整 */
    .section-white {
        padding-bottom: 0; /* 他セクションの影響を抑える */
    }

    #sns {
        padding-top: 32px;       /* 上の余白（適度） */
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    #sns .wrapper {
        padding-top: 0;
        padding-bottom: 0;       /* wrapperデフォルトの余白を消す */
    }

    #sns .sub-title {
        margin-bottom: 12px;     /* 見出し下の余白を抑える */
    }

    #sns div {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;          /* スマホでも折り返し */
        gap: 8px;                 /* アイコン間の間隔 */
        margin: 0;                /* 下余白を完全に削除 */
        padding: 0;
    }

    #sns img {
        height: 40px;             /* 統一サイズ */
        width: auto;
        display: inline-block;
        margin: 0;                /* gapで調整するので不要 */
    }

    .section-lightgreen {
      padding-bottom: 80px; /* セクション全体の下余白を増やす */
    }

    #contact .wrapper {
        display: block;
        width: 100%;
        text-align: center; /* 中央揃え */
    }
        
    .contact-info {
        width: 100%;
        padding: 0;
        text-align: center; /* 中央揃え */
    }  
    
    .contact-info p {
        padding: 12px 10px;
    }

    .contact-img {
        display: inline-block; /* 横幅に応じて中央寄せ */
        text-align: center;
        font-size: 1.2rem;
        background: rgb(16, 163, 23);
        color: #fff;
        border-radius: 50px;
        height: auto;
        padding: 4% 10%;
        box-sizing: border-box;
        margin: 0 auto 20px auto; /* 中央揃え */
    }

    /* 電話問い合わせ */
    .contact-tel {
        width: 100%;
        text-align: center; /* 中央揃え */
        font-weight: bold;
        margin-top: 20px;
    }

    .contact-tel h2 {
        font-family: 'Calibri';
        color: #fff;
        font-size: 1.5rem;
        margin: 0 0 5px 0;
    }

    .contact-tel p {
        color: #fff;
        font-size: 0.9rem;
        margin: 0;
    }

    .contact-tel p:last-child {
        margin-bottom: 30px !important;
    }

    /* フォームボタン */
    .contact-form {
        width: 100%;
        text-align: center; /* ボタンも中央揃え */
        font-weight: bold;
        margin-bottom: 20px;
        position: relative;
    }

    .contact-form .button {
        display: inline-block;
        width: 260px;
        height: 40px;
        padding: 7px 10px;
        background: rgb(255, 255, 255);
        color: #ff9100;
        border-radius: 100px;
        margin-top: 10px;
        z-index: 1;
    }

    .contact-form .button:hover {
        background: #ff9100;
        color: #ffffff;
    }    

    /* SNSセクションの下余白をゼロに */
    .section-white:last-of-type {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    /* Page Topボタンの下余白をなくす */
    #page-top {
        margin-bottom: 0;
    }

    /* トップページ限定で、最後のセクションとフッターの隙間をゼロに */
    #home section:last-of-type {
      margin-bottom: 0 !important;
      padding-bottom: 0 !important;
    }

    /* mainタグの下余白をゼロに（ブラウザデフォルト対策） */
    main {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    /* footer直前の不要な余白除去 */
    main + footer,
    main + #page-top + footer {
        margin-top: 0;
        padding-top: 0;

    }

    /* フッターの下の余白を完全に削除 */
    footer {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    /* bodyの下余白を削除（ブラウザデフォルト対策） */
    body {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    /* ページ全体をフッターで閉じる */
    html, body {
        height: auto;
    }    
}

/* ---- .cta-group 内のボタンが正方形化する不具合を防ぐ（上書き） ---- */
@media screen and (max-width: 768px) {
    .cta-group {
        display: flex;
        flex-direction: column;
        align-items: center !important; /* 伸長を防ぐ */
        gap: 12px;
        width: 100%;
    }

    /* 強めの上書きで「伸びる/正方形化」を止める */
    .cta-group .btn-gold {
        display: inline-flex !important;  /* テキスト中央揃えを安定させる */
        justify-content: center;
        align-items: center;
        flex: 0 0 auto !important;         /* grow/shrink を無効化 */
        align-self: center !important;     /* 親の影響で伸ばされないように */
        width: auto !important;            /* 幅は内容＋min-widthで決める */
        min-width: 160px !important;       /* 必要なら値を調整 */
        max-width: 92% !important;         /* 画面に収まるように */
        padding: 10px 22px !important;     /* 高さを自然にする */
        height: auto !important;           /* 固定高さが効いていたら解除 */
        aspect-ratio: auto !important;     /* もし1/1が効いてたら解除 */
        white-space: nowrap !important;    /* テキストは折り返さない */
        line-height: 1.3 !important;
        box-sizing: border-box !important;
    }

    /* トップページ CTA スマホ版（story.css準拠） */
    #home .cta-group {
        display: flex;
        flex-direction: column; /* 縦積みにする */
        align-items: center;    /* 中央揃え */
        gap: 12px;              /* ボタン間の隙間 */
        width: 100%;
    }

    #home .cta-group .btn-gold {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        flex: 0 0 auto;         /* 幅固定を防ぐ */
        min-width: 160px;
        max-width: 92%;         /* 画面幅に収める */
        padding: 10px 22px;
        height: auto;
        white-space: nowrap;
        box-sizing: border-box;
    } 
}