/*
 * Common Styles
 * Reset, Base elements, Header, Footer
 */

/* リセットスタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* コンテナ */
.container {
  width: 100%;
  margin: 0 auto;
}

/* ヘッダー */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.nav-bar {
  background-color: rgba(51, 51, 51, 0.4);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dummy-block {
  width: clamp(5rem, 4.464rem + 2.38vw, 6.25rem);
}

/* ロゴとサイトタイトル */
.site-branding {
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  width: clamp(5rem, 4.464rem + 2.38vw, 6.25rem);
}

.site-title {
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
  font-size: 48px;
  color: #f6f6f6;
  line-height: 1.2em;
}

/* ヘッダー右側 */
.header-right {
  display: flex;
  align-items: center;
}

/* メインナビゲーション */
.main-navigation {
  display: block;
}

.menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.menu li a {
  color: #ffffff;
  font-size: 16px;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 5px;
  transition: all 0.3s ease;
}

/* ホバー時のスタイルは @media (hover: hover) 内に移動済み */

.menu li a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #1faf38;
  transition: width 0.3s ease;
}

/* ホバー時のスタイルは @media (hover: hover) 内に移動済み */

/* ソーシャルリンク */
.social-links {
  display: flex;
  align-items: center;
  gap: 60px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon {
  width: 60px;
  transition: transform 0.3s ease;
}

/* ホバー時のスタイルは @media (hover: hover) 内に移動済み */

/* Instagramアイコン */
.social-link.instagram {
  background: none;
  border-radius: 0;
  width: auto;
  height: auto;
}

/* ハンバーガーメニュー */
.hamburger-menu {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
}

.hamburger-icon {
  width: clamp(5rem, 4.464rem + 2.38vw, 6.25rem);
  transition: transform 0.3s ease;
}

/* モバイルメニュー（PC・モバイル共通のメニュー） */
.mobile-menu {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.menu-container {
  width: 400px;
  background-color: rgba(139, 90, 43, 0.95);
  height: 100%;
  position: absolute;
  top: 0;
  right: -400px;
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mobile-menu.active .menu-container {
  right: 0;
}

.mobile-nav {
  width: 100%;
  padding: 0 30px;
}

.mobile-menu-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, calc(20px + (60 - 20) * ((100vh - 589px) / (800 - 589))), 60px);
  /* 589pxで20px、800pxで60px */
}

.mobile-menu-items li,
.mobile-sns-links {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.mobile-menu.active .mobile-menu-items li,
.mobile-menu.active .mobile-sns-links {
  opacity: 1;
  transform: translateX(0);
}

/* 各メニュー項目のアニメーション遅延 */
.mobile-menu.active .mobile-menu-items li:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-menu.active .mobile-menu-items li:nth-child(2) {
  transition-delay: 0.15s;
}

.mobile-menu.active .mobile-menu-items li:nth-child(3) {
  transition-delay: 0.2s;
}

.mobile-menu.active .mobile-menu-items li:nth-child(4) {
  transition-delay: 0.25s;
}

.mobile-menu.active .mobile-menu-items li:nth-child(5) {
  transition-delay: 0.3s;
}

.mobile-menu.active .mobile-menu-items li:nth-child(6) {
  transition-delay: 0.35s;
}

.mobile-menu.active .mobile-sns-links {
  transition-delay: 0.4s;
}

.mobile-menu-items li a {
  color: #ffffff;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-align: center;
  display: block;
  padding: 5px 0;
  transition: color 0.3s ease;
}

/* ホバー時のスタイルは @media (hover: hover) 内に移動済み */

/* 閉じるボタン */
.close-button-container {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.close-button {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

/* ホバー時のスタイルは @media (hover: hover) 内に移動済み */

/* フッタースタイル */
.site-footer {
  background-color: #1faf38;
  color: #ffffff;
  padding: clamp(2.5rem, 1.429rem + 4.76vw, 5rem) 0 40px;
}

.footer-content {
  width: 100%;
  max-width: 1754px;
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 0.536rem + 0.95vw, 1.25rem);
}

/* フッター上段部分 */
.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: clamp(1.5rem, -15rem + 26.67vw, 5rem);
}

.footer-company-info {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.footer-address-block {
  display: flex;
  flex-direction: column;
  gap: 29px;
}

.footer-address,
.footer-hours,
.footer-holiday {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1rem, 0.786rem + 0.95vw, 1.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.footer-tel {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.5rem, 1.071rem + 1.9vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-align: center;
}

/* フッターのソーシャルリンク (ヘッダーの.social-linksを継承) */
.footer-social-links {
  display: flex;
  align-items: center;
  gap: 60px;
  justify-content: center;
}

.footer-social-links .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social-links .social-icon {
  width: clamp(2.25rem, 1.929rem + 1.43vw, 3rem);
  transition: transform 0.3s ease;
}

/* Instagramのbrを削除 */
#sb_instagram br {
  display: block;
}

/* ホバー時のスタイルは @media (hover: hover) 内に移動済み */

/* フッター下段部分 */
.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 47px;
}

.footer-navigation {
  flex: 1;
  max-width: 751px;
}

.footer-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  gap: clamp(0.75rem, -1.113rem + 3.01vw, 2.5rem);
  grid-template-areas:
    "a1 a2 a3 a4"
    "a5 a6 a7 a7";
}

/* 各メニューアイテムにグリッドエリアを割り当て */
.footer-menu li:nth-child(1) {
  grid-area: a1;
}

.footer-menu li:nth-child(2) {
  grid-area: a2;
}

.footer-menu li:nth-child(3) {
  grid-area: a3;
}

.footer-menu li:nth-child(4) {
  grid-area: a4;
}

.footer-menu li:nth-child(5) {
  grid-area: a5;
}

.footer-menu li:nth-child(6) {
  grid-area: a6;
}

.footer-menu li:nth-child(7) {
  grid-area: a7;
}

.footer-menu li a {
  font-family: "Noto Serif JP", serif;
  color: #ffffff;
  font-size: clamp(1rem, 0.468rem + 0.86vw, 1.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
}

/* ホバー時のスタイルは @media (hover: hover) 内に移動済み */

.footer-logo-area {
  display: flex;
  align-items: center;
  gap: clamp(1rem, -4.893rem + 9.52vw, 2.25rem);
}

.footer-logo-img {
  width: clamp(3rem, 2.143rem + 3.81vw, 5rem);
}

.footer-site-title h3 {
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
  font-size: clamp(1.25rem, 0.5rem + 3.33vw, 3rem);
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin: 0;
}

/* フッターコピーライト */
.footer-copyright {
  text-align: center;
}

.copyright {
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.1em;
  color: #ffffff;
}

/* ==========================================================================
   下層ページヘッダー
   ========================================================================== */

.page-header-image {
  position: relative;
  /* オーバーレイとテキストの基準点 */
  background-image: url('../images/sub-header.png');
  /* 背景画像 */
  background-size: cover;
  /* 画像をエリア全体に表示 */
  background-position: center;
  /* 画像を中央揃え */
  height: clamp(16.875rem, 13.393rem + 15.48vw, 25rem);
  /* 仮の高さ、必要に応じて調整 */
}

.page-header-image .header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  /* 黒の半透明オーバーレイ */
  z-index: 1;
  /* テキストより後ろ */
}

.page-title-box {
  position: relative;
  /* オーバーレイより手前に表示するため */
  z-index: 2;
  background-color: #ffffff;
  /* 白い背景 */
  padding: clamp(1rem, 0.571rem + 1.9vw, 2rem) clamp(1rem, -1.25rem + 10vw, 6.25rem);
  /* Figmaに合わせたパディング */
  top: 60%;
  left: 5%;
  width: fit-content;
}

.page-title {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(1.125rem, 0.75rem + 1.67vw, 2rem);
  line-height: 1;
  /* Figmaに合わせた行間 */
  color: #333333;
  /* 文字色 */
  margin: 0;
  /* ブラウザデフォルトのマージンリセット */
}

/* ==========================================================================
   パンくずリスト (Yoast SEO プラグイン想定)
   ========================================================================== */
.breadcrumb {
  background-color: #FFFFFF;
  /* 背景を白に */
  padding: 15px clamp(0.313rem, -0.089rem + 1.79vw, 1.25rem);
  /* 上下左右の余白を調整 */
  border-bottom: 1px solid #eee;
  /* 下に薄い区切り線 */
  font-size: 14px;
  /* 基本の文字サイズ */
}

.breadcrumb p {
  margin: 0;
  /* pタグのデフォルトマージンをリセット */
  color: #666;
  /* 通常テキストの色 */
}

/* パンくずリスト内のリンク */
.breadcrumb a {
  color: #1FAF38;
  /* テーマの緑色 */
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #137a27;
  /* ホバー時に少し濃い緑色 */
  text-decoration: underline;
}

/* 現在のページ（通常は最後の要素でリンクではない）のスタイル */
/* Yoastはクラスを付けるかもしれないし、単なるテキストかもしれない */
.breadcrumb span,
/* Yoastがspanで囲む場合 */
.breadcrumb strong {
  /* Yoastがstrongで囲む場合 */
  color: #333;
  /* 現在のページは少し濃い色に */
  font-weight: normal;
  /* 太字解除 (必要なら) */
}

/* もしYoastが特定のクラスを使う場合（例: .breadcrumb_last） */
.breadcrumb .breadcrumb_last {
  color: #333;
  font-weight: normal;
}

/* 最後の要素の後の区切り文字は不要なので消す */
.breadcrumb span:last-child::after,
.breadcrumb strong:last-child::after,
.breadcrumb .breadcrumb_last::after {
  content: "";
  margin: 0;
}

/* ==========================================================================
   セクションヘッダー (テンプレートパーツ用共通スタイル)
   ========================================================================== */
.section-header {
  margin-bottom: 50px;
  /* タイトルとコンテンツの間隔 */
  position: relative;
  /* z-index や重ね順を使う場合は必要 */
  /* text-align: center; は削除 */
}

.section-title {
  /* 日本語タイトルが上 */
  font-size: clamp(1.5rem, 1.154rem + 1.54vw, 3rem);
  font-weight: 400;
  color: #000000;
  margin: 0;
  display: inline-block;
  /* または block */
  position: relative;
  /* 重ね順のため */
  z-index: 2;
  /* 日本語タイトルを手前に */
}

.section-subtitle {
  /* 英語サブタイトルが下 */
  display: block;
  /* 幅を持たせる */
  font-family: 'Segoe UI', sans-serif;
  font-size: clamp(1.25rem, 0.615rem + 2.82vw, 4rem);
  font-weight: 400;
  color: #D9D9D9;
  line-height: 1;
  /* 重なり具合を見ながら調整 */
  margin-top: clamp(-1.5rem, calc(-0.75rem + (-0.75) * ((100vw - 22.5rem) / 97.5)), -0.75rem);
  /* 日本語タイトルと重ねる */
  padding-left: clamp(1.5rem, 1.096rem + 1.79vw, 3.25rem);
  /* 左に余白を追加 */
  position: relative;
  /* 重ね順のため */
  z-index: 1;
  /* 日本語タイトルの後ろに */
}

/* ==========================================================================
   サブフッター (テンプレートパーツ用共通スタイル)
   ========================================================================== */
.sub-footer {
  background-color: #ECE8D9;
  padding: clamp(1rem, 0.019rem + 4.36vw, 5.25rem) clamp(1rem, -1.885rem + 12.82vw, 13.5rem);
}

.sub-footer-row {
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.sub-footer-col {
  flex: 1;
}

.sub-footer-col>div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.sub-footer-title {
  margin-bottom: 0;
}

.sub-footer-title h3 {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  font-size: clamp(1.125rem, 1.038rem + 0.38vw, 1.5rem);
  letter-spacing: 0.05em;
  color: #333;
  text-align: left;
  margin-bottom: 5px;
}

.sub-footer-title h4 {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 1.154rem + 1.54vw, 3rem);
  letter-spacing: 0.05em;
  color: #333;
}

.sub-footer-text {
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: #000;
  margin-bottom: 30px;
  line-height: 1.2;
}

.sub-footer-divider {
  width: 1px;
  background-color: #333;
}

/* PCデバイスのみのホバー効果 - 一般的なセレクタ */
@media (hover: hover) and (pointer: fine) {

  /* メニューホバー効果 */
  .menu li a:hover,
  .menu li.current-menu-item a {
    color: #1faf38;
  }

  .menu li a:hover:after,
  .menu li.current-menu-item a:after {
    width: 100%;
  }

  /* ソーシャルアイコンホバー効果 */
  .social-link:hover .social-icon {
    transform: scale(1.1);
  }

  /* 閉じるボタンホバー効果 */
  .close-button:hover .close-icon {
    transform: scale(1.1);
  }

  /* フッターメニューホバー効果 */
  .footer-menu li a:hover {
    opacity: 0.8;
  }

  /* モバイルメニューホバー効果 */
  .mobile-menu-items li a:hover {
    color: #ffffff;
    opacity: 0.8;
  }

  /* フッターソーシャルアイコンホバー効果 */
  .footer-social-links .social-link:hover .social-icon {
    transform: scale(1.1);
  }
}

/* タッチデバイス用の無効化（既存のホバー効果を上書き） */
@media (hover: none) {

  .menu li a:hover:after,
  .social-link:hover .social-icon,
  .close-button:hover .close-icon,
  .footer-social-links .social-link:hover .social-icon {
    transform: none;
  }

  .menu li a:hover:after {
    width: 0;
  }

  .footer-menu li a:hover,
  .mobile-menu-items li a:hover {
    opacity: 1;
  }
}