﻿/* =======================================================
   common.css — 全ページ共通スタイル
   ヘッダー・ドロップダウン・フッター・ページレイアウト
======================================================= */

/* -------------------------------------------------------
   ユーティリティ (スクリーンリーダー/SEO用隠しテキスト)
------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------
   サイト共通ヘッダー
------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-main);
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-header .logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.site-header .logo img {
  height: 48px;
  border-radius: 50%;
}

/* -------------------------------------------------------
   デスクトップナビ + ドロップダウン
------------------------------------------------------- */
.site-nav > ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 2px;
  align-items: center;
}

/* 親リスト項目 */
.site-nav > ul > li {
  position: relative;
}

/* 親リンク */
.site-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  height: 70px;
  box-sizing: border-box;
}

/* ドロップダウン矢印 */
.site-nav > ul > li.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid rgba(255,255,255,0.7);
  border-bottom: 1.5px solid rgba(255,255,255,0.7);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s;
  margin-left: 2px;
}

.site-nav > ul > li.has-dropdown:hover > a::after {
  transform: rotate(-135deg) translateY(-2px);
}

.site-nav > ul > li > a:hover,
.site-nav > ul > li > a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* LINEボタン */
.site-nav > ul > li.nav-line > a {
  background: #06C755;
  color: #fff;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 8px;
  height: auto;
  font-size: 0.88rem;
}

.site-nav > ul > li.nav-line > a:hover {
  background: #04a844;
}

/* ===== ドロップダウンパネル ===== */
.dropdown {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 200px;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(74, 55, 40, 0.18), 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.9);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 9999;
}

/* ドロップダウン表示（ホバー時） */
.site-nav > ul > li.has-dropdown:hover > .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* 吹き出しの小三角 */
.dropdown::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 7px 7px;
  border-style: solid;
  border-color: transparent transparent rgba(255,255,255,0.95);
}

/* ドロップダウン内リンク */
.dropdown li a {
  display: block;
  padding: 10px 22px;
  font-size: 0.9rem;
  color: var(--color-main);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  border-radius: 8px;
  margin: 2px 6px;
  letter-spacing: 0.02em;
}

.dropdown li a::before {
  content: '→ ';
  font-size: 0.8em;
  opacity: 0.5;
}

.dropdown li a:hover {
  background: var(--color-gold-light);
  color: var(--color-accent);
  padding-left: 28px;
}

/* -------------------------------------------------------
   ハンバーガーボタン（スマホ用）
------------------------------------------------------- */
.sp-menu-btn {
  display: none;
  cursor: pointer;
  padding: 8px;
  color: #fff;
  font-size: 1.5rem;
  background: none;
  border: none;
  line-height: 1;
}

/* -------------------------------------------------------
   スマホ用ドロワーメニュー
------------------------------------------------------- */
.sp-drawer {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  background: var(--color-main);
  z-index: 999;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.sp-drawer.open { display: block; }

/* ドロワー親項目 */
.sp-drawer > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-drawer > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s;
}

.sp-drawer > ul > li > a:hover { background: rgba(255,255,255,0.08); }

/* ドロワー内の折りたたみ矢印 */
.sp-drawer > ul > li.has-dropdown > a .sp-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255,255,255,0.6);
  border-bottom: 2px solid rgba(255,255,255,0.6);
  transform: rotate(45deg);
  transition: transform 0.25s;
  flex-shrink: 0;
  margin-left: 10px;
}

.sp-drawer > ul > li.has-dropdown.open > a .sp-arrow {
  transform: rotate(-135deg);
}

/* ドロワー内サブメニュー */
.sp-sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: rgba(0,0,0,0.15);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sp-drawer > ul > li.has-dropdown.open > .sp-sub-menu {
  max-height: 400px;
}

.sp-sub-menu li a {
  display: block;
  padding: 11px 25px 11px 40px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}

.sp-sub-menu li a::before { content: '→ '; opacity: 0.6; }
.sp-sub-menu li a:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* LINEボタン（ドロワー内） */
.sp-drawer > ul > li.nav-line > a {
  background: #06C755;
  color: #fff;
  font-weight: 700;
  margin: 12px 20px;
  border-radius: 8px;
  text-align: center;
  border-bottom: none;
  justify-content: center;
}

/* -------------------------------------------------------
   ページタイトルバナー（サブページ上部）
------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--color-main) 0%, #7a5c47 100%);
  padding: 70px 25px 60px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/common/fv_new4.jpg') center/cover no-repeat;
  opacity: 0.12;
  z-index: 0;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: var(--font-title);
  font-size: 2.6rem;
  font-weight: 900;
  margin: 0 0 12px;
  letter-spacing: 0.1em;
  text-shadow: 1px 2px 8px rgba(0,0,0,0.3);
}

.page-hero p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin: 0;
}

/* -------------------------------------------------------
   汎用ページコンテンツ
------------------------------------------------------- */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 25px 100px;
}

.page-section {
  margin-bottom: 70px;
}

.page-section-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--color-main);
  border-left: 5px solid var(--color-gold);
  padding-left: 18px;
  margin-bottom: 30px;
  font-weight: 800;
}

.page-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  border: 1px solid rgba(193, 154, 107, 0.15);
}

.page-note {
  background: var(--color-gold-light);
  border-radius: 12px;
  padding: 20px 25px;
  color: var(--color-main);
  font-size: 1rem;
  line-height: 1.8;
  margin-top: 20px;
}

/* -------------------------------------------------------
   共通フッター (Modern Branding)
------------------------------------------------------- */
.site-footer {
  background: var(--color-main, #4A3728);
  color: #fff;
  padding: 80px 25px 40px;
  text-align: center;
}

.site-footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-branding {
  margin-bottom: 35px;
}

.footer-cup-icon {
  color: #e0a340;
  font-size: 2.8rem;
  margin-bottom: 15px;
  display: inline-block;
}

.site-footer-title {
  font-family: var(--font-title, 'Shippori Mincho', serif);
  font-size: 2.8rem;
  font-weight: 900;
  color: #ffffff;
  margin: 10px 0 5px;
  letter-spacing: 0.1em;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.site-footer-subtitle {
  display: block;
  font-size: 1.05rem;
  color: #f8ebe0;
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: 0.05em;
}

/* SNS Icons Row */
.footer-sns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 40px;
}

.sns-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1.6rem;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.sns-icon-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.sns-icon-link.kokuchpro {
  background: #fff;
  padding: 8px;
}
.sns-icon-link.kokuchpro img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sns-icon-link.instagram {
  background: linear-gradient(135deg, #f09433, #dc2743, #bc1888);
}

.sns-icon-link.threads {
  background: #000;
  padding: 0;
  overflow: hidden;
}
.sns-icon-link.threads img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sns-icon-link.line {
  background: #06C755;
}

/* Footer Nav */
.site-footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 30px;
  list-style: none;
  padding: 0;
  margin: 0 0 35px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 35px;
}

.site-footer-nav li a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-footer-nav li a:hover {
  color: #e0a340;
}

.site-footer-copy {
  font-size: 0.82rem;
  opacity: 0.45;
  margin-top: 20px;
  letter-spacing: 0.05em;
}

/* -------------------------------------------------------
   レスポンシブ
------------------------------------------------------- */
@media screen and (max-width: 900px) {
  .site-nav { display: none; }
  .sp-menu-btn { display: block; }
}

@media screen and (max-width: 768px) {
  .page-hero h1 { font-size: 1.8rem; }
  .page-hero { padding: 45px 20px 35px; }
  .page-content { padding: 40px 20px 80px; }
  .page-card { padding: 25px 20px; }
  .page-section-title { font-size: 1.4rem; }
  .site-header-inner { padding: 0 15px; }
}

@media screen and (max-width: 600px) {
  .site-footer { padding: 50px 20px 30px; }
  .site-footer-nav { gap: 10px 20px; }
  .site-footer-nav li a { font-size: 0.88rem; }
  .site-footer-title { font-size: 2.2rem; }
  .site-footer-subtitle { font-size: 0.95rem; }
  .footer-cup-icon { font-size: 2.2rem; margin-bottom: 10px; }
  .sns-icon-link { width: 40px; height: 40px; font-size: 1.4rem; }
}

/* -------------------------------------------------------
   スクロール連動ヘッダー（スマホ専用）
------------------------------------------------------- */
@media screen and (max-width: 900px) {
  /* ===== スマホ ヘッダー：福岡カフェ会風 ===== */
  .site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.35s ease, background 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
  }

  /* スマホ時: ロゴとサイト名を中央に、ハンバーガーを右に */
  .site-header-inner {
    height: 56px !important;
    padding: 0 15px !important;
    display: grid !important;
    grid-template-columns: 44px 1fr 44px !important;
    align-items: center !important;
  }

  /* ロゴ（中央カラム）を中央寄せ */
  .site-header .logo {
    grid-column: 2 !important;
    display: flex !important;
    justify-content: center !important;
  }

  .site-header .logo a {
    gap: 8px !important;
  }

  .site-header .logo img {
    height: 36px !important;
  }

  .site-header .logo a span {
    font-size: 1.1rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
  }

  /* ハンバーガーボタンを右端に配置 */
  .sp-menu-btn {
    grid-column: 3 !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    font-size: 1.4rem !important;
  }

  /* ドロワーのtop位置をヘッダー高に合わせる */
  .sp-drawer {
    top: 56px !important;
    max-height: calc(100vh - 56px) !important;
  }

  /* 下スクロール → ヘッダー縮小（高さのみ小さく） */
  .site-header.header-shrink .site-header-inner {
    height: 44px !important;
  }
  .site-header.header-shrink .logo img {
    height: 28px !important;
  }
  .site-header.header-shrink .site-header-inner {
    background: rgba(74, 55, 40, 0.97);
  }
  .site-header.header-shrink .sp-drawer {
    top: 44px !important;
    max-height: calc(100vh - 44px) !important;
  }

  /* 上スクロール → 通常表示（変化なし） */
  .site-header.header-hidden {
    transform: translateY(-100%);
  }

  /* main要素の上Paddingをヘッダー分確保 */
  body { padding-top: 56px; }
}

/* PC: body padding-top は不要（sticky はフローに残る） */
@media screen and (min-width: 901px) {
  body { padding-top: 0 !important; }
  .site-header {
    position: sticky !important;
    transform: none !important;
  }
}

