/* ---- 最初の画面 ---- */
#hero { position: relative; padding-bottom: clamp(40px, 6vw, 80px); }
.hero-photo { height: min(72vh, 760px); min-height: 420px; overflow: hidden; }
.hero-photo img { transform: scale(1.08); transition: transform 7s cubic-bezier(.2, .6, .2, 1); }
.ready .hero-photo img { transform: none; }
.hero-card {
  position: relative; z-index: 2; width: min(660px, calc(100% - 40px));
  margin: calc(-1 * clamp(120px, 30vh, 300px)) 0 0 clamp(20px, 6vw, 90px);
  padding: clamp(24px, 3.4vw, 46px);
  background: var(--cream) url(../img/washi.jpg) 0 0 / 760px;
  box-shadow: 0 14px 40px #0002;
}
.js .hero-card { opacity: 0; transform: translateY(24px); transition: opacity 1.2s .3s, transform 1.2s .3s cubic-bezier(.2, .7, .2, 1); }
.ready .hero-card { opacity: 1 !important; transform: none !important; }
.hero-card h1 { font-size: clamp(1.75rem, 3.9vw, 3.1rem); line-height: 1.45; margin-bottom: .6rem; }
.tel-link { display: block; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 700; color: var(--bengara); line-height: 1.25; }
.tel-link small { display: block; color: var(--sub); font-size: .85rem; font-weight: 400; }
.hero-inset { position: absolute; right: clamp(20px, 6vw, 90px); bottom: clamp(40px, 6vw, 80px); width: clamp(150px, 19vw, 260px); aspect-ratio: 3 / 4; overflow: hidden; border: 6px solid var(--cream); box-shadow: 0 14px 34px #0003; }
.hero-inset img { animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.16); } }
@media (max-width: 820px) { .hero-inset { display: none; } .hero-photo { height: 46vh; min-height: 280px; } .hero-card { margin-top: -50px; margin-left: 20px; } }

/* ---- ビフォーアフター ---- */
.ba-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.ba-tabs button { padding: 8px clamp(16px, 3vw, 34px); border: 2px solid var(--deep); border-radius: 6px; background: #fff; font-weight: 700; transition: background .25s, color .25s; }
.ba-tabs button.on { background: var(--deep); color: #fff; }
.ba { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #ddd5c3; --x: 50%; }
.ba > img, .ba-before img { position: absolute; inset: 0; transition: opacity .45s; }
.ba.swap > img, .ba.swap .ba-before img { opacity: 0; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; touch-action: pan-y; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba-handle::after { content: "◀ ▶"; position: absolute; top: 50%; left: -32px; width: 66px; height: 66px; margin-top: -33px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bengara); color: #fff; font-size: 13px; box-shadow: 0 6px 18px #0004; }
.ba-tag { position: absolute; top: 12px; padding: 4px 14px; background: #2b2622d9; color: #fff; font-size: .85rem; font-weight: 700; pointer-events: none; border-radius: 4px; }
.ba-tag.l { left: 12px; }
.ba-tag.r { right: 12px; }
.ba-note { margin-top: 14px; text-align: center; }

/* ---- こんな時は ---- */
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px clamp(14px, 3vw, 30px); }
.checks li { position: relative; padding: 18px 20px 18px 66px; background: #fffdf8; border: 1px solid var(--line); border-radius: 6px; }
.checks li::before { content: ""; position: absolute; left: 20px; top: 22px; width: 30px; height: 30px; border-radius: 50%; background: var(--bengara); }
.checks li::after { content: ""; position: absolute; left: 30px; top: 28px; width: 10px; height: 16px; border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(40deg); }
.checks b { display: block; font-size: 1.08rem; line-height: 1.6; }
.checks span { color: var(--sub); font-size: .92rem; }
@media (max-width: 760px) { .checks { grid-template-columns: 1fr; } }

/* ---- 色 ---- */
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 1.1rem; }
.swatches li { font-size: .9rem; text-align: center; transition: transform .35s; }
.swatches li::before { content: ""; display: block; height: 58px; margin-bottom: 4px; background: var(--c); border-radius: 4px; border: 1px solid #ffffff55; }
.swatches li:hover { transform: translateY(-4px); }

/* ---- 流れ ---- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.6vw, 30px); }
.flow li { position: relative; padding: 22px 22px 22px 22px; border-top: 3px solid var(--bengara); background: #fffdf8; border-radius: 0 0 6px 6px; }
.flow b { font-family: var(--mincho); font-size: 2.1rem; line-height: 1.1; color: var(--bengara); }
.flow h3 { margin: .3rem 0 .2rem; }
.flow p { color: var(--sub); font-size: .95rem; }
@media (max-width: 820px) { .flow { grid-template-columns: 1fr; } }

/* ---- お約束 ---- */
.promise > div { padding: 14px 0; border-top: 1px solid var(--line); }
.promise > div:last-child { border-bottom: 1px solid var(--line); }
.promise dt { font-family: var(--mincho); font-weight: 700; font-size: 1.15rem; }
.promise dd { margin: 0; color: var(--sub); font-size: .95rem; }

/* ---- 施工事例 ---- */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.6vw, 30px); }
.works figure { margin: 0; }
.zoom { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; }
.zoom img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.works figure:hover img { transform: scale(1.05); }
.works figcaption { padding-top: 8px; font-size: .92rem; color: var(--sub); }
.works b { display: block; font-family: var(--mincho); font-size: 1.1rem; color: var(--ink); }
@media (max-width: 760px) { .works { grid-template-columns: 1fr; } }

/* ---- 質問 ---- */
.faq details { background: #fffdf8; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 10px; }
.faq summary { position: relative; cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 18px; height: 3px; background: var(--bengara); transition: transform .3s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: none; }
.faq details p { padding: 0 20px 18px; color: var(--sub); }

/* ---- お電話 ---- */
#contact { background: var(--bengara); color: #fff; text-align: center; padding: clamp(60px, 9vw, 110px) 20px; }
.tel-big { display: block; white-space: nowrap; font-size: clamp(2.2rem, 9vw, 5rem); font-weight: 700; line-height: 1.25; margin: .4rem 0; }
.hours { font-size: .95rem; }
#foot { padding: 26px clamp(20px, 5vw, 56px); background: var(--ink); color: #f7f2e7; font-size: .85rem; }
#foot b { font-family: var(--mincho); font-size: 1.1rem; }
@media (prefers-reduced-motion: reduce) { .hero-inset img { animation: none; } .hero-photo img { transition: none; } }
