/* 
 * MOKICHI TRATTORIA - Layout CSS
 * ヘッダー、フッター、グリッド、セクションレイアウト
 */

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: relative;
}

.logo {
  display: block;
  opacity: 0.8;
}

/* デスクトップナビゲーション */
.nav-desktop {
  display: none;
}

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

.nav-item {
  margin: 0 0.5rem;
}

.nav-link {
  font-family: var(--font-jp-sans);
  font-weight: 500;
  color: var(--color-kurazane-red);
  text-decoration: none;
  padding: 0.5rem 1rem;
  position: relative;
}

.nav-link.active {
  color: var(--color-kurazane-red);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--color-kurazane-red);
  transform: scaleX(1);
}

.nav-link.active::after {
  transform: scaleX(1);
}

/* ハンバーガーメニュー */
.hamburger {
  display: block;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 1010;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger-line:nth-child(1) {
  top: 0;
}

.hamburger-line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-line:nth-child(3) {
  bottom: 0;
}

/* ハンバーガーメニュー アクティブ状態 */
.mobile-menu-active .hamburger-line:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.mobile-menu-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-active .hamburger-line:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* モバイルメニュー */
.mobile-menu {
  display: block;
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--color-white);
  padding: 100px 1.5rem 2rem;
  overflow-y: auto;
  z-index: 1000;
  transition: right 0.3s ease;
}

.mobile-menu-active .mobile-menu {
  right: 0;
}

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

.nav-item-mobile {
  margin-bottom: 1.5rem;
  text-align: center;
}

.nav-link-mobile {
  font-family: var(--font-jp-sans);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-kurazane-red);
  text-decoration: none;
  display: block;
  padding: 0.5rem;
}

.nav-link-mobile.active {
  color: var(--color-kurazane-red);
}

.nav-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* ページヘッダー */
.page-header {
  background-color: var(--color-bg-light);
  padding: 140px 0 60px;
  text-align: center;
  background-position: center;
  background-size: cover;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-title {
  font-family: var(--font-en-serif);
  font-size: 3rem;
  color: var(--color-white);
  margin: 0;
  display: block;
}

.jp-title {
  display: block;
  font-family: var(--font-jp-serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin-top: 0.5rem;
  color: var(--color-white);
}

/* セクションスタイル */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-en-serif);
  font-size: 2.5rem;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}

.jp-subtitle {
  display: block;
  font-family: var(--font-jp-serif);
  font-size: 1rem;
  font-weight: 400;
  margin-top: 0.5rem;
  color: var(--color-text-light);
}

.section-description {
  font-family: var(--font-jp-sans);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-light);
  max-width: 36rem;
  margin: 1rem auto 0;
}

/* フッター */
.footer {
  background-color: var(--color-text);
  color: var(--color-white);
  padding: 4rem 0 2rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-address {
  font-style: normal;
  font-family: var(--font-jp-sans);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-address a {
  color: var(--color-kurazane-red);
  text-decoration: none;
}

.footer-address a:hover {
  opacity: 0.8;
}

.footer-nav-column,
.footer-right-section {
  padding: 0 10px;
}

.footer-right-section {
  display: flex;
  flex-direction: column;
}

.footer-right-columns {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.footer-hours {
  flex: 1;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-nav-title {
  font-family: var(--font-jp-serif);
  font-size: 1rem;
  margin: 0 0 1rem;
  font-weight: 500;
}

.footer-nav-list,
.footer-hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li,
.footer-hours-list li {
  margin-bottom: 0.5rem;
}

.footer-nav-list a {
  color: var(--color-kurazane-red);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-nav-list a:hover {
  opacity: 0.7;
}

.footer-hours-list {
  font-size: 0.875rem;
  color: var(--color-white-muted);
}

.mt-10 {
  margin-top: 10px;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-kurazane-red);
  color: var(--color-white);
  font-size: 1.25rem;
  text-decoration: none;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--color-kurazane-red);
  border-radius: 50%;
  color: white;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.copyright {
  font-size: 0.75rem;
  color: var(--color-white-muted);
  margin: 0;
}

/* トップへ戻るボタン */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background-color: var(--color-kurazane-red-dark);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 900;
}

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

/* レスポンシブスタイル */
@media (min-width: 768px) {
  .nav-desktop {
    display: block;
  }
  
  .hamburger {
    display: none;
  }
  
  .mobile-menu {
    display: none;
  }
  
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-nav {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .copyright {
    margin: 0;
  }
}

@media (min-width: 992px) {
  .header-container {
    height: 100px;
  }
  
  .nav-item {
    margin: 0 1rem;
  }
  
  .nav-link {
    font-size: 1rem;
  }
  
  .page-header {
    padding: 180px 0 80px;
  }
  
  .page-title {
    font-size: 4rem;
  }
  
  .jp-title {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  .jp-subtitle {
    font-size: 1.25rem;
  }
  
  .footer-main {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-info, .footer-nav-column, .footer-right-section {
    text-align: center;
    align-items: center;
  }
  
  .footer-right-columns {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .footer-social {
    align-items: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}

/**
 * MOKICHI TRATTORIA - レイアウトスタイル
 * サイト全体のレイアウト構造を定義
 */

/* グリッドレイアウト */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* フレックスレイアウト */
.flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.align-center {
  align-items: center;
}

.align-start {
  align-items: flex-start;
}

.align-end {
  align-items: flex-end;
}

/* グリッドレイアウト */
.grid {
  display: grid;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* セクションレイアウト */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-lg {
  padding: 7rem 0;
}

.section-content {
  max-width: 800px;
  margin: 0 auto;
}

/* ヘッダー */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header .logo {
  flex: 0 0 auto;
}

.site-header .logo img {
  height: 40px;
  width: auto;
}

.main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-kurazane-red);
  text-decoration: none;
  font-weight: 500;
}

.main-nav a.active {
  color: var(--color-kurazane-red);
}

.header-reservation {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tel-link {
  color: var(--color-kurazane-red);
  text-decoration: none;
  font-weight: 500;
}

/* モバイルメニュー */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  margin: 5px auto;
  transition: all 0.3s ease;
}

/* フッター */
.site-footer {
  background-color: var(--color-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
}

.brewery-name {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-address p,
.footer-hours p {
  margin: 0.2rem 0;
  font-size: 0.9rem;
}

.footer-address a {
  color: var(--color-kurazane-red);
  text-decoration: none;
}

.footer-address a:hover {
  opacity: 0.8;
}

.footer-hours h4,
.footer-nav h4,
.footer-social h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: var(--color-kurazane-red);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  opacity: 0.7;
}

.social-icons {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--color-kurazane-red);
  border-radius: 50%;
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
}

.copyright {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* レスポンシブ */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-logo {
    grid-column: 1 / -1;
    align-items: center;
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .site-header .container {
    flex-wrap: wrap;
  }
  
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
    margin-top: 1rem;
  }
  
  .main-nav.active {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  .main-nav li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .main-nav a {
    padding: 1rem;
  }
  
  .header-reservation {
    flex: 1 1 auto;
    justify-content: flex-end;
  }
  
  .mobile-menu-toggle {
    display: block;
    order: 1;
  }
  
  .site-header .logo {
    order: 2;
    flex: 1;
    text-align: center;
  }
  
  .header-reservation {
    order: 3;
  }
  
  .tel-link {
    display: none;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo,
  .footer-links {
    align-items: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-sm {
    padding: 2rem 0;
  }
  
  .section-lg {
    padding: 4rem 0;
  }
} 