@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&family=Mochiy+Pop+One&family=Outfit:wght@400;700&display=swap');

:root {
  /* Color Palette */
  --primary-red: #700000;
  --secondary-orange: #fca311;
  --accent-yellow: #ffd60a;
  --brick-red: #700000;
  --light-bg: #fffcf2;
  --dark-text: #252422;
  --white: #ffffff;
  --black: #000000;
  
  /* Fonts */
  --font-main: 'Noto Serif JP', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.6;
  overflow-x: hidden;
  user-select: none; /* Prevent text selection */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

h1, h2, h3 {
  font-family: var(--font-main);
  font-weight: 700;
}

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

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

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

.pc-only {
  display: flex !important;
}

.sp-badge {
  display: none;
}

.pc-only {
  display: flex !important;
}

.sp-badge, .sp-about-img {
  display: none;
}

/* Header & Reservation */
header {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  color: white;
  transition: background 0.3s, padding 0.3s;
}

header.scrolled {
  position: fixed;
  background: rgba(0,0,0,0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  max-width: none;
  padding: 0;
}

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

.btn-res {
  background: var(--primary-red);
  color: white;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-left: 1px solid rgba(255,255,255,0.2);
  min-width: 120px;
}

.btn-res .icon svg, .btn-tel .icon svg {
  stroke: white;
}

.btn-res .label {
  font-size: 0.7rem;
  text-align: center;
  margin-top: 5px;
}

.btn-tel {
  display: flex;
  align-items: center;
  padding: 0 20px;
  text-decoration: none;
  color: white;
  font-weight: bold;
}

/* Hero Section (FV) */
.hero {
  height: 100vh;
  background-image: url('../img/pcfv.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 2000;
  margin-right: 20px;
  margin-top: 15px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  position: absolute;
  left: 0;
  transition: all 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 22px; }

.hamburger.active span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
}

/* SP Nav Menu */
.sp-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background: rgba(0,0,0,0.95);
  z-index: 1500;
  transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-nav.active {
  right: 0;
}

.sp-nav ul {
  list-style: none;
  text-align: center;
}

.sp-nav li {
  margin-bottom: 30px;
}

.sp-nav a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.1em;
}

/* SP Bottom Nav */
.sp-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: var(--primary-red);
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.sp-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.2);
}

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

.sp-nav-item .icon svg {
  stroke: white;
  margin-bottom: 4px;
}

.sp-nav-item .label {
  font-size: 0.75rem;
  font-weight: bold;
}

.sp-nav-item.reserve {
  background: var(--dark-text);
}

/* Left Nav */
.fv-nav-left {
  position: absolute;
  top: 40px;
  left: 40px;
  z-index: 100;
}

.fv-nav-left ul {
  list-style: none;
  writing-mode: vertical-rl;
}

.fv-nav-left li {
  margin-left: 20px;
}

.fv-nav-left a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
}

/* Social & Scroll Down */
.fv-social-scroll {
  position: absolute;
  top: 50%;
  left: 40px;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.insta-link {
  margin-bottom: 80px;
  transform: scale(1.5);
  transition: transform 0.3s;
}

.insta-link svg {
  stroke: white;
}

.scroll-down {
  writing-mode: vertical-rl;
  color: white;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  position: relative;
  padding-bottom: 70px; /* Space for line below */
}

.scroll-down::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: white;
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: translateX(-50%) translateY(-10px); opacity: 0; }
  50% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(10px); opacity: 0; }
}

/* Badge - Ultra Large (90% of width) */
.fv-badge {
  position: absolute;
  top: 50%;
  right: -10%; 
  transform: translateY(-50%);
  z-index: 50;
  width: 90vw;
  opacity: 0.9;
  pointer-events: none;
}

.fv-badge img {
  width: 100%;
  height: auto;
}

/* FV Highlights */
.hero-highlights {
  position: absolute;
  bottom: 80px;
  right: 80px;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
}

.highlight-item {
  color: white;
  padding: 0;
  font-size: 1.4rem; /* Larger font */
  letter-spacing: 0.2em;
  font-weight: bold;
  opacity: 0;
  transform: translateY(30px);
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
  background: none; /* Removed background */
  border-right: none; /* Removed border */
}

.hero-highlights.active .highlight-item {
  animation: fadeUpItem 0.8s ease forwards;
}

.highlight-item:nth-child(1) { animation-delay: 0.3s !important; }
.highlight-item:nth-child(2) { animation-delay: 0.5s !important; }
.highlight-item:nth-child(3) { animation-delay: 0.7s !important; }

@keyframes fadeUpItem {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Section - Black Background */
.about {
  background: var(--black);
  color: var(--white);
  position: relative;
}

.about-layout {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.about-top-centered {
  display: flex;
  justify-content: center;
  width: 100%;
}

.expanded {
  width: 100%;
  max-width: 1200px;
}

.expanded img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 50px rgba(255,255,255,0.1);
}

.about-bottom {
  display: flex;
  align-items: center;
  gap: 80px;
}

.about-img-box img {
  border-radius: 5px;
  width: 100%;
}

.about-bottom .about-img-box {
  flex: 1.2; /* Slightly larger image */
}

.about-text {
  flex: 1;
  position: relative;
}

.about-deko {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 80px;
  opacity: 0.8;
  z-index: 5;
}

.about-text p {
  margin-bottom: 25px;
  line-height: 2;
  font-size: 1rem;
}


/* Specialties (Kodawari) Section */
.points {
  background-image: url('../img/service_background.png');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 150px;
}

.service-row:last-child {
  margin-bottom: 0;
}

.service-img {
  flex: 1.2;
}

.service-img img {
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.service-content {
  flex: 1;
}

.service-title-img {
  width: 100%;
  max-width: 500px;
  margin-bottom: 30px;
}

.service-desc {
  color: white;
  line-height: 2;
  font-size: 1rem;
  text-align: left;
}


/* Menu Section */
.menu-section {
  background-image: url('../img/osusumebackground.png');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: var(--dark-text);
  position: relative;
}

.menu-section .container {
  position: relative;
  z-index: 2;
}

.menu-top-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}

.osusume-set {
  flex: 1;
}

.osusume-title-img {
  width: 100%;
  max-width: 450px;
  margin-bottom: 20px;
}

.osusume-info {
  max-width: 450px;
}

.osusume-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-family: var(--font-main);
  border-bottom: 2px solid var(--brick-red);
  padding-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.osusume-info .price {
  font-size: 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  color: var(--dark-text);
}

.osusume-desc {
  line-height: 2;
  font-size: 1.1rem;
  text-align: left;
}

.osusume-carousel {
  flex: 2; /* Enlarged from 1.5 */
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
}

.carousel-images {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Do not crop - per user request */
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-img.active {
  opacity: 1;
}

/* Category Menu Styling */
.other-menus {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.menu-category h4 {
  font-size: 1.6rem;
  color: var(--dark-text);
  border-left: 6px solid var(--brick-red);
  padding-left: 15px;
  margin-bottom: 30px;
}

.menu-list {
  list-style: none;
}

.menu-list li {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.menu-list .item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.menu-list .name {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--dark-text);
}

.menu-list .price {
  font-family: 'Outfit', sans-serif;
  color: var(--dark-text);
  font-weight: bold;
}

.menu-list .detail {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.menu-btn-wrapper {
  text-align: center;
}

.btn-primary {
  display: inline-block;
  background: var(--dark-text);
  color: white;
  padding: 15px 40px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  transition: background 0.3s, transform 0.3s;
}

.btn-primary:hover {
  background: var(--brick-red);
  transform: translateY(-3px);
}

/* Gallery Slider */
.gallery-section {
  margin-top: 80px;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 20px;
  animation: scroll 40s linear infinite;
}

.gallery-track img {
  width: 320px; /* Increased from 280px */
  height: 400px; /* Increased from 350px */
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
  cursor: zoom-in;
  transition: transform 0.3s;
}

.gallery-track img:hover {
  transform: scale(1.05);
}

/* Modal for Gallery */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.gallery-modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
  border-radius: 5px;
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.3s;
}

.modal-close:hover {
  transform: scale(1.2);
}

/* Back to Top */
.btn-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-top.show {
  opacity: 1;
  visibility: visible;
}

.btn-top:hover {
  background: var(--dark-text);
  transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 1024px) {
  .fv-badge {
    width: 120vw;
  }
  .service-row {
    flex-direction: column;
    text-align: center;
  }
  .service-row.rev {
    flex-direction: column;
  }
  .menu-top-row {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .osusume-carousel {
    width: 80%;
    margin: 0 auto;
  }
  .osusume-info h3 {
    display: block;
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .hero {
    background-image: url('../img/SPFV.png');
    background-attachment: scroll;
  }

  .pc-only {
    display: none !important;
  }

  .hamburger {
    display: block;
  }

  .sp-bottom-nav {
    display: flex;
  }

  .btn-top {
    bottom: 100px; /* Adjusting back to 100px as requested */
    right: 20px;
  }

  .header-inner {
    height: 60px;
    padding-right: 0;
  }

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

  /* Show social scroll on mobile - per user request */
  .fv-nav-left {
    display: none;
  }
  .fv-social-scroll {
    left: 20px;
    z-index: 200;
  }
  .insta-link {
    margin-bottom: 60px;
    transform: scale(1.2);
  }
  .scroll-down {
    font-size: 0.7rem;
  }

  .fv-badge {
    width: 100vw;
    right: 0;
    top: 45%;
  }

  .pc-badge, .pc-about-img {
    display: none;
  }

  .sp-badge, .sp-about-img {
    display: block;
    width: 100%;
  }

  .hero-highlights {
    bottom: 110px;
    right: 0;
    width: 100%;
    align-items: center;
    gap: 15px;
  }

  .highlight-item {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-align: center;
    border: none;
    padding: 0;
    width: 90%;
  }

  /* Fix About deco on SP */
  .about-deko {
    right: 15px;
    top: -50px;
    width: 60px;
  }

  /* Service Reordering and Text Alignment for SP */
  .service-row {
    flex-direction: column !important;
    text-align: left;
    gap: 30px;
  }

  .service-content {
    order: 1;
    text-align: left;
  }

  .service-img {
    order: 2;
  }

  .service-title-img {
    margin: 0 auto 20px 0; /* Align to left but allow some margin behavior */
  }

  .osusume-carousel {
    width: 100%;
  }
  .other-menus {
    grid-template-columns: 1fr;
  }
}

/* Shop Info Section */
.shop-info-section {
  background: var(--black);
  color: var(--white);
}

.shop-info-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.shop-info-details h3 {
  font-size: 2rem;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--brick-red);
  padding-bottom: 10px;
  display: inline-block;
}

.info-table {
  width: 100%;
}

.info-row {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 15px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  width: 130px;
  font-weight: bold;
  color: var(--white); /* Changed from yellow to white */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

.info-value {
  flex: 1;
  color: rgba(255,255,255,0.8);
}

.info-value a {
  color: var(--white);
  text-decoration: underline;
}

.shop-map-preview {
  width: 100%;
  height: 400px;
  background: #333;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-map-preview iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 991px) {
  .shop-info-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Voice Section */
.voice-section {
  background: var(--white);
}

.voice-section .section-title {
  text-align: center;
  margin-bottom: 60px;
}

.voice-section .section-title h2 {
  font-size: 2.5rem;
  color: var(--dark-text);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.voice-section .section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--brick-red);
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.voice-card {
  background: #fdfdfd;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
}

.voice-header {
  margin-bottom: 25px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 20px;
}

.user-name {
  font-weight: bold;
  font-size: 1.3rem;
  display: block;
  margin-bottom: 8px;
  color: var(--dark-text);
}

.stars {
  color: #ffc107;
  font-size: 1.2rem;
}

.voice-content {
  position: relative;
  overflow: hidden;
  max-height: 220px; /* Initial height */
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.voice-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(transparent, #fdfdfd);
  transition: opacity 0.3s;
}

.voice-content.expanded {
  max-height: 2500px;
}

.voice-content.expanded::after {
  opacity: 0;
  pointer-events: none;
}

.voice-content p {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
}

.read-more-btn {
  background: none;
  border: 1px solid var(--brick-red);
  color: var(--brick-red);
  font-weight: bold;
  cursor: pointer;
  padding: 8px 15px;
  border-radius: 5px;
  align-self: flex-start;
  margin-top: 20px;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.read-more-btn:hover {
  background: var(--brick-red);
  color: white;
}

.voice-btn-wrapper {
  text-align: center;
}

.btn-secondary {
  display: inline-block;
  border: 2px solid var(--dark-text);
  color: var(--dark-text);
  padding: 15px 40px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 35px;
  transition: all 0.3s;
  font-family: var(--font-main);
}

.btn-secondary:hover {
  background: var(--dark-text);
  color: white;
  transform: translateY(-2px);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-300px * 5)); }
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 1; /* Keep section opacity but animate relative content */
}

/* Animate children but keep background stable */
.reveal-group > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-group.active > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group.active > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-group.active > *:nth-child(2) { transition-delay: 0.3s; }
.reveal-group.active > *:nth-child(3) { transition-delay: 0.5s; }
.reveal-group.active > *:nth-child(4) { transition-delay: 0.7s; }
.reveal-group.active > *:nth-child(5) { transition-delay: 0.9s; }
