/* ===== Swallow Web Design｜3D Walkthrough =====
   色・書体・カードの形は公開HP（projects/swallow-hp-v2/app/globals.css）と同じ値。
   ここで足しているのは「空間に置くための指定」と、画面に固定する操作部品だけ。 */
:root {
  --pink: #f0dede;
  --mint: #d2e2e0;
  --char: #545354;
  --ink: #333333;
  --gray: #eeeeee;
  --white: #ffffff;
  --bird: #545354;
  --hud: #545354;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  font-family: "Noto Sans JP", sans-serif; color: var(--char); background: #fff;
  line-height: 2; font-size: 15px; -webkit-font-smoothing: antialiased;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
body.dark { --bird: #f5f2ea; --hud: #f5f2ea; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, strong { color: var(--char); }

/* ===== 空間 ===== */
#sky {
  position: fixed; inset: -4%; opacity: 0; pointer-events: none;
  background-image: linear-gradient(rgba(20,18,16,0.72), rgba(20,18,16,0.72)), url("assets/bg_parallax.webp");
  background-size: cover; background-position: center; will-change: opacity, transform;
}
#viewport { position: fixed; inset: 0; overflow: hidden; perspective: 900px; touch-action: none; }
#cam { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
#world { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; }
.o {
  position: absolute; left: 0; top: 0; will-change: transform, opacity;
  /* 回転の軸を左上に固定し、最後の translate(-50%,-50%) で「指定した座標＝部品の中心」にする。
     これが無いと部品の大きさの半分だけ位置がずれる（2026-11-16 最初の表示で発生） */
  transform-origin: 0 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.o.two { backface-visibility: visible; -webkit-backface-visibility: visible; }
.o.t3 { transform-style: preserve-3d; will-change: transform; }
.o.click { cursor: pointer; }

/* 床の点描 */
.floor { width: 1000px; height: 1000px; overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0,0,0,0.55) 28%, transparent 66%);
          mask-image: radial-gradient(circle, #000 0%, rgba(0,0,0,0.55) 28%, transparent 66%); }
.floor i { position: absolute; left: -40px; top: -40px; right: -40px; bottom: -40px; will-change: transform;
  background-image: radial-gradient(circle, rgba(84,83,84,0.5) 0.9px, transparent 1.5px); background-size: 20px 20px; }

/* 浮かぶ色面と粒（既存HPの「色ブロックのずらし重ね」を空間にばらまいたもの） */
.fl { pointer-events: none; }
.fl i { display: block; animation: drift var(--d, 14s) ease-in-out var(--dl, 0s) infinite alternate; }
.fl.pink i { background: var(--pink); } .fl.mint i { background: var(--mint); }
.fl.gray i { background: #e4e4e4; } .fl.char i { background: var(--char); }
.fl.line i { border: 1.5px solid var(--char); opacity: 0.45; }
.fl.ring i { border: 1.5px solid var(--char); border-radius: 50%; opacity: 0.4; }
.fl.disc i { background: var(--pink); border-radius: 50%; }
@keyframes drift {
  from { transform: translate3d(0, -18px, 0) rotate3d(0.3, 1, 0.1, -16deg); }
  to   { transform: translate3d(0, 18px, 0) rotate3d(0.3, 1, 0.1, 16deg); }
}
.pt { pointer-events: none; }
.pt i { display: block; border-radius: 50%; animation: bob var(--d, 7s) ease-in-out var(--dl, 0s) infinite alternate; }
.pt.a i { background: var(--pink); } .pt.b i { background: var(--mint); } .pt.c i { background: #cfcfcf; }
@keyframes bob { from { transform: translate3d(-10px, -26px, 0); } to { transform: translate3d(10px, 26px, 0); } }

/* ツバメ（ロゴの鳥を、羽ばたく紙の鳥にしたもの） */
.o.birdo { transform-style: preserve-3d; pointer-events: none; backface-visibility: visible; will-change: transform; }
.bird { position: absolute; left: 0; top: 0; width: 0; height: 0; transform: rotateX(90deg); transform-style: preserve-3d; }
.bird svg { display: block; overflow: visible; }
.bird path { fill: var(--bird); transition: fill 0.6s; }
.bird .bb { position: absolute; left: -12px; top: -30px; }
.bird .bw { position: absolute; top: -22px; width: 64px; height: 52px; }
.bird .bw.l { left: -66px; transform-origin: 100% 50%; animation: flapL var(--flap, 0.34s) ease-in-out infinite alternate; }
.bird .bw.r { left: 2px; transform-origin: 0% 50%; animation: flapR var(--flap, 0.34s) ease-in-out infinite alternate; }
.bird .bw.r svg { transform: scaleX(-1); }
@keyframes flapL { from { transform: rotateY(52deg); } to { transform: rotateY(-34deg); } }
@keyframes flapR { from { transform: rotateY(-52deg); } to { transform: rotateY(34deg); } }

/* ===== ボタン（ピル型・公開HPと同じ） ===== */
.btn-pill {
  display: inline-block; border: 1px solid var(--char); border-radius: 999px;
  padding: 12px 44px; font-size: 14px; font-weight: 500; background: #fff; color: var(--char);
  transition: background 0.2s, color 0.2s; cursor: pointer;
}
.btn-pill:hover { background: var(--char); color: #fff; }
.en { font-family: "Montserrat", sans-serif; }
.center { text-align: center; }

/* ===== 入口（ヒーロー）：公開HPの面を1枚ずつ奥行きに並べる ===== */
.h-palm { background: url("assets/hero_palm.webp") center / cover no-repeat; }
.h-pink { background: var(--pink); }
.h-white { background: var(--white); box-shadow: 0 30px 80px rgba(0,0,0,0.06); }
.h-block { background: var(--char); }
.h-en h1 { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 54px; line-height: 1.235; color: var(--char); }
.h-ja p { color: var(--char); font-size: 22px; font-weight: 700; line-height: 1.5; }
.h-photo img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 24px 60px rgba(0,0,0,0.18); }

/* ===== セクション見出し ===== */
.st-text { text-align: center; white-space: nowrap; }
.st-text h2 { font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 62px; color: var(--char); line-height: 1.1; }
.st-text .ja { font-size: 14px; font-weight: 500; margin-top: 4px; }
.gate h2 { font-size: 150px; letter-spacing: -0.02em; }
.gate .ja { font-size: 26px; letter-spacing: 0.2em; margin-top: 10px; }
.gate.lt h2 { color: #f5f2ea; } .gate.lt .ja { color: #d9d2c2; }
.blk.pink { background: var(--pink); } .blk.mint { background: var(--mint); }

/* ===== About ===== */
.a-leaf img, .a-pc img { width: 100%; }
.a-pc img { box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.a-logo img { width: 100%; border-radius: 50%; animation: sway 9s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-5deg) translateY(-8px); } to { transform: rotate(5deg) translateY(8px); } }
.a-text { width: 520px; }
.u-title {
  font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 32px; color: var(--char);
  text-decoration: underline; text-underline-offset: 10px; text-decoration-thickness: 2px; margin-bottom: 26px;
}
.a-text p { margin-bottom: 24px; }
.a-text p.center { margin-bottom: 0; }

/* カードを指でなぞると少し傾く */
.tilt { transition: transform 0.25s ease-out, box-shadow 0.25s; transform: rotateX(calc(var(--ty, 0) * -7deg)) rotateY(calc(var(--tx, 0) * 7deg)) translateZ(var(--lift, 0px)); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.o.t3:hover .tilt { --lift: 26px; }

/* ===== Works ===== */
/* 額縁：チャコールの枠を影で描く（カードの大きさは変えない） */
.w-card { width: 520px; background: #fff; box-shadow: 0 0 0 10px #545354, 0 0 0 13px #7a7879, 0 20px 36px rgba(0,0,0,0.22); padding: 24px 26px 20px; }
.o.t3:hover .w-card { box-shadow: 0 0 0 10px #545354, 0 0 0 13px #7a7879, 0 34px 60px rgba(0,0,0,0.3); }
.w-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #fafafa; margin-bottom: 16px; }
.w-card h3 { font-size: 16px; color: var(--char); margin-bottom: 8px; }
.w-card .voice { font-size: 13.5px; line-height: 1.95; }
.w-card .meta { font-size: 12.5px; color: #8a8a8a; margin-top: 12px; line-height: 1.8; }
.w-card .more { display: flex; justify-content: flex-end; margin-top: 10px; }
.w-card .more span { font-size: 12px; font-weight: 500; border-bottom: 1px solid var(--char); padding-bottom: 1px; letter-spacing: 0.04em; }

/* ===== Service：写真と文章が「両開きの扉」 ===== */
.door { background: #fff; box-shadow: inset 0 0 0 3px rgba(84,83,84,0.55); overflow: hidden; }
.door.photo { background-size: cover; background-position: center; }
.svc-body { padding: 44px 40px; }
.svc-body h3 { font-size: 20px; color: var(--char); text-decoration: underline; text-underline-offset: 8px; margin-bottom: 16px; line-height: 1.6; }
.svc-body .sub { font-weight: 700; font-size: 14.5px; margin-bottom: 14px; line-height: 1.7; }
.svc-body p { font-size: 13.5px; line-height: 2.0; }
.door .knob { position: absolute; bottom: 14px; font-family: "Montserrat", sans-serif; font-size: 11px; letter-spacing: 0.18em; color: #9a9a9a; }
.door .knob.l { right: 18px; } .door .knob.r { left: 18px; }
.door.photo .knob { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }

/* ===== Price ===== */
.p-card { width: 300px; background: #fff; text-align: center; padding: 24px 20px 24px; box-shadow: 0 10px 32px rgba(0,0,0,0.16); }
.p-card .icon img { height: 56px; margin: 0 auto 12px; }
.p-card h3 { font-size: 15.5px; color: var(--char); text-decoration: underline; text-underline-offset: 8px; margin-bottom: 12px; line-height: 1.7; }
.p-card ul { list-style: none; font-size: 13.5px; margin-bottom: 14px; line-height: 2; }
.p-card .btn-pill { padding: 8px 30px; font-size: 13px; }
.pricebar { display: block; width: 100%; background: #4a4a4a; color: #fff; text-align: center; font-weight: 700; padding: 10px 0; font-size: 15px; }
.pricebar:hover { opacity: 0.85; }

/* ===== Flow ===== */
.flow-item { width: 720px; display: grid; grid-template-columns: 1fr 224px; gap: 36px; align-items: center;
  background: rgba(255,255,255,0.97); padding: 24px 28px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.flow-item .num { font-family: "Montserrat", sans-serif; font-size: 14px; border-bottom: 2px solid var(--char); display: inline-block; padding-bottom: 2px; line-height: 1.6; }
.flow-item h3 { font-size: 19px; color: var(--char); margin: 6px 0 8px; line-height: 1.6; }
.flow-item p { font-size: 13.5px; line-height: 1.95; }
.flow-item img { width: 224px; height: 148px; object-fit: cover; }
.f-num { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 230px; line-height: 1; color: transparent;
  -webkit-text-stroke: 2px rgba(245,242,234,0.55); white-space: nowrap; pointer-events: none; }

/* ===== Contact（頂上） ===== */
.k-panel { width: 1000px; color: #fff; }
.k-cta { text-align: center; margin-bottom: 38px; }
.k-cta .copy { font-size: 26px; font-weight: 700; letter-spacing: 0.06em; color: #fff; }
.k-cta .sub { font-size: 14px; margin: 4px 0 20px; opacity: 0.9; }
.k-cta .btn-pill { border-color: #fff; color: #fff; background: transparent; }
.k-cta .btn-pill:hover { background: #fff; color: var(--ink); }
.k-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.k-left img { width: 150px; background: #fff; padding: 10px 14px; margin-bottom: 20px; }
.k-left .name { font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 24px; color: #fff; text-decoration: underline; text-underline-offset: 8px; margin-bottom: 14px; }
.k-left p { font-size: 14.5px; }
.k-right .line-card { position: relative; width: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.k-nav { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.35); padding-top: 16px;
  font-family: "Montserrat", sans-serif; font-weight: 500; font-size: 14.5px; }
.k-nav a:hover { opacity: 0.6; }
.k-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 12.5px; }
.k-bottom a { text-decoration: underline; text-underline-offset: 4px; }
.k-sns { display: flex; gap: 14px; }
.k-logo img { width: 100%; border-radius: 50%; opacity: 0.14; animation: sway 9s ease-in-out infinite alternate; }

/* LINEカード（公開HPの固定カードと同じ見た目） */
.line-card { position: relative; width: 300px; background: #06c755; color: #fff; padding: 20px 20px 16px; font-size: 12.5px; line-height: 1.85; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.line-card .ico { position: absolute; left: 16px; top: 22px; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #06c755; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.line-card p { padding-left: 32px; }
.line-card a { display: block; margin-top: 12px; text-align: center; border: 1px solid #fff; border-radius: 999px; padding: 6px 10px; font-size: 12px; }
.line-card a:hover { background: #fff; color: #06c755; }

/* ===== 画面に固定する部品 ===== */
/* 公開HPにある背景ぼかし（backdrop-filter）は付けない。3D空間の上では暗い場面でヘッダーが透けて文字が読めなくなった（2026-11-16） */
header.site { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(255,255,255,0.96); }
.hd-inner { max-width: 1200px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 36px; }
.brand img { width: 124px; height: auto; }
.hd-where { display: none; font-family: "Montserrat", sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; line-height: 1.4; }
nav.main { display: flex; gap: 40px; margin-left: auto; font-size: 15px; letter-spacing: 0.04em; }
nav.main a { font-family: "Montserrat", sans-serif; font-weight: 500; position: relative; padding: 4px 0; }
nav.main a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--char); transform: scaleX(0); transform-origin: left; transition: transform 0.35s; }
nav.main a:hover::after, nav.main a.on::after { transform: scaleX(1); }
.hd-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; padding: 10px 22px; border-radius: 28px; line-height: 1.6; }
.hd-cta:hover { opacity: 0.85; }
.hd-bar { height: 2px; background: transparent; }
.hd-bar i { display: block; height: 100%; width: 100%; background: var(--char); transform: scaleX(0); transform-origin: left; }
.hamburger { display: none; width: 40px; height: 40px; margin-left: auto; position: relative; }
.hamburger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--char); transition: transform 0.3s, opacity 0.3s; }
.hamburger span:nth-child(1) { top: 13px; } .hamburger span:nth-child(2) { top: 19px; } .hamburger span:nth-child(3) { top: 25px; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.drawer { position: fixed; inset: 0; z-index: 49; background: rgba(255,255,255,0.98); display: flex; flex-direction: column; gap: 4px; padding: 84px 32px;
  font-size: 17px; transform: translateX(100%); transition: transform 0.3s; }
.drawer.open { transform: translateX(0); }
.drawer a { padding: 10px 0; border-bottom: 1px solid #e5e5e5; font-family: "Montserrat", sans-serif; }

.dots { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.dots button { display: flex; align-items: center; gap: 10px; font-family: "Montserrat", sans-serif; font-size: 11.5px; letter-spacing: 0.1em; color: var(--hud); line-height: 1; transition: color 0.6s; }
.dots button span { opacity: 0; transform: translateX(6px); transition: opacity 0.25s, transform 0.25s; }
.dots button:hover span, .dots button.on span { opacity: 1; transform: none; }
.dots button i { width: 9px; height: 9px; border: 1.5px solid var(--hud); border-radius: 50%; transition: background 0.3s, transform 0.3s, border-color 0.6s; }
.dots button.on i { background: var(--hud); transform: scale(1.35); }

.hud-label { position: fixed; left: 26px; bottom: 22px; z-index: 40; font-family: "Montserrat", sans-serif; color: var(--hud); line-height: 1.3; transition: color 0.6s; pointer-events: none; }
.hud-label b { font-size: 34px; font-weight: 600; margin-right: 10px; }
.hud-label span { font-size: 15px; font-weight: 600; letter-spacing: 0.06em; }
.hud-label small { display: block; font-family: "Noto Sans JP", sans-serif; font-size: 12px; margin-top: 2px; letter-spacing: 0.08em; }
.hud-label.sw { animation: lab 0.5s ease-out; }
@keyframes lab { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.hud-ctrl { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 8px; }
.hud-ctrl button { height: 38px; min-width: 38px; border: 1px solid var(--hud); border-radius: 999px; color: var(--hud); font-size: 18px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,0.0); transition: background 0.2s, color 0.6s, border-color 0.6s; }
.hud-ctrl button:hover { background: rgba(128,128,128,0.18); }
#play { padding: 0 16px; font-size: 11px; }
#play em { font-style: normal; font-size: 12px; letter-spacing: 0.06em; }
#play .ic-pause { display: none; letter-spacing: -1px; }
#play.on .ic-pause { display: inline; } #play.on .ic-play { display: none; }

.hint { position: fixed; left: 50%; bottom: 74px; transform: translateX(-50%); z-index: 40; font-size: 12.5px; letter-spacing: 0.08em; color: var(--char);
  background: rgba(255,255,255,0.9); padding: 4px 18px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,0.08); white-space: nowrap; transition: opacity 0.5s, transform 0.5s; pointer-events: none; }
.hint b { font-family: "Montserrat", sans-serif; }
.hint .sp { display: none; }
.hint i { position: absolute; left: 50%; bottom: -22px; width: 1px; height: 16px; background: var(--char); transform-origin: top; animation: hintl 1.4s ease-in-out infinite; }
@keyframes hintl { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hint.off { opacity: 0; transform: translateX(-50%) translateY(10px); }

.line-pill { position: fixed; right: 22px; bottom: 18px; z-index: 45; transition: opacity 0.4s, transform 0.4s; }
.line-pill.off { opacity: 0; pointer-events: none; transform: translateY(12px); }
.lp-btn { height: 38px; padding: 0 18px; border-radius: 999px; background: #06c755; color: #fff; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; box-shadow: 0 8px 22px rgba(0,0,0,0.22); }
.line-pill .line-card { position: absolute; right: 0; bottom: 48px; opacity: 0; pointer-events: none; transform: translateY(10px) scale(0.96); transform-origin: 100% 100%; transition: opacity 0.25s, transform 0.25s; }
.line-pill:hover .line-card, .line-pill.open .line-card { opacity: 1; pointer-events: auto; transform: none; }

/* ===== 制作実績の詳細（カードをクリックで開く） ===== */
.modal { position: fixed; inset: 0; z-index: 80; pointer-events: none; perspective: 1600px; }
.modal-bg { position: absolute; inset: 0; background: rgba(40,38,38,0.5); opacity: 0; transition: opacity 0.4s; }
.sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(760px, 100%); background: #fff; box-shadow: -20px 0 60px rgba(0,0,0,0.25);
  transform-origin: 100% 50%; transform: rotateY(-88deg); opacity: 0; transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s; }
.modal.open { pointer-events: auto; }
.modal.open .modal-bg { opacity: 1; }
.modal.open .sheet { transform: none; opacity: 1; }
.sheet-in { height: 100%; overflow-y: auto; padding: 56px 48px 60px; -webkit-overflow-scrolling: touch; touch-action: pan-y; overscroll-behavior: contain; -webkit-user-select: text; user-select: text; }
.sheet-x { position: absolute; right: 18px; top: 14px; width: 40px; height: 40px; font-size: 28px; line-height: 1; z-index: 2; border-radius: 50%; background: #fff; }
.sheet-x:hover { background: var(--gray); }
.sheet .badge { display: inline-block; font-size: 12px; background: var(--pink); padding: 0 12px; margin-bottom: 10px; }
.sheet h2 { font-size: 24px; line-height: 1.6; }
.sheet .catch { font-size: 15px; font-weight: 700; margin: 6px 0 4px; }
.sheet .meta { font-size: 12.5px; color: #8a8a8a; line-height: 1.8; margin-bottom: 22px; }
.sheet .voice { background: var(--gray); padding: 18px 22px; font-size: 14px; margin-bottom: 26px; }
.sheet h3 { font-family: "Montserrat", "Noto Sans JP", sans-serif; font-size: 15px; border-bottom: 2px solid var(--char); display: inline-block; margin: 22px 0 10px; line-height: 1.8; }
.sheet p { font-size: 14px; }
.sheet ul { list-style: none; font-size: 14px; }
.sheet ul.res li { padding-left: 1.2em; text-indent: -1.2em; }
.sheet ul.res li::before { content: "✓ "; }
.sheet .items li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; margin-bottom: 10px; }
.sheet .items b { display: block; }
.sheet .gal { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 6px; }
.sheet .gal figure { opacity: 0; transform: translateY(24px) rotateX(18deg); transition: opacity 0.5s, transform 0.6s; }
.modal.open .gal figure { opacity: 1; transform: none; }
.sheet .gal img { width: 100%; border: 1px solid #eee; }
.sheet .gal figcaption { font-size: 12px; color: #8a8a8a; }
.sheet .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.sheet .links a { padding: 9px 24px; font-size: 13px; }

/* ===== はじまりの幕 ===== */
#loader { position: fixed; inset: 0; z-index: 100; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; transition: opacity 0.7s, visibility 0.7s; }
#loader img { width: 170px; animation: sway 3s ease-in-out infinite alternate; }
#loader p { font-family: "Montserrat", sans-serif; font-size: 12px; letter-spacing: 0.3em; }
#loader i { width: 120px; height: 2px; background: var(--gray); position: relative; overflow: hidden; }
#loader i::after { content: ""; position: absolute; inset: 0; background: var(--char); animation: load 1.1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
#loader.done { opacity: 0; visibility: hidden; }


/* ===== お城の建物（壁・床・天井・階段）＝2026-11-16 追加 =====
   大きな板は小さく作って引き伸ばしている。模様の寸法は --u（＝空間の1px）で書くこと。
   px でそのまま書くと、板ごとに模様の大きさが変わってしまう */
.ar { pointer-events: none; }
.plaster { background: linear-gradient(180deg, #fcfbf9 0%, #f4f2ee 60%, #eceae5 100%); }
.plaster.shade { background: linear-gradient(180deg, #f3f1ed 0%, #e9e6e1 60%, #dfdcd6 100%); }
.plaster.pk { background: linear-gradient(180deg, #f9f0ef 0%, #f3e4e3 60%, #ead9d8 100%); }
.plaster.mt { background: linear-gradient(180deg, #eef4f3 0%, #e1ebe9 60%, #d5e1df 100%); }
/* 腰壁と巾木（壁の下のほうの帯） */
.wains { box-shadow: inset 0 calc(-20 * var(--u)) 0 #a9a59e; }
.wains::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(200 * var(--u)); background: rgba(84,83,84,0.06); border-top: calc(7 * var(--u)) solid rgba(84,83,84,0.25); }
.jr { border-right: calc(18 * var(--u)) solid #545354; } .jl { border-left: calc(18 * var(--u)) solid #545354; }
.lin { border-bottom: calc(18 * var(--u)) solid #545354; }
.wood { background: repeating-linear-gradient(90deg, rgba(110,90,70,0.2) 0 calc(3 * var(--u)), transparent calc(3 * var(--u)) calc(140 * var(--u))), linear-gradient(#e9dfcf, #e0d4c1); }
.ceil { background: repeating-linear-gradient(0deg, #7b7670 0 calc(46 * var(--u)), transparent calc(46 * var(--u)) calc(620 * var(--u))), #f6f5f2; }
.rug { background: #f0dede; box-shadow: inset 0 0 0 calc(12 * var(--u)) #f0dede, inset 0 0 0 calc(18 * var(--u)) #545354, inset 0 0 0 calc(32 * var(--u)) #f0dede, inset 0 0 0 calc(36 * var(--u)) #fff; }
.palmw { background: url("assets/hero_palm.webp") center / cover no-repeat; }
.framed { background: #fff; padding: 14px; box-shadow: 0 0 0 8px #545354, 0 16px 34px rgba(0,0,0,0.25); }
.framed img { width: 100%; height: 100%; object-fit: cover; }
.part { background: linear-gradient(90deg, #ffffff, #f3f2ef); box-shadow: inset 0 calc(12 * var(--u)) 0 #545354, inset 0 calc(-18 * var(--u)) 0 #a9a59e, inset calc(3 * var(--u)) 0 0 #d9d6d0, inset calc(-3 * var(--u)) 0 0 #d9d6d0; }
.win { border: calc(12 * var(--u)) solid #fff; border-radius: 50% 50% 0 0 / 22% 22% 0 0; box-shadow: 0 0 0 calc(5 * var(--u)) #cfd6d5, 0 0 calc(90 * var(--u)) rgba(255,255,255,0.95);
  background: linear-gradient(90deg, transparent calc(50% - 3 * var(--u)), #cfd6d5 calc(50% - 3 * var(--u)), #cfd6d5 calc(50% + 3 * var(--u)), transparent calc(50% + 3 * var(--u))),
    linear-gradient(0deg, transparent calc(45% - 3 * var(--u)), #cfd6d5 calc(45% - 3 * var(--u)), #cfd6d5 calc(45% + 3 * var(--u)), transparent calc(45% + 3 * var(--u))), linear-gradient(180deg, #ffffff, #e3efee); }
.light { background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0)); }
.brick { background: repeating-linear-gradient(0deg, rgba(0,0,0,0.36) 0 calc(4 * var(--u)), transparent calc(4 * var(--u)) calc(58 * var(--u))),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.18) 0 calc(4 * var(--u)), transparent calc(4 * var(--u)) calc(150 * var(--u))), linear-gradient(180deg, #2f2d2b, #4a4744 50%, #3b3836); }
.stonef.dk { background: radial-gradient(circle, #45423f 0, #2b2927 70%); border-radius: 50%; }
.stonef.terr { background: radial-gradient(circle, #6a6766 0, #4b4949 72%); }
.tread { background: #ddd7cd; box-shadow: inset 0 0 0 calc(3 * var(--u)) #bcb5a9; }
.treadf { background: #a8a196; }
.lamp { background: radial-gradient(circle, rgba(255,226,170,0.95) 0, rgba(255,196,120,0.4) 26%, rgba(255,190,110,0) 68%); }
.pole { background: #2f2d2c; }
.flag i { display: block; width: 100%; height: 100%; background: var(--pink); clip-path: polygon(0 0, 100% 50%, 0 100%); transform-origin: 0 50%; animation: flagw 2.2s ease-in-out infinite alternate; }
@keyframes flagw { from { transform: skewY(-7deg) scaleX(0.96); } to { transform: skewY(7deg) scaleX(1); } }
.facade svg, .tree svg { display: block; width: 100%; height: 100%; }
.ground { background: #e6ebe9; }
.path { background: linear-gradient(90deg, #d5d0c8, #e0dcd5 18%, #e0dcd5 82%, #d5d0c8); }
/* 門の扉：ミントの板戸に鉄の帯と引き手 */
.gdoor { background: repeating-linear-gradient(90deg, rgba(60,80,76,0.24) 0 2px, transparent 2px 65px), linear-gradient(180deg, #bdd1cd, #a8c0bb); box-shadow: inset 0 0 0 6px #545354; }
.gdoor .band { position: absolute; left: 0; right: 0; height: 26px; background: #545354; }
.gdoor .b1 { top: 24%; } .gdoor .b2 { top: 76%; }
.gdoor .ring { position: absolute; top: 52%; width: 46px; height: 46px; border: 7px solid #545354; border-radius: 50%; }
.gdoor.l .ring { right: 22px; } .gdoor.r .ring { left: 22px; }
.gsign { font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 27px; letter-spacing: 0.04em; white-space: nowrap; background: #fff; border: 3px solid #545354; padding: 8px 26px; line-height: 1.6; box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.gtip span { display: block; white-space: nowrap; font-size: 14px; letter-spacing: 0.08em; background: rgba(255,255,255,0.96); padding: 6px 22px; border-radius: 999px; box-shadow: 0 8px 22px rgba(0,0,0,0.25); animation: tip 1.2s ease-in-out infinite alternate; }
@keyframes tip { from { transform: translateY(-5px); } to { transform: translateY(5px); } }
.h-enter .btn-pill { padding: 9px 30px; background: var(--ink); color: #fff; border-color: var(--ink); white-space: nowrap; }
.h-enter .btn-pill:hover { opacity: 0.85; }
/* 続き部屋の扉の下半分（腰板） */
.leafb { background: repeating-linear-gradient(90deg, rgba(60,80,76,0.22) 0 2px, transparent 2px 54px), #c3d6d2; box-shadow: inset 0 -14px 0 #545354, inset 0 0 0 3px rgba(84,83,84,0.55); }

/* ===== スマホ（幅760px未満） ===== */
@media (max-width: 759px) {
  .hd-inner { padding: 8px 14px; gap: 12px; }
  .brand img { width: 104px; }
  nav.main, .hd-cta { display: none; }
  .hd-where { display: block; margin-left: 4px; }
  .hamburger { display: block; }
  .dots, .hud-label { display: none; }
  .hud-ctrl { bottom: 14px; }
  #play em { display: none; }
  .hint { bottom: 66px; }
  .hint .pc { display: none; } .hint .sp { display: inline; }
  .line-pill { right: 12px; bottom: 14px; }
  .lp-btn { padding: 0 14px; }

  .h-en h1 { font-size: 30px; line-height: 1.25; }
  .h-ja p { font-size: 15px; }
  .gsign { font-size: 20px; padding: 6px 18px; }
  .w-card { box-shadow: 0 0 0 7px #545354, 0 0 0 9px #7a7879, 0 16px 30px rgba(0,0,0,0.22); }
  .st-text h2 { font-size: 44px; }
  .gate h2 { font-size: 60px; } .gate .ja { font-size: 14px; }
  .a-text { width: 318px; background: rgba(255,255,255,0.9); padding: 18px 18px 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
  .a-text p { font-size: 13px; line-height: 1.9; margin-bottom: 14px; }
  .u-title { font-size: 22px; margin-bottom: 14px; }
  .btn-pill { padding: 9px 32px; font-size: 13px; }
  .w-card { width: 312px; padding: 16px 16px 14px; }
  .w-card img { margin-bottom: 10px; }
  .w-card h3 { font-size: 14.5px; margin-bottom: 4px; }
  .w-card .voice { font-size: 12.5px; line-height: 1.8; }
  .w-card .meta { font-size: 11.5px; margin-top: 8px; line-height: 1.6; }
  .svc-body { padding: 18px 20px 30px; }
  .svc-body h3 { font-size: 16.5px; margin-bottom: 8px; }
  .svc-body .sub { font-size: 12.5px; margin-bottom: 8px; }
  .svc-body p { font-size: 12.5px; line-height: 1.8; }
  .p-card { width: 312px; display: grid; grid-template-columns: 62px 1fr; gap: 0 14px; text-align: left; padding: 14px 16px; align-items: center; }
  .p-card .icon { grid-row: 1 / span 3; }
  .p-card .icon img { height: auto; width: 62px; margin: 0; }
  .p-card h3 { font-size: 14px; margin-bottom: 4px; }
  .p-card ul { font-size: 12px; margin-bottom: 8px; line-height: 1.8; }
  .p-card .btn-pill { padding: 4px 20px; font-size: 12px; justify-self: start; }
  .pricebar { font-size: 14px; }
  .flow-item { width: 312px; grid-template-columns: 1fr; gap: 0; padding: 0 0 16px; }
  .flow-item img { width: 100%; height: 116px; order: -1; margin-bottom: 12px; }
  .flow-item > div { padding: 0 18px; }
  .flow-item h3 { font-size: 16.5px; }
  .flow-item p { font-size: 12.5px; line-height: 1.85; }
  .f-num { font-size: 110px; }
  .k-panel { width: 324px; }
  .k-cta { margin-bottom: 18px; }
  .k-cta .copy { font-size: 18px; }
  .k-cta .sub { font-size: 12px; line-height: 1.7; margin: 4px 0 12px; }
  .k-grid { grid-template-columns: 1fr; gap: 16px; }
  .k-left { order: 2; }
  .k-left img { display: none; }
  .k-left .name { font-size: 18px; margin-bottom: 6px; }
  .k-left p { font-size: 12px; line-height: 1.8; }
  .k-right .line-card { padding: 14px 16px 12px; font-size: 12px; line-height: 1.7; }
  .k-nav { gap: 2px 18px; margin-top: 14px; padding-top: 10px; font-size: 13px; }
  .k-bottom { margin-top: 8px; font-size: 11px; flex-wrap: wrap; gap: 4px 12px; }
  .sheet-in { padding: 52px 22px 50px; }
  .sheet h2 { font-size: 19px; }
  .sheet .gal { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .fl i, .pt i, .a-logo img, .k-logo img { animation: none; }
}
