/* 髙原酒造 共通スタイルシート */

/* ================================================
   リセット
================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 見出しタグのデフォルトスタイルをリセット */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

body {
  font-family: 'Noto Serif JP', serif;
  line-height: 1.6;
  color: #333333;
  background: linear-gradient(120deg, #fdfbfb, #ebedee);
}

/* ================================================
   変数定義
================================================ */
:root {
  --theme-color: #006428;
  --bg-green: #F9F4EE;
  --bg-beige: #F9F4EE;
  --bg-gray: #DEDEDE;
  --icon-color: #BABABA;
  --footer-bg: #1A1A1A;
}

/* ================================================
   トップに戻るボタン
================================================ */
.scroll-to-top {
  position: fixed;
  bottom: 4px;
  right: 4px;
  color: #fff;
  font-size: 25px;
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  text-decoration: none;
  padding: 10px 14px;
  text-align: center;
  display: block;
  background: #007d00;
  box-shadow: rgba(0, 0, 0, 0.2) 2px 2px 2px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2500;
  border: none;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top::before {
  content: "\f077";
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}

.scroll-to-top:hover {
  background: #006428;
}

/* ================================================
   ヘッダー
================================================ */
.header {
  width: 100%;
  height: 56px;
  padding: 6px 12px;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.header-logo-link {
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  z-index: 101;
}

.header-logo {
  width: 145px;
  height: 43px;
  display: block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* モバイル: ホバー＆アクティブ状態 */
@media (max-width: 767px) {
  .header-logo:hover,
  .header-logo:active {
    opacity: 0.6;
    transform: scale(0.98);
  }
  
  .mobile-menu-item:hover,
  .mobile-menu-item:active {
    opacity: 0.6;
  }
  
  .mobile-menu-link:hover,
  .mobile-menu-link:active {
    opacity: 0.8;
  }
  
  .mobile-menu-phone:hover,
  .mobile-menu-phone:active {
    background: #007d00;
  }
  
  .mobile-menu-phone:hover .mobile-menu-phone-text,
  .mobile-menu-phone:active .mobile-menu-phone-text {
    color: white;
  }
  
  .mobile-menu-phone:hover::before,
  .mobile-menu-phone:active::before {
    color: white;
  }
  
  .footer-nav-link:hover,
  .footer-nav-link:active {
    opacity: 0.6;
  }
  
  .footer-logo:hover,
  .footer-logo:active {
    opacity: 0.6;
    transform: scale(0.98);
  }
}

.hamburger-menu {
  width: 50px;
  height: 44px;
  background: var(--theme-color);
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 6px;
  right: 12px;
  z-index: 3000;  /* オーバーレイより高く */
  transition: background-color 0.1s ease;
}

.hamburger-menu.active {
  background: #1A1A1A;
}

.hamburger-menu span {
  display: block;
  width: 28px;
  height: 2.5px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
  position: relative;
}

/* ハンバーガーメニューがアクティブ時 */
.hamburger-menu.active span {
  background: transparent;
}

.hamburger-menu span::before,
.hamburger-menu span::after {
  content: '';
  display: block;
  width: 28px;
  height: 2.5px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
  position: absolute;
  left: 0;
}

.hamburger-menu span::before {
  top: -9px;
}

.hamburger-menu span::after {
  top: 9px;
}

/* アクティブ時：バッテンマーク */
.hamburger-menu.active span::before {
  top: 0 !important;
  transform: rotate(45deg) !important;
  background: #ffffff !important;
}

.hamburger-menu.active span::after {
  top: 0 !important;
  transform: rotate(-45deg) !important;
  background: #ffffff !important;
}

/* PCナビゲーション（モバイルでは非表示） */
.pc-nav {
  display: none;
}

/* ================================================
   モバイルメニューオーバーレイ
================================================ */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: #1A1A1A;
  z-index: 2000;  /* ヘッダーより高く、ハンバーガーメニューより低く */
  transition: none;
  overflow-y: auto;
  pointer-events: none;
}

.mobile-menu-overlay.active {
  right: 0;
  transition: right 0.3s ease;
  pointer-events: auto;
}

.mobile-menu {
  padding: 68px 16px 16px;  /* 上部にハンバーガーメニュー分のスペースを確保 */
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #1A1A1A;
  min-height: 100vh;
}

.mobile-menu-overlay.active .mobile-menu {
  transform: translateX(0);
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: white;
  transition: opacity 0.3s ease;
}

.mobile-menu-arrow {
  font-size: 12px;
  letter-spacing: 12px;
  color: white;
}

.mobile-menu-text,
.mobile-menu-link {
  font-size: 15px;
  letter-spacing: 1.3px;
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-phone {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: white;
  border-radius: 4px;
  padding: 16px;
  text-decoration: none;
  margin-top: 20px;
  position: relative;
  transition: background-color 0.3s ease;
}

.mobile-menu-phone::before {
  transform: translateY(1px); 
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: "\f098";
  font-size: 20px;
  color: #333333;
  transition: color 0.3s ease;
}

.mobile-menu-phone-icon {
  display: none;
}

.mobile-menu-phone-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1.3px;
  color: #333;
  font-family: 'Noto Serif JP', serif;
  transition: color 0.3s ease;
}

/* ================================================
   コンタクトセクション
================================================ */
.contact-section {
  width: 100%;
  padding: 80px clamp(12px, 3vw, 20px);
  background-image: url('../images/bg-title02.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.contact-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.contact-title {
  font-family: "Times New Roman", Times, "serif";
  font-size: 30px;
  line-height: 42px;
  letter-spacing: 1px;
  color: white;
}

.contact-subtitle {
  font-size: 16px;
  line-height: 22.4px;
  letter-spacing: 1px;
  color: white;
}

.contact-description {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.contact-description p {
  font-size: 14px;
  line-height: 19.5px;
  letter-spacing: 1.3px;
  color: white;
}

.contact-buttons-hours {
	display: flex;
	flex-direction: column;
	gap:12px;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.contact-buttons .contact-button:nth-child(1) {
  background: #fff;
  transition: background 0.3s ease;
  color: #007D00;
}

.contact-buttons .contact-button:nth-child(1):hover {
  background: #007D00;
  color: #fff;
}

.contact-buttons .contact-button:nth-child(1):active {
  background: #007D00;
  color: #fff;
}

.contact-buttons .contact-button:nth-child(2) {
  background: #007D00;
  transition: background 0.3s ease;
  color: #fff;
}

.contact-buttons .contact-button:nth-child(2):hover {
  background: #fff;
  color: #007D00;
}

.contact-buttons .contact-button:nth-child(2):active {
  background: #fff;
  color: #007D00;
}

.contact-button {
  width: 280px;
  padding: 8px;
  background: #007D00;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #333333;
  border: 2px solid #007D00;
  
}

.contact-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.contact-icon-phone::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 700;
  content: "\f095";
  font-style: normal;
}

.contact-icon-email::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f0e0";
  font-style: normal;
}

.contact-button-text {
  font-size: 18px;
  line-height: 27px;
  letter-spacing: 1.3px;
  font-weight: 500;
}

.phone-text {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
}

.contact-hours {
  width: 100%;
  padding: 4px 0;
  text-align: center;
  font-size: 14px;
  line-height: 19.5px;
  letter-spacing: 1.3px;
  color: white;
}

/* ================================================
   フッター
================================================ */
.footer {
  width: 100%;
  padding: 20px clamp(12px, 3vw, 20px) 8px;
  background: var(--footer-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-nav-item {
  height: 40px;
  padding: 0 8px;
  border-right: 1px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* モバイルでは最初の3つのみ表示 */
.footer-nav-item:nth-child(n+4) {
  display: none;
}

.footer-nav-item:last-child {
  border-right: none;
}

.footer-nav-link {
  font-size: 12px;
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.footer-logo-address {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo-link {
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.footer-logo {
  width: 160px;
  height: 48px;
  display: block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-address {
  font-size: 12px;
  color: white;
  text-align: center;
}

.footer-copyright {
  padding: 8px 0;
  text-align: center;
  font-size: 10px;
  color: white;
}

/* ================================================
   レスポンシブ対応
================================================ */

/* 320px未満 - 超小型デバイス */
@media (max-width: 319px) {
  .footer-nav-item {
    padding: 0 4px;
  }
  
  .footer-nav-link {
    font-size: 11px;
  }
}

/* 320px以上375px未満 - 小型デバイス */
@media (min-width: 320px) and (max-width: 374px) {
  .footer-nav-item {
    padding: 0 6px;
  }
  
  .footer-nav-link {
    font-size: 11px;
  }
}

/* 375px未満 - コンタクトボタン調整 */
@media (max-width: 374px) {
  .contact-button {
    width: 240px;
  }
}

/* 576px以上：モーダルを375pxに固定 */
@media (min-width: 576px) {
  .mobile-menu-overlay {
    width: 375px;
    right: -375px;
    transition: none;
    background: transparent;
  }
  
  .mobile-menu-overlay.active {
    right: 0;
    transition: right 0.3s ease;
  }
  
  .mobile-menu {
    width: 375px;
    min-height: 100vh;
    background: #1A1A1A;
  }
}

/* 576px以上768px未満：背景オーバーレイを追加 */
@media (min-width: 576px) and (max-width: 767px) {
  .mobile-menu-overlay::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .mobile-menu-overlay.active::before {
    opacity: 1;
  }
}

/* PC・タブレット対応（768px〜） */
@media (min-width: 768px) {
  
  /* PC: ホバー効果 */
  .header-logo:hover {
    opacity: 0.6;
    transform: scale(0.98);
  }
  
  .footer-logo:hover {
    opacity: 0.6;
    transform: scale(0.98);
  }
  
  .footer-nav-link:hover {
    opacity: 0.6;
  }
  
  /* ヘッダー */
  .header {
    height: 80px;
    padding: 8px clamp(24px, calc(24px + (64 - 24) * ((100vw - 768px) / (1280 - 768))), 64px);
  }

  .header-logo {
    width: 180px;
    height: 54px;
    display: block;
  }

  .hamburger-menu {
    display: none;
  }

  /* PCナビゲーション */
  .pc-nav {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .pc-nav-link {
    padding: 8px 10px;
    color: var(--header-nav-pc, #333333);
    font-size: 13px;
    letter-spacing: 0.8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 4px;
  }

  .pc-nav-link:hover {
    background-color: var(--theme-color);
    color: white;
  }

  .pc-contact-button {
    min-width: 40px;
    width: 40px;
    height: 40px;
    padding: 12px;
    background-image: linear-gradient(225deg, #084b27 0%, #3aa667 100%);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: white;
    font-size: 13px;
    letter-spacing: 0.8px;
    white-space: nowrap;
    transition: background-image 0.3s ease;
  }

  .pc-contact-button:hover {
    background-image: linear-gradient(225deg, #063519 0%, #2d8050 100%);
  }

  .header-contact-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .header-contact-icon::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f0e0";
    color: white;
    font-style: normal;
  }

  .header-contact-text {
    display: none;
  }

  /* モバイルメニューを非表示 */
  .mobile-menu-overlay {
    display: none;
  }

  /* コンタクトセクション */
  .contact-section {
    padding: 120px 16px;
  }

	
	.contact-icon {
  font-size: 28px;
}

  .contact-title {
    font-size: 40px;
    line-height: 56px;
    letter-spacing: 2px;
  }

  .contact-subtitle {
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 1.5px;
  }

  .contact-description p:first-child {
    font-size: 20px;
    line-height: 33px;
    letter-spacing: 1.5px;
  }

  .contact-description p:last-child {
    font-size: 16px;
    line-height: 33px;
    letter-spacing: 1.5px;
  }

  .contact-buttons {
    flex-direction: row;
    gap: 12px;
  }

  .contact-button {
	gap: 8px;
    width: 360px;
  }
	
  .contact-icon-email::before {
  transform: translateY(2px);
}

  .contact-button-text {
    font-size: 28px;
    line-height: 33px;
  }

  .contact-hours {
    font-size: 16px;
    line-height: 33px;
    letter-spacing: 1.5px;
  }

  /* フッター */
  .footer {
    padding: 32px 16px 8px;
  }

  .footer-nav {
    gap: 0;
  }

  /* PCでは全6つのナビゲーションを表示 */
  .footer-nav-item {
    padding: 0 8px;
    font-size: 14px;
    letter-spacing: 1.5px;
    display: flex !important;
  }

  .footer-logo {
    width: 267px;
    height: 80px;
    display: block;
  }

  .footer-logo-address {
    gap: 16px;
  }

  .footer-address {
    font-size: 12px;
    letter-spacing: 1.5px;
  }

  .footer-copyright {
    font-size: 10px;
    letter-spacing: 1.5px;
  }
}

/* 960px以上（テキスト表示） */
@media (min-width: 960px) {
  
  .header-logo {
    width: 214px;
    height: 64px;
  }

  .pc-contact-button {
    min-width: 140px;
    width: auto;
    height: 48px;
    padding: 8px 12px;
    border-radius: 32px;
  }

  .header-contact-text {
    display: inline;
    line-height: 1;
  }
}

/* 中間サイズ（1024px～） */
@media (min-width: 1024px) {
  
  .pc-nav {
    gap: 12px;
  }

  .pc-nav-link {
    padding: 8px 12px;
    font-size: 14px;
    letter-spacing: 1px;
  }

  .pc-contact-button {
    min-width: 160px;
    height: 56px;
    padding: 8px 16px;
    font-size: 14px;
    letter-spacing: 1px;
  }

  .header-contact-icon {
    width: 22px;
    height: 22px;
    font-size: 22px;
  }

  .contact-button {
    width: 392px;
  }
}

/* 大型サイズ（1280px～） */
@media (min-width: 1280px) {
  
  .pc-nav {
    gap: 16px;
  }

  .pc-nav-link {
    font-size: 16px;
    letter-spacing: 1.5px;
  }

  .pc-contact-button {
    min-width: 184px;
    height: 64px;
    font-size: 16px;
    letter-spacing: 1.5px;
    border-radius: 32px;
  }

  .header-contact-icon {
    width: 24px;
    height: 24px;
    font-size: 24px;
  }
}
