/* ==========================================================================
   幸すし - 老舗寿司店のウェブサイト
   親しみやすさと温かみを大切にした和風デザイン
   ========================================================================== */

/* CSS カスタムプロパティ（変数）
   ========================================================================== */
:root {
  /* カラーパレット - 高級感のある老舗の伝統色 */
  --color-primary: #1B4332;      /* 深緑色（ふかみどりいろ）- 高級感のある濃い緑 */
  --color-secondary: #2D5016;    /* 常盤色（ときわいろ）- 伝統的な深い緑 */
  --color-accent: #D4AF37;       /* 金色（きんいろ）- 控えめな上品な金 */
  --color-background: #FEFEFE;   /* 白練色（しろねりいろ）- 上品な白 */
  --color-white: #FFFFFF;        /* 純白 */
  --color-text-primary: #1A1A1A; /* 墨色 - 読みやすい濃い色 */
  --color-text-secondary: #2D5016; /* 常盤色 - セカンダリテキスト */
  --color-text-light: #52796F;   /* 薄い緑系 */
  
  /* 和の高級感のある補助色 */
  --color-washi: #F8F6F0;        /* 和紙色 - 上品な生成り */
  --color-sumi: #2C2C2C;         /* 墨色（すみいろ）- 深い黒 */
  --color-urushi: #8B0000;       /* 漆色（うるしいろ）- 深い赤 */
  --color-matcha: #7CB342;       /* 抹茶色 - 上品な緑 */
  --color-sakura: #F8BBD9;       /* 桜色 - 淡いピンク */
  --color-elegant-gray: #F5F5F5; /* 上品なグレー */
  
  /* 和紙風背景色 - 温かみのあるクリーム色 */
  --color-washi-bg: #F5F0E6;      /* 温かみのあるクリーム色 */
  --color-washi-dark: #E8E0D0;    /* 少し濃いベージュ（フッター用） */
  
  /* スペーシング - 8の倍数ベース（調和の取れた余白） */
  --spacing-1: 0.5rem;     /* 8px - 最小余白 */
  --spacing-2: 1rem;       /* 16px - 小さな余白 */
  --spacing-3: 1.5rem;     /* 24px - 基本余白 */
  --spacing-4: 2rem;       /* 32px - 標準余白 */
  --spacing-5: 2.5rem;     /* 40px - 中程度余白 */
  --spacing-6: 3rem;       /* 48px - 大きな余白 */
  --spacing-8: 4rem;       /* 64px - 特大余白 */
  --spacing-10: 5rem;      /* 80px - セクション間 */
  --spacing-12: 6rem;      /* 96px - 大きなセクション間 */
  --spacing-16: 8rem;      /* 128px - 最大余白 */
  
  /* エイリアス（使いやすさのため） */
  --spacing-xs: var(--spacing-1);
  --spacing-sm: var(--spacing-2);
  --spacing-md: var(--spacing-3);
  --spacing-lg: var(--spacing-4);
  --spacing-xl: var(--spacing-6);
  --spacing-2xl: var(--spacing-8);
  --spacing-3xl: var(--spacing-12);
  
  /* ボーダー半径 - 温かみのある丸み */
  --radius-sm: 0.5rem;     /* 8px - 小さな丸み */
  --radius-md: 1rem;       /* 16px - 基本の丸み */
  --radius-lg: 1.5rem;     /* 24px - 大きな丸み */
  --radius-xl: 2rem;       /* 32px - 特大の丸み */
  --radius-2xl: 2.5rem;    /* 40px - 最大の丸み */
  --radius-full: 50%;      /* 完全な円 */
  
  /* シャドウ - 上品で高級感のある影 */
  --shadow-sm: 0 2px 4px rgba(27, 67, 50, 0.08);
  --shadow-md: 0 4px 12px rgba(27, 67, 50, 0.12), 0 2px 4px rgba(27, 67, 50, 0.08);
  --shadow-lg: 0 8px 24px rgba(27, 67, 50, 0.15), 0 4px 8px rgba(27, 67, 50, 0.1);
  --shadow-xl: 0 16px 32px rgba(27, 67, 50, 0.18), 0 8px 16px rgba(27, 67, 50, 0.12);
  
  /* 上品な内側の影 */
  --shadow-inset: inset 0 2px 4px rgba(27, 67, 50, 0.06);
  
  /* フォントファミリー - 親しみやすい和風 */
  --font-serif: "游明朝", "Yu Mincho", "Hiragino Mincho Pro", "ヒラギノ明朝 Pro W3", "MS P明朝", "MS PMincho", serif;
  --font-sans: "游ゴシック Medium", "Yu Gothic Medium", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "Meiryo", "メイリオ", sans-serif;
  --font-rounded: "Hiragino Maru Gothic Pro", "ヒラギノ丸ゴ Pro W4", "游ゴシック", sans-serif;
  
  /* フォントサイズ - 読みやすさを重視 */
  --text-xs: 0.8rem;       /* 12.8px */
  --text-sm: 0.9rem;       /* 14.4px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  
  /* フォントウェイト */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* 行の高さ */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  --leading-loose: 2;
  
  /* トランジション */
  --transition-fast: 200ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* 告知バナー色 - 和風 */
  --banner-bg: #FFFACD;         /* 薄い山吹色 */
  --banner-border: #DAA520;     /* 山吹色 */
  --banner-text: #8B4513;       /* 栗色 */
}

/* リセット・ベース
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  line-height: var(--leading-normal);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  background-color: var(--color-washi-bg);
  /* 和紙の繊維を表現するテクスチャ + 金粉の装飾 */
  background-image: 
    /* 金粉（黄色寄りの金色） */
    radial-gradient(circle at 15% 25%, rgba(255, 215, 0, 0.5) 2.5px, transparent 2.5px),
    radial-gradient(circle at 85% 75%, rgba(255, 200, 0, 0.45) 2.5px, transparent 2.5px),
    radial-gradient(circle at 45% 60%, rgba(255, 230, 50, 0.4) 2px, transparent 2px),
    radial-gradient(circle at 70% 30%, rgba(255, 210, 0, 0.45) 2.5px, transparent 2.5px),
    radial-gradient(circle at 30% 80%, rgba(255, 220, 30, 0.4) 2px, transparent 2px),
    radial-gradient(circle at 60% 15%, rgba(255, 205, 0, 0.4) 2px, transparent 2px),
    radial-gradient(circle at 25% 70%, rgba(255, 225, 40, 0.35) 2px, transparent 2px),
    /* 和紙の繊維 */
    radial-gradient(circle at 20% 30%, rgba(232, 224, 208, 0.3) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(221, 213, 197, 0.25) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(245, 240, 230, 0.4) 1px, transparent 1px),
    linear-gradient(0deg, transparent 24%, rgba(232, 224, 208, 0.15) 25%, rgba(232, 224, 208, 0.15) 26%, transparent 27%, transparent 74%, rgba(232, 224, 208, 0.15) 75%, rgba(232, 224, 208, 0.15) 76%, transparent 77%, transparent);
  background-size: 120px 120px, 140px 140px, 100px 100px, 130px 130px, 110px 110px, 115px 115px, 125px 125px, 60px 60px, 80px 80px, 100px 100px, 1px 30px;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 老舗らしい温かみを演出 */
  min-height: 100vh;
}

/* 書道筆線の装飾1（左側上部） */
body::before {
  content: '';
  position: fixed;
  top: 10%;
  left: -10%;
  width: 40%;
  height: 50%;
  background-image: url('../images/background/syodou2.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top left;
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
  transform: rotate(12deg);
}

/* 書道筆線の装飾2（右側下部） */
body::after {
  content: '';
  position: fixed;
  bottom: 5%;
  right: -8%;
  width: 45%;
  height: 55%;
  background-image: url('../images/background/syodou1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
  transform: rotate(-8deg);
}

/* フォーカス管理 */
*:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* 画像 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* リンク */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}

/* 見出し - 老舗らしい親しみやすさ */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--color-primary);
  /* 上品な文字の影で高級感を演出 */
  text-shadow: 0 1px 2px rgba(27, 67, 50, 0.1);
}

h1 {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--spacing-6);
  /* 特別な装飾 */
  position: relative;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 0.2rem;
  background-color: var(--color-accent);
  border-radius: var(--radius-sm);
}

h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--spacing-4);
}

h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--spacing-3);
}

h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--spacing-3);
  font-weight: var(--font-medium);
}

h5 {
  font-size: var(--text-lg);
  margin-bottom: var(--spacing-2);
  font-weight: var(--font-medium);
}

h6 {
  font-size: var(--text-base);
  margin-bottom: var(--spacing-2);
  font-weight: var(--font-medium);
}

/* 段落・テキスト */
p {
  margin: 0 0 var(--spacing-md) 0;
  line-height: var(--leading-relaxed);
}

/* リスト */
ul, ol {
  margin: 0 0 var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
}

li {
  margin-bottom: var(--spacing-xs);
}

/* テーブル */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--spacing-lg);
}

th, td {
  padding: var(--spacing-sm);
  text-align: left;
  border-bottom: 1px solid rgba(27, 28, 44, 0.1);
}

th {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-primary);
  background-color: rgba(200, 166, 84, 0.1);
}

/* レイアウト・コンテナ
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-lg);
  }
}

/* グリッドレイアウト - 黄金比・白銀比ベース */
.grid {
  display: grid;
  gap: var(--spacing-4);
  width: 100%;
}

.grid-1 {
  grid-template-columns: 1fr;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

/* 黄金比（1.618:1）を活用したグリッド */
.grid-golden {
  grid-template-columns: 1.618fr 1fr;
}

/* 白銀比（1.414:1）を活用したグリッド */
.grid-silver {
  grid-template-columns: 1.414fr 1fr;
}

/* タブレット以上（768px〜） */
@media (min-width: 768px) {
  .grid {
    gap: var(--spacing-6);
  }
  
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* 黄金比グリッド - タブレット */
  .grid-golden {
    grid-template-columns: 1.618fr 1fr;
  }
  
  /* 白銀比グリッド - タブレット */
  .grid-silver {
    grid-template-columns: 1.414fr 1fr;
  }
}

/* デスクトップ以上（1024px〜） */
@media (min-width: 1024px) {
  .grid {
    gap: var(--spacing-8);
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 大画面（1200px〜） */
@media (min-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 特別なグリッドパターン */
.grid-auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-auto-fill {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* ヘッダー・ナビゲーション - 統一された高さ
   ========================================================================== */
.header {
  background-color: rgba(245, 240, 230, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(27, 67, 50, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  /* 固定された高さを設定 */
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0;
}

/* ヘッダー専用コンテナ - marginなしで左右端まで使用 */
.header .container {
  margin: 0;
  padding: 0 var(--spacing-2);
  padding-left: var(--spacing-2);
  max-width: none;
  width: 100%;
}

/* デスクトップでもロゴとメニューを左右端に配置 */
@media (min-width: 1024px) {
  .header .container {
    padding: 0 var(--spacing-4);
    padding-left: var(--spacing-2);
  }
  
  .header-content {
    justify-content: space-between;
  }
  
  .logo {
    margin-left: 0;
    padding-left: 0;
  }
}

.header-content {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: var(--spacing-2);
}

.logo {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  margin-left: 0;
  padding-left: 0;
  flex-shrink: 0;
  height: 80px;
  display: flex;
  align-items: center;
  padding-right: var(--spacing-3);
  white-space: nowrap;
}

.logo img {
  height: auto;
  max-height: 40px;
  width: auto;
  display: block;
}

/* WordPressカスタムロゴのスタイル */
.custom-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 0;
  padding-left: 0;
  height: 80px;
  max-width: 150px;
}

.custom-logo-link img,
.custom-logo {
  height: auto;
  max-height: 35px;
  width: auto;
  max-width: 150px;
  display: block;
  object-fit: contain;
}

/* モバイルでのロゴサイズ調整 */
@media (max-width: 767px) {
  .logo img {
    max-height: 50px;
    max-width: 150px;
  }
  
  .custom-logo-link {
    max-width: 150px;
    margin-left: 0;
    padding-left: 0;
  }
  
  .custom-logo-link img,
  .custom-logo {
    max-height: 50px;
    max-width: 150px;
  }
}

@media (max-width: 480px) {
  .logo img {
    max-height: 45px;
    max-width: 130px;
  }
  
  .custom-logo-link {
    max-width: 130px;
    margin-left: 0;
    padding-left: 0;
  }
  
  .custom-logo-link img,
  .custom-logo {
    max-height: 45px;
    max-width: 130px;
  }
}

@media (min-width: 1200px) {
  .logo {
    font-size: var(--text-2xl);
  }
}

.logo:hover,
.logo:focus {
  color: var(--color-accent);
  text-decoration: none;
}

/* Instagramリンク - ヘッダー */
.header .instagram-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  flex-shrink: 0;
  height: 80px;
}

.header .instagram-link svg {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-fast);
}

.header .instagram-link:hover,
.header .instagram-link:focus {
  color: var(--color-accent);
  background-color: rgba(200, 166, 84, 0.1);
  text-decoration: none;
}

.header .instagram-link:hover svg,
.header .instagram-link:focus svg {
  transform: scale(1.1);
}

@media (min-width: 1024px) {
  .header .instagram-link {
    margin-left: var(--spacing-sm);
  }
}

/* ナビゲーション */
.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    gap: 0;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
  }
}

@media (min-width: 1200px) {
  .nav {
    gap: var(--spacing-xs);
  }
}

@media (min-width: 1400px) {
  .nav {
    gap: var(--spacing-sm);
    justify-content: center;
  }
}

.nav-link {
  font-family: var(--font-serif);
  font-size: 11px;
  color: var(--color-text-primary);
  text-decoration: none;
  padding: 0 var(--spacing-1);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  height: 80px;
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

@media (min-width: 1200px) {
  .nav-link {
    padding: 0 var(--spacing-2);
    font-size: 12px;
  }
}

@media (min-width: 1400px) {
  .nav-link {
    padding: 0 var(--spacing-2);
    font-size: var(--text-sm);
  }
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-accent);
  background-color: rgba(200, 166, 84, 0.1);
  text-decoration: none;
}

.nav-link[aria-current="page"] {
  color: var(--color-accent);
  background-color: rgba(200, 166, 84, 0.15);
}

/* モバイルナビゲーション */
.mobile-nav-toggle {
  display: flex;
  background: none;
  border: none;
  font-size: var(--text-3xl);
  color: var(--color-primary);
  cursor: pointer;
  padding: 0 var(--spacing-2) 0 0;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
  height: 80px;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 0;
}

/* モバイル表示でロゴを左端、Instagramリンクとハンバーガーメニューを右側に配置 */
@media (max-width: 1023px) {
  .header .container {
    padding: 0 var(--spacing-2);
  }
  
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: var(--spacing-2);
  }
  
  .logo {
    flex-shrink: 0;
    order: 1;
    margin-left: 0;
    padding-left: 0;
  }
  
  .nav {
    display: none;
  }
  
  .header .instagram-link {
    order: 2;
    margin-left: auto;
    margin-right: -8px;
    height: 80px;
  }
  
  .mobile-nav-toggle {
    flex-shrink: 0;
    order: 3;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 80px;
    font-size: var(--text-3xl);
  }
}

@media (min-width: 1024px) {
  .mobile-nav-toggle {
    display: none;
  }
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus {
  background-color: rgba(200, 166, 84, 0.1);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: var(--color-white);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-lg);
  transition: right var(--transition-normal);
  z-index: 200;
  overflow-y: auto;
}

.mobile-nav.is-open {
  right: 0;
}

.mobile-nav-header .logo img {
  height: auto;
  max-height: 80px;
  width: auto;
  max-width: 250px;
  display: block;
}

@media (max-width: 480px) {
  .mobile-nav-header .logo img {
    max-height: 70px;
    max-width: 220px;
  }
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(27, 28, 44, 0.1);
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: var(--text-xl);
  color: var(--color-primary);
  cursor: pointer;
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.mobile-nav-close:hover,
.mobile-nav-close:focus {
  background-color: rgba(200, 166, 84, 0.1);
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-item {
  margin-bottom: var(--spacing-sm);
}

.mobile-nav-link {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  text-decoration: none;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  color: var(--color-accent);
  background-color: rgba(200, 166, 84, 0.1);
  text-decoration: none;
}

.mobile-nav-link[aria-current="page"] {
  color: var(--color-accent);
  background-color: rgba(200, 166, 84, 0.15);
}

/* オーバーレイ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 150;
}

.overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* メインコンテンツ - 統一された画面サイズ
   ========================================================================== */
.main,
.site-main {
  min-height: 100vh;
  padding-top: 0;
  padding-bottom: var(--spacing-xl);
}

/* ヒーローセクションがないページの調整 */
.main:not(:has(.hero)),
.site-main:not(:has(.hero)) {
  padding-top: var(--spacing-16);
}

/* より広いブラウザサポートのための代替 */
.main.no-hero,
.site-main.no-hero {
  padding-top: var(--spacing-16);
}

/* セクション */
.section {
  margin-bottom: var(--spacing-3xl);
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.section:first-child {
  margin-top: 0;
}

.section:last-child {
  margin-bottom: 0;
}

/* セクションタイトル - 老舗らしい親しみやすさ */
.section-title {
  text-align: center;
  margin-bottom: var(--spacing-8);
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-weight: var(--font-bold);
  color: var(--color-primary);
  /* 上品な文字の影で高級感を演出 */
  text-shadow: 0 2px 4px rgba(27, 67, 50, 0.1);
}

/* h1タグのsection-titleは大きなサイズを維持 */
h1.section-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--spacing-8);
}

/* h2タグのsection-titleは標準サイズ */
h2.section-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--spacing-6);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 0.2rem;
  background-color: var(--color-accent);
  border-radius: var(--radius-sm);
}

/* サブタイトル */
.section-subtitle {
  text-align: center;
  margin-bottom: var(--spacing-6);
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  font-weight: var(--font-normal);
  line-height: var(--leading-relaxed);
}

/* ヒーロー直後のセクション */
.hero + .section {
  margin-top: var(--spacing-2xl);
  clear: both;
}

.hero + .section .section-title {
  margin-top: var(--spacing-2);
  padding-top: 0;
}

/* カード - 老舗らしい温かみのあるデザイン */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 0;
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  /* 高級感のある上品な境界線 */
  border: 1px solid rgba(27, 67, 50, 0.1);
  /* 控えめで上品な和風テクスチャ */
  background-image: 
    radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.01) 1px, transparent 1px),
    radial-gradient(circle at 70% 70%, rgba(27, 67, 50, 0.015) 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px;
  /* 内側の影で深みを演出 */
  box-shadow: var(--shadow-md), var(--shadow-inset);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-inset);
  /* ホバー時に上品な高級感を演出 */
  border-color: rgba(212, 175, 55, 0.3);
  background-color: var(--color-washi);
}

.card:focus-within {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.card-title {
  margin-bottom: var(--spacing-xs);
}

.card-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin-bottom: 0;
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* カード画像 */
.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

/* カード内の直接のimgタグ（季節のおすすめなど） */
.card > img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  cursor: pointer;
  transition: opacity var(--transition-fast);
  display: block;
}

.card > img:hover {
  opacity: 0.9;
}

/* カードヘッダー */
.card-header {
  padding: var(--spacing-6) var(--spacing-6) var(--spacing-xs) var(--spacing-6);
  flex-shrink: 0;
  margin-bottom: 0;
}

/* カードコンテンツ */
.card-content {
  padding: var(--spacing-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: var(--leading-relaxed);
}

/* カードコンテンツ（ヘッダーがある場合） */
.card-header + .card-content {
  padding-top: var(--spacing-xs);
}

/* カード内のテキスト要素 */
.card-content p {
  flex: 1;
  margin-bottom: var(--spacing-4);
}

.card-content p:last-of-type {
  margin-bottom: 0;
}

/* ボタン - 老舗らしい親しみやすさとタッチ対応 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
  padding: var(--spacing-3) var(--spacing-6);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  /* タッチデバイス対応 */
  min-height: 48px;
  min-width: 48px;
  /* 文字の影で温かみを演出 */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  /* 位置バランス調整 */
  margin: var(--spacing-2);
  vertical-align: middle;
}

/* ボタングループの配置バランス */
.btn-group {
  display: flex;
  gap: var(--spacing-4);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-group .btn {
  margin: 0;
}

/* ヒーローセクション内のボタン配置 */
.hero-cta {
  display: flex;
  gap: var(--spacing-6);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-8);
}

.hero-cta .btn {
  margin: var(--spacing-2) 0;
}

/* カード内のボタン配置統一システム */
.card .btn {
  margin: 0;
  align-self: stretch;
  width: 100%;
}

.card-content .btn {
  margin-top: auto;
  margin-bottom: 0;
  flex-shrink: 0;
}

/* カードボタンエリア（専用コンテナ） */
.card-actions {
  padding: 0 var(--spacing-6) var(--spacing-6) var(--spacing-6);
  flex-shrink: 0;
  display: flex;
  gap: var(--spacing-3);
  align-items: center;
  justify-content: stretch;
}

.card-actions .btn {
  flex: 1;
  margin: 0;
}

/* カードコンテンツ内にボタンがある場合の調整 */
.card-content:last-child .btn {
  margin-top: var(--spacing-6);
}

/* カードヘッダー + コンテンツ + ボタンの場合 */
.card-header + .card-content .btn {
  margin-top: var(--spacing-6);
}

/* 画像 + コンテンツ + ボタンの場合 */
.card-image + .card-content .btn {
  margin-top: var(--spacing-6);
}

/* セクション内のボタン中央配置 */
.section .btn {
  display: block;
  margin: var(--spacing-6) auto;
  width: fit-content;
}

/* レスポンシブボタン配置 */
@media (max-width: 767px) {
  .hero-cta {
    flex-direction: column;
    gap: var(--spacing-4);
  }
  
  .btn-group {
    flex-direction: column;
    gap: var(--spacing-3);
  }
  
  .btn {
    width: auto;
    max-width: 180px;
    white-space: normal;
    line-height: var(--leading-normal);
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-2) var(--spacing-3);
  }
  
  /* ボタン内のspanをブロック要素にして確実に改行 */
  .btn span {
    display: block;
  }
  
  /* モバイルでのカード内ボタン調整 */
  .card-actions {
    flex-direction: column;
    gap: var(--spacing-2);
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  /* ボタンやクリック可能な要素は中央揃え */
  .btn,
  .card-content .btn,
  .card-actions .btn,
  .entry-content .btn,
  .btn-group {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  
  .card-content .btn {
    width: auto;
    max-width: 180px;
  }
  
  /* btn-primaryの幅を文字列に合わせて詰める */
  .btn-primary {
    padding-left: var(--spacing-3);
    padding-right: var(--spacing-3);
  }
  
  /* テキストを基本左揃えに */
  .card-content,
  .card-content p,
  .card-content h1,
  .card-content h2,
  .card-content h3,
  .card-content h4,
  .card-content h5,
  .card-content h6,
  .card-content ul,
  .card-content ol,
  .card-content li,
  .entry-content,
  .entry-content p,
  .entry-content h1,
  .entry-content h2,
  .entry-content h3,
  .entry-content h4,
  .entry-content h5,
  .entry-content h6,
  .entry-content ul,
  .entry-content ol,
  .entry-content li {
    text-align: left;
  }
  
  /* セクションタイトルは中央揃えのまま */
  .section-title {
    text-align: center;
  }
  
  /* 見出しと段落の余白を狭める */
  .card-content h1,
  .card-content h2,
  .card-content h3,
  .card-content h4,
  .card-content h5,
  .card-content h6,
  .entry-content h1,
  .entry-content h2,
  .entry-content h3,
  .entry-content h4,
  .entry-content h5,
  .entry-content h6 {
    margin-top: var(--spacing-2);
    margin-bottom: var(--spacing-2);
  }
  
  .card-content h1:first-child,
  .card-content h2:first-child,
  .card-content h3:first-child,
  .card-content h4:first-child,
  .card-content h5:first-child,
  .card-content h6:first-child,
  .entry-content h1:first-child,
  .entry-content h2:first-child,
  .entry-content h3:first-child,
  .entry-content h4:first-child,
  .entry-content h5:first-child,
  .entry-content h6:first-child {
    margin-top: 0;
  }
  
  .card-content p,
  .entry-content p {
    margin-top: var(--spacing-2);
    margin-bottom: var(--spacing-2);
  }
  
  .card-content p:first-child,
  .entry-content p:first-child {
    margin-top: 0;
  }
  
  .card-content p:last-child,
  .entry-content p:last-child {
    margin-bottom: 0;
  }
}

@media (min-width: 768px) {
  .hero-cta {
    flex-direction: row;
    gap: var(--spacing-8);
  }
  
  .btn-group {
    flex-direction: row;
    gap: var(--spacing-6);
  }
  
  /* タブレット以上でのカード内ボタン調整 */
  .card-actions {
    flex-direction: row;
  }
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-md);
  padding-left: var(--spacing-4);
  padding-right: var(--spacing-4);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-secondary);
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-secondary);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-md);
}

.btn-accent:hover,
.btn-accent:focus {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

/* 小さなボタン */
.btn-sm {
  padding: var(--spacing-2) var(--spacing-4);
  font-size: var(--text-sm);
  min-height: 40px;
}

/* 大きなボタン */
.btn-lg {
  padding: var(--spacing-4) var(--spacing-8);
  font-size: var(--text-lg);
  min-height: 56px;
}

/* 告知バナー */
.announcement-banner {
  background-color: var(--banner-bg);
  border: 1px solid var(--banner-border);
  color: var(--banner-text);
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 500;
  position: relative;
}

.announcement-banner-close {
  position: absolute;
  right: var(--spacing-sm);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--banner-text);
  cursor: pointer;
  font-size: var(--text-lg);
  padding: 0;
  line-height: 1;
}

/* ヒーローセクション - 高級感のある老舗らしいデザイン */
.hero {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--spacing-16) 0 var(--spacing-12) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  /* 上品で高級感のある影 */
  box-shadow: inset 0 0 100px rgba(27, 67, 50, 0.3);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* 控えめで上品な和紙風テクスチャ */
  background-image: 
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(212, 175, 55, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 20% 70%, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px, 100px 100px, 120px 120px;
  opacity: 0.5;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-4);
}

.hero-title {
  color: var(--color-white);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-family: var(--font-serif);
  font-weight: var(--font-bold);
  margin-bottom: var(--spacing-6);
  text-shadow: 0 3px 6px rgba(27, 67, 50, 0.4);
  line-height: var(--leading-tight);
}

.hero-subtitle,
.hero-catchphrase {
  font-size: clamp(var(--text-lg), 3vw, var(--text-2xl));
  font-weight: var(--font-normal);
  margin-bottom: var(--spacing-10);
  opacity: 0.95;
  text-shadow: 0 2px 4px rgba(27, 67, 50, 0.3);
  line-height: var(--leading-relaxed);
  color: var(--color-white);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-4);
}

@media (min-width: 768px) {
  .hero-cta {
    flex-direction: row;
    justify-content: center;
    gap: var(--spacing-6);
  }
}

/* ヒーロー内のボタンスタイル */
.hero .btn {
  box-shadow: var(--shadow-lg);
  border-width: 2px;
}

.hero .btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.hero-cta .btn {
  box-shadow: var(--shadow-lg);
  border-width: 2px;
  margin: 0;
  display: inline-flex;
  width: auto;
  min-width: 200px;
  justify-content: center;
  text-align: center;
  line-height: var(--leading-relaxed);
}

.hero-cta .btn span {
  display: block;
}

/* 営業時間ヒーローカード */
.hours-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.hours-card h2 {
  color: var(--color-white);
  text-shadow: none;
}

.hours-current {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin: var(--spacing-md) 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hours-notice {
  background-color: rgba(255, 255, 255, 0.1);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-md);
  font-size: var(--text-sm);
}

/* フッター */
.footer {
  background-color: var(--color-washi-dark);
  color: var(--color-primary);
  padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
  position: relative;
  overflow: hidden;
}

/* フッターの書道筆線装飾 */
.footer::before {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 40%;
  height: 50%;
  background-image: url('../images/background/syodou2.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom left;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  transform: rotate(10deg);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  position: relative;
  z-index: 1;
  align-items: flex-start;
}

.footer-section {
  flex: 0 1 auto;
}

.footer-section h3 {
  color: var(--color-accent);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--spacing-md);
  margin-top: 0;
  font-family: var(--font-serif);
}

.footer-section p {
  color: var(--color-text-primary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--spacing-sm);
  margin-top: 0;
}

.footer-section p:last-child {
  margin-bottom: 0;
}

.footer-section a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section a:hover,
.footer-section a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}

.footer-hours {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
}

.footer-closed {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: var(--spacing-xs);
}

.footer-phone {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

.footer-phone a {
  color: var(--color-primary);
  font-size: var(--text-lg);
}

.footer-address {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(27, 67, 50, 0.15);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  position: relative;
  z-index: 1;
}

.footer-social {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 0;
  flex-shrink: 0;
}

.footer-section.footer-social {
  padding-top: 0;
  display: flex;
  align-items: flex-start;
  margin-top: 0;
}

.footer-social .instagram-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  text-decoration: none;
  border-radius: 50%;
  transition: all var(--transition-fast);
  background-color: rgba(27, 67, 50, 0.05);
  margin-top: var(--spacing-md);
}

.footer-social .instagram-link svg {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-fast);
}

.footer-social .instagram-link:hover,
.footer-social .instagram-link:focus {
  color: var(--color-white);
  background-color: var(--color-accent);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.footer-social .instagram-link:hover svg,
.footer-social .instagram-link:focus svg {
  transform: scale(1.1);
}

/* モーダル */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 300;
  padding: var(--spacing-lg);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.modal-close {
  position: absolute;
  top: -var(--spacing-lg);
  right: -var(--spacing-lg);
  background-color: var(--color-white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  color: var(--color-primary);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.modal-close:hover,
.modal-close:focus {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.1);
}

.modal-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-lg);
}

/* ユーティリティクラス */
.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;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

/* アニメーション無効化 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .card:hover {
    transform: none;
  }
  
  .btn:hover,
  .btn:focus {
    transform: none;
  }
}

/* 印刷スタイル */
@media print {
  .header,
  .footer,
  .mobile-nav-toggle,
  .mobile-nav,
  .overlay,
  .announcement-banner {
    display: none;
  }
  
  .main {
    padding: 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  a {
    text-decoration: underline;
  }
  
  a[href^="tel:"]::after {
    content: " (" attr(href) ")";
  }
}
