@charset "UTF-8";

/* ==========================================================================
   Variables & Base Settings
   ========================================================================== */
:root {
  --primary: #1c3d27;
  --primary-deep: #0e1f15;
  --accent: #248a4c;
  --accent-glow: #79d799;
  --gold: #cda545;
  --gold-soft: #e6cd8c;

  --bg-gradient-start: #f6f9f7;
  --bg-gradient-end: #f7f6f0;
  --card-bg: rgba(255, 255, 255, 0.96);

  --text-dark: #26362c;
  --text-muted: #62786c;
  --white: #ffffff;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.5s var(--ease);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Montserrat", sans-serif;
  color: var(--text-dark);
  line-height: 1.8;
  letter-spacing: 0.04em;
  overflow-x: hidden;
  position: relative;
  background: var(--bg-gradient-start);
}

.fixed-gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(
    170deg,
    var(--bg-gradient-start) 0%,
    var(--bg-gradient-end) 55%,
    #eef3ec 100%
  );
  z-index: -2;
  pointer-events: none;
}

#clover-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: radial-gradient(
      rgba(28, 61, 39, 0.05) 1px,
      transparent 1px
    );
  background-size: 3px 3px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  z-index: 2000;
  transition: width 0.1s linear;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.pc-only {
  display: block;
}

/* ==========================================================================
   Icons
   ========================================================================== */
.clover-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
}
.clover-icon-sm {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
}
/* clover.png marks are a fixed green PNG; these utilities recolor them
   via filter so they still read clearly on dark or bright backgrounds. */
.icon-invert {
  filter: brightness(0) invert(1);
}
.works-tab-btn.active .icon-invert {
  filter: brightness(0);
}
.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(121, 215, 153, 0.28) 0%,
    rgba(36, 138, 76, 0.06) 65%,
    transparent 100%
  );
}
.header-icon-dark {
  background: radial-gradient(
    circle,
    rgba(121, 215, 153, 0.22) 0%,
    rgba(121, 215, 153, 0.04) 65%,
    transparent 100%
  );
}

/* ==========================================================================
   Section headings
   ========================================================================== */
.section-header {
  margin-bottom: 60px;
}
.en-title {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.3em;
  margin-bottom: 10px;
}
.section-dark .en-title {
  /* 明るめの背景でもコントラストを確保するため accent-glow より少し明度を上げる */
  color: #93e4ae;
}
.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 900;
  color: var(--primary);
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
  letter-spacing: 0.03em;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.section-title-dark {
  color: var(--white);
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 20px;
  padding: 0 10px;
}
.section-subtitle-dark {
  color: rgba(255, 255, 255, 0.72);
}
.text-center {
  text-align: center;
}
/* スクリーンリーダー専用テキスト */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.section {
  padding: 110px 0;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 50px;
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--primary);
  color: var(--white) !important;
  text-decoration: none;
  border-radius: 100px;
  letter-spacing: 0.12em;
  box-shadow: 0 10px 30px rgba(28, 61, 39, 0.25);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--accent), var(--gold));
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}
.btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 40px rgba(36, 138, 76, 0.35);
}
.btn:hover::before {
  opacity: 1;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(36, 138, 76, 0.08);
  z-index: 1500;
  transition: var(--transition);
}
.header.scrolled {
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(28, 61, 39, 0.06);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  height: 48px;
}
.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
}
.logo-img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
  transition: var(--transition);
}
.logo-img:hover {
  opacity: 0.85;
}

.nav-menu {
  display: flex;
  align-items: center;
}
.nav-menu a {
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  margin-left: 40px;
  transition: var(--transition);
  position: relative;
  padding-bottom: 4px;
}
.nav-menu a span {
  color: var(--accent);
  font-size: 0.7rem;
  margin-right: 6px;
  font-weight: 800;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 0.35s var(--ease);
}
.nav-menu a:hover {
  color: var(--accent);
}
.nav-menu a:hover::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1400;
  position: relative;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
  margin: 0 auto;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--primary-deep);
  z-index: 1300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease),
    visibility 0.45s;
  overflow: hidden;
}
.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-nav-watermark {
  position: absolute;
  width: 60vw;
  max-width: 420px;
  height: auto;
  opacity: 0.05;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.mobile-nav a {
  font-family: "Montserrat", sans-serif;
  color: var(--white);
  text-decoration: none;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 12px 0;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease),
    color 0.3s;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.mobile-nav.open a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav.open a:nth-child(1) {
  transition-delay: 0.1s;
}
.mobile-nav.open a:nth-child(2) {
  transition-delay: 0.18s;
}
.mobile-nav.open a:nth-child(3) {
  transition-delay: 0.26s;
}
.mobile-nav.open a:nth-child(4) {
  transition-delay: 0.34s;
}
.mobile-nav a::before {
  content: attr(data-index);
  font-size: 0.9rem;
  color: var(--accent-glow);
  font-weight: 700;
}
.mobile-nav a:hover {
  color: var(--accent-glow);
}
.mobile-nav-sub {
  position: relative;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  margin-top: 30px;
  opacity: 0;
  transition: opacity 0.6s var(--ease) 0.45s;
}
.mobile-nav.open .mobile-nav-sub {
  opacity: 1;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  height: 100vh;
  min-height: 720px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 10;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}
.hero-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-media-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(121, 215, 153, 0.35), transparent 55%),
    linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    150deg,
    rgba(14, 31, 21, 0.9) 0%,
    rgba(28, 61, 39, 0.55) 55%,
    rgba(28, 61, 39, 0.75) 100%
  );
}
.hero-watermark {
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  width: 46vw;
  max-width: 620px;
  height: auto;
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 900px;
  margin-top: 10px;
}
.hero-tagline {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--accent-glow);
  display: block;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.35;
  margin-bottom: 30px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.hero-title-line {
  display: block;
}
.hero-title-accent {
  background: linear-gradient(100deg, var(--accent-glow), var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: 1.15rem;
  margin-bottom: 46px;
  opacity: 0.92;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 46px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.65);
}
.hero-scroll-cue span {
  font-family: "Montserrat", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
}
.hero-scroll-line {
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(var(--accent-glow), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% {
    top: -100%;
  }
  100% {
    top: 100%;
  }
}

/* ==========================================================================
   REVEAL ANIMATION
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
[data-reveal].active {
  opacity: 1;
  transform: translateY(0);
}
.hero-content [data-reveal]:nth-child(1) {
  transition-delay: 0.1s;
}
.hero-content [data-reveal]:nth-child(2) {
  transition-delay: 0.22s;
}
.hero-content [data-reveal]:nth-child(3) {
  transition-delay: 0.34s;
}
.hero-content [data-reveal]:nth-child(4) {
  transition-delay: 0.46s;
}

/* ==========================================================================
   MAIN WRAP
   ========================================================================== */
.main-content-wrap {
  position: relative;
  z-index: 20;
  margin-top: -8vh;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-card {
  background: var(--card-bg);
  border: 1px solid rgba(36, 138, 76, 0.08);
  padding: 70px;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(28, 61, 39, 0.06);
  position: relative;
  overflow: hidden;
}
.lead-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin: 0 auto 26px auto;
}
.description-text {
  max-width: 780px;
  margin: 0 auto 22px auto;
  font-size: 1.02rem;
  text-align: justify;
}

/* ==========================================================================
   SERVICES TABS
   ========================================================================== */
.service-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  justify-content: center;
}
.service-tab-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 30px;
  background: var(--card-bg);
  border: 1px solid rgba(36, 138, 76, 0.12);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text-muted);
  flex: 1 1 260px;
  max-width: 360px;
}
.tab-num {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}
.tab-label {
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  line-height: 1.4;
}
.service-tab-btn:hover {
  border-color: rgba(36, 138, 76, 0.35);
  transform: translateY(-3px);
}
.service-tab-btn.active {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: var(--white);
  box-shadow: 0 14px 30px rgba(28, 61, 39, 0.28);
  border-color: transparent;
}
.service-tab-btn.active .tab-num {
  color: var(--accent-glow);
}

.service-panel {
  background: var(--card-bg);
  border: 1px solid rgba(36, 138, 76, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(28, 61, 39, 0.05);
  animation: panelFade 0.6s var(--ease);
}
@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.service-detail-media {
  position: relative;
  height: 360px;
  overflow: hidden;
  background: #e6ede8;
}
.service-detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 31, 21, 0.85);
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(6px);
}
.service-detail-body {
  padding: 60px;
}
.service-detail-body h3 {
  font-size: 1.7rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 26px;
  line-height: 1.5;
}
.service-detail-body p {
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: justify;
}
.service-lead {
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--text-dark);
}
.service-subhead {
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 44px 0 22px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(36, 138, 76, 0.15);
}

/* Workshop gallery (作品例) */
.workshop-gallery-note {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.workshop-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.workshop-gallery-item {
  margin: 0;
  background: var(--card-bg);
  border: 1px solid rgba(36, 138, 76, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(28, 61, 39, 0.07);
  transition: var(--transition);
}
.workshop-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(28, 61, 39, 0.14);
}
.workshop-gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.workshop-gallery-item figcaption {
  font-size: 0.72rem;
  line-height: 1.3;
  text-align: center;
  color: var(--text-dark);
  padding: 7px 6px;
}

/* Bento feature grid */
.feature-list.bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: repeat(2, auto);
  gap: 20px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 26px;
  background: rgba(36, 138, 76, 0.04);
  border: 1px solid rgba(36, 138, 76, 0.08);
  border-radius: 14px;
  transition: var(--transition);
}
.feature-item-lg {
  grid-row: 1 / 3;
  flex-direction: column;
  background: linear-gradient(155deg, var(--primary), var(--accent));
  color: var(--white);
  border-color: transparent;
}
.feature-item-lg .feature-icon {
  background: rgba(255, 255, 255, 0.15);
}
.feature-item-lg .feature-text h5 {
  color: var(--white);
}
.feature-item-lg .feature-text p {
  color: rgba(255, 255, 255, 0.85);
}
.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(28, 61, 39, 0.1);
  border-color: rgba(36, 138, 76, 0.3);
}
.feature-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(36, 138, 76, 0.12);
}
.feature-icon .clover-icon {
  width: 22px;
  height: 22px;
}
.feature-text h5 {
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: left;
  margin-bottom: 0;
}

/* Price box */
.price-box {
  position: relative;
  overflow: hidden;
  background: rgba(36, 138, 76, 0.05);
  border: 1px solid rgba(36, 138, 76, 0.15);
  border-left: 5px solid var(--accent);
  border-radius: 12px;
  padding: 32px 38px;
  margin-top: 16px;
}
.price-box .service-subhead {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.price-box p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  font-size: 0.95rem;
}
.price-box strong {
  color: var(--primary);
}
.price-watermark {
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 140px;
  height: 140px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

/* Case accordion */
.case-accordion {
  margin-top: 28px;
}
.case-accordion summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: rgba(36, 138, 76, 0.08);
  border: 1px solid rgba(36, 138, 76, 0.2);
  padding: 14px 30px;
  border-radius: 30px;
  list-style: none;
  transition: var(--transition);
}
.case-accordion summary::-webkit-details-marker {
  display: none;
}
.case-accordion summary::after {
  content: "▼";
  font-size: 0.6rem;
  transition: transform 0.3s ease;
  margin-left: 4px;
}
.case-accordion[open] summary::after {
  transform: rotate(180deg);
}
.case-accordion summary:hover {
  background: rgba(36, 138, 76, 0.16);
  transform: translateY(-2px);
}
.case-accordion[open] summary {
  margin-bottom: 28px;
}
.case-accordion > div {
  animation: panelFade 0.5s var(--ease);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}
.case-grid:has(.case-card:nth-child(3)) .case-card:first-child {
  grid-column: 1 / -1;
  display: flex;
  align-items: stretch;
}
.case-grid:has(.case-card:nth-child(3)) .case-card:first-child .case-card-media {
  flex: 0 0 42%;
}
.case-grid:has(.case-card:nth-child(3)) .case-card:first-child .case-card-img {
  height: 100%;
}
.case-grid:has(.case-card:nth-child(3)) .case-card:first-child .case-card-body {
  flex: 1;
}
.case-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(36, 138, 76, 0.1);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition);
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(28, 61, 39, 0.1);
  border-color: rgba(36, 138, 76, 0.28);
}
.case-card-media {
  position: relative;
  overflow: hidden;
}
.case-card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}
.case-card:hover .case-card-img {
  transform: scale(1.06);
}
.case-card-icon {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 61, 39, 0.85);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.case-card-body {
  padding: 20px 24px 24px 24px;
}
.case-card-body h5 {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 700;
  margin: 0 0 12px 0;
}
.case-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: left;
  margin: 0 0 14px 0;
}
.case-card-body p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   MESSAGE (dark section) / WORKS用スタイルは下部に温存
   ========================================================================== */
.section-dark {
  background: linear-gradient(170deg, #1b3d28 0%, #265639 100%);
  color: rgba(255, 255, 255, 0.88);
  clip-path: polygon(0 4%, 100% 0%, 100% 96%, 0 100%);
  margin: -6vh 0;
  padding: 160px 0;
}

.works-tabs {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.works-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 100px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: var(--transition);
}
.works-tab-btn:hover {
  border-color: rgba(121, 215, 153, 0.5);
  color: var(--white);
}
.works-tab-btn.active {
  background: linear-gradient(120deg, var(--accent), var(--gold));
  border-color: transparent;
  color: var(--primary-deep);
}

.works-panel {
  animation: panelFade 0.6s var(--ease);
}
.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.pill {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 0.82rem;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  transition: var(--transition);
}
.pill:hover {
  background: rgba(121, 215, 153, 0.14);
  border-color: rgba(121, 215, 153, 0.5);
  color: var(--white);
  transform: translateY(-3px);
}
.pill:nth-child(3n + 1) {
  font-weight: 700;
  font-size: 0.86rem;
  border-color: rgba(205, 165, 69, 0.3);
}
.pill:nth-child(4n + 2) {
  background: rgba(255, 255, 255, 0.02);
  border-style: dashed;
}

/* ==========================================================================
   MESSAGE
   ========================================================================== */
/* ダークセクション上の代表挨拶カード */
.section-dark .message-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.section-dark .message-quote {
  color: rgba(255, 255, 255, 0.1);
}

.message-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 70px 60px;
  border: 1px solid rgba(36, 138, 76, 0.08);
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(28, 61, 39, 0.06);
}
.message-quote {
  position: absolute;
  top: 36px;
  left: 44px;
  width: 70px;
  height: auto;
  color: rgba(36, 138, 76, 0.08);
}
.message-body {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.message-body p {
  font-size: 1.05rem;
  margin-bottom: 24px;
  text-align: justify;
}
.message-body .ceo-signature {
  margin-top: 35px;
  font-size: 1.1rem;
  text-align: right;
}

/* ==========================================================================
   COMPANY INFO GRID
   ========================================================================== */
.info-grid-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(36, 138, 76, 0.08);
  box-shadow: 0 25px 60px rgba(28, 61, 39, 0.05);
  position: relative;
}
.info-grid-watermark {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 180px;
  height: 180px;
  opacity: 0.04;
  pointer-events: none;
}
.info-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid rgba(36, 138, 76, 0.07);
  transition: background 0.3s ease;
  position: relative;
  z-index: 1;
}
.info-row:last-child {
  border-bottom: none;
}
.info-row:hover {
  background: rgba(36, 138, 76, 0.03);
}
.info-label {
  padding: 26px 34px;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  font-size: 0.95rem;
}
.info-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
  border-radius: 3px;
}
.info-value {
  padding: 26px 34px;
  font-size: 1rem;
}

/* ==========================================================================
   Instagram 導線
   ========================================================================== */
.insta-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  padding: 20px 26px;
  background: var(--card-bg);
  border: 1px solid rgba(36, 138, 76, 0.12);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(28, 61, 39, 0.07);
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
}
.insta-cta:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 138, 76, 0.28);
  box-shadow: 0 18px 34px rgba(28, 61, 39, 0.13);
}
.insta-cta-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.insta-cta-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.insta-cta-body strong {
  font-size: 0.97rem;
  line-height: 1.5;
}
.insta-cta-id {
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.insta-cta-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.insta-cta-arrow {
  width: 15px;
  height: 15px;
  transition: var(--transition);
}
.insta-cta:hover .insta-cta-arrow {
  transform: translateX(4px);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-sns {
  display: inline-flex;
  transition: var(--transition);
}
.footer-sns img {
  width: 30px;
  height: 30px;
  display: block;
}
.footer-sns:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

/* ==========================================================================
   FOOTER / BACK TO TOP
   ========================================================================== */
.footer {
  background: var(--primary-deep);
  color: var(--white);
  padding: 50px 0;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  display: flex;
  align-items: center;
}
/* ヘッダーと同一のロゴ画像。濃緑背景のため icon-invert で白抜きにする */
.footer-logo-img {
  height: 54px;
  width: auto;
  display: block;
}
.footer-copy {
  font-size: 0.8rem;
  opacity: 0.5;
}

.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(28, 61, 39, 0.3);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: var(--transition);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-4px);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   📱 RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .header-container {
    height: 60px;
  }
  .logo {
    height: 40px;
  }
  .hero {
    min-height: max(560px, 92vh);
  }
  .section {
    padding: 90px 0;
  }
  .about-grid {
    grid-template-columns: 1fr;
    padding: 50px 36px;
    gap: 50px;
  }
  .about-visual-col {
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
  }
  .about-card {
    padding: 50px 36px;
  }
  .service-detail-body {
    padding: 40px 34px;
  }
  .feature-list.bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .feature-item-lg {
    grid-row: auto;
  }
  .message-card {
    padding: 55px 36px;
  }
  .info-row {
    grid-template-columns: 180px 1fr;
  }
}

@media (max-width: 900px) {
  .case-grid:has(.case-card:nth-child(3)) .case-card:first-child {
    flex-direction: column;
  }
  .case-grid:has(.case-card:nth-child(3)) .case-card:first-child .case-card-media {
    flex: none;
  }
  .case-grid:has(.case-card:nth-child(3)) .case-card:first-child .case-card-img {
    height: 170px;
  }
}

@media (max-width: 768px) {
  /* backdrop-filterとmix-blend-modeはスクロール毎に再合成が必要で
     モバイルでのカクツキの主因になるため、軽量な表現に切り替える */
  .header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .noise-overlay {
    display: none;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }
  .service-tabs {
    flex-direction: column;
    align-items: stretch;
  }
  .service-tab-btn {
    max-width: none;
    flex-basis: auto;
  }
  .message-body {
    text-align: center;
  }
  .info-row {
    grid-template-columns: 1fr;
  }
  .info-label {
    padding-bottom: 6px;
  }
  .info-value {
    padding-top: 0;
  }
}

@media (max-width: 576px) {
  body,
  html {
    overflow-x: hidden !important;
  }
  .container {
    padding: 0 18px;
  }
  .pc-only {
    display: none;
  }
  .section {
    padding: 70px 0;
  }
  .workshop-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .workshop-gallery-item figcaption {
    font-size: 0.66rem;
    padding: 5px 3px;
  }
  .header-container {
    padding: 0 16px;
    height: 56px;
  }
  .logo {
    height: 34px;
  }
  .hero {
    min-height: max(480px, 88vh);
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
  }
  .hero-watermark {
    width: 72vw;
    right: -22%;
    opacity: 0.8;
  }
  .header-icon {
    width: 50px;
    height: 50px;
  }
  .clover-icon {
    width: 22px;
    height: 22px;
  }
  .hero-content {
    padding: 0 14px;
  }
  .hero-lead {
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 34px;
  }
  .hero-scroll-cue {
    display: none;
  }
  .btn {
    padding: 15px 36px;
    font-size: 0.88rem;
  }
  .main-content-wrap {
    margin-top: -6vh;
  }
  .about-grid {
    padding: 40px 22px;
    border-radius: 16px;
  }
  .about-card {
    padding: 32px 20px;
    border-radius: 16px;
  }
  .something-four-grid {
    gap: 14px;
  }
  .sf-tile {
    padding: 20px 12px;
    transform: none !important;
  }
  .sf-tile:hover {
    transform: translateY(-4px) !important;
  }
  .lead-text {
    font-size: 1.12rem;
  }
  .description-text {
    font-size: 0.95rem;
  }
  .service-detail-media {
    height: 220px;
  }
  .service-detail-body {
    padding: 32px 20px;
  }
  .service-detail-body h3 {
    font-size: 1.32rem;
  }
  .price-box {
    padding: 24px 22px;
  }
  .section-dark {
    padding: 90px 0;
    clip-path: polygon(0 2.5%, 100% 0%, 100% 97.5%, 0 100%);
  }
  .pill {
    font-size: 0.76rem;
    padding: 10px 16px;
  }
  .message-card,
  .info-grid-card {
    border-radius: 16px;
  }
  .message-card {
    padding: 44px 20px;
  }
  .message-quote {
    width: 46px;
    top: 22px;
    left: 22px;
  }
  .insta-cta {
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px;
  }
  .insta-cta-action {
    width: 100%;
    justify-content: flex-end;
  }
  .footer-inner {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .footer-logo-img {
    height: 42px;
  }
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }
}
