@charset "UTF-8";
/* ============================================================
   しめ縄ページ 上部固定バー（.shimenawa-fixedbar--top）
   ------------------------------------------------------------
   出所 : 現行 category-shimenawa.php の 853〜1361 行目にあった
          インライン <style> ブロック（2026-09-10 取得の現物）。
          そのうち「上部固定バーとハンバーガーに関係する規則だけ」を
          抜き出して外部ファイル化したもの。

   移植していないもの（意図的に除外）
     - 下部固定バー一式（.shimenawa-fixedbar--bottom / __inner--bottom /
       __bottom-row / __btn--line-bottom / __bottom-tel-pc-* / __note /
       .shimenawa-bottom-btn / .shimenawa-bottom-bubble /
       .shimenawa-bottom-pc-only / .shimenawa-bottom-sp-only）
       → A案では .nt-shimenawa .sticky-tel が同じ役割を担うため
     - html{margin:0;padding:0} と body{margin:0}
       → style.css 冒頭の Eric Meyer リセットが同じ指定を持つため重複させない
     - .sp-menu / .sp-hunberger の基本スタイル
       → style.css:564〜626・2543〜2562 にあるものをそのまま使う。
         ここに置くのは固定バー内へ収めるための打ち消し1つだけ

   現行からの変更点
     - body{padding-top:…} → body.nt-shimenawa-page{padding-top:…}
       （テンプレートが <body class="nt-shimenawa-page"> を出す）
     - body の padding-bottom（下部バー用の余白）は削除
     - :root から --shimenawa-fixedbar-bottom を削除
     - html{scroll-padding-top:…} を追加（下部の「追加した規則」参照）

   このバーを外すときは、テンプレートの
   <!-- nt-topbar:start --> 〜 <!-- nt-topbar:end --> を削除し、
   このファイルの <link> 1行も削除する。
   ============================================================ */

:root {
    --shimenawa-fixedbar-top: 72px;
}

/* 固定バーの分だけ本文を押し下げる（現行は body 直指定だった） */
body.nt-shimenawa-page {
    padding-top: calc(var(--shimenawa-fixedbar-top) + env(safe-area-inset-top, 0px));
}

/* ---- 追加した規則（現行には無い） --------------------------------
   ページ内リンク（#s1 など）で飛んだとき、見出しが固定バーの下に
   潜り込まないようにする。現行ページは #アンカーを使っていないため
   この指定が無くても成立していた。 */
html {
    scroll-padding-top: calc(var(--shimenawa-fixedbar-top) + env(safe-area-inset-top, 0px) + 8px);
}

/* ---- ここから下は現行 853〜1361 行目からの移植 -------------------- */

.shimenawa-fixedbar {
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 10050;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.shimenawa-fixedbar--top {
    top: 0;
    /* ノッチ上まで背景で塗り、上に白隙間が見えないようにする */
    padding-top: env(safe-area-inset-top, 0px);
    min-height: var(--shimenawa-fixedbar-top);
    height: auto;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    /* 内側が min-height より低いとき、ブロック配置だと上寄りになるため縦中央に */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shimenawa-fixedbar__inner {
    height: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.shimenawa-fixedbar--top .shimenawa-fixedbar__inner {
    height: auto;
    min-height: 52px;
    flex: 0 0 auto;
    width: 100%;
}

.shimenawa-fixedbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex: 0 0 auto;
}

.shimenawa-fixedbar__brand img {
    display: block;
    height: 44px;
    width: auto;
}

.shimenawa-fixedbar__brand-text {
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    font-size: 32px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.shimenawa-fixedbar__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

/* 電話番号を並べるだけにせず、電話で何が分かるかを添える（2026-09-10 宮内の指示）。
   スマホは幅がないため非表示にし、772px以上でだけ出す */
.nt-bar-benefit {
    display: none;
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
    text-align: right;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

.shimenawa-fixedbar__ctas {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    min-width: 0;
}

/* ハンバーガーは右ブロック内で CTA と横並び（style.css の fixed+top は打ち消す）。
   .sp-menu の見た目そのもの（丸・線・open時の×）は style.css 側の定義を使う */
.shimenawa-fixedbar__right .sp-menu {
    position: relative;
    top: auto !important;
    right: auto !important;
    flex-shrink: 0;
    align-self: center;
    margin: 0;
}

.shimenawa-fixedbar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 16px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.04em;
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    white-space: nowrap;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.shimenawa-fixedbar__btn:hover,
.shimenawa-fixedbar__btn:focus {
    transform: translateY(-1px);
    opacity: 0.95;
    color: #fff;
    text-decoration: none;
}

.shimenawa-fixedbar__btn--tel {
    background: linear-gradient(135deg, #c9a24a 0%, #8a6d2e 100%);
}

.shimenawa-fixedbar__btn--line {
    background: #06c755;
}

.shimenawa-fixedbar__btn--mail {
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.shimenawa-fixedbar__btn--mail:hover,
.shimenawa-fixedbar__btn--mail:focus {
    color: #111;
    opacity: 0.95;
}

/* スマホ専用ボタン: PCでは非表示 */
.shimenawa-fixedbar__btn--tel-sp {
    display: none;
}

/* PC専用: 電話で相談 + 番号（772px以上で表示） */
.shimenawa-fixedbar__btn--tel-pc {
    display: none;
}

@media screen and (min-width: 772px) {
    .nt-bar-benefit {
        display: block;
        line-height: 1.35;
        white-space: nowrap;
    }

    .nt-bar-benefit b {
        display: block;
        font-size: 13.5px;
        font-weight: 700;
        color: #fff;
    }

    .nt-bar-benefit span {
        display: block;
        font-size: 11.5px;
        font-weight: 400;
        color: #f3e3b8;
        opacity: 1;
    }

    .shimenawa-fixedbar__btn--tel-pc {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        height: auto;
        min-height: 46px;
        padding: 8px 16px;
        white-space: normal;
        font-size: 12px;
        line-height: 1.25;
    }

    .shimenawa-fixedbar__btn--tel-pc .shimenawa-fixedbar__tel-num {
        font-size: 15px;
        font-weight: 800;
        letter-spacing: 0.02em;
    }
}

/* max-width: 771px に合わせる (style.css と統一) */
@media screen and (max-width: 771px) {
    :root {
        --shimenawa-fixedbar-top: 68px;
    }

    /* トップバー: 画面幅の左50%＝ブランド、右50%＝CTA（ハンバーガーは右列内で回避） */
    .shimenawa-fixedbar--top .shimenawa-fixedbar__inner {
        display: grid;
        grid-template-columns: minmax(0, 50vw) minmax(0, 1fr);
        align-items: center;
        column-gap: 0;
        padding-left: max(10px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
        box-sizing: border-box;
        width: 100%;
    }

    .shimenawa-fixedbar__brand img {
        height: 28px;
    }

    .shimenawa-fixedbar--top {
        min-height: var(--shimenawa-fixedbar-top);
        padding-bottom: 0;
        box-sizing: border-box;
    }

    /* 右50%列: CTA + ハンバーガーをまとめて右寄せ */
    .shimenawa-fixedbar--top .shimenawa-fixedbar__right {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
        min-width: 0;
        max-width: 100%;
    }

    .shimenawa-fixedbar--top .shimenawa-fixedbar__ctas {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
        margin-left: 0;
        min-width: 0;
        flex: 1 1 auto;
        max-width: calc(100% - 48px);
        box-sizing: border-box;
    }

    .shimenawa-fixedbar__btn--mail {
        display: none !important;
    }

    .shimenawa-fixedbar__btn--tel-sp {
        display: inline-flex !important;
    }

    .shimenawa-fixedbar--top .shimenawa-fixedbar__btn {
        height: 32px;
        padding: 0 6px;
        font-size: 10px;
        border-radius: 999px;
        letter-spacing: 0.02em;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
        flex: 0 1 auto;
        min-width: 0;
        max-width: 48%;
        box-sizing: border-box;
    }

    /* 左50vw内に7文字が収まる最大サイズ（ロゴ28px+gap10pxを差し引き、上限はロゴに合わせ28px） */
    .shimenawa-fixedbar--top .shimenawa-fixedbar__brand {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        align-items: center;
    }

    .shimenawa-fixedbar--top .shimenawa-fixedbar__brand-text {
        font-size: clamp(12px, calc((50vw - 38px) / 7.35), 28px);
        letter-spacing: 0.01em;
        line-height: 1;
        white-space: nowrap;
        text-align: left;
    }
}
