/* ==========================================================================
   有限会社 丸和 (Maruwa Co., Ltd.) - Landing Page Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design System & CSS Variables
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Colors */
  --primary: #1E3A25;
  /* Deep Forest Green */
  --primary-light: #2A5235;
  /* Fresh Leaf Green */
  --primary-dark: #122417;
  /* Dark Charcoal Green */
  --accent: #C89B3C;
  /* Warm Artisanal Gold */
  --accent-hover: #b08530;
  /* Darker Gold */
  --accent-light: #FDF9EE;
  /* Gold Soft Tint */
  --accent-red: #C83C3C;
  /* Accent Red */

  /* Neutral Colors */
  --bg-light: #F9F8F5;
  /* Soft Cream Background */
  --bg-card: #FFFFFF;
  /* Pure White Card */
  --bg-dark: #1A281E;
  /* Deep Footer/Dark Background */
  --text-dark: #333333;
  /* Refined Charcoal Text */
  --text-muted: #666666;
  /* Muted Text */
  --border-color: #E6E3DA;
  /* Subtle Border Tone */
  --border-gold: #E5C77A;
  /* Elegant Gold Border */

  /* Shadows & Elevation */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(30, 58, 37, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);

  /* Fonts - Unified Noto Serif JP */
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Noto Serif JP', serif;

  /* Layout Constants */
  --container-max: 1140px;
  --header-height: 80px;
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & General Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* PC default font size */
}

@media (max-width: 767px) {
  html {
    font-size: 15px;
    /* SP default font size */
  }
}

body {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1rem;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.95;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px;
  overflow-x: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

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

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

ul,
ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. Typography & Utility Classes
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 90px 0;
}

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

.section-bg-alt {
  background-color: #FFFFFF;
}

.section-header {
  text-align: center;
  margin-bottom: 45px;
}

.section-header.recommend-header {
  margin-bottom: 24px;
}

.section-title-img {
  max-width: 190px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .section-title-img {
    max-width: 145px;
  }
}

.section-subheading {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--primary);
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 0.06em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  border-radius: 0;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.05em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #FFFFFF;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 155, 60, 0.35);
}

.btn-phone {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #FFFFFF;
}

.btn-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 58, 37, 0.35);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   4. Header & Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.35s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 992px) {
  .header.header-hidden-hero {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
  }
}


.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.header-logo-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
}

.header-nav {
  display: none;
}

@media (min-width: 992px) {
  .header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
  }

  .nav-list {
    display: flex;
    gap: 18px;
  }

  .nav-link {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
  }

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

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

  .header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .header-phone-box {
    text-align: right;
  }

  .header-phone-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: block;
    line-height: 1.2;
    font-weight: 300;
  }

  .header-phone-num {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary);
    line-height: 1.2;
  }
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.mobile-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 0;
  transition: var(--transition);
}

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: #FFFFFF;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  padding: 90px 28px 40px 28px;
  transition: right 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-nav-overlay.active {
  right: 0;
}

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1003;
  transition: var(--transition);
}

.mobile-nav-close:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--primary);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  display: block;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. Hero Section (Re-architected matching inoue-zoen reference)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   5. Hero Section (Re-architected matching inoue-zoen reference)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  overflow: hidden;
  padding: 100px 20px 80px 20px;
}

@media (min-width: 992px) {
  .hero {
    padding-left: 260px;
    /* Space for PC sidebar */
  }
}

/* Background Image Slider (FV1~3) */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroCrossfade 15s infinite;
}

.hero-slide:nth-child(1) {
  animation-delay: 0s;
}

.hero-slide:nth-child(2) {
  animation-delay: 5s;
}

.hero-slide:nth-child(3) {
  animation-delay: 10s;
}

@keyframes heroCrossfade {
  0% {
    opacity: 0;
    transform: scale(1.03);
  }

  10% {
    opacity: 1;
    transform: scale(1);
  }

  33% {
    opacity: 1;
    transform: scale(1);
  }

  43% {
    opacity: 0;
    transform: scale(1.03);
  }

  100% {
    opacity: 0;
  }
}

/* PC Sidebar inside Hero (Lighter Green Overlay) */
.hero-sidebar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 240px;
  background: rgba(18, 36, 23, 0.48);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 24px;
  z-index: 10;
}

@media (max-width: 991px) {
  .hero-sidebar.pc-only {
    display: none;
  }
}

.sidebar-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar-sub {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.sidebar-logo {
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.25em;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 12px;
}

.sidebar-nav a {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.12em;
  transition: var(--transition);
}

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

.sidebar-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-tel {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.95);
  padding: 10px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #122417;
  border-radius: 0;
}

.sidebar-tel span {
  font-size: 0.7rem;
  font-weight: 500;
  color: #222222;
  margin-bottom: 2px;
}

.sidebar-mail {
  display: block;
  background: var(--accent);
  color: #FFFFFF;
  text-align: center;
  padding: 10px;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 0;
}

/* Center Hero Vertical Catchphrase (Positioned Left) */
.hero-center {
  text-align: center;
  z-index: 2;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .hero-center {
    transform: translate(-80px, -50px);
  }
}

@media (max-width: 991px) {
  .hero-center {
    position: absolute;
    top: 36%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    pointer-events: none;
  }
}

.hero-v-heading {
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: #FFFFFF;
  letter-spacing: 0.35em;
  line-height: 1.7;
  text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.8);
  display: inline-block;
}

@media (min-width: 768px) {
  .hero-v-heading {
    font-size: 2.8rem;
  }
}

@media (max-width: 767px) {
  .hero-v-heading {
    font-size: 25.9px; /* 元の 1.85rem (14px基準) */
  }
}

@media (max-width: 991px) {
  .hero-v-heading {
    pointer-events: auto;
    width: -webkit-fit-content;
    width: fit-content;
    margin: 0 auto;
    text-align: center;
  }
}

/* Feature Badge */
.hero-badge {
  position: absolute;
  bottom: 90px;
  right: 40px;
  background: rgba(18, 36, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 24px 32px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 991px) {
  .hero-badge {
    position: absolute;
    bottom: 130px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    margin-top: 0;
    padding: 12px 18px;
    gap: 8px;
    width: calc(100% - 40px);
    max-width: 320px;
    z-index: 10;
  }
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 400;
}

.hero-badge-item svg {
  color: var(--accent);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.hero-badge-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

/* --------------------------------------------------------------------------
   CTA Section (Reference Style from inoue-zoen)
   -------------------------------------------------------------------------- */
.cta-section {
  background-color: var(--primary-dark);
  background-image: url('../img/greeting.jpeg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 36, 23, 0.82);
  z-index: 1;
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 2;
  color: #FFFFFF;
}

.cta-inner .section-en {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.25em;
  margin-bottom: 8px;
}

.cta-inner .section-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.divider-rakkan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px auto 24px auto;
  max-width: 200px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background-color: rgba(200, 155, 60, 0.6);
}

.divider-dot {
  color: var(--accent);
  font-size: 0.75rem;
}

.cta-inner .section-desc {
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
  margin: 0 auto 32px auto;
  font-size: 0.95rem;
  line-height: 1.9;
  font-weight: 300;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #FFFFFF;
  color: var(--primary);
  padding: 14px 32px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid #FFFFFF;
  border-radius: 0;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
  background: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-white-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: #FFFFFF;
  padding: 14px 32px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 0;
  transition: var(--transition);
}

.btn-white-outline:hover {
  background: #FFFFFF;
  color: var(--primary);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

@supports (-webkit-touch-callout: none) {
  .cta-section {
    background-attachment: scroll;
  }
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   6. Section ①: このような方におすすめです
   -------------------------------------------------------------------------- */
.recommend-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 50px;
}

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

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

.recommend-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: var(--transition);
}

.recommend-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.recommend-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background-color: var(--accent-light);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-top: 2px;
}

.recommend-icon svg {
  width: 16px;
  height: 16px;
}

.recommend-text {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.7;
}

/* Clean advice text block */
.advice-text-block {
  text-align: center;
  padding: 10px 0;
}

@media (max-width: 767px) {
  .advice-text-block {
    text-align: left;
  }
}

.advice-text-block p {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 2;
  font-weight: 300;
}

.advice-highlight {
  font-weight: 500;
  color: var(--primary);
  display: inline-block;
  margin-top: 4px;
}

/* SP-only visibility control */
@media (min-width: 768px) {
  .sp-only {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Fixed Background Section (About & Flow Sections)
   -------------------------------------------------------------------------- */
.section-fixed-bg {
  position: relative;
  background-image: url('../img/background.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 1;
}

@media (max-width: 767px) {
  body {
    background-color: transparent;
  }

  .section {
    background-color: var(--bg-light);
  }

  .section.section-fixed-bg {
    background-image: none !important;
    background-color: transparent !important;
  }

  .sp-bg-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-image: url('../img/SPbackground.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -10;
    pointer-events: none;
  }
}

/* --------------------------------------------------------------------------
   7. Section ②: 私たちについて
   -------------------------------------------------------------------------- */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.about-content {
  background-color: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

@media (min-width: 992px) {
  .about-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

.about-img-box {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  width: 100%;
  aspect-ratio: 3 / 4;
}

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

.about-catch {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.6;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--accent);
}

@media (min-width: 768px) {
  .about-catch {
    font-size: 1.7rem;
  }
}

.about-text {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.95;
  font-weight: 300;
}

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

.about-text p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   8. Section ③: こだわり
   -------------------------------------------------------------------------- */
.commit-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.commit-item {
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
  overflow: visible;
  position: relative;
}

.commit-banner-container {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 260px;
  background-color: #EFECE6;
  overflow: hidden;
}

@media (min-width: 768px) {
  .commit-banner-container {
    height: 320px;
  }
}

.commit-banner-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.commit-vertical-card {
  position: absolute;
  top: 20px;
  bottom: 20px;
  background-color: #FFFFFF;
  padding: 20px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  border-radius: 0;
  min-width: 70px;
  box-sizing: border-box;
}

.commit-vertical-card.pos-left {
  left: 5vw;
}

.commit-vertical-card.pos-right {
  right: 5vw;
}

@media (min-width: 768px) {
  .commit-vertical-card {
    top: 24px;
    bottom: 24px;
    padding: 24px 18px;
    min-width: 82px;
  }

  .commit-vertical-card.pos-left {
    left: calc((100vw - var(--container-max)) / 2 + 20px);
  }

  .commit-vertical-card.pos-right {
    right: calc((100vw - var(--container-max)) / 2 + 20px);
  }
}

.commit-emblem {
  width: 32px;
  height: 32px;
  border-radius: 0;
  background-color: var(--accent-light);
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  flex-shrink: 0;
}

.commit-vtitle {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.18em;
  line-height: 1.4;
  white-space: nowrap;
  margin: 0;
}

@media (min-width: 768px) {
  .commit-vtitle {
    font-size: 1.25rem;
  }
}

.commit-description-box {
  padding: 30px 0 0 0;
  background-color: transparent;
  border-top: none;
  max-width: var(--container-max);
  margin: 0 auto;
}

.commit-description-box p {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 2;
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   9. Section ④: 施工案内 (Borderless Frame + Taller Vertical Images + Description Text)
   -------------------------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 16px;
  margin-bottom: 50px;
}

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

.work-card {
  background-color: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  border: none;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.work-card::before {
  display: none;
  /* Outer frame / border accent removed */
}

.work-card-img-wrap {
  width: 100%;
  aspect-ratio: 9 / 16;
  /* Taller vertical image ratio */
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #EFECE6;
  position: relative;
  margin-bottom: 14px;
}

.work-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-card:hover .work-card-img-wrap img {
  transform: scale(1.05);
}

.work-card-content {
  text-align: left;
  padding: 0;
}

.work-card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.4;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--accent);
}

@media (min-width: 768px) {
  .work-card-title {
    font-size: 1.15rem;
  }
}

.work-card-desc {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.8;
  font-weight: 300;
}

/* Before After Section */
.before-after-section {
  margin-bottom: 60px;
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  width: 100%;
  margin: 0 auto;
}

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

.before-after-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.before-after-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--accent);
}

.before-after-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .before-after-images {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

.before-after-img-item {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #EFECE6;
  border: 1px solid var(--border-color);
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.before-after-img-item:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.before-after-img-item::after {
  content: '＋';
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(18, 36, 23, 0.85);
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
  opacity: 0.9;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.before-after-img-item:hover::after {
  background: var(--accent);
  color: #FFFFFF;
  transform: scale(1.1);
}

.before-after-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.90);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #FFFFFF;
  font-size: 2.8rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover {
  color: var(--accent);
  transform: scale(1.15);
}

.lightbox-content-wrap {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: zoom-in;
}

.lightbox-img.zoomed {
  transform: scale(1.45);
  cursor: zoom-out;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  margin-top: 14px;
  font-family: var(--font-serif);
  letter-spacing: 0.08em;
  text-align: center;
}

.before-after-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 10px;
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  z-index: 2;
  border-radius: 0;
}

.badge-before {
  background-color: var(--text-dark);
  color: #FFFFFF;
}

.badge-after {
  background-color: var(--primary);
  color: #FFFFFF;
}

.before-after-desc {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.8;
  font-weight: 300;
}

/* Price Info Box */
.price-info-box {
  background-color: #FFFDF8;
  border: 1px solid var(--accent);
  border-radius: 0;
  padding: 36px 28px;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.price-info-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  letter-spacing: 0.08em;
}

.price-info-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background-color: var(--accent);
  margin: 10px auto 0 auto;
}

.price-info-desc {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.95;
  font-weight: 300;
  text-align: left;
}

/* Vertical Step Flow Layout for Section ⑥ */
.flow-container {
  max-width: 820px;
  margin: 0 auto;
}

.flow-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}

.flow-step {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}

.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -28px;
  left: 42px;
  width: 2px;
  height: 28px;
  background-color: var(--accent);
  z-index: 2;
}

.flow-step:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
}

.flow-step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.flow-step-num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  background-color: var(--accent-light);
  border: 1px solid var(--accent);
  width: 40px;
  height: 40px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flow-step-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.4;
}

.flow-step-desc {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.85;
  font-weight: 300;
  padding-left: 56px;
}

@media (min-width: 768px) {
  .flow-step {
    padding: 32px 36px;
  }

  .flow-step-title {
    font-size: 1.3rem;
  }

  .flow-step-num {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }

  .flow-step:not(:last-child)::after {
    left: 59px;
  }
}

@media (max-width: 576px) {
  .flow-step-desc {
    padding-left: 0;
    margin-top: 10px;
  }

  .flow-step:not(:last-child)::after {
    left: 44px;
  }
}

/* --------------------------------------------------------------------------
   10. Section ⑤: ご挨拶
   -------------------------------------------------------------------------- */
.greeting-box {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
}

.greeting-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.greeting-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

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

@media (min-width: 992px) {
  .greeting-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.greeting-catch {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.5;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}

@media (min-width: 768px) {
  .greeting-catch {
    font-size: 1.85rem;
  }
}

.greeting-text p {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.95;
  margin-bottom: 16px;
  font-weight: 300;
}

.greeting-text p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   11. Section ⑦: 店舗案内
   -------------------------------------------------------------------------- */
#section-7 {
  background-color: #FAF4E6;
  border-top: none;
  border-bottom: 1px solid var(--border-gold);
}

.store-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 992px) {
  .store-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.store-table {
  width: 100%;
  border-collapse: collapse;
  background-color: transparent;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: none;
}

.store-table tr {
  border-bottom: 1px solid var(--border-color);
}

.store-table tr:last-child {
  border-bottom: 1px solid var(--border-color);
}

.store-table th {
  width: 32%;
  background-color: transparent;
  color: var(--primary);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 16px 10px;
  text-align: left;
  vertical-align: top;
}

.store-table td {
  width: 68%;
  font-size: 0.95rem;
  color: var(--text-dark);
  padding: 16px 10px;
  line-height: 1.7;
  font-weight: 300;
}

.map-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: none;
  border: none;
  height: 100%;
  min-height: 360px;
  position: relative;
}

.map-wrapper iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 360px;
  border: 0;
}

/* --------------------------------------------------------------------------
   13. Floating Contact Bar & Back To Top Button
   -------------------------------------------------------------------------- */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  padding: 10px 14px;
  z-index: 999;
  display: flex;
  gap: 10px;
}

@media (min-width: 992px) {
  .floating-cta {
    display: none;
  }
}

.floating-btn {
  flex: 1;
  padding: 10px;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 80px;
  width: 44px;
  height: 44px;
  background-color: var(--primary);
  color: #FFFFFF;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--accent);
  z-index: 1000;
  transition: var(--transition);
  cursor: pointer;
}

.back-to-top:hover {
  background-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 992px) {
  .back-to-top {
    right: 28px;
    bottom: 28px;
    width: 48px;
    height: 48px;
  }

  .back-to-top svg {
    width: 22px;
    height: 22px;
  }
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--bg-dark);
  color: #FFFFFF;
  padding: 30px 0;
  border-top: 3px solid var(--accent);
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   15. Scroll Animations
   -------------------------------------------------------------------------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

@media (max-width: 767px) {
  .cta-inner .section-en {
    font-size: 11.9px; /* 元の 0.85rem (14px基準) */
  }
  .cta-inner .section-title {
    font-size: 25.9px; /* 元の 1.85rem (14px基準) */
  }
  .cta-inner .section-desc {
    font-size: 13.3px; /* 元の 0.95rem (14px基準) */
  }
  .cta-buttons .btn-white,
  .cta-buttons .btn-white-outline {
    font-size: 13.3px; /* 元の 0.95rem (14px基準) */
  }
}