/* style.css */

/* --- Design System & Variables --- */
:root {
  --bg-primary: #fcfbf9;     /* Off-white background */
  --bg-header: #0a0a0a;      /* Solid black for header */
  --bg-card: #ffffff;        /* Pure white for cards/calendar */
  --text-primary: #2a2725;    /* Dark warm charcoal for body text */
  --text-secondary: #706864;  /* Muted warm gray/brown for subtitles */
  --text-light: #ffffff;      /* White for dark backgrounds */
  --border-color: #e3deda;    /* Delicate border line color */
  --border-light: #f0edea;    /* Very soft border line */
  
  /* Calendar & Theme Accent Colors */
  --accent-lunch: #d4eaec;    /* Light blue-green for lunch */
  --accent-lunch-text: #324749;
  --accent-dinner: #d3cae5;   /* Light lavender for lunch & dinner */
  --accent-dinner-text: #3c3250;
  --accent-closed: #d0daea;   /* Light gray-blue for closed days */
  --accent-closed-text: #2f3e54;
  --accent-special: #f9f2dd;  /* Soft mustard/gold for special events */
  --accent-special-text: #826e3d;
  --accent-cooking: #f6ddd6;  /* Soft peach/pink for cooking classes */
  --accent-cooking-text: #8c5d53;

  --accent-brand: #3f5551;    /* Primary brand accent */
  
  /* Fonts */
  --font-serif: "Noto Serif JP", "Georgia", serif;
  --font-sans: "Montserrat", "Noto Sans JP", sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;
}

/* --- Base Reset & Setup --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  line-height: 1.8;
  letter-spacing: 0.05em;
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

li {
  list-style: none;
}

/* --- Utilities --- */
.pc-only-br {
  display: inline;
}

.mobile-text {
  display: none;
}

.full-text {
  display: inline;
}

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

.serif-font {
  font-family: var(--font-serif);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* --- Header --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: transparent;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 80px;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

.main-header.scrolled,
.main-header.menu-open {
  height: 85px;
  background-color: rgba(251, 250, 248, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.header-logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.main-header.scrolled .logo-img,
.main-header.menu-open .logo-img {
  height: 50px;
}

.logo-dark {
  display: none;
}

.logo-light {
  display: inline-block;
}

.main-header.scrolled .logo-light,
.main-header.menu-open .logo-light {
  display: none;
}

.main-header.scrolled .logo-dark,
.main-header.menu-open .logo-dark {
  display: inline-block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 50px;
}

.nav-link {
  font-size: 0.95rem;
  color: var(--text-light);
  letter-spacing: 0.15em;
  font-weight: 400;
  opacity: 0.8;
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--text-light);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  opacity: 1;
}

.nav-link:hover::after {
  width: 100%;
}

.instagram-icon-link {
  display: flex;
  align-items: center;
  opacity: 0.8;
  color: var(--text-light);
}

.instagram-icon-link:hover {
  opacity: 1;
}

.instagram-icon-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 1px;
  background-color: var(--text-light);
  margin: 6px 0;
  transition: var(--transition-smooth);
}

/* Scrolled/Menu-open styles for links and toggle */
.main-header.scrolled .nav-link,
.main-header.menu-open .nav-link {
  color: var(--text-primary);
}

.main-header.scrolled .nav-link::after,
.main-header.menu-open .nav-link::after {
  background-color: var(--text-primary);
}

.main-header.scrolled .instagram-icon-link,
.main-header.menu-open .instagram-icon-link {
  color: var(--text-primary);
}

.main-header.scrolled .mobile-toggle span,
.main-header.menu-open .mobile-toggle span {
  background-color: var(--text-primary);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-light);
  background-color: #000;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: #000;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45); /* Elegant dark overlay to make text readable */
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 20px;
  max-width: calc(100vh * 9 / 16);
  max-width: calc(100dvh * 9 / 16);
  width: 100%;
  box-sizing: border-box;
}

.hero-text {
  font-family: var(--font-serif);
  font-size: 2.3vh;
  font-size: 2.3dvh;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.18em;
  white-space: nowrap;
  opacity: 0;
  animation: heroTextSequence 7s ease forwards;
}

/* Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  color: var(--text-light);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  opacity: 0.8;
  animation: bounce 2s infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-indicator span {
  font-weight: 300;
}

.scroll-indicator svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --- Section Commons --- */
.section-padding {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-light);
}

/* --- Business Style (営業スタイル) --- */
.style-section {
  background-color: var(--bg-primary);
}

.style-intro {
  text-align: center;
  margin-bottom: 80px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-size: 1.2rem;
  line-height: 2.6;
  letter-spacing: 0.08em;
}

.style-intro p {
  margin-bottom: 12px;
}

.style-intro p:last-child {
  margin-bottom: 0;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.style-card {
  border: 1px solid var(--border-color);
  padding: 60px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-smooth);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  min-height: 380px;
}

.style-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45); /* Elegant dark overlay to make text readable */
  transition: var(--transition-smooth);
  z-index: 1;
}

.style-card > * {
  position: relative;
  z-index: 2;
}

.style-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.style-card:hover::before {
  background-color: rgba(0, 0, 0, 0.55); /* Darken slightly on hover */
}

/* Background Images */
.style-card.lunch-card {
  background-image: url('img/昼.jpg');
}

.style-card.alacarte-card {
  background-image: url('img/アラカルト.jpg');
}

.style-card.course-card {
  background-image: url('img/おまかせコース.jpg');
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-subtitle {
  font-size: 0.85rem;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
  display: block;
}

.card-divider {
  width: 40px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.4);
  margin-bottom: 24px;
}

.card-details {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 2.2;
  flex-grow: 1;
}

.card-details strong {
  font-weight: 500;
}

.card-button {
  margin-top: 30px;
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #ffffff;
  transition: var(--transition-smooth);
  background-color: transparent;
}

.card-button:hover {
  background-color: #ffffff;
  color: var(--text-primary);
  border-color: #ffffff;
}

/* --- Calendar (営業日カレンダー) --- */
.calendar-section {
  background-color: #fcfbf9;
}

.calendar-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.calendar-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.calendar-info .section-subtitle {
  margin-bottom: 16px;
}

.calendar-legend {
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
}

.legend-color.lunch { background-color: var(--accent-lunch); }
.legend-color.dinner { background-color: var(--accent-dinner); }
.legend-color.closed { background-color: var(--accent-closed); }
.legend-color.special { background-color: var(--accent-special); }
.legend-color.cooking { background-color: var(--accent-cooking); }

/* Mock Calendar Table Styles */
.calendar-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px;
  width: 100%;
}

@media (max-width: 768px) {
  .calendar-wrapper {
    padding: 15px;
  }
}

/* Google Calendar Embed Container */
.google-calendar-container {
  width: 100%;
  height: 560px; /* Cropped container height (600px - 40px) */
  overflow: hidden;
  position: relative;
}

.google-calendar-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 600px; /* Over-height to push bottom bar (timezone, "+Google Calendar" button) outside container */
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .google-calendar-container {
    height: 440px; /* Cropped container height on mobile (480px - 40px) */
  }
  .google-calendar-container iframe {
    height: 480px; /* Over-height on mobile */
  }
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.calendar-month-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.calendar-nav-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cal-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-primary);
}

.cal-btn.nav-arrow {
  padding: 6px 12px;
}

.cal-btn:hover {
  background-color: var(--bg-primary);
  border-color: var(--text-secondary);
}

.calendar-grid {
  width: 100%;
  border-collapse: collapse;
}

.calendar-grid th,
.calendar-grid td {
  width: 14.28%;
  border: 1px solid var(--border-light);
  text-align: left;
  vertical-align: top;
}

.calendar-grid th {
  padding: 12px 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: #faf9f6;
  text-align: center;
}

.calendar-grid th:first-child { color: #c08c85; } /* Sunday */
.calendar-grid th:last-child { color: #85a2c0; }  /* Saturday */

.calendar-grid td {
  height: 90px;
  padding: 8px 10px;
}

.day-number {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.other-month {
  background-color: #faf9f6;
}

.other-month .day-number {
  color: #c4beba;
}

/* Event styles in calendar */
.calendar-event {
  font-size: 0.72rem;
  padding: 4px 6px;
  border-radius: 2px;
  letter-spacing: 0px;
  text-align: center;
  font-weight: 500;
  line-height: 1.3;
}

.calendar-event.lunch-only {
  background-color: var(--accent-lunch);
  color: var(--accent-lunch-text);
}

.calendar-event.lunch-dinner {
  background-color: var(--accent-dinner);
  color: var(--accent-dinner-text);
}

.calendar-event.closed-day {
  background-color: var(--accent-closed);
  color: var(--accent-closed-text);
}

.calendar-event.special-day {
  background-color: var(--accent-special);
  color: var(--accent-special-text);
}

.calendar-event.cooking-class {
  background-color: var(--accent-cooking);
  color: var(--accent-cooking-text);
}

/* --- About Table Banner Section (Top Page) --- */
.about-table-banner-section {
  background-color: var(--bg-primary);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.about-banner-content {
  max-width: 600px;
  margin: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-banner-btn {
  margin-top: 24px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: 4px;
  transition: opacity 0.3s ease, gap 0.3s ease;
}

.about-banner-btn:hover {
  opacity: 0.7;
  gap: 12px;
}

.about-banner-btn .arrow-icon {
  width: 16px;
  height: 16px;
}


/* --- About Table Section (ねきの食卓について) --- */
.about-table-section {
  display: grid;
  grid-template-columns: 28% 44% 28%;
  background-color: var(--bg-primary);
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.about-left-col {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.about-left-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-center-col {
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-primary);
  box-sizing: border-box;
}

.about-center-content-group {
  margin-top: auto;
  margin-bottom: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-align: center;
}

.about-divider {
  width: 40px;
  height: 1px;
  background-color: var(--text-secondary);
  margin: 0 auto 40px auto;
}

.sp-only-br {
  display: none;
}

.about-text-container {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.about-text-line {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 2.3;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-align: left;
  white-space: nowrap; /* Keep on a single line */
}

.about-footer-logo {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-small-logo {
  height: 38px;
  width: auto;
  opacity: 0.85;
}

.about-right-col {
  display: flex;
  flex-direction: column;
  gap: 2px; /* White space gaps between images */
  background-color: #ffffff; /* White color for the gaps */
  width: 100%;
  height: 100%;
}

.about-right-item {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.about-right-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.about-right-item:hover .about-right-img {
  transform: scale(1.04);
}

.about-right-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: var(--text-light);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 300;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 2;
  opacity: 1; /* Always visible */
}

.about-right-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 50%);
  pointer-events: none;
  z-index: 1;
  opacity: 1; /* Always visible */
}

/* --- Instagram Section --- */
.instagram-section {
  background-color: var(--bg-primary);
}

.instagram-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.instagram-title-area {
  flex-grow: 1;
}

.instagram-title-area .section-subtitle {
  margin-bottom: 0;
}

.instagram-follow-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 45px;
  border: 1px solid var(--border-color);
  font-size: 1.25rem;
  background-color: var(--bg-card);
  transition: var(--transition-smooth);
}

.follow-btn:hover {
  background-color: var(--text-primary);
  color: var(--bg-card);
  border-color: var(--text-primary);
}

.follow-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.instagram-grid {
  display: flex;
  overflow-x: auto;
  gap: 40px;
  padding-bottom: 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Elegant scrollbar styling */
.instagram-grid::-webkit-scrollbar {
  height: 6px;
}
.instagram-grid::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 3px;
}
.instagram-grid::-webkit-scrollbar-thumb {
  background: var(--text-secondary);
  border-radius: 3px;
}
.instagram-grid::-webkit-scrollbar-thumb:hover {
  background: var(--text-primary);
}

.instagram-item {
  position: relative;
  flex: 0 0 346px;
  height: 380px;
  overflow: hidden;
  background-color: #ddd;
  scroll-snap-align: start;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.instagram-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.instagram-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
  z-index: 2;
  color: var(--text-light);
}

.instagram-overlay svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  transform: scale(0.8);
  transition: var(--transition-smooth);
}

.instagram-item:hover .instagram-img {
  transform: scale(1.08);
}

.instagram-item:hover .instagram-overlay {
  opacity: 1;
}

.instagram-item:hover .instagram-overlay svg {
  transform: scale(1);
}

/* --- STORES Section --- */
.stores-section {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.stores-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 45px;
  border: 1px solid var(--border-color);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  background-color: var(--bg-card);
  transition: var(--transition-smooth);
}

.stores-link-btn:hover {
  background-color: var(--text-primary);
  color: var(--bg-card);
  border-color: var(--text-primary);
}

.stores-link-btn .external-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: var(--transition-smooth);
}

/* --- Access / Info / Footer Area --- */
.access-section {
  background-color: #faf9f6;
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.first-time-block {
  margin-top: 60px;
  border-top: 1px solid var(--border-light);
  padding-top: 40px;
}

.access-col {
  display: flex;
  flex-direction: column;
}


.access-text-block {
  font-size: 0.9rem;
  line-height: 2.2;
}

.access-text-block p {
  margin-bottom: 16px;
}

.access-text-block strong {
  font-weight: 500;
}

.access-map-wrapper {
  width: 100%;
  height: 280px;
  background-color: #e0e0e0;
  border: 1px solid var(--border-color);
  position: relative;
}

.access-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.first-time-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 60px;
  font-size: 0.9rem;
  line-height: 2.2;
}

.first-time-list li {
  position: relative;
  padding-left: 16px;
}

.first-time-list li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--text-secondary);
}

/* --- Footer --- */
.main-footer {
  background-color: #faf9f6;
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

/* --- Animations --- */
@keyframes heroTextSequence {
  0% {
    opacity: 0;
    transform: translateY(20px);
    animation-timing-function: ease-out;
  }
  28.57% { /* 2s */
    opacity: 1;
    transform: translateY(0);
  }
  85.71% { /* 6s */
    opacity: 1;
    transform: translateY(0);
    animation-timing-function: ease-in;
  }
  100% { /* 7s */
    opacity: 0;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -10px);
  }
  60% {
    transform: translate(-50%, -5px);
  }
}

/* --- Modal Overlay & Popup Layout --- */
.style-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.style-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(8px);
}

.modal-container {
  position: relative;
  width: 900px;
  max-width: 90%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  display: flex;
  z-index: 2002;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

.style-modal.active .modal-container {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 2005;
  transition: var(--transition-fast);
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.modal-close-btn:hover {
  background-color: #ffffff;
  transform: scale(1.05);
}

.modal-image-col {
  width: 50%;
  min-height: 500px;
  overflow: hidden;
  position: relative;
  display: flex;
}

.modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-content-col {
  width: 50%;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--bg-primary);
}

.modal-content-col .modal-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.modal-content-col .modal-divider {
  width: 50px;
  height: 1px;
  background-color: var(--accent-brand);
  margin-bottom: 30px;
}

.modal-content-col .modal-details {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 2.2;
}

.modal-content-col .modal-details p {
  margin-bottom: 12px;
}

.modal-content-col .modal-details strong {
  font-weight: 500;
  color: var(--accent-brand);
}

.modal-content-col .modal-btn {
  margin-top: 40px;
  display: inline-block;
  align-self: flex-start;
  padding: 12px 30px;
  border: 1px solid var(--text-primary);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  transition: var(--transition-smooth);
  background-color: transparent;
}

.modal-content-col .modal-btn:hover {
  background-color: var(--text-primary);
  color: var(--bg-card);
}

/* --- Vertical Layout for Modal (Mobile & Portrait) --- */
.modal-container.vertical-layout {
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-container.vertical-layout .modal-image-col {
  width: 100%;
  height: auto;
  min-height: auto;
  display: block;
}

.modal-container.vertical-layout .modal-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.modal-container.vertical-layout .modal-content-col {
  width: 100%;
  padding: 40px 30px;
}

.modal-container.vertical-layout .modal-close-btn {
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  font-size: 1.6rem;
}

/* Fallback/standard media query for narrow screens */
@media (max-width: 900px) {
  .about-page-body {
    overflow-y: auto;
  }

  .hero-section {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    aspect-ratio: auto;
    max-height: none;
  }

  .hero-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 15px;
  }

  .hero-text {
    font-size: min(1.2rem, 4.8vw);
    letter-spacing: 0.15em;
    white-space: nowrap;
  }

  .section-padding {
    padding: 60px 0;
  }

  .style-section {
    padding-top: 40px;
  }

  .modal-container {
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal-image-col {
    width: 100%;
    height: auto;
    min-height: auto;
    display: block;
  }
  
  .modal-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }
  
  .modal-content-col {
    width: 100%;
    padding: 40px 30px;
  }
  
  .modal-close-btn {
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    font-size: 1.6rem;
  }

  .stores-link-btn {
    padding: 16px 24px;
    font-size: 0.95rem;
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .style-intro {
    margin-bottom: 50px;
    font-size: 1.15rem;
    line-height: 2.5;
    padding: 0 10px;
  }
  .style-intro p {
    margin-bottom: 10px;
  }

  .section-subtitle {
    font-size: 1.15rem;
  }
  
  .legend-item {
    font-size: 1.15rem;
  }

  .legend-color {
    width: 18px;
    height: 18px;
  }

  .access-text-block {
    font-size: 1.15rem;
    line-height: 2.3;
  }

  .first-time-list {
    font-size: 1.15rem;
    line-height: 2.3;
  }
}

/* Tap Notice for Style Cards (Responsive / Touch only) */
.style-note {
  display: none;
}

@media (max-width: 900px), (hover: none) {
  .style-note {
    display: block;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 24px;
    letter-spacing: 0.05em;
  }
}

/* --- About Table Section Responsive --- */
@media (max-width: 900px) {
  .about-page-body {
    overflow-y: auto !important;
  }

  .about-table-section.full-page-layout {
    grid-template-columns: 1fr;
    height: auto !important;
    overflow: visible !important;
  }
  
  .about-table-section.full-page-layout .about-left-col {
    height: 400px;
  }
  
  .about-table-section.full-page-layout .about-center-col {
    height: auto !important;
    min-height: auto;
    padding: 80px 24px; /* Equal top and bottom padding for vertical centering */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .about-table-section.full-page-layout .about-text-container {
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    box-sizing: border-box;
    padding: 0 16px;
    margin: 0 auto;
  }
  
  .sp-only-br {
    display: inline;
  }

  .about-table-section.full-page-layout .about-text-line {
    width: 100%;
    font-size: 11.5px;
    line-height: 2.2;
    white-space: nowrap;
    text-align: left;
    letter-spacing: 0.05em;
  }
  
  .about-table-section.full-page-layout .about-right-col {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
    gap: 2px;
    background-color: #ffffff;
    padding: 0;
    box-sizing: border-box;
  }
  
  .about-table-section.full-page-layout .about-right-item {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    height: auto;
    overflow: hidden;
  }
  
  .about-table-section.full-page-layout .about-right-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
  }

  .about-table-section.full-page-layout .about-right-label {
    position: absolute;
    bottom: 20px;
    left: 16px;
    right: 16px;
    margin: 0;
    text-align: left; /* Align left to match PC/Mock version */
    color: #ffffff; /* White text */
    font-family: var(--font-serif);
    font-size: min(0.85rem, 3.5vw); /* Reduced one size for a more delicate look */
    font-weight: 400; /* Regular weight to match mock */
    letter-spacing: 0.08em;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7); /* Strong text shadow for readability */
    z-index: 2;
    opacity: 1; /* Always visible */
    pointer-events: none;
    line-height: 1.4;
  }

  .about-table-section.full-page-layout .about-right-item::after {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 60%);
    pointer-events: none;
    z-index: 1;
    opacity: 1; /* Always visible */
  }
  
  .about-close-btn {
    top: 20px;
    left: 20px;
    background-color: var(--bg-card);
  }
}

@media (max-width: 600px) {
  .about-table-section.full-page-layout .about-center-col {
    padding: 60px 20px; /* Reduced horizontal padding for smaller mobile screens */
  }

  .about-table-section.full-page-layout .about-text-container {
    padding: 0 8px;
  }

  .about-table-section.full-page-layout .about-text-line {
    font-size: 10px;
    line-height: 2.2;
    white-space: nowrap;
    letter-spacing: 0.04em;
  }


  
  .about-table-section.full-page-layout .about-title {
    font-size: 1.7rem; /* Increased from 1.5rem */
  }
}

/* --- About Detail Page (about.html) Full Page Styles --- */
.about-page-body {
  margin: 0;
  padding: 0;
  overflow-y: hidden; /* Prevent scrolling on PC */
  overflow-x: hidden;
  background-color: var(--bg-primary);
}

.about-close-btn {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 100;
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.about-close-btn:hover {
  background-color: var(--text-primary);
  color: var(--text-light);
  border-color: var(--text-primary);
  transform: rotate(90deg);
}

.about-table-section.full-page-layout {
  height: 100vh; /* Fixed height on PC */
  width: 100vw;
  border-bottom: none;
  overflow: hidden;
}

/* Adjust about-center-col padding to fit content vertically */
.about-table-section.full-page-layout .about-center-col {
  height: 100vh; /* Fixed height */
  padding: 40px 40px; /* Reduced vertical padding */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.about-table-section.full-page-layout .about-title {
  font-size: 1.85rem;
  margin-bottom: 16px;
}

.about-table-section.full-page-layout .about-divider {
  margin: 0 auto 24px auto;
}

.about-table-section.full-page-layout .about-text-container {
  margin-top: 0;
  margin-bottom: 0;
  gap: 0; /* Remove gaps on PC to prevent overflow */
}

.about-table-section.full-page-layout .about-text-line {
  font-size: 14px; /* Reduced for better vertical fit */
  line-height: 1.9; /* Compact and clean line spacing */
}

@media (min-width: 901px) {
  .about-table-section.full-page-layout {
    height: 100vh; /* Fixed height on PC */
    width: 100vw;
    border-bottom: none;
    overflow: hidden;
  }

  .about-table-section.full-page-layout .about-right-col {
    height: 100vh;
  }

  .about-table-section.full-page-layout .about-right-item {
    flex: 1 1 0;
    min-height: 0;
  }

  /* Adjustments for shorter PC screens to prevent any overflow/scroll of the text and content */
  @media (max-height: 850px) {
    .about-table-section.full-page-layout .about-center-col {
      padding: 30px 40px;
    }
    .about-table-section.full-page-layout .about-title {
      font-size: 1.7rem;
      margin-bottom: 12px;
    }
    .about-table-section.full-page-layout .about-divider {
      margin: 0 auto 20px auto;
    }
    .about-table-section.full-page-layout .about-text-line {
      font-size: 13px;
      line-height: 1.8;
    }
    .about-footer-logo {
      margin-top: 20px;
    }
    .about-small-logo {
      height: 32px;
    }
  }

  @media (max-height: 750px) {
    .about-table-section.full-page-layout .about-center-col {
      padding: 20px 40px;
    }
    .about-table-section.full-page-layout .about-title {
      font-size: 1.5rem;
      margin-bottom: 8px;
    }
    .about-table-section.full-page-layout .about-divider {
      margin: 0 auto 16px auto;
    }
    .about-table-section.full-page-layout .about-text-line {
      font-size: 12px;
      line-height: 1.75;
    }
    .about-footer-logo {
      margin-top: 15px;
    }
    .about-small-logo {
      height: 28px;
    }
  }
}
