/* ============================================
   Linowa - 振袖と写真 LP
   Color Palette:
   - sumi: #333333 (墨色 - メインテキスト)
   - darkgray: #555555 (ダークグレー - サブテキスト)
   - ecru: #FAF8F5 (エクリュ - 背景)
   - offwhite: #FDFCFA (オフホワイト - メイン背景)
   - accent: #C4B8A5 (アクセント - ベージュ)
   - yanagi: #8B7355 (柳茶 - 強調)
   ============================================ */

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  --color-sumi: #3D3530;
  --color-darkgray: #5A5048;
  --color-ecru: #FAF8F5;
  --color-offwhite: #FDFCFA;
  --color-accent: #C4B8A5;
  --color-accent-dark: #A89B8A;
  --color-yanagi: #8B7355;
  --color-border: #E5E5E5;

  --font-main: "Noto Serif JP", serif;
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

/* ============================================
   Base & Reset
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Noto Serif JP", serif;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.1em;
  color: var(--color-sumi);
  background-color: var(--color-offwhite);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

ul {
  list-style: none;
}

/* Selection */
::selection {
  background-color: rgba(196, 184, 165, 0.3);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-offwhite);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}

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

/* ============================================
   Typography
   ============================================ */
.section-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
  text-align: center;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 2;
  text-align: center;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.75rem;
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-align: center;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--color-sumi);
  color: var(--color-offwhite);
}

.btn-primary:hover {
  background-color: var(--color-darkgray);
  opacity: 1;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-sumi);
  border: 1px solid var(--color-sumi);
}

.btn-outline:hover {
  background-color: var(--color-sumi);
  color: var(--color-offwhite);
  opacity: 1;
}

.btn-full {
  width: 100%;
}

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(253, 252, 250, 0.95);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
}

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

@media (min-width: 1200px) {
  .logo-img {
    height: 52px;
  }
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--color-sumi);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--color-accent);
  opacity: 1;
}

.nav-link-cta {
  padding: 10px 20px;
  background-color: #C0B3CF;
  color: var(--color-offwhite);
}

.nav-link-cta:hover {
  background-color: var(--color-darkgray);
  color: var(--color-offwhite);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background-color: var(--color-sumi);
  transition: all 0.3s ease;
}

.hamburger span:nth-child(2) {
  margin: 6px 0;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    background: #FDFCFA;
    z-index: 999;
    overflow-y: auto;
  }

  .nav.active {
    display: flex;
    flex-direction: column;
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 20px 0;
    background: #FDFCFA;
    width: 100%;
  }

  .nav-list li {
    width: 100%;
    text-align: center;
  }

  .nav-link {
    display: block;
    padding: 16px 24px;
    font-size: 1rem;
  }

  .nav-link-cta {
    margin: 20px 24px 0;
    width: calc(100% - 48px);
  }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100); /* iOS viewport fix */
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-ecru);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  will-change: opacity;
}

.hero-bg.visible {
  opacity: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 90% center;
  filter: grayscale(30%) brightness(1.05);
}

@media (max-width: 768px) {
  .hero {
    height: 85vh;
    height: 85dvh;
    min-height: 500px;
  }

  .hero-img {
    object-position: center center;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.2);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  will-change: opacity, transform;
}

.hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-size: 1.875rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  line-height: 2;
  color: var(--color-sumi);
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.9),
    0 0 40px rgba(255, 255, 255, 0.7),
    0 0 60px rgba(255, 255, 255, 0.5);
  text-align: center;
}

.hero-title-vertical {
  display: block;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    writing-mode: horizontal-tb;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .hero-title-vertical {
    display: block;
  }
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  will-change: opacity;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll.visible {
  opacity: 1;
}

.scroll-text {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 0 8px rgba(0, 0, 0, 0.5),
    0 0 16px rgba(0, 0, 0, 0.3);
}

.scroll-arrow {
  width: 12px;
  height: 12px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.5));
}

.scroll-line {
  width: 1px;
  height: 40px;
  background-color: #fff;
  opacity: 0.8;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  animation: scroll-line-grow 2s ease-in-out infinite;
}

@keyframes scroll-line-grow {
  0%, 100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.2);
  }
}

/* ============================================
   About
   ============================================ */
.about {
  background-color: var(--color-ecru);
}

.about .container {
  text-align: center;
}

.about-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 48px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  opacity: 0.9;
  transition: transform 2s ease-out;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-subsection {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: left;
}

.about-subsection:last-of-type {
  margin-bottom: 64px;
}

.about-subtitle {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-sumi);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-accent);
}

.about-subsection p {
  color: var(--color-darkgray);
  line-height: 2;
}

/* ============================================
   Gallery
   ============================================ */
.gallery {
  background-color: var(--color-offwhite);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.gallery-item {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(10%);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* ============================================
   Features
   ============================================ */
.features {
  background-color: var(--color-ecru);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.feature-card {
  text-align: center;
}

.feature-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 24px;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-image img {
  transform: scale(1.05);
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--color-darkgray);
  line-height: 2;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
  background-color: var(--color-offwhite);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background-color: var(--color-ecru);
  padding: 40px 32px;
  text-align: center;
}

.testimonial-text {
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--color-darkgray);
  margin-bottom: 16px;
}

.testimonial-author {
  font-size: 0.8125rem;
  color: var(--color-accent);
  text-align: right;
  margin: 0;
}

/* ============================================
   Pricing
   ============================================ */
.pricing {
  background-color: var(--color-ecru);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.pricing-card {
  background-color: var(--color-offwhite);
  padding: 48px 32px;
  text-align: center;
  position: relative;
}

.pricing-card-featured {
  background-color: var(--color-sumi);
  color: var(--color-offwhite);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-accent);
  color: var(--color-offwhite);
  padding: 6px 20px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.pricing-name {
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 24px;
}

.pricing-price {
  margin-bottom: 32px;
}

.price-yen {
  font-size: 1rem;
  vertical-align: top;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.price-tax {
  font-size: 0.75rem;
  color: var(--color-darkgray);
}

.pricing-card-featured .price-tax {
  color: rgba(255, 255, 255, 0.7);
}

.pricing-features {
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.875rem;
}

.pricing-card-featured .pricing-features li {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li.price-split {
  display: flex;
  justify-content: space-between;
}

.pricing-card .btn-outline {
  border-color: var(--color-sumi);
  color: var(--color-sumi);
}

.pricing-card-featured .btn-primary {
  background-color: var(--color-offwhite);
  color: var(--color-sumi);
}

.pricing-card-featured .btn-primary:hover {
  background-color: var(--color-accent);
  color: var(--color-offwhite);
}

.pricing-notes {
  margin-top: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-darkgray);
  line-height: 1.8;
  margin-bottom: 12px;
}

.pricing-note:last-child {
  margin-bottom: 0;
}

/* ============================================
   Announcement
   ============================================ */
.announcement {
  background-color: var(--color-accent);
  padding: 24px 0;
}

.announcement-text {
  text-align: center;
  color: var(--color-offwhite);
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.05em;
}

/* ============================================
   Campaign
   ============================================ */
.campaign {
  background-color: var(--color-offwhite);
}

.campaign .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.campaign-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 700px;
}

.campaign-text {
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 40px;
  color: var(--color-darkgray);
  text-align: center;
}

.campaign-text strong {
  color: var(--color-sumi);
  font-weight: 500;
}

.campaign-prices {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 32px;
}

.campaign-price-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 32px;
  background-color: var(--color-ecru);
}

.campaign-year {
  font-size: 0.875rem;
  color: var(--color-darkgray);
  letter-spacing: 0.05em;
  text-align: center;
}

.campaign-discount {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-yanagi);
  text-align: center;
}

.campaign-discount small {
  font-size: 1rem;
  margin-left: 4px;
}

.campaign-deadline {
  font-size: 0.9375rem;
  color: var(--color-sumi);
  margin-bottom: 40px;
  font-weight: 400;
  text-align: center;
}

@media (max-width: 768px) {
  .campaign-text {
    font-size: 0.9375rem;
  }

  .campaign-prices {
    flex-direction: column;
    gap: 16px;
  }

  .campaign-price-item {
    padding: 20px 24px;
  }

  .campaign-discount {
    font-size: 1.75rem;
  }

  .campaign-deadline {
    font-size: 0.875rem;
  }
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  background-color: var(--color-ecru);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  text-align: left;
  color: var(--color-sumi);
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  transition: transform 0.3s ease;
}

.faq-icon::before {
  width: 16px;
  height: 1px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq-icon::after {
  width: 1px;
  height: 16px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.faq-item.active .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--color-darkgray);
  line-height: 2;
}

.faq-category {
  margin-bottom: 48px;
}

.faq-category:last-child {
  margin-bottom: 0;
}

.faq-category-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-sumi);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
  text-align: center;
}

/* ============================================
   Contact
   ============================================ */
.contact {
  background-color: var(--color-offwhite);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-item h3 {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.contact-item p {
  font-size: 1rem;
  line-height: 1.8;
}

.contact-item a {
  color: var(--color-sumi);
}

.contact-item a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.contact-maps a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-notice {
  border-left: 3px solid var(--color-accent);
  padding-left: 16px;
}

.contact-notice strong {
  color: var(--color-sumi);
  font-weight: 600;
  font-size: 1rem;
}

.contact-form-wrapper {
  background-color: var(--color-offwhite);
  padding: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.required {
  color: var(--color-accent);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  background-color: var(--color-offwhite);
  transition: border-color 0.3s ease;
}

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

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--color-accent);
  text-align: center;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--color-sumi);
  color: var(--color-offwhite);
  padding: 64px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer-logo-text {
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--color-offwhite);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-nav a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--color-offwhite);
  opacity: 1;
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

/* SNS Links */
.sns-links,
.footer-sns {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-sns {
  justify-content: center;
  margin-bottom: 24px;
}

.sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(196, 184, 165, 0.1);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.sns-link:hover {
  background-color: rgba(196, 184, 165, 0.25);
  transform: scale(1.1);
  opacity: 1;
}

.sns-icon {
  width: 20px;
  height: 20px;
  color: var(--color-darkgray);
  transition: color 0.3s ease;
}

.footer-sns .sns-icon {
  color: rgba(255, 255, 255, 0.7);
}

.footer-sns .sns-link:hover .sns-icon {
  color: var(--color-offwhite);
}

.contact-sns {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.contact-sns h4 {
  margin-bottom: 12px;
}

/* ============================================
   Sticky CTA
   ============================================ */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sticky-cta.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sticky-cta .btn {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  padding: 12px;
  font-size: 0.6875rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sticky-cta .btn-primary {
  background-color: var(--color-accent);
}

.sticky-cta .btn-secondary {
  background-color: var(--color-yanagi);
  color: var(--color-offwhite);
}

.sticky-cta .btn-secondary:hover {
  background-color: #7A6548;
  opacity: 1;
}

@media (max-width: 768px) {
  .sticky-cta {
    left: auto;
    right: 16px;
    bottom: 16px;
    gap: 16px;
  }

  .sticky-cta .btn {
    width: 72px;
    height: 72px;
    font-size: 0.5625rem;
    padding: 8px;
  }
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

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

/* ============================================
   Utilities
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   Mobile Optimization
   ============================================ */

/* Touch optimization - tap highlight */
@media (hover: none) and (pointer: coarse) {
  * {
    -webkit-tap-highlight-color: rgba(196, 184, 165, 0.2);
  }

  /* Minimum touch targets (44px) */
  .nav-link,
  .btn,
  .faq-question,
  .sns-link,
  .footer-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Improve touch responsiveness */
  .btn,
  .faq-question,
  .hamburger {
    touch-action: manipulation;
  }
}

/* Small mobile (< 375px) */
@media (max-width: 374px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.25rem;
    margin-bottom: 32px;
  }

  .pricing-card {
    padding: 32px 20px;
  }

  .price-amount {
    font-size: 2rem;
  }

  .contact-form-wrapper {
    padding: 24px 16px;
  }
}

/* Mobile (375px - 767px) */
@media (max-width: 767px) {
  /* Typography improvements */
  body {
    line-height: 1.9;
    letter-spacing: 0.05em;
  }

  .hero-title {
    line-height: 1.8;
    letter-spacing: 0.15em;
  }

  /* About section mobile */
  .about-subsection {
    margin-bottom: 36px;
    padding: 0 8px;
  }

  .about-subtitle {
    font-size: 1rem;
    text-align: center;
  }

  .about-subsection p {
    font-size: 0.9375rem;
    text-align: justify;
  }

  /* Gallery mobile - 2 columns with better spacing */
  .gallery-grid {
    gap: 8px;
  }

  /* Features mobile */
  .features-grid {
    gap: 36px;
  }

  .feature-title {
    font-size: 1rem;
  }

  .feature-desc {
    font-size: 0.8125rem;
  }

  /* Testimonials mobile */
  .testimonial-card {
    padding: 28px 24px;
  }

  .testimonial-text {
    font-size: 0.875rem;
    margin-bottom: 0;
  }

  /* Pricing mobile - single column with full width */
  .pricing-grid {
    gap: 24px;
  }

  .pricing-card {
    padding: 36px 24px;
  }

  .pricing-name {
    font-size: 1rem;
  }

  .price-amount {
    font-size: 2.25rem;
  }

  .pricing-features li {
    padding: 10px 0;
    font-size: 0.8125rem;
  }

  .pricing-note {
    font-size: 0.75rem;
    text-align: left;
    padding: 0 8px;
  }

  /* FAQ mobile - larger tap targets */
  .faq-question {
    position: relative;
    padding: 20px 40px 20px 0;
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .faq-question span:first-child {
    padding-right: 0;
  }

  .faq-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
  }

  .faq-answer p {
    font-size: 0.875rem;
  }

  .faq-category-title {
    font-size: 1.125rem;
  }

  /* Contact mobile */
  .contact-wrapper {
    gap: 32px;
  }

  .contact-info {
    gap: 24px;
  }

  .contact-item h4 {
    font-size: 0.8125rem;
  }

  .contact-item p {
    font-size: 0.9375rem;
  }

  .contact-note {
    font-size: 0.8125rem;
  }

  .contact-form-wrapper {
    padding: 28px 20px;
  }

  .contact-shop-name {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 24px;
  }

  /* Form mobile improvements */
  .form-group {
    margin-bottom: 20px;
  }

  .form-group label {
    font-size: 0.8125rem;
    margin-bottom: 6px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevent iOS zoom */
    padding: 14px 12px;
    border-radius: 4px;
  }

  .form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
  }

  .form-group textarea {
    min-height: 100px;
  }

  .btn-full {
    padding: 16px 24px;
    font-size: 1rem;
  }

  /* Footer mobile */
  .footer {
    padding: 48px 0 100px; /* Extra padding for sticky CTA */
  }

  .footer-inner {
    gap: 24px;
  }

  .footer-logo-text {
    font-size: 1.5rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-nav a {
    padding: 8px 0;
    font-size: 0.8125rem;
  }

  .footer-sns {
    margin-bottom: 16px;
  }

  .footer-copyright {
    font-size: 0.6875rem;
    text-align: center;
    line-height: 1.6;
  }

  /* Header mobile improvements */
  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .hamburger {
    width: 48px;
    height: 48px;
  }

  .hamburger span {
    width: 22px;
  }

  /* Mobile nav improvements - removed, handled above */
}

/* Sticky CTA mobile improvements */
@media (max-width: 768px) {
  .sticky-cta {
    left: auto;
    right: 16px;
    bottom: 16px;
    /* iOS safe area support */
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .sticky-cta .btn {
    width: 80px;
    height: 80px;
    padding: 12px;
    font-size: 0.625rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  }
}

/* Landscape mobile */
@media (max-width: 896px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    height: auto;
    padding: 80px 0 40px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-scroll {
    display: none;
  }

  .section {
    padding: 60px 0;
  }
}

/* Focus states for accessibility */
@media (max-width: 768px) {
  .btn:focus-visible,
  .nav-link:focus-visible,
  .faq-question:focus-visible,
  .form-group input:focus-visible,
  .form-group select:focus-visible,
  .form-group textarea:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
  }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  .hero-bg,
  .hero-content,
  .hero-scroll {
    opacity: 1;
    transform: none;
  }
}
