/* 
  りんや - モダン和風デザインシステム (Advanced Torihashi Aesthetic)
  Color Palette:
  - Black: #000000
  - Red: #8d0000 (Traditional Japanese Red)
  - Gold: #c5a059
  - Off-white/Gray: #f5f5f5
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;700;900&display=swap');

:root {
  --primary-bg: #000000;
  --secondary-bg: #0d0d0d;
  --light-bg: #f5f5f5;
  --accent-gold: #c5a059;
  --accent-red: #8d0000;
  --text-white: #ffffff;
  --text-black: #1a1a1a;
  --text-gray: #888888;
  --serif-font: "Noto Serif JP", serif;
  --sans-font: "Noto Sans JP", sans-serif;
  --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Drink Grid */
.drink-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.drink-item {
  text-align: left;
}

.drink-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 2rem;
}

.drink-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.drink-item:hover .drink-img img {
  transform: scale(1.1);
}

.drink-content h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #fff;
}

.drink-content p {
  font-size: 0.9rem;
  line-height: 1.8;
}

/* Point Section */
.point-section {
  display: block;
  margin: 3rem auto;
  width: 95%;
  max-width: 1000px;
  padding: 2.5rem 5%;
  border: 1px solid rgba(197, 160, 89, 0.3);
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  text-align: center;
}

.h4-point-title {
  display: inline-block;
  background: #111;
  color: var(--accent-gold);
  font-size: 1.3rem;
  padding: 0.6rem 2.5rem;
  border: 1px solid var(--accent-gold);
  letter-spacing: 0.1em;
}

.point-list {
  display: flex;
  flex-wrap: nowrap; /* Side by side */
  justify-content: center;
  gap: 3rem;
}

.point-item {
  font-family: var(--serif-font);
  font-size: 1.1rem;
  color: #1a1a1a;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .point-list {
    flex-direction: column; 
    align-items: center;
    gap: 1.5rem;
  }
  .point-item {
    white-space: nowrap; /* Prevent wrap as requested */
    font-size: 0.85rem; /* Smaller font to fit screen width */
    text-align: left;
    width: 100%;
    padding-left: 2%; /* Minimal left padding */
  }
  .point-section {
    padding: 2rem 1rem;
    margin-top: 2rem;
    width: 95%;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-image: url('../img/lp_paper_bg.png');
  background-attachment: fixed;
  background-size: 800px auto; 
  background-repeat: repeat;
  background-position: center;
  color: var(--text-black);
  image-rendering: -webkit-optimize-contrast; 
  font-family: var(--sans-font);
  line-height: 1.8;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

body, html {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

section {
  overflow: hidden; /* Catch all horizontal bleed */
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

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

/* Texture Overlay */
.textured-bg {
  position: relative;
  background-color: var(--light-bg);
  color: var(--text-black);
}

.textured-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('https://www.transparenttextures.com/patterns/rice-paper.png'); /* Subtle rice paper texture */
  opacity: 0.5;
  pointer-events: none;
}

.japanese-pattern-bg {
  background-color: rgba(7, 7, 7, 0.85); /* Slight transparency to show global bg */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='103.923' viewBox='0 0 60 103.923'%3E%3Cpath d='M30 103.923L60 86.602L30 69.282L0 86.602zM30 34.641L60 17.32L30 0L0 17.32zM30 69.282V34.641M0 86.602L30 69.282M60 86.602L30 69.282' stroke='%23c5a059' stroke-width='0.5' stroke-opacity='0.15' fill='none'/%3E%3Cpath d='M30 103.923v-34.641M30 34.641V0M0 86.602L30 103.923M60 86.602L30 103.923' stroke='%23c5a059' stroke-width='0.5' stroke-opacity='0.15' fill='none'/%3E%3C/svg%3E");
  background-size: 45px;
  position: relative;
}

.diagonal-cut {
  position: relative;
  overflow: hidden;
  background: transparent !important; /* Let global bg show through */
}

.diagonal-cut::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  clip-path: polygon(0 60%, 100% 30%, 100% 100%, 0 100%); /* Black part at the bottom */
  z-index: 0;
}

.diagonal-cut .container {
  position: relative;
  z-index: 1;
}

/* Wet Paper Textures */
.white-wet-paper {
  background-color: #ffffff !important;
  background-image: url('https://www.transparenttextures.com/patterns/handmade-paper.png');
  position: relative;
}

.ash-wet-paper {
  background-color: #555555 !important;
  background-image: url('https://www.transparenttextures.com/patterns/handmade-paper.png');
  position: relative;
}

/* CTA Box Component */
.cta-box {
  display: flex;
  background: #fff;
  border: 1px solid #000;
  max-width: 1000px;
  margin: 4rem auto 0 auto;
  align-items: stretch;
  overflow: hidden;
  text-align: center;
}

@media (max-width: 768px) {
  .cta-box {
    flex-direction: column;
    width: 100%;
    margin-top: 3rem;
  }
}

.cta-box-left {
  flex: 1;
  display: flex;
}

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

.cta-box-right {
  flex: 1.2;
  padding: 1.5rem 2.5rem; /* Reduced height profile */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cta-box-title {
  font-family: var(--serif-font);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #8d0000; /* Traditional Red */
  font-weight: 700;
}

.cta-box-tel {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--serif-font);
  font-size: 2.2rem;
  color: #000;
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cta-box-tel svg {
  width: 25px;
  height: 25px;
}

.cta-box-time {
  font-size: 0.9rem;
  color: #333;
}

.cta-box-holiday {
  font-size: 0.8rem;
  color: #333;
  margin-bottom: 1rem;
}

.cta-box-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  background: linear-gradient(135deg, #FFD700, #FF0000); /* Matches Nav CTA */
  color: #fff;
  padding: 0.8rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition-slow);
}

.cta-box-btn:hover {
  filter: brightness(1.1);
}

@media (max-width: 768px) {
  .cta-box { flex-direction: column; }
  .cta-box-left img { height: 200px; }
  .cta-box-tel { font-size: 1.6rem; }
  .point-section { padding: 1rem 2rem; }
}

/* Header Navigation */
header {
  position: fixed;
  top: 0; width: 100%;
  padding: 1.5rem 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: #000;
  transition: var(--transition-slow);
}

header.scrolled {
  padding: 1rem 4%;
  border-bottom: 1px solid rgba(197, 160, 89, 0.3);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

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

.logo-text {
  font-family: var(--serif-font);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
}

.nav-links {
  display: none;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-links a {
  text-decoration: none;
  color: var(--text-white);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent-gold); }

.header-cta {
  background: linear-gradient(135deg, #FFD700, #FF0000);
  color: #fff;
  padding: 0.6rem 1.5rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  border-radius: 0;
  transition: var(--transition-slow);
}

.header-cta:hover {
  background: var(--accent-gold);
  color: #fff;
}

/* First View (Banner Style) */
#fv {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Slogan on right */
  overflow: hidden;
}

.fv-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}

.fv-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center center;
  transform: scale(1);
}

.fv-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.2);
  z-index: 1;
}

.fv-content {
  position: relative;
  z-index: 2;
  margin-right: 8%;
  display: flex;
  flex-direction: row-reverse;
  gap: 2rem;
}

.banner-v {
  writing-mode: vertical-rl;
  background: var(--accent-red);
  color: #fff;
  padding: 2rem 1rem;
  font-family: var(--serif-font);
  font-size: 2.2rem;
  letter-spacing: 0.3em;
  line-height: 1.5;
  box-shadow: 10px 10px 0 rgba(0,0,0,0.3);
}

.banner-h-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
}

.banner-h {
  background: #000;
  color: #fff;
  padding: 0.8rem 1.5rem;
  font-family: var(--serif-font);
  font-size: 1.2rem;
  letter-spacing: 0.2em;
}

.message-inner-wrap {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
#recommend, #menu, #message {
  color: var(--text-white);
}

.sec-title-jp {
  color: inherit;
}

/* Common Section Layout */
section {
  padding: 12vh 0;
  position: relative;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 4%;
}

.sec-title-wrap {
  margin-bottom: 6vh;
  text-align: left;
}

.sec-title-en {
  font-family: var(--sans-font);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--accent-gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.sec-title-jp {
  font-family: var(--serif-font);
  font-size: 2.5rem;
  line-height: 1.4;
}

/* Concept Grid */
.concept-grid-swapped {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5%;
  align-items: center;
}

.concept-text {
  padding-left: 2rem;
}

.concept-visual {
  position: relative;
}

.concept-img-main {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  box-shadow: 30px 30px 0 var(--accent-gold);
}

.concept-vertical {
  writing-mode: vertical-rl;
  height: 550px;
  margin-bottom: 2rem;
}

.concept-vertical h2 {
  font-family: var(--serif-font);
  font-size: 2.2rem;
  letter-spacing: 0.2em;
  line-height: 1.5;
  color: #c25b5b; /* Rose Red */
  margin-right: 3rem;
}

.concept-vertical p {
  font-size: 1rem;
  line-height: 2.5;
  letter-spacing: 0.15em;
  color: #ffffff; /* Bright White */
}

/* Kodawari (Commitment) */
.kodawari-item {
  display: flex;
  gap: 4rem;
  margin-bottom: 10vh;
  align-items: center;
}

.kodawari-item:nth-child(even) {
  flex-direction: row-reverse;
}

.kodawari-img {
  flex: 1.5;
  height: 40vh;
  overflow: hidden;
}

.kodawari-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kodawari-info {
  flex: 1;
}

.kodawari-rank {
  font-family: var(--serif-font);
  font-size: 4rem;
  color: rgba(0,0,0,0.05);
  font-weight: 900;
  display: block;
  line-height: 1;
  margin-bottom: -1rem;
}

/* Menu Custom */
.menu-category-head {
  background: var(--accent-red);
  color: #fff;
  padding: 1rem 1.5rem;
  display: block; /* Full width like the image */
  text-align: center;
  font-family: var(--serif-font);
  margin-bottom: 2rem;
  letter-spacing: 0.2em;
  font-weight: 700;
}

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

.menu-row {
  display: flex;
  justify-content: space-between;
  gap: 5rem;
}

.menu-category-col {
  flex: 1;
  text-align: center; /* Center the header */
}

.menu-list-simple {
  margin-top: 1rem;
  text-align: left; /* Keep items left-aligned */
}

.menu-item-simple {
  padding: 1rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.mi-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.3rem;
}

.mi-name {
  font-family: var(--serif-font);
  font-size: 1.1rem;
  color: #fff;
}

.mi-price {
  font-family: var(--serif-font);
  font-size: 1.1rem;
  color: var(--accent-gold);
}

.mi-desc {
  font-size: 0.75rem;
  color: var(--text-gray);
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .menu-row {
    flex-direction: column;
    gap: 4rem;
  }
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Buttons */
.btn-outline {
  display: inline-block;
  padding: 1rem 3rem;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  transition: 0.3s;
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: #fff;
}

/* Hamburger Btn */
.menu-btn {
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1002;
  margin-left: auto;
}
.menu-btn span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s;
}
.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 9px; }
.menu-btn span:nth-child(3) { bottom: 0; }

.menu-btn.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* SP Menu */
.sp-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.sp-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.sp-menu-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.sp-menu-logo {
  width: 120px;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 5px;
}
.sp-nav-stacked {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.sp-nav-stacked a {
  color: #fff;
  text-decoration: none;
  font-family: var(--serif-font);
  font-size: 1.4rem;
  letter-spacing: 0.2em;
}
.sp-menu-insta {
  display: inline-block;
  padding: 1rem 3rem;
  background: linear-gradient(135deg, #FFD700, #FF0000);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.footer-logo-img {
  width: 100px;
  height: auto;
  border-radius: 5px;
}

.sp-close-btn {
  position: absolute;
  top: 25px;
  left: 25px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

/* Footer Custom Layout */
#footer {
  padding: 8vh 0 4vh;
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-logo .logo-text {
  font-size: 1.5rem;
  letter-spacing: 0.5em;
  color: var(--accent-gold);
}
.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  transition: 0.3s;
}
.footer-links a:hover {
  color: var(--accent-gold);
}
.footer-line {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  margin-bottom: 2rem;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: #fff;
  letter-spacing: 0.1em;
}

.map-wrapper {
  width: 100%;
  height: 450px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .map-wrapper {
    width: 100%; 
    margin-bottom: 20px;
    height: 350px;
  }
}
.map-wrapper iframe {
  width: 100% !important;
  height: 100% !important;
}

/* PC/SP Utility */
.pc-only { display: none !important; }
.sp-only { display: none !important; }

/* Responsive */
@media (min-width: 769px) {
  .pc-only { display: block !important; }
  .mobile-nav { display: none !important; }
  .mobile-nav a {
    height: 60px; /* Fixed height for CTA bar */
    line-height: 60px;
    padding: 0 !important;
    font-size: 1rem !important;
  }
  .sp-only-title { display: none !important; }
  .pc-hide { display: none !important; }
}

@media (max-width: 768px) {
  #fv { align-items: flex-end; padding-bottom: 8vh; }
  .fv-content { 
    margin-bottom: 2vh; 
    margin-right: 0; 
    justify-content: center; 
    width: 100%; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    gap: 1.5rem;
  }
  .banner-h-wrap { order: 2; align-items: center; gap: 0.5rem; }
  .banner-v { order: 1; margin-bottom: 1rem; width: auto; }
  
  .pc-only-title { display: none !important; }
  .sp-only { display: block !important; }
  .footer-top { flex-direction: column; text-align: center; justify-content: center; }
  .footer-links { justify-content: center; }
  .fv-content {
    margin-right: 5%;
    gap: 1rem;
  }
  .banner-v { font-size: 1.5rem; padding: 1.5rem 0.6rem; }
  .banner-h { font-size: 0.9rem; padding: 0.5rem 1rem; }
  .sec-title-jp { font-size: 1.8rem; }
  .concept-grid-swapped { display: flex; flex-direction: column; gap: 2rem; }
  .kodawari-item, .kodawari-item:nth-child(even) { flex-direction: column; gap: 2rem; }
  .kodawari-img { width: 100%; height: auto !important; aspect-ratio: 4/3; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .msg-img-sp { margin-left: auto !important; margin-right: auto !important; }
  
  .map-wrapper {
    height: 400px;
    margin-bottom: 30px;
    width: 100%;
    overflow: hidden;
    position: relative;
  }
  .map-wrapper iframe {
    width: 142% !important; /* 100 / 0.7 approx */
    height: 142% !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    transform-origin: center center;
  }
  .concept-vertical { 
    height: auto; 
    min-height: 500px;
    writing-mode: vertical-rl; 
    display: flex;
    flex-direction: row-reverse;
    gap: 1.5rem;
    margin: 0 auto;
    padding-bottom: 2rem;
  }
  .concept-vertical h2 { 
    font-size: 1.6rem; 
    margin-right: 1.5rem;
    line-height: 1.4;
  }
  .concept-vertical p { font-size: 0.85rem; line-height: 1.8; }

  .kodawari-rank { font-size: 3rem; }

  /* Access Logo SP */
  #contact .logo-text {
    display: block;
    text-align: center;
    margin: 0 auto 2rem auto;
  }

  /* Header SP adjustment */
  .logo-text { font-size: 1.1rem; letter-spacing: 0.05em; }
  .header-cta { padding: 0.4rem 0.8rem; font-size: 0.7rem; }
  
  /* Fixed CTA mobile fixed size */
  .mobile-nav a {
    height: 55px !important;
    font-size: 0.9rem !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .message-inner-wrap {
    text-align: left !important;
  }
}

/* Scroll to Top Button Styles */
.scroll-top {
  position: fixed;
  bottom: 80px; /* Position above the fixed mobile nav */
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

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

.scroll-top:hover {
  background: var(--accent-gold);
  color: #fff;
  transform: translateY(-5px);
}

@media (min-width: 769px) {
  .scroll-top {
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
  }
}

