@charset "UTF-8";

/* =========================================================================
   Base Styles
   ========================================================================= */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    letter-spacing: 0.05em;
    line-height: 1.8;
    padding-top: 72px; /* Offset for fixed header */
}

@media (max-width: 900px) {
    body {
        padding-top: 70px; /* Offset for mobile header */
    }
}

/* Base image styling: strictly no border-radius and no box-shadow for main images */
main img {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* =========================================================================
   Layout & Spacing Defaults
   ========================================================================= */
/* SP Margin 80px, PC Margin 120px for major sections */
.mb-section {
    margin-bottom: 80px;
}

@media (min-width: 768px) {
    .mb-section {
        margin-bottom: 120px;
    }
}

/* =========================================================================
   Header & Navigation
   ========================================================================= */
/* Header background on scroll - adapted for Takumi style */
#header {
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #D1D5DB;
}

#header.scrolled .logo-main {
    color: var(--white);
}

/* Hamburger transition lines */
#hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
#hamburger.active span:nth-child(2) {
    opacity: 0;
}
#hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* SP Menu Overlay */
#sp-menu {
    visibility: hidden;
}
#sp-menu.open {
    transform: translateX(0);
    visibility: visible;
}

/* =========================================================================
   First View (FV) Slider
   ========================================================================= */
/* Height is handled in tailwind as calc(100vh - 80px) to prevent jumpiness on mobile */

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* =========================================================================
   Section Titles
   ========================================================================= */
/* Enforce 50% max-width on heading backgrounds as requested */
.section-title-wrapper img {
    max-width: 80%; /* SP */
}
@media (min-width: 768px) {
    .section-title-wrapper img {
        max-width: 50%; /* PC */
    }
}

/* =========================================================================
   Parallax Background (Recommend Section)
   ========================================================================= */
#menu {
    background-attachment: scroll; /* Default for SP */
}

@media (min-width: 1024px) {
    #menu {
        background-attachment: fixed; /* Parallax effect for PC */
    }
}

/* =========================================================================
   Q&A Accordion
   ========================================================================= */
.accordion-item {
    border-radius: 8px !important; /* Allow rounded corners for UI parts like accordion */
}
.accordion-item button i {
    color: #1E3A8A; /* brand-blue */
}
.accordion-item button.active i {
    transform: rotate(180deg);
}
@media (max-width: 767px) {
    .accordion-header span {
        font-size: 14px;
        line-height: 1.4;
    }
    .accordion-header .text-xl {
        font-size: 16px;
    }
}

/* =========================================================================
   To Top Button
   ========================================================================= */
#to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* =========================================================================
   Typography & Break Rules
   ========================================================================= */
.text-3xl {
    font-size: 1.5rem;
    line-height: 2.25rem;
}
.text-xl {
    font-size: 1.2rem;
    line-height: 1.75rem;
}
.p-8 {
    padding: 1rem;
}
.p-6 {
    padding: 1rem;
}

@media (max-width: 767px) {
    p, h1, h2, h3, h4, h5, h6, li, td, th, a, span {
        word-break: normal;
        overflow-wrap: break-word; /* Allow breaking long words to prevent horizontal scroll */
    }
}

/* Custom break rule utilities */
.break-period { display: block; height: 0; margin: 0; }
@media (min-width: 768px) {
    .sp-only-br { display: none; }
}

.point-number {
    color: #E5E7EB;
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-right: 12px;
    letter-spacing: -0.05em;
}

@media (max-width: 767px) {
    .point-number {
        font-size: 1.4rem;
        margin-right: 8px;
    }
}

/* =========================================================================
   Takumi-Style Theme & Hero Components
   ========================================================================= */
:root {
  --navy: #0D1B2A;
  --navy-mid: #1a2d42;
  --steel: #2C4A6E;
  --sky: #4A90A4;
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --cream: #F5F0E8;
  --white: #FFFFFF;
  --gray-light: #F0EDE8;
  --gray-mid: #B8B0A2;
  --text-dark: #1A1410;
  --text-mid: #4A4035;
  --border: #D4C9B5;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid #D1D5DB;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header-access {
  font-size: 11px;
  color: #4B5563;
  letter-spacing: 0.08em;
}

.header-logo {
  text-decoration: none;
  text-align: center;
}

.header-logo .logo-main {
  font-family: 'Shippori Mincho', serif;
  font-size: 18px;
  font-weight: 700;
  color: #4B5563;
  letter-spacing: 0.15em;
}

.header-logo .logo-sub {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.2em;
  display: block;
  margin-top: 2px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header-nav a {
  font-size: 12px;
  color: #4B5563;
  text-decoration: none;
  letter-spacing: 0.12em;
  transition: color 0.3s;
}

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

.header-tel {
  text-align: right;
}

.header-tel .tel-num {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  color: #4B5563;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: block;
}

.header-tel .tel-hours {
  font-size: 10px;
  color: #4B5563;
  letter-spacing: 0.08em;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: calc(100vh - 72px);
  min-height: 600px;
  background: var(--navy);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(201, 168, 76, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-diagonal {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 55%;
  background: var(--navy-mid);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  overflow: hidden;
}

.hero-diagonal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(135deg, rgba(74, 144, 164, 0.15) 0%, rgba(44, 74, 110, 0.3) 100%);
}

.hero-img-placeholder {
  position: absolute;
  inset: 0;
  background: url('../img/34288793_s.jpg') center/cover no-repeat;
}

.hero-accent-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 80px;
  max-width: 600px;
}

.hero-label {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  word-break: keep-all;
}

.hero-subtitle {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 0.2em;
  margin-bottom: 36px;
}

.hero-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-tag {
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--gold-light);
  font-size: 12px;
  padding: 8px 18px;
  letter-spacing: 0.1em;
}

.hero-cta {
  display: flex;
  gap: 20px;
  align-items: center;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Shippori Mincho', serif;
  font-size: 14px;
  font-weight: 700;
  padding: 18px 40px;
  text-decoration: none;
  letter-spacing: 0.12em;
  transition: all 0.3s;
  position: relative;
}

.btn-primary::after {
  content: '→';
  margin-left: 10px;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4);
}

.btn-secondary {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  padding: 17px 30px;
  text-decoration: none;
  letter-spacing: 0.12em;
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 80px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  letter-spacing: 0.3em;
  font-family: 'Oswald', sans-serif;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
  to { left: 100%; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-content > * {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

.hero-label { animation-delay: 0.3s; }
.hero-title { animation-delay: 0.5s; }
.hero-subtitle { animation-delay: 0.7s; }
.hero-tags { animation-delay: 0.85s; }
.hero-cta { animation-delay: 1s; }

/* Linear Marquee Support */
.gallery-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .header-nav, .header-access { display: none !important; }
  .site-header { 
    padding: 0 15px; 
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .header-logo {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex-shrink: 0;
  }
  .header-logo .logo-main {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
  }
  .header-logo .logo-sub {
    font-size: 8px;
    margin-top: 2px;
  }
  .header-tel {
    margin-left: auto;
    margin-right: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
  }
  .header-tel .tel-num {
    font-size: 14px;
    font-weight: 700;
    color: #4B5563;
    display: block;
  }
  .header-tel .tel-hours {
    font-size: 8px;
    color: #4B5563;
  }
  .site-header #hamburger {
    width: 32px;
    height: 32px;
    margin-left: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .site-header #hamburger span {
    width: 20px;
    height: 2px;
    margin-bottom: 4px;
  }
  .site-header #hamburger span:last-child {
    margin-bottom: 0;
  }
  .hero {
    height: auto;
    min-height: unset;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
  }

  .hero-bg-grid { display: none; }
  .hero-accent-line { display: none; }
  .hero-scroll { display: none; }

  .hero-diagonal {
    display: block;
    position: relative;
    width: 100%;
    height: 60vw;
    min-height: 240px;
    clip-path: none;
    background: var(--navy-mid);
    flex-shrink: 0;
  }

  .hero-img-placeholder {
    position: absolute;
    inset: 0;
    background: url('../img/34288793_s.jpg') center/cover no-repeat;
  }

  .hero-content {
    padding: 24px 15px 40px;
    width: 100%;
    box-sizing: border-box;
  }
  .hero-title {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 12px;
    word-break: keep-all;
    max-width: 100%;
  }
  .hero-subtitle {
    font-size: 12px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
  }
  .hero-tags {
    margin-bottom: 20px;
    gap: 6px;
  }
  .hero-tag {
    padding: 5px 10px;
    font-size: 10px;
  }
  .hero-cta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 10px;
  }
  .btn-primary, .btn-secondary {
    width: 100% !important;
    padding: 14px 10px;
    font-size: 12px;
    text-align: center;
    box-sizing: border-box;
    display: block;
  }
  
  /* Enforce container behavior/padding on SP */
  .max-w-\[1200px\], .max-w-\[1000px\], .max-w-\[700px\], .max-w-\[500px\] {
      padding-left: 15px !important;
      padding-right: 15px !important;
      width: 100% !important;
      box-sizing: border-box !important;
  }
  
  /* Fix table th on mobile */
  tr.flex-col th {
      white-space: normal !important;
      padding: 12px 15px !important;
      width: 100% !important;
      box-sizing: border-box;
  }
  tr.flex-col td {
      padding: 12px 10px !important;
      width: 100% !important;
      box-sizing: border-box;
  }
  /* Fix footer menu padding on SP */
  footer ul {
      gap: 8px 12px !important;
  }
  footer ul li a {
      font-size: 11px !important;
      letter-spacing: 0.05em;
  }
}
