@charset "UTF-8";
/* =========================================================
   custom.css  串松亭（template111 反映用の上書き）
   ※テンプレ本体CSSは触らず、ここで調整する。
   ========================================================= */

/* --- 未定義CSS変数の補完（テンプレ既定が var(--bg-1) 等を参照しているため） --- */
:root {
    --bg-1: #ffffff;
    --brwon: #621c02; /* テンプレ側のタイポ対策 */
}

/* body 背景が未指定（var(--bg-1) 未定義）で沈むため明示 */
body {
    background: var(--bg-1);
}

/* --- メニュー下層のタブ：ランチ削除で3項目になったため3カラムに --- */
.menu__btn-list {
    grid-template-columns: repeat(3, 1fr);
}

/* --- TOPコンセプト見出し：既定の h2=2.6rem/800 を 2.4rem・800 で統一 --- */
.policy__txt-wrapper h2,
.policy__txt-wrapper h2 strong {
    font-size: max(20px, 2.4rem);
    font-weight: 800;
}

/* --- TOPメニュー：テキスト枠の余白を控えめに（広い画面のみ対象） --- */
@media (min-width: 1201px) {
    .menu__txt-wrapper {
        padding-top: 1.5rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .menu__list-item:nth-of-type(even) .menu__txt-wrapper {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* --- 縦型ロゴ：高さ基準でサイズ制御（width基準だと縦長で巨大化するため） --- */
.header .header__logo img {
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.footer__logo,
.footer__logo img {
    width: auto;
    height: auto;
}
.footer__logo img {
    max-height: 12rem;
    max-width: 8rem;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    /* フッターは黒地なので暗色ロゴが沈む→白く反転して表示 */
    filter: brightness(0) invert(1);
}

@media (min-width: 768px) {
    /* PC左サイドヘッダー（index）：縦サイドバー上部に縦組みロゴ */
    .header .header__logo {
        width: auto;
        margin: 2rem auto 4.4rem;
    }
    .header .header__logo img {
        max-height: 24rem;
        max-width: 7rem;
    }
    /* 下層ページの横ヘッダー：細く小さくなりすぎるので少し大きめに */
    .underlayer .header .header__logo {
        width: auto;
        margin: 2rem 0 2rem 3rem;
    }
    .underlayer .header .header__logo img {
        max-height: 14rem;
        max-width: 8rem;
    }
}

@media (max-width: 767px) {
    /* SP：左上の縦組みロゴ。小さすぎたので拡大 */
    .header .header__logo {
        width: auto;
        margin: 1rem 0 0 1rem;
    }
    .header .header__logo img {
        max-height: 20rem;
        max-width: 120px;
    }
    /* index TOPは濃色のMVの上にロゴが乗るため白へ反転して視認性を確保
       （下層ページのMVは白オーバーレイで明るいので濃色のまま） */
    body:not(.underlayer) .header__logo img {
        filter: brightness(0) invert(1);
    }
}

/* CMS article text uses the same Mincho family as the rest of the site. */
.CMS-NEWS-CONTENT, .CMS-NEWS-CONTENT * {
    font-family: var(--font-serif) !important;
}
/* Reserve enough space below the copyright for the mobile fixed buttons. */
@media (max-width: 768px) {
    body { padding-bottom: calc(max(50px, 6.4rem) + env(safe-area-inset-bottom, 0px)); }
    .fixed-btn { padding-bottom: env(safe-area-inset-bottom, 0px); background: #4c2500; }
}
