/*
Theme Name: Cafe Nukumori
Description: カフェ ぬくもりのいぬ カスタムテーマ
Version: 1.0.0
Author: Custom Development
*/

:root {
  --primary-brown: #8B4513;
  --secondary-beige: #F5F5DC;
  --accent-green: #228B22;
  --accent-orange: #FF8C00;
  --keyaki-brown: #A0522D;
  --keyaki-light: #D2B48C;
  --keyaki-dark: #8B4513;
  --text-dark: #333333;
  --text-light: #666666;
  --background-white: #FFFFFF;
  --background-light: #FAFAFA;
  --border-light: #E0E0E0;
  
  --font-size-h1: 2.5rem;
  --font-size-h2: 2rem;
  --font-size-h3: 1.5rem;
  --font-size-body: 1rem;
  --font-size-small: 0.875rem;
  
  --line-height-heading: 1.4;
  --line-height-body: 1.6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--text-dark);
  background-color: var(--background-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--background-white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

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

.site-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-brown);
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--accent-orange);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4));
  z-index: 1;
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  background: rgba(0,0,0,0.5);
  padding: 2rem;
  border-radius: 10px;
  max-width: 90vw;
  width: auto;
  box-sizing: border-box;
}

.hero-title {
  font-size: var(--font-size-h1);
  margin-bottom: 1rem;
}

/* Calendar Section */
.calendar-section {
  padding: 4rem 0;
  background: var(--background-light);
}

.section-title {
  text-align: center;
  font-size: var(--font-size-h2);
  color: var(--keyaki-brown);
  margin-bottom: 2rem;
}

.menu-highlight-section {
  padding: 6rem 0;
  background: var(--background-white);
}

.menu-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.menu-category {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.calendar-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.calendar-wrapper {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid var(--border-light);
}

.calendar-month-header {
  background: linear-gradient(135deg, var(--keyaki-brown) 0%, var(--keyaki-dark) 100%);
  color: white;
  padding: 1rem;
  text-align: center;
}

.calendar-month-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  table-layout: fixed;
}

.calendar-header {
  background: var(--background-light);
  color: var(--keyaki-brown);
  padding: 0.75rem;
  font-weight: bold;
  text-align: center;
  border-bottom: 2px solid var(--keyaki-light);
  font-size: 0.9rem;
  width: 14.28%;
}

.calendar-cell {
  border: 1px solid var(--border-light);
  padding: 0.5rem;
  height: 70px;
  vertical-align: top;
  text-align: center;
  position: relative;
  transition: background-color 0.2s ease;
  width: 14.28%;
}

.calendar-date {
  font-weight: bold;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.25rem;
}

.calendar-note {
  font-size: 0.7rem;
  display: block;
  line-height: 1.2;
  color: inherit;
}

.calendar-note.business-hours {
  font-weight: bold;
}

.calendar-cell.closed {
  background: #ffebee;
  color: #c62828;
}

.calendar-cell.holiday {
  background: #ffebee;
  color: #c62828;
}

.calendar-cell.weekend {
  background: #ffebee;
  color: #c62828;
}

.calendar-cell.today {
  border: 2px solid var(--keyaki-brown);
  font-weight: bold;
}

.calendar-cell.other-month {
  background: rgba(128, 128, 128, 0.3);
  color: rgba(128, 128, 128, 0.7);
}



/* Menu Section */
.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.menu-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.menu-item:hover {
  transform: translateY(-2px);
}

.menu-item-content {
  padding: 1.5rem;
}

.menu-item-title {
  font-size: var(--font-size-h3);
  margin-bottom: 0.5rem;
  color: var(--keyaki-brown);
}

.menu-category h3 {
  color: var(--keyaki-brown);
  margin-bottom: 1rem;
}

.menu-link {
  color: var(--keyaki-dark);
  text-decoration: none;
  font-weight: bold;
}

.menu-link:hover {
  color: var(--keyaki-light);
}

.menu-item-price {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--accent-orange);
  margin-top: 1rem;
}

/* Contact Form */
.contact-info {
  max-width: 600px;
  margin: 0 auto 3rem auto;
  padding: 2rem;
  background: var(--background-light);
  border-radius: 8px;
  text-align: center;
}

.contact-info h2 {
  color: var(--keyaki-brown);
  margin-bottom: 1rem;
}

.contact-info a {
  color: var(--keyaki-dark);
  text-decoration: none;
  font-weight: bold;
}

.contact-info a:hover {
  color: var(--keyaki-light);
}

/* Menu Page */
.menu-content {
  padding: 4rem 0;
}

.menu-categories-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.menu-category-detail {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.menu-category-detail h2 {
  color: var(--keyaki-brown);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.menu-category-detail p {
  margin-bottom: 2rem;
  color: var(--text-light);
  line-height: 1.6;
}

.menu-pdf-link {
  margin-top: 1.5rem;
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
  background: var(--background-white);
}

.contact-info-home {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}

.contact-list {
  max-width: 600px;
  margin: 0 auto;
}

.contact-list dt {
  font-weight: bold;
  color: var(--keyaki-brown);
  margin-top: 1rem;
}

.contact-list dd {
  margin-left: 1rem;
  margin-bottom: 0.5rem;
}

.contact-info-home p {
  max-width: 600px;
  margin: 1rem auto 0 auto;
  line-height: 1.6;
}

.cafe-contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-light);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-orange);
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary-brown);
  color: white;
}

.btn-primary:hover {
  background: #654321;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, var(--keyaki-brown) 0%, var(--keyaki-dark) 50%, var(--keyaki-light) 100%);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-info h3 {
  margin-bottom: 1rem;
}

.footer-info p {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.access-section {
  padding: 4rem 0;
}

.access-list {
  max-width: 600px;
  margin: 0 auto;
}

.access-list dt {
  font-weight: bold;
  color: var(--keyaki-brown);
  margin-top: 1rem;
}

.access-list dd {
  margin-left: 1rem;
  margin-bottom: 0.5rem;
}

.access-list a {
  color: var(--text-dark);
  text-decoration: underline;
  text-decoration-style: dotted;
}

.access-list a:hover {
  color: var(--keyaki-brown);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .hero-section {
    background-position: left center;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }
  
  .site-logo img {
    height: 80px;
  }
  
  .main-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
  }
  
  .hero-content {
    padding: 1.5rem;
    margin: 0;
    max-width: calc(100vw - 2rem);
    width: calc(100vw - 2rem);
    box-sizing: border-box;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle, .hero-location, .hero-pet-info {
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .menu-highlight-section {
    padding: 3rem 0;
  }
  
  .menu-categories {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .menu-category {
    padding: 1.5rem;
  }
  
  .calendar-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .calendar-table {
    font-size: 0.9rem;
  }
  
  .calendar-cell {
    height: 50px;
    padding: 0.25rem;
    font-size: 0.8rem;
  }
  
  .access-section {
    padding: 3rem 0;
  }
  
  .access-list {
    font-size: 0.9rem;
  }
  
  .contact-info, .cafe-contact-form {
    padding: 1.5rem;
    margin: 0 1rem;
  }
}

@media (max-width: 480px) {
  .site-logo img {
    height: 60px;
  }
  
  .main-nav ul {
    font-size: 0.8rem;
    gap: 0.5rem;
  }
  
  .hero-content {
    padding: 1rem;
    margin: 0;
    max-width: calc(100vw - 1rem);
    width: calc(100vw - 1rem);
    box-sizing: border-box;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle, .hero-location, .hero-pet-info {
    font-size: 0.8rem;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .menu-highlight-section, .calendar-section, .access-section {
    padding: 2rem 0;
  }
  
  .menu-category {
    padding: 1rem;
  }
  
  .calendar-cell {
    height: 40px;
    font-size: 0.7rem;
  }
  
  .calendar-header {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  
  .contact-info, .cafe-contact-form {
    padding: 1rem;
  }
  
  .form-group input, .form-group select, .form-group textarea {
    font-size: 16px; /* iOS zoom prevention */
  }
}