/* ==========================================================================
   common.css
   PEBORA共通パーツ（header / drawer / #shop / footer前CTA / footer）
   全ページ共通で読み込む想定
   ※ about.html の実装を正としてベースに作成
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Noto+Sans+JP:wght@100..900&display=swap');

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:     #FFFFFF;
  --dark:      #303134;
  --middark:   #3a3030;
  --blue:      #568D8D;
  --blue-rgb:  86, 141, 141;
  --gold-rgb:  175, 146, 95;
  --cream:     #FAF8F2;
  --cream-d:   #F2EDE0;
  --cream-b:   #f5fcfd;
  --gold:      #af925f;
  --gold-l:    #d9b981;
  --brown-m:   #5C3D1E;
  --green:     #3D5C35;
  --mid:       #6B6259;
  --light:     #B8AFA3;
  --border:    rgba(155,123,46,0.2);
  --border-d:  rgba(43,31,14,0.12);
  --shadow:    0 4px 32px rgba(43,31,14,0.1);
  --shadow-lg: 0 12px 64px rgba(43,31,14,0.15);

  --max:        1200px;
  --bar-h:      38px;   /* announce bar */
  --nav-h:      80px;   /* header */
  --topbar-h:   110px;  /* bar + nav */
  --bottom-nav: 60px;   /* SP bottom nav */
}

html { scroll-behavior: smooth; overflow-x: hidden; }

/* ===== iOS Safe Area (viewport-fit=cover) ===== */
@supports (padding-top: env(safe-area-inset-top)) {
  @media (max-width: 767px) {
    .header {
      padding-top: calc(20px + env(safe-area-inset-top));
    }
    .sp-bottom-nav {
      padding-bottom: env(safe-area-inset-bottom);
      height: calc(var(--bottom-nav) + env(safe-area-inset-bottom));
    }
    body {
      padding-bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom));
    }
  }
}

body {
  font-family: "Inter", "Noto Sans JP", "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background: transparent;
  color: var(--dark);
  font-feature-settings: "palt";
  font-size: 15px;
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  letter-spacing: 0.08em;
}
a { text-decoration: none; color: inherit; }

.pc { display: none; }
.sp { display: block; }
@media screen and (min-width: 767px) and (hover: hover) {
  .pc { display: block; }
  .sp { display: none; }
}

/* PC時、電話番号リンクを無効化（タップ発信の誤操作防止） */
@media (min-width: 768px) and (hover: hover) {
  .tel-link { pointer-events: none; cursor: default; text-decoration: none; color: inherit; }
}

/* ===================================
   TOP BAR / HEADER
   =================================== */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  transform: translateY(0);
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.top-bar.hidden { transform: translateY(-100%); }
@media (min-width: 768px) and (hover: hover) {
  .top-bar.hidden { transform: none; }
}

.header {
  background: rgba(255,255,255,0.975);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 0 0 48px;
}
.header-logo {
  color: var(--dark);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.2;
}
.header-logo svg { height: 40px; width: auto; display: block; }
@media (min-width: 768px) and (max-width: 1100px) and (hover: hover) {
  .header-logo svg { height: 22px; }
  .header-logo { gap: 4px; }
}

.header-nav {
  display: flex;
  gap: 20px;
  flex: 1;
  justify-content: flex-end;
  padding-right: 24px;
  padding-left: 24px;
}
.header-nav a {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--dark);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
  white-space: nowrap;
  cursor: pointer;
  transition: .3s;
}
.header-nav a:hover { color: var(--blue); }
.header-nav a.is-current { color: var(--blue); }
.header-nav a.is-current::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: -6px;
  right: -6px;
  height: 2px;
  background: var(--blue);
}

.header-cta {
  flex-shrink: 0;
  background: var(--blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 12px 32px;
  height: auto;
  border-radius: 999px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: color 0.4s;
  white-space: nowrap;
  margin-right: 40px;
  box-shadow: 0 2px 12px rgba(var(--blue-rgb), 0.58);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.header-cta svg { width: 16px; height: 16px; flex-shrink: 0; position: relative; z-index: 2; }
/* リップルホバー */
.header-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 1s ease, height 1s ease;
  opacity: 0;
  z-index: 1;
}
.header-cta:hover::before { width: 400px; height: 400px; opacity: 1; }
.header-cta > * { position: relative; z-index: 2; }
.header-cta:hover { color: var(--blue); }

@media (min-width: 1380px) {
  :root { --nav-h: 100px; }
  .header-nav { gap: 28px; padding-right: 32px; padding-left: 32px; }
  .header-nav a { font-size: 15px; }
  .header-cta { font-size: 15px; }
  .header-logo svg { height: 48px; }
  .footer-logo-wrap svg { height: 52px; }
  .header {
    background: rgba(255,255,255,0.70);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

/* SP: hide nav + cta（ハンバーガー/ドロワーに集約） */
@media (max-width: 767px) {
  .top-bar {
    position: relative;
    transform: none !important;
    transition: none;
  }
  .header {
    padding: 20px 20px 10px;
    height: auto;
    justify-content: center;
    align-items: flex-start;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .header-logo svg { height: 32px; }
  .header-nav { display: none; }
  .header-cta { display: none; }
  .hero-topbar-spacer { height: 0; }
  :root { --nav-h: 0px; --bar-h: 0px; --topbar-h: 0px; }
}

/* ===================================
   SP BOTTOM NAV（ドロワー起動ボタンを含む）
   =================================== */
.sp-bottom-nav { display: none; }
@media (max-width: 767px) {
  .sp-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottom-nav);
    background: rgba(255,255,255,0.70);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 400;
    align-items: stretch;
  }
  .sp-nav-item {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px; cursor: pointer;
    border: none; background: none;
    font-family: var(--font-san);
    padding: 0;
    color: var(--mid);
    transition: color 0.2s;
  }
  .sp-nav-item.active { color: var(--blue); }
  .sp-nav-item:hover { color: var(--dark); }
  #spMenuBtn { background: var(--white); color: var(--dark); flex-shrink: 0; width: 60px; }
  #spMenuBtn:hover { color: var(--gold); }
  .sp-nav-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
  .sp-nav-label { font-size: 10px; line-height: 1; font-weight: 800; white-space: nowrap; }
  body { padding-bottom: var(--bottom-nav); }
}

/* ===================================
   DRAWER（SPメニュー）
   =================================== */
.sp-drawer {
  position: fixed;
  inset: 0;
  z-index: 600;
  pointer-events: none;
}
.sp-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(28,24,20,0);
  transition: background 0.35s;
}
.sp-drawer-panel {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 0 0 calc(var(--bottom-nav) + 8px);
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 85vh;
  overflow-y: auto;
}
.sp-drawer.open .sp-drawer-backdrop {
  background: rgba(28,24,20,0.45);
  pointer-events: auto;
}
.sp-drawer.open .sp-drawer-panel {
  transform: translateY(0);
  pointer-events: auto;
}
.sp-drawer-handle {
  width: 36px; height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 14px auto 20px;
}
.sp-drawer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px 24px 20px;
  color: var(--dark);
}
.sp-drawer-links { padding: 4px 0; }
.sp-drawer-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  font-size: 15px; font-weight: 700;
  line-height: 1.4;
  color: var(--dark);
  cursor: pointer;
}
.sp-drawer-link-sub {
  font-family: var(--font-cor);
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--gold); text-transform: uppercase;
}
.sp-drawer-arrow { font-size: 14px; color: var(--dark); }
.sp-drawer-cta {
  margin: 20px 24px 0;
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 15px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 2px 12px rgba(var(--blue-rgb), 0.45);
  transition: background 0.2s, opacity 0.2s;
}
.sp-drawer-cta:hover { opacity: 0.85; }

/* ===================================
   #shop セクション（オンラインショップ導線）
   ※ 最終カスケード値（PC 80px / SP 48px）を採用
   =================================== */
.shops { padding: 48px 0 80px; }
.shops-bottom { padding: 0 0 80px; }
.shops-grid { 
	display: flex; 
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	max-width: 780px;
	padding: 40px 0 0;
	margin: 0 auto;
}
.shop-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; text-decoration: none;
  transition: transform 0.2s;
  cursor: pointer;
	width: 30%;
}
.shop-card:hover { transform: translateY(-4px); }
.shop-card-img {
  max-width: 240px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(255,255,255,0.50);
  transition: box-shadow 0.2s;
}
.shop-card:hover .shop-card-img { box-shadow: 0 6px 28px rgba(43,31,14,0.18); }
.shop-card-img img { width: 100%; height: auto; display: block; }
.shop-card-logo { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--dark); text-align: center; line-height: 1.6; }
.shop-card-name { font-size: 11px; color: var(--light); letter-spacing: 0.06em; }
.shops-grid-bottom { 
	display: flex; 
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 10px;
	max-width: 780px;
}
@media (max-width: 767px) {
	.shops { padding: 60px 0 80px; }
	.shops-bottom { padding: 40px 0 80px; }
	.shops-grid { justify-content: center;gap: 14px; } 
	.shops-grid-bottom { 
	justify-content: flex-start!important;
}
	.shop-card {
	width: 48%;
}
}
/* ===================================
   footer前 CTAセクション
   ※ cta-heading のみACFカスタムフィールドで差し替え想定
   =================================== */
.cta-section {
  display: block;
  padding: 140px 0;
  text-align: center;
  background:
    linear-gradient(rgba(0,78,77,0.52), rgba(20,16,10,0.52)),
    url('../img/cta-section.png') center 50% / cover no-repeat;
  will-change: background-position;
  border-bottom: 12px solid var(--blue);
}
@media (max-width: 767px) { .cta-section { padding: 100px 0; } }

.cta-heading { font-size: 34px; font-weight: 700; letter-spacing: 0.08em; color: var(--white); margin-bottom: 14px; }
@media (max-width: 767px) { .cta-heading { font-size: 24px; } }

/* CTA 白ボックス（電話番号カード） */
.cta-tel-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border-radius: 16px;
  padding: 28px 48px 36px;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  min-width: 360px;
  max-width: 480px;
}
@media (max-width: 767px) {
  .cta-tel-card { padding: 22px 28px 20px; min-width: 0; width: 100%; max-width: 360px; }
}
.cta-sub-inner {
  font-size: 13px;
  color: var(--dark);
  line-height: 2;
  text-align: center;
  margin: 0;
}
.cta-tel-divider {
  width: 100%;
  height: 1px;
  background: var(--border-d);
  margin: 4px 0;
}
.cta-tel-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
}
.cta-tel-num {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 0.04em;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  line-height: 1.2;
  transition: color 0.2s;
}
.cta-tel-num:hover { color: var(--blue); }
.cta-tel-num svg { width: 28px; height: 28px; color: var(--dark); flex-shrink: 0; }
@media (max-width: 767px) {
  .cta-tel-num { font-size: 28px; gap: 8px; }
  .cta-tel-num svg { width: 22px; height: 22px; }
}
.cta-tel-hours {
  font-size: 12px;
  color: var(--mid);
  letter-spacing: 0.06em;
  padding-top: 2px;
  width: 100%;
  text-align: center;
}
.cta-btns-inner {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}
.cta-btn-inner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 14px 36px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(var(--blue-rgb), 0.45);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s;
}
.cta-btn-inner::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.7s, height 0.7s;
  opacity: 1;
  z-index: 1;
}
.cta-btn-inner:hover::before { width: 400px; height: 400px; }
.cta-btn-inner:hover { color: var(--blue); }
.cta-btn-inner > * { position: relative; z-index: 2; }
@media (max-width: 767px) {
  .cta-tel-card { max-width: 100%; }
  .cta-btn-inner { font-size: 13px; padding: 12px 24px; }
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  border-top: 1px solid var(--border-d);
  color: var(--mid);
  padding: 86px 0 0;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 64px;
  gap: 40px;
}
@media (max-width: 767px) {
  .footer-top { display: flex; flex-direction: column; gap: 40px; padding-bottom: 24px; }
}
.footer-left { display: flex; flex-direction: column; gap: 20px; }
.footer-logo-wrap { color: var(--dark); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-logo-wrap svg { height: 44px; width: auto; }
.footer-info { display: flex; flex-direction: column; }
.footer-info-row {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--dark); line-height: 2; margin-bottom: 8px;
}
.footer-info-label {
  font-size: 12px; font-weight: 800; width: 64px;
  color: var(--dark); letter-spacing: 0.06em;
  white-space: nowrap; padding-top: 1px;
  flex-shrink: 0;
}
.footer-info-row a { color: var(--dark); text-decoration: none; transition: color 0.2s; font-weight: 700; }
.footer-info-row a:hover { color: var(--gold); }

.footer-right { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
@media (max-width: 767px) { .footer-right { align-items: flex-start; } }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; width: 100%; }
.footer-nav-col { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; position: relative; }
.footer-nav-col::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--border-d); }
.footer-nav-col::after { content: ''; position: absolute; top: 0; left: 0; width: 15%; height: 3px; background: var(--blue); }
.footer-nav a { font-size: 14px; color: var(--dark); transition: color 0.2s; font-weight: 700; }
.footer-nav a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  background: var(--dark); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); transition: all 0.2s;
}
.footer-social a:hover { background: var(--gold); }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }

.footer-bottom { background: var(--dark); color: var(--mid); padding: 0 48px; }
@media (max-width: 767px) { .footer-bottom { padding: 0 20px; } }
.footer-bottom-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 2;
}
@media (max-width: 767px) { .footer-bottom-inner { padding: 46px 0; } }
.footer-bottom a { color: var(--white); font-size: 12px; text-decoration: none; font-weight: bold; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--white); }
