@charset "utf-8";

/* ==================================================================
   万屋 楽 Luck  リニューアル版スタイル
   - 旧 base.css / style.css は読み込みません（このファイル1本で完結）
   - 色・余白・角丸は先頭の変数でまとめて調整できます
   ================================================================== */

:root {
    --ink:        #1f1f1f;   /* 本文の黒 */
    --ink-soft:   #5a5f66;   /* 補足テキスト */
    --accent:     #0088cc;   /* 既存サイトのキーカラー */
    --accent-dk:  #00699e;
    --orange:     #ed9b1f;   /* 差し色 */
    --line:       #06c755;   /* LINE ブランド色 */
    --bg:         #ffffff;
    --bg-soft:    #f5f7f9;
    --border:     #e3e7ec;

    --radius:     18px;
    --radius-lg:  26px;
    --shadow:     0 4px 20px rgba(20, 30, 45, .07);
    --shadow-mid: 0 10px 30px rgba(20, 30, 45, .12);
    --shadow-up:  0 18px 40px rgba(20, 30, 45, .18);

    --header-h:   76px;
    --inner:      1080px;

    --font:       'M PLUS 1p', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Meiryo, sans-serif;
    --font-round: 'M PLUS Rounded 1c', var(--font);
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
    margin: 0;
    padding: 0;
}
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
address { font-style: normal; }
[hidden] { display: none !important; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.9;
    color: var(--ink);
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 300;
    padding: 10px 18px;
    background: var(--ink);
    color: #fff;
}
.skip-link:focus { left: 0; }

.inner {
    width: min(92%, var(--inner));
    margin-inline: auto;
}
.only-sp { display: none; }


/* ==================================================================
   ヘッダー
   ================================================================== */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: height .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
    height: 62px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 2px 14px rgba(20, 30, 45, .09);
    border-bottom-color: var(--border);
}
.header-inner {
    width: min(94%, 1240px);
    height: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-logo { flex: 0 0 auto; }
.header-logo img {
    width: auto;
    height: 40px;
    transition: height .25s ease;
}
.site-header.is-scrolled .header-logo img { height: 33px; }

.gnav {
    display: flex;
    gap: 4px;
    margin-left: auto;
}
.gnav a {
    position: relative;
    padding: 8px 13px;
    font-size: .92rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 999px;
    transition: color .2s ease, background-color .2s ease;
}
.gnav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width .25s ease;
}
.gnav a:hover { color: var(--accent); }
.gnav a:hover::after,
.gnav a.is-current::after { width: 22px; }
.gnav a.is-current { color: var(--accent); }

.header-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}
.sns-btn {
    display: block;
    width: 34px;
    transition: transform .2s ease, opacity .2s ease;
}
.sns-btn:hover { transform: translateY(-2px); opacity: .8; }

.header-tel {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.25;
    padding: 7px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dk));
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 136, 204, .3);
    transition: transform .2s ease, box-shadow .2s ease;
}
.header-tel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 136, 204, .38);
}
.header-tel-label { font-size: .62rem; letter-spacing: .12em; opacity: .9; }
.header-tel-num   { font-family: var(--font-round); font-size: 1.02rem; font-weight: 800; letter-spacing: .02em; }

/* ハンバーガー */
.nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
}
.nav-toggle span {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .28s ease, opacity .2s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(15, 20, 28, .45);
    opacity: 0;
    transition: opacity .3s ease;
}
.nav-overlay.is-open { opacity: 1; }


/* ==================================================================
   ヒーロー
   ================================================================== */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 54px) 0 90px;
    overflow: hidden;
    background:
        radial-gradient(1000px 520px at 78% -8%, rgba(0, 136, 204, .13), transparent 62%),
        radial-gradient(760px 460px at 10% 12%, rgba(237, 155, 31, .13), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
}
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.hero-deco span {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .5;
    animation: floaty 9s ease-in-out infinite;
}
.hero-deco span:nth-child(1) { width: 190px; height: 190px; left: 4%;  top: 22%; background: rgba(0, 136, 204, .12); }
.hero-deco span:nth-child(2) { width: 120px; height: 120px; right: 8%; top: 16%; background: rgba(237, 155, 31, .16); animation-delay: -3s; }
.hero-deco span:nth-child(3) { width: 240px; height: 240px; right: -4%; bottom: 4%; background: rgba(0, 136, 204, .09); animation-delay: -6s; }
@keyframes floaty {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-22px) scale(1.05); }
}

.hero-inner {
    position: relative;
    width: min(92%, 900px);
    margin-inline: auto;
    text-align: center;
}
.hero-catch {
    font-family: var(--font-round);
    font-size: clamp(1.5rem, 4.2vw, 2.3rem);
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--accent);
    opacity: 0;
    animation: fadeUp .9s ease .1s forwards;
}
.hero-logo {
    position: relative;
    width: min(72%, 330px);
    margin: 18px auto 22px;
    aspect-ratio: 485 / 588;
}
.hero-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
}
.hero-logo img:nth-child(1) { animation: fadeIn 1.4s ease .45s forwards; }
.hero-logo img:nth-child(2) { animation: fadeIn 1.4s ease .85s forwards; }
.hero-logo img:nth-child(3) { animation: fadeIn 1.4s ease 1.25s forwards; }

.hero-lead {
    font-family: var(--font-round);
    font-size: clamp(1.15rem, 3.3vw, 1.6rem);
    font-weight: 700;
    line-height: 1.6;
    opacity: 0;
    animation: fadeUp .9s ease 1.5s forwards;
}
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    opacity: 0;
    animation: fadeUp .9s ease 1.7s forwards;
}
.hero-badges li {
    padding: 6px 16px;
    font-size: 1.02rem;   /* 2026-09-13 先方依頼で 120%（元 .85rem） */
    font-weight: 700;
    color: var(--accent-dk);
    background: #fff;
    border: 1px solid rgba(0, 136, 204, .28);
    border-radius: 999px;
    box-shadow: var(--shadow);
}
.hero-area {
    margin-top: 16px;
    font-size: .92rem;
    color: var(--ink-soft);
    opacity: 0;
    animation: fadeUp .9s ease 1.85s forwards;
}

.hero-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
    opacity: 0;
    animation: fadeUp .9s ease 2s forwards;
}
.btn {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 268px;
    padding: 14px 26px;
    border-radius: 999px;
    color: #fff;
    text-align: left;
    box-shadow: var(--shadow-mid);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); filter: brightness(1.05); }
.btn img { width: 30px; flex: 0 0 auto; }
.btn span { display: flex; flex-direction: column; line-height: 1.3; }
.btn em     { font-style: normal; font-size: .72rem; letter-spacing: .1em; opacity: .92; }
.btn strong { font-family: var(--font-round); font-size: 1.28rem; font-weight: 800; letter-spacing: .02em; }
.btn-tel  { background: linear-gradient(135deg, var(--accent), var(--accent-dk)); }
.btn-line { background: linear-gradient(135deg, #0ad46a, var(--line)); }

.hero-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 44px;
    font-size: .68rem;
    letter-spacing: .22em;
    color: var(--ink-soft);
    opacity: 0;
    animation: fadeUp .9s ease 2.2s forwards;
}
.hero-scroll::after {
    content: "";
    width: 1px;
    height: 46px;
    background: linear-gradient(180deg, var(--accent), transparent);
    animation: scrollLine 1.9s ease-in-out infinite;
}
@keyframes scrollLine {
    0%       { transform: scaleY(0); transform-origin: top; }
    45%      { transform: scaleY(1); transform-origin: top; }
    46%,100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}


/* ==================================================================
   セクション共通
   ================================================================== */
.section {
    padding: 84px 0;
    scroll-margin-top: var(--header-h);
}
.section-service,
.section-greeting { background: var(--bg-soft); }

.ttl {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 46px;
    font-family: var(--font-round);
    font-size: clamp(1.5rem, 4vw, 2.05rem);
    font-weight: 800;
    letter-spacing: .05em;
    text-align: center;
}
.ttl-en {
    margin-bottom: 4px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .3em;
    color: var(--accent);
}
.ttl::after {
    content: "";
    width: 46px;
    height: 4px;
    margin-top: 14px;
    background: linear-gradient(90deg, var(--accent), var(--orange));
    border-radius: 4px;
}

/* スクロールで出現
   ★ html に .js-reveal が付いたときだけ隠します。
     （JSが動かない環境で本文が透明のまま残らないようにするため。
       このクラスは app2026.js が「表示処理を必ず行える」と判断してから付けます） */
.js-reveal .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}
.js-reveal .reveal.is-shown { opacity: 1; transform: none; }


/* ==================================================================
   お問い合わせカード
   ================================================================== */
.section-cta { padding-top: 70px; }
.cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 18px 26px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-up);
    border-color: rgba(0, 136, 204, .35);
}
.cta-card img { width: 42px; margin-bottom: 12px; }
.cta-card-line img { width: 46px; }
.cta-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--ink-soft);
}
.cta-value {
    font-family: var(--font-round);
    font-size: 1.42rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--accent-dk);
    word-break: break-all;
}
.cta-value-mail { font-size: 1.02rem; }
.cta-card-line .cta-value { color: #05a648; }
.cta-note { margin-top: 6px; font-size: .78rem; color: var(--ink-soft); }

.qr-block {
    width: min(60%, 240px);
    margin: 30px auto 0;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.qr-block:hover { transform: translateY(-4px); box-shadow: var(--shadow-mid); }


/* ==================================================================
   サービス一覧
   ================================================================== */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}
/* 2026-09-13 項目が10個になったので、広いPCでは 5列×2段 で揃える（auto-fit のままだと 4+4+2 になる） */
@media screen and (min-width: 1100px) {
    .service-list { grid-template-columns: repeat(5, 1fr); }
}
.service-list li {
    --c: var(--accent);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: var(--c); /* color-mix 非対応ブラウザ向けのフォールバック */
    background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 72%, #000 28%));
    color: #fff;
    font-family: var(--font-round);
    font-size: 1.02rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.35;
    box-shadow: 0 6px 16px rgba(20, 30, 45, .13);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.service-list li::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,0) 46%);
    opacity: 0;
    transition: opacity .3s ease;
}
.service-list li:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 14px 28px rgba(20, 30, 45, .2);
}
.service-list li:hover::before { opacity: 1; }
.service-list li span { position: relative; }

.service-note {
    margin: 34px auto 0;
    font-size: 1.02rem;
    text-align: center;
}
.service-illust { margin-top: 26px; }


/* ==================================================================
   ご利用の流れ
   ================================================================== */
.flow-list {
    position: relative;
    width: min(100%, 780px);
    margin-inline: auto;
    padding-left: 4px;
}
.flow-list::before {
    content: "";
    position: absolute;
    left: 33px;
    top: 30px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), rgba(0, 136, 204, .12));
}
.flow-list li {
    position: relative;
    display: flex;
    gap: 22px;
    padding-bottom: 26px;
}
.flow-list li:last-child { padding-bottom: 0; }
.flow-num {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dk));
    color: #fff;
    font-family: var(--font-round);
    font-size: 1.75rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0, 136, 204, .3);
}
.flow-body {
    flex: 1 1 auto;
    padding: 16px 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.flow-list li:hover .flow-body { transform: translateX(4px); box-shadow: var(--shadow-mid); }
.flow-body h3 {
    font-family: var(--font-round);
    font-size: 1.14rem;
    font-weight: 800;
    color: var(--accent-dk);
    line-height: 1.5;
}
.flow-body p { margin-top: 4px; font-size: .95rem; color: var(--ink-soft); }


/* ==================================================================
   ご利用料金
   ================================================================== */
.price-box {
    width: min(100%, 840px);
    margin-inline: auto;
    padding: 40px 44px;
    background: linear-gradient(160deg, #fff 0%, #f8fbfd 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.price-catch {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 2px dashed var(--border);
    font-family: var(--font-round);
    font-size: clamp(1.05rem, 2.6vw, 1.28rem);
    font-weight: 800;
    line-height: 1.6;
    color: var(--accent-dk);
    text-align: center;
}
.price-box p { font-size: .98rem; }


/* ==================================================================
   ごあいさつ
   ================================================================== */
.greeting-wrap {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
    width: min(100%, 940px);
    margin-inline: auto;
}
.greeting-photo { text-align: center; }
.greeting-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: var(--shadow-mid);
}
.greeting-photo figcaption {
    margin-top: 14px;
    font-family: var(--font-round);
    font-weight: 700;
    color: var(--accent-dk);
}
.greeting-text p + p { margin-top: 16px; }
.greeting-text p:first-child {
    font-family: var(--font-round);
    font-size: 1.1rem;
    font-weight: 700;
}


/* ==================================================================
   施工事例
   ================================================================== */
.works-note { margin-bottom: 28px; text-align: center; }
.works-hint {
    display: inline-block;
    margin-top: 6px;
    font-size: .84rem;
    color: var(--ink-soft);
}
.works-hint em {
    font-style: normal;
    font-weight: 700;
    color: var(--accent-dk);
}
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.work-item {
    display: block;
    width: 100%;
    text-align: left;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.work-item:hover,
.work-item:focus-visible {
    transform: translateY(-5px);
    box-shadow: var(--shadow-up);
}
.work-thumb {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-soft);
}
.work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.work-item:hover .work-thumb img { transform: scale(1.07); }

/* --- Before / After のクロスフェード --------------------------------
   PC … マウスを乗せると After に切り替わる
   スマホ … ホバーが無いので、ゆっくり自動で切り替える
   ------------------------------------------------------------------ */
.work-thumb.has-ba .thumb-a {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .55s ease, transform .5s cubic-bezier(.2, .7, .3, 1);
}
.ba-tag {
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 3px 11px;
    font-family: var(--font-round);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .1em;
    color: #fff;
    border-radius: 999px;
    transition: opacity .4s ease;
}
.ba-tag-b { background: rgba(31, 31, 31, .78); }
.ba-tag-a { background: rgba(0, 136, 204, .9); opacity: 0; }

@media (hover: hover) {
    .work-item:hover .thumb-a  { opacity: 1; }
    .work-item:hover .ba-tag-b { opacity: 0; }
    .work-item:hover .ba-tag-a { opacity: 1; }
}
@media (hover: none) {
    .work-thumb.has-ba .thumb-a { animation: baSwap 6s ease-in-out infinite; }
    .work-thumb.has-ba .ba-tag-b { animation: baTagB 6s ease-in-out infinite; }
    .work-thumb.has-ba .ba-tag-a { animation: baTagA 6s ease-in-out infinite; }
}
@keyframes baSwap {
    0%, 42%   { opacity: 0; }
    50%, 92%  { opacity: 1; }
    100%      { opacity: 0; }
}
@keyframes baTagB {
    0%, 42%   { opacity: 1; }
    50%, 92%  { opacity: 0; }
    100%      { opacity: 1; }
}
@keyframes baTagA {
    0%, 42%   { opacity: 0; }
    50%, 92%  { opacity: 1; }
    100%      { opacity: 0; }
}

.work-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 3px 10px;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: #fff;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}
.work-badge-ba  { background: rgba(31, 31, 31, .72); }
.work-badge-new { background: rgba(237, 155, 31, .92); }

.work-zoom {
    position: absolute;
    inset: 0;
    background: rgba(0, 136, 204, .3);
    opacity: 0;
    transition: opacity .3s ease;
}
.work-zoom::before,
.work-zoom::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: #fff;
    border-radius: 2px;
    transform: translate(-50%, -50%);
}
.work-zoom::before { width: 26px; height: 3px; }
.work-zoom::after  { width: 3px; height: 26px; }
.work-item:hover .work-zoom,
.work-item:focus-visible .work-zoom { opacity: 1; }

.work-cap {
    display: block;
    padding: 12px 14px 14px;
    line-height: 1.45;
}
.work-cap em {
    display: block;
    font-style: normal;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--accent);
}
.work-cap strong {
    display: block;
    font-family: var(--font-round);
    font-size: 1rem;
    font-weight: 800;
}
.work-cap small { font-size: .76rem; color: var(--ink-soft); }

.works-insta { margin-top: 40px; }
.insta-card {
    display: flex;
    align-items: center;
    gap: 20px;
    width: min(100%, 720px);
    margin-inline: auto;
    padding: 22px 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.insta-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-mid); }
.insta-card img { width: 56px; flex: 0 0 auto; }
.insta-card span { font-size: .92rem; color: var(--ink-soft); line-height: 1.7; }
.insta-card strong {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-round);
    font-size: 1.05rem;
    color: var(--accent-dk);
}


/* ==================================================================
   ご連絡先
   ================================================================== */
.contact-list {
    width: min(100%, 760px);
    margin-inline: auto;
    border-top: 1px solid var(--border);
}
.contact-list > div {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 20px;
    padding: 18px 10px;
    border-bottom: 1px solid var(--border);
    transition: background-color .2s ease;
}
.contact-list > div:hover { background: var(--bg-soft); }
.contact-list dt {
    font-family: var(--font-round);
    font-weight: 700;
    color: var(--accent-dk);
}
.contact-list dd a {
    color: var(--accent-dk);
    border-bottom: 1px solid rgba(0, 136, 204, .35);
    transition: opacity .2s ease;
}
.contact-list dd a:hover { opacity: .7; }


/* ==================================================================
   フッター / 固定要素
   ================================================================== */
.site-footer {
    padding: 40px 20px 34px;
    background: #16191d;
    color: #fff;
    text-align: center;
}
.site-footer img {
    width: 150px;
    margin: 0 auto 16px;
    filter: brightness(0) invert(1);
    opacity: .85;
}
.site-footer small { font-size: .74rem; letter-spacing: .14em; opacity: .75; }

.pagetop {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 80;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(31, 31, 31, .82);
    box-shadow: var(--shadow-mid);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.pagetop.is-shown { opacity: 1; visibility: visible; transform: none; }
.pagetop:hover { background: var(--accent); }
.pagetop::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 54%;
    width: 11px;
    height: 11px;
    border-left: 2px solid #fff;
    border-top: 2px solid #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* スマホ固定バー（PCでは非表示） */
.sp-bar { display: none; }


/* ==================================================================
   施工事例の拡大表示（ライトボックス）
   ================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 60px 20px;
    background: rgba(10, 13, 18, .965);
    opacity: 0;
    transition: opacity .28s ease;
}
.lightbox.is-open { opacity: 1; }

.lb-body {
    width: min(96vw, 1120px);
    transform: scale(.96);
    transition: transform .28s cubic-bezier(.2, .7, .3, 1);
}
.lightbox.is-open .lb-body { transform: none; }

.lb-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}
/* After が無い事例は1枚だけ大きく出す */
.lb-pair.is-single { grid-template-columns: 1fr; justify-items: center; }
.lb-pair.is-single .lb-cell-a { display: none; }

.lb-cell { position: relative; margin: 0; text-align: center; }
.lb-cell img {
    width: 100%;
    max-height: 68vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.lb-pair.is-single .lb-cell img { width: auto; max-width: min(90vw, 800px); }
.lb-cell figcaption {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 14px;
    font-family: var(--font-round);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    color: #fff;
    border-radius: 999px;
}
.lb-cell-b figcaption { background: rgba(255, 255, 255, .2); }
.lb-cell-a figcaption { background: var(--accent); }
.lb-pair.is-single .lb-cell-b figcaption { display: none; }

/* After が2枚ある事例（Before / After 1 / After 2 の3枚組） */
.lb-cell-a2 { display: none; }
.lb-pair.is-triple { grid-template-columns: 1fr 1fr 1fr; }
.lb-pair.is-triple .lb-cell-a2 { display: block; }

.lb-cap {
    margin-top: 16px;
    color: #fff;
    font-size: .95rem;
    text-align: center;
}
.lb-cap em {
    display: block;
    margin-top: 4px;
    font-style: normal;
    font-size: .74rem;
    letter-spacing: .14em;
    opacity: .6;
}

.lb-close, .lb-prev, .lb-next {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    transition: background-color .2s ease, transform .2s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, .26); }
.lb-close { right: 18px; top: 18px; width: 46px; height: 46px; }
.lb-close::before, .lb-close::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 2px;
    background: #fff;
}
.lb-close::before { transform: rotate(45deg); }
.lb-close::after  { transform: rotate(-45deg); }

.lb-prev, .lb-next { top: 50%; width: 52px; height: 52px; margin-top: -26px; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-prev::before, .lb-next::before {
    content: "";
    width: 13px;
    height: 13px;
    border-left: 2px solid #fff;
    border-top: 2px solid #fff;
}
.lb-prev::before { transform: rotate(-45deg) translate(2px, 2px); }
.lb-next::before { transform: rotate(135deg) translate(2px, 2px); }


/* ==================================================================
   タブレット
   ================================================================== */
@media screen and (max-width: 1080px) {
    .gnav a { padding: 8px 9px; font-size: .86rem; }
    .header-tel { padding: 6px 12px; }
    .header-tel-num { font-size: .94rem; }
}

/* ==================================================================
   スマホ・小型タブレット
   ================================================================== */
@media screen and (max-width: 900px) {
    :root { --header-h: 62px; }

    .only-sp { display: inline; }
    body { font-size: 15px; padding-bottom: 68px; }

    /* --- ヘッダー：ドロワー --- */
    .nav-toggle { display: block; margin-left: auto; order: 3; }
    .header-side { order: 2; gap: 8px; margin-left: auto; }
    .header-side .sns-btn { width: 30px; }
    .header-tel { padding: 5px 12px; }
    .header-tel-label { font-size: .56rem; }
    .header-tel-num { font-size: .88rem; }

    .gnav {
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 95;
        width: min(74%, 300px);
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: calc(var(--header-h) + 20px) 0 40px;
        background: #fff;
        box-shadow: -8px 0 30px rgba(20, 30, 45, .18);
        transform: translateX(100%);
        transition: transform .34s cubic-bezier(.3, .8, .3, 1);
        overflow-y: auto;
    }
    .gnav.is-open { transform: none; }
    .gnav a {
        padding: 16px 26px;
        font-size: 1rem;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
    }
    .gnav a::after { display: none; }
    .gnav a.is-current { background: var(--bg-soft); }

    /* --- ヒーロー --- */
    .hero { padding: calc(var(--header-h) + 34px) 0 60px; }
    .hero-logo { width: min(64%, 230px); margin: 14px auto 18px; }
    .hero-badges li { padding: 5px 13px; font-size: .936rem; }   /* 120%（元 .78rem） */
    .btn { width: 100%; min-width: 0; justify-content: center; padding: 13px 20px; }
    .btn strong { font-size: 1.16rem; }
    .hero-cta { gap: 11px; }

    /* --- セクション --- */
    .section { padding: 58px 0; }
    .ttl { margin-bottom: 32px; }

    .cta-grid { grid-template-columns: 1fr; gap: 12px; }
    .cta-card { flex-direction: row; align-items: center; gap: 14px; padding: 16px 20px; text-align: left; }
    .cta-card img { width: 34px; margin: 0; }
    .cta-card .cta-label { flex: 0 0 auto; }
    .cta-card .cta-value { flex: 1 1 auto; font-size: 1.16rem; }
    .cta-value-mail { font-size: .86rem; }
    .cta-note { display: none; }
    .qr-block { width: min(72%, 220px); }

    .service-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .service-list li { min-height: 58px; font-size: .92rem; padding: 10px; }

    .flow-list::before { left: 25px; }
    .flow-list li { gap: 14px; }
    .flow-num { width: 50px; height: 50px; font-size: 1.35rem; }
    .flow-body { padding: 13px 16px; }
    .flow-body h3 { font-size: 1.02rem; }

    .price-box { padding: 26px 20px; }

    .greeting-wrap { grid-template-columns: 1fr; gap: 24px; }
    .greeting-photo { width: min(58%, 220px); margin-inline: auto; }

    .works-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
    .work-cap { padding: 10px 11px 12px; }
    .work-cap strong { font-size: .9rem; }

    .insta-card { flex-direction: column; text-align: center; gap: 12px; padding: 20px; }

    .contact-list > div { grid-template-columns: 1fr; gap: 2px; padding: 14px 6px; }

    /* --- 固定バー --- */
    .sp-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 85;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1px;
        background: rgba(255, 255, 255, .5);
        box-shadow: 0 -3px 16px rgba(20, 30, 45, .14);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .sp-bar a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 13px 6px;
        font-family: var(--font-round);
        font-size: .95rem;
        font-weight: 800;
        color: #fff;
    }
    .sp-bar img { width: 22px; }
    .sp-bar-tel  { background: linear-gradient(135deg, var(--accent), var(--accent-dk)); }
    .sp-bar-line { background: linear-gradient(135deg, #0ad46a, var(--line)); }

    .pagetop { right: 14px; bottom: 78px; width: 42px; height: 42px; }

    .lightbox { padding: 54px 12px 20px; }
    /* スマホは横並びだと小さすぎるので、Before の下に After を並べる */
    .lb-pair { grid-template-columns: 1fr; gap: 10px; }
    .lb-cell img { max-height: 33vh; }
    .lb-pair.is-single .lb-cell img { max-height: 68vh; }
    /* 3枚組：Before を上に1枚、After 2枚を下に横並び */
    .lb-pair.is-triple { grid-template-columns: 1fr 1fr; }
    .lb-pair.is-triple .lb-cell-b { grid-column: 1 / -1; }
    .lb-pair.is-triple .lb-cell img { max-height: 30vh; }
    .lb-cell figcaption { margin-top: 6px; font-size: .64rem; padding: 2px 12px; }
    .lb-cap { margin-top: 10px; font-size: .86rem; }
    .lb-prev, .lb-next { width: 44px; height: 44px; margin-top: -22px; }
    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
    .lb-close { right: 10px; top: 10px; width: 40px; height: 40px; }
}

/* ヒーローのバッジ4つ：スマホ幅では1列に収まらないので2段にし、4つの幅を揃える。
   1fr の列を fit-content の枠に入れると、列幅がいちばん長い「追加料金なし」に揃う。 */
@media screen and (max-width: 560px) {
    .hero-badges {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: fit-content;
        margin-inline: auto;
    }
    .hero-badges li { text-align: center; }
}

@media screen and (max-width: 430px) {
    .header-tel { display: none; }
}


/* ==================================================================
   動きを減らす設定の端末への配慮
   ================================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .js-reveal .reveal { opacity: 1; transform: none; }
    .hero-catch, .hero-lead, .hero-badges, .hero-area, .hero-cta, .hero-scroll, .hero-logo img { opacity: 1; }
}
