/* ==========================================================================
   common.css — 全ページ共通
   リセット / 変数 / デバイスフレーム / ヘッダー / ハンバーガー / 固定CTA / フッター
   ========================================================================== */
:root {
  --bg-color: #f4f2f0;
  --brown: #94715e;
  --dark: #3e3a39;
  --pink: #dc746e;
  --green: #98b9a6;
  --arrow-brown: #b49c8e;
  --gray-btn: #f4f2f0;

  --font-zenmaru: 'zen-maru-gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  --font-kurumilk: 'ads-kurumilk', 'zen-maru-gothic', sans-serif;
  --font-pocchi: 'ads-pocchi', 'zen-maru-gothic', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: #ddd8d3;
  overflow-x: clip;
}

body {
  font-family: var(--font-zenmaru);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: none;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ==== device frame ==== */
.device-frame-outer {
  display: flex;
  justify-content: center;
  padding: 0;
}

.top {
  position: relative;
  width: 390px;
  margin: 0 auto;
  background: var(--bg-color);
  clip-path: inset(0);
  zoom: clamp(0.85, calc(100vw / 390px), 1.3);
}

.abs {
  position: absolute;
}

.abs-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.img-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-full-contain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ==== header ==== */
.header {
  position: sticky;
  top: 0;
  width: 390px;
  height: 55px;
  z-index: 50;
  background: var(--bg-color);
  filter: drop-shadow(0px -4px 13px rgba(0, 0, 0, 0.25));
}

.header__logo {
  position: absolute;
  left: 22px;
  top: 15px;
  width: 103px;
  height: 27px;
}

.header__icon {
  position: absolute;
  width: 50px;
  height: 50px;
  top: 5px;
}

.header__icon--hamburger { left: 326px; }
.header__icon--tel { left: 261px; }
.header__icon--insta { left: 215px; }

.hamburger-btn {
  position: relative;
  width: 50px;
  height: 50px;
  display: block;
}

.hamburger-btn__bg {
  position: absolute;
  inset: 0;
  background: var(--gray-btn);
  border-radius: 9px;
}

.hamburger-btn__bar {
  position: absolute;
  left: 20%;
  right: 18.32%;
}

.hamburger-btn__bar--1 { top: 26%; bottom: 65.94%; }
.hamburger-btn__bar--2 { top: 47.24%; bottom: 44.7%; }

.hamburger-btn__bar img { width: 100%; height: 100%; }

.hamburger-btn__label {
  position: absolute;
  left: 22%;
  top: 62%;
  font-family: var(--font-kurumilk);
  font-size: 10px;
  color: #000;
  white-space: nowrap;
}

.insta-icon {
  display: block;
  position: relative;
  width: 50px;
  height: 50px;
}

.insta-icon__bg {
  position: absolute;
  inset: 0;
  background: var(--gray-btn);
  border-radius: 9px;
}

.insta-icon__glyph {
  position: absolute;
  inset: 24% 22.78% 22.78% 24%;
  width: 53.9%;
  height: 53.9%;
}

/* ==== nav drawer（ハンバーガーメニュー：右からスライド） ==== */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  /* 左側の余白＝タップで閉じられる半透明グレー */
  background: rgba(62, 58, 57, 0.6);
  /* display:none だとアニメーションできないので visibility で出し分ける */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.nav-drawer.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease, visibility 0s;
}

.nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 86%;
  height: 100%;
  background: var(--bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 0 40px;
  overflow-y: auto;
  /* 右外から滑り込ませる */
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.nav-drawer.is-open .nav-drawer__panel {
  transform: translateX(0);
}

/* CLOSE ボタン */
.nav-close {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-close__icon {
  position: relative;
  width: 29px;
  height: 29px;
  flex-shrink: 0;
}
.nav-close__icon::before,
.nav-close__icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 29px;
  height: 4px;
  border-radius: 2px;
  background: var(--dark);
}
.nav-close__icon::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-close__icon::after { transform: translate(-50%, -50%) rotate(-45deg); }

.nav-close__label {
  font-family: var(--font-kurumilk);
  font-size: 16px;
  letter-spacing: 1.4px;
  color: var(--dark);
}

/* メニュー行（英語＋日本語の2カラム） */
.nav-menu {
  list-style: none;
  /* パネル幅（画面の86%）に対して82% ＝ 画面幅の約70.5% */
  width: 82%;
  margin: 0;
  padding: 0;
}
.nav-menu--primary { margin-top: 46px; }
.nav-menu--secondary { margin-top: 24px; }

.nav-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  /* タップしやすいよう行の高さを確保する */
  min-height: 44px;
  padding: 4px 0;
  border-bottom: 1px solid var(--dark);
  color: var(--dark);
  text-decoration: none;
}

.nav-menu__en { flex-shrink: 0; }

.nav-menu__en {
  font-family: var(--font-zenmaru);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.nav-menu__ja {
  font-family: var(--font-zenmaru);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* 撮影プランのタグ */
.nav-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 82%;
  margin: 22px 0 0;
  padding: 0;
}

.nav-tags a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  background: #6e6862;
  color: #fff;
  font-family: var(--font-zenmaru);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-decoration: none;
  white-space: nowrap;
}

/* 下部の連絡先アイコン */
.nav-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: auto;
  padding-top: 44px;
}

.nav-contact .line-cta {
  position: relative;
  left: auto;
  bottom: auto;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.nav-contact__insta img { width: 38px; height: 38px; }
.nav-contact__tel img { width: 46px; height: 46px; }

.line-cta {
  position: absolute;
  left: 0;
  bottom: 2.88%;
  width: 47px;
  height: 47px;
}
.line-cta__bg { width: 100%; height: 100%; }
.line-cta__vector1 { position: absolute; inset: 17.59% 18.38% 39.73% 18.38%; }
.line-cta__vector1 img { width: 100%; height: 100%; }
.line-cta__vector2 { position: absolute; inset: 32.45% 32.95% 55.73% 33.44%; }
.line-cta__vector2 img { width: 100%; height: 100%; }
/* 「LINE相談する」のラベル。
   ボタンが47px角しかなく、収まるサイズ（5px前後）では判読できないため視覚的には隠す。
   ボタン自体に aria-label="LINEで相談する" があるので読み上げには残る。
   デザイン通り表示に戻す場合はこのルールを差し替えれば良い。 */
.line-cta__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ==== フッター ==== */
.footer {
  position: relative;
  width: 390px;
  /* 高さは中身で決まる。上下の余白は padding で持つ
     （最初の子の margin が親と相殺しないようにするため）
     下の余白はブランドオブジェクト（下端で見切れる装飾）のぶん */
  /* 固定CTAは画面下から max(72px, --vh - 780px) の位置に止まる（852pxで頭打ちになる仕様）。
     ブランドオブジェクトがそれに隠れないよう、余白を連動させる。
     スマホ（--vh <= 852px）では指定どおり100px、縦長の画面ではその分だけ広がる。 */
  --footer-object-gap: max(100px, calc(var(--vh, 100vh) - 752px));
  /* 110px = オブジェクトの高さ69px + 法務行との間隔41px */
  padding: 60px 0 calc(110px + var(--footer-object-gap));
}

/* 背景だけを敷くレイヤー */
.footer__inner {
  position: absolute;
  inset: 0;
}

.footer__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* アイコン列。行自体はフローに乗せ、中の3つはデザイン通りの座標で置く */
.footer__sns-row {
  position: relative;
  margin-top: 35px;
  height: 45px;
}
/* 高さが異なる3つを縦中央で揃える */
.footer__sns {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
/* 元サイズの1.5倍。中心（110 / 195 / 282）は動かしていない */
.footer__sns--insta { left: 90px; width: 40px; height: 40px; }
.footer__sns--tel { left: 178px; width: 34px; height: 42px; }
.footer__sns--line { left: 260px; width: 45px; height: 45px; }
.footer__sns img { width: 100%; height: 100%; }

.footer__leaf-logo {
  /* 中の .img-full が absolute なので基準として relative が必要 */
  position: relative;
  margin: 0 auto;
  /* 画面幅の70%（390px に対して273px）。高さは元の 170x43 の比率を維持 */
  width: 70%;
  height: 69px;
}

.footer__objects {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  /* 下に余白を取り、固定CTAに隠れないようにする */
  bottom: var(--footer-object-gap);
  width: 265px;
  height: 69px;
  overflow: hidden;
}

.footer__wordmark {
  position: relative;
  /* 元の 304x43 の約60% */
  margin: 48px auto 0;
  width: 182px;
  height: 26px;
  overflow: hidden;
}
.footer__wordmark img {
  position: absolute;
  left: 1.92%;
  top: 0;
  width: 96.16%;
  height: 100%;
}



.footer__tagline {
  position: relative;
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-zenmaru);
  /* デザイン実測: インク幅169px（1行で収まるサイズ） */
  font-size: 10px;
  color: #fff;
  letter-spacing: 1.2px;
  white-space: nowrap;
}

/* 住所・電話・営業時間のかたまり。
   幅を中身に合わせて中央寄せすることで、3項目のアイコンの左端が揃う */
.footer__info {
  position: relative;
  width: fit-content;
  margin: 60px auto 0;
}
.footer__info p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-family: var(--font-zenmaru);
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  line-height: 1.55;
}
.footer__info p + p { margin-top: 14px; }
.footer__info a {
  color: inherit;
  text-decoration: none;
}
.footer__info-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  /* 1行目の文字の中心に合わせる */
  margin-top: 4px;
}

/* ==== utility ==== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 430px) {
  html, body { background: var(--bg-color); }
}

/* ==== フッター: サイト内リンク ==== */
.footer-nav {
  position: relative;
  width: 82%;
  margin: 44px auto 0;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  /* 2列。行間は縦の gap で持つ */
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  row-gap: 6px;
}
/* 各項目の左に細い縦線を引いて、一覧としてのまとまりを出す */
.footer-nav li {
  border-left: 1px solid rgba(255, 255, 255, 0.45);
  padding-left: 12px;
}
.footer-nav a {
  display: block;
  padding: 7px 0;
  color: #fff;
  text-decoration: none;
}
/* 日本語を主役にして、英語は下に小さく添える */
.footer-nav__ja {
  display: block;
  font-family: var(--font-zenmaru);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.3;
  white-space: nowrap;
}
.footer-nav__en {
  display: block;
  margin-top: 2px;
  font-family: var(--font-zenmaru);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.4px;
  line-height: 1.3;
  opacity: 0.6;
}

/* ==== フッター: 最下部の法務行 ==== */
.footer__legal {
  position: relative;
  margin-top: 34px;
  text-align: center;
  font-family: var(--font-zenmaru);
  font-size: 10px;
  letter-spacing: 0.3px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}
.footer__legal a {
  color: inherit;
  text-decoration: none;
}
.footer__legal-sep {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.4);
}
.footer__copyright {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* ==== フッター: PAGE TOP（右端に縦書き） ==== */
.page-top {
  position: absolute;
  right: 18px;
  bottom: calc(110px + var(--footer-object-gap));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.page-top__line {
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, 0.55);
}
.page-top__label {
  font-family: var(--font-kurumilk);
  font-size: 10px;
  letter-spacing: 1.6px;
  color: rgba(255, 255, 255, 0.8);
  /* 縦書き（上から下へ読ませる） */
  writing-mode: vertical-rl;
}
