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

:root {
  --primary:        #C8773A;
  --primary-light:  #E8B48A;
  --primary-dark:   #9E5A25;
  --accent:         #D4AF7A;
  --secondary:      #4A7A5C;
  --dark:           #1E1812;
  --dark2:          #2E2418;
  --gray:           #7A706A;
  --light-gray:     #F5F0EB;
  --white:          #FFFFFF;
  --font-main:      'Noto Sans JP', sans-serif;
  --font-accent:    'Cormorant Garamond', 'Playfair Display', serif;
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
  font-family: var(--font-main);
  color: var(--dark);
  background: var(--white);
  line-height: 1.85;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease-out-expo), transform .9s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: none; }

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity .9s var(--ease-out-expo), transform .9s var(--ease-out-expo);
}
.reveal-left.visible { opacity: 1; transform: none; }

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity .9s var(--ease-out-expo), transform .9s var(--ease-out-expo);
}
.reveal-right.visible { opacity: 1; transform: none; }

.stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo);
}
.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: .1s; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: .2s; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: .3s; }
.stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: .4s; }
.stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: .5s; }

/* ===== SECTION TITLE ===== */
.section-title {
  text-align: center;
  margin-bottom: 72px;
}
.section-title .en {
  display: block;
  font-family: var(--font-accent);
  font-size: 72px;
  font-weight: 400;
  font-style: italic;
  color: rgba(200,119,58,.12);
  line-height: 1;
  margin-bottom: -28px;
  letter-spacing: .02em;
  pointer-events: none;
}
.section-title .ja {
  display: inline-block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .1em;
  position: relative;
}
.section-title .ja::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 44px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  position: relative;
  overflow: hidden;
  transition: all .4s var(--ease-out-expo);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .3s;
}
.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(200,119,58,.35);
}
.btn-primary::before { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); }
.btn-primary:hover { box-shadow: 0 12px 32px rgba(200,119,58,.45); }

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: var(--primary); color: white; box-shadow: 0 8px 24px rgba(200,119,58,.3); }

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.btn-white:hover { background: var(--light-gray); box-shadow: 0 12px 32px rgba(0,0,0,.2); }

section { padding: 112px 0; }

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all .5s var(--ease-out-expo);
  padding: 8px 0;
}
header.at-top {
  background: transparent;
}
header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 8px 32px rgba(0,0,0,.06);
  padding: 4px 0;
}

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

.logo { display: flex; align-items: center; gap: 14px; }
.logo-mark {
  width: 46px; height: 46px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(200,119,58,.4);
  transition: transform .3s var(--ease-out-expo);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.logo-text .name-ja {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.3;
  transition: color .3s;
}
.logo-text .name-en {
  font-size: 13px;
  color: var(--gray);
  letter-spacing: .14em;
}
header.at-top .logo-text .name-ja { color: white; }
header.at-top .logo-text .name-en { color: rgba(255,255,255,.6); }

nav ul { display: flex; gap: 36px; }
nav a {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .06em;
  position: relative;
  padding-bottom: 4px;
  transition: color .3s;
}
header.scrolled nav a { color: var(--dark); }
header.at-top   nav a { color: rgba(255,255,255,.9); }
nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--primary);
  transition: width .35s var(--ease-out-expo);
}
header.at-top nav a::after { background: white; }
nav a:hover::after, nav a.active::after { width: 100%; }

.header-tel {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  text-align: right;
  transition: color .3s;
}
header.at-top .header-tel { color: white; }
.header-tel span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--gray);
}
header.at-top .header-tel span { color: rgba(255,255,255,.6); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--dark); border-radius: 2px; transition: all .3s; }
header.at-top .hamburger span { background: white; }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}

.hero-slider { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 8s ease-out;
}
.hero-slide.active img { transform: scale(1); }

/* dark gradient overlay */
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,14,8,.1) 0%,
    rgba(20,14,8,.55) 60%,
    rgba(20,14,8,.75) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  z-index: 10;
  padding: 32px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeSlideUp .8s var(--ease-out-expo) .4s forwards;
}
.hero-tag::before, .hero-tag::after {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--accent);
}

.hero-catch {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 40px rgba(0,0,0,.2);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeSlideUp .9s var(--ease-out-expo) .6s forwards;
  letter-spacing: .05em;
}

.hero-sub {
  font-size: clamp(14px, 1.8vw, 17px);
  opacity: 0;
  animation: fadeSlideUp .9s var(--ease-out-expo) .8s forwards;
  color: rgba(255,255,255,.8);
  margin-bottom: 48px;
  letter-spacing: .08em;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeSlideUp .9s var(--ease-out-expo) 1s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.7);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.7), transparent);
}

.hero-dots {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}
.hero-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all .4s;
}
.hero-dot.active { background: white; height: 24px; border-radius: 3px; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===== NEWS ===== */
.news-wrap { background: var(--dark); border-radius: 24px; padding: 64px; }

.news-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}
.news-header .title-group .en {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.news-header .title-group .ja { font-size: 22px; font-weight: 700; color: white; }

.news-list { display: flex; flex-direction: column; }
.news-item {
  display: grid;
  grid-template-columns: 100px 80px 1fr;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: all .3s;
  cursor: pointer;
}
.news-item:first-child { border-top: 1px solid rgba(255,255,255,.07); }
.news-item:hover { padding-left: 12px; border-color: rgba(200,119,58,.4); }
.news-date { font-size: 12px; color: rgba(255,255,255,.4); font-family: var(--font-accent); letter-spacing: .08em; }
.news-tag {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--primary-light);
  color: var(--primary-light);
  text-align: center;
  white-space: nowrap;
}
.news-title-text { font-size: 14px; color: rgba(255,255,255,.8); transition: color .3s; }
.news-item:hover .news-title-text { color: var(--accent); }

/* ===== ABOUT SPLIT ===== */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-split.reverse .about-split-img { order: 2; }
.about-split.reverse .about-split-body { order: 1; }

.about-split-img {
  position: relative;
}
.img-frame {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  position: relative;
}
.img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out-expo);
}
.img-frame:hover img { transform: scale(1.04); }

/* decorative corner */
.img-deco {
  position: absolute;
  width: 120px; height: 120px;
  border: 2px solid var(--accent);
  border-radius: 16px;
  bottom: -20px; right: -20px;
  z-index: -1;
  opacity: .5;
}
.about-split.reverse .img-deco { left: -20px; right: auto; }

.about-split-body .label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--primary);
  font-family: var(--font-accent);
  font-style: italic;
  margin-bottom: 16px;
}
.about-split-body .label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--primary);
}
.about-split-body h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 24px;
  letter-spacing: .05em;
}
.about-split-body p {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 14px;
  line-height: 1.9;
}

/* ===== SERVICES ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,.06);
  transition: transform .5s var(--ease-out-expo), box-shadow .5s;
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1.5px solid transparent;
  background: linear-gradient(135deg, var(--primary), var(--accent)) border-box;
  -webkit-mask: linear-gradient(white 0 0) padding-box, linear-gradient(white 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 60px rgba(0,0,0,.12); }
.service-card:hover::before { opacity: 1; }

.service-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out-expo); }
.service-card:hover .service-card-img img { transform: scale(1.06); }

.service-card-body { padding: 28px; }
.service-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(200,119,58,.2);
}
.service-card-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.service-card-body p  { font-size: 13px; color: var(--gray); line-height: 1.75; }

/* ===== FEATURES ===== */
.features-bg {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark2) 100%);
  position: relative;
  overflow: hidden;
}
.features-bg::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,119,58,.08) 0%, transparent 70%);
  top: -200px; right: -200px;
}
.features-bg .section-title .en { color: rgba(255,255,255,.04); }
.features-bg .section-title .ja { color: white; }
.features-bg .section-title .ja::after { background: linear-gradient(90deg, var(--accent), var(--primary)); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-item {
  padding: 44px 32px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(8px);
  transition: all .4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.feature-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,119,58,.08), transparent);
  opacity: 0;
  transition: opacity .4s;
}
.feature-item:hover {
  border-color: rgba(200,119,58,.3);
  transform: translateY(-6px);
}
.feature-item:hover::before { opacity: 1; }

.feature-num {
  font-family: var(--font-accent);
  font-size: 64px;
  font-style: italic;
  color: rgba(212,175,122,.15);
  line-height: 1;
  margin-bottom: 8px;
}
.feature-item h3 { font-size: 16px; font-weight: 700; color: white; margin-bottom: 12px; }
.feature-item p  { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.8; }

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}
.stat-item {
  text-align: center;
  padding: 64px 32px;
  border-right: 1px solid rgba(0,0,0,.06);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width .6s var(--ease-out-expo);
}
.stat-item.visible::before { width: 60%; }
.stat-num {
  font-family: var(--font-accent);
  font-size: 76px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 12px;
}
.stat-unit { font-size: 28px; }
.stat-label { font-size: 17px; color: var(--gray); letter-spacing: .05em; }

/* ===== RECRUIT BANNER ===== */
.recruit-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #7A3A15 100%);
  border-radius: 28px;
  padding: 80px 72px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.recruit-banner::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 80px solid rgba(255,255,255,.04);
  right: -120px; top: -120px;
}
.recruit-banner::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,.04);
  left: -60px; bottom: -60px;
}
.recruit-banner-body { color: white; position: relative; z-index: 1; }
.recruit-banner-body .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--primary-light);
  margin-bottom: 16px;
}
.recruit-banner-body .tag::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--primary-light);
}
.recruit-banner-body h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.recruit-banner-body p  { opacity: .75; font-size: 15px; line-height: 1.8; }
.recruit-banner-cta { position: relative; z-index: 1; flex-shrink: 0; }

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.55);
  padding: 80px 0 36px;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,119,58,.05) 0%, transparent 70%);
  left: -200px; bottom: -200px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-brand .logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.footer-brand .logo-name { color: white; font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.footer-brand .logo-sub  { font-size: 10px; color: rgba(255,255,255,.35); letter-spacing: .12em; }
.footer-brand p { font-size: 13px; line-height: 1.9; margin-bottom: 20px; }
.footer-tel {
  font-family: var(--font-accent);
  font-size: 28px;
  color: var(--accent);
  letter-spacing: .05em;
}
.footer-tel-label { font-size: 11px; color: rgba(255,255,255,.3); letter-spacing: .1em; margin-bottom: 4px; }

.footer-nav h4 {
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-nav li { margin-bottom: 12px; }
.footer-nav a {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .3s;
}
.footer-nav a::before { content: '→'; font-size: 10px; color: var(--primary); opacity: 0; transition: all .3s; transform: translateX(-4px); }
.footer-nav a:hover { color: var(--accent); padding-left: 4px; }
.footer-nav a:hover::before { opacity: 1; transform: none; }

.footer-bottom {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,.2);
  letter-spacing: .08em;
}

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 160px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark2) 100%);
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,119,58,.1) 0%, transparent 70%);
  top: -200px; left: 50%;
  transform: translateX(-50%);
}
.page-hero .bg-text {
  position: absolute;
  font-family: var(--font-accent);
  font-size: 160px;
  font-style: italic;
  color: rgba(255,255,255,.025);
  white-space: nowrap;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.page-hero .tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: var(--font-accent);
  font-style: italic;
}
.page-hero .tag::before, .page-hero .tag::after { content: ''; display: block; width: 24px; height: 1px; background: var(--accent); }
.page-hero h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 700; color: white; letter-spacing: .1em; }

/* ===== SERVICE PAGE ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.service-detail:last-child { border: none; margin-bottom: 0; }
.service-detail.reverse .service-detail-img { order: 2; }
.service-detail.reverse .service-detail-body { order: 1; }
.service-detail-img { border-radius: 20px; overflow: hidden; aspect-ratio: 4/3; }
.service-detail-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out-expo); }
.service-detail-img:hover img { transform: scale(1.04); }
.service-detail-body h2 {
  font-size: 24px; font-weight: 700; margin-bottom: 20px;
  padding-left: 16px;
  border-left: 3px solid var(--primary);
}
.service-detail-body p { font-size: 15px; color: var(--gray); margin-bottom: 12px; line-height: 1.9; }
.service-detail-list { margin-top: 20px; padding-left: 0; display: flex; flex-direction: column; gap: 8px; }
.service-detail-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray);
}
.service-detail-list li::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ===== ABOUT PAGE ===== */
.company-table { width: 100%; border-collapse: collapse; }
.company-table tr { transition: background .3s; }
.company-table tr:hover { background: rgba(200,119,58,.04); }
.company-table th, .company-table td {
  padding: 22px 28px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}
.company-table th {
  width: 180px;
  font-weight: 700;
  color: var(--primary);
  font-size: 13px;
  letter-spacing: .04em;
}
.map-wrap { border-radius: 20px; overflow: hidden; height: 420px; margin-top: 56px; box-shadow: 0 8px 40px rgba(0,0,0,.1); }
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ===== NEWS PAGE (アコーディオン) ===== */
.news-accordion {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(0,0,0,.08);
}

/* 1記事分のラッパー */
.news-accordion-item {
  border-bottom: 1px solid rgba(0,0,0,.08);
  transition: background-color .3s var(--ease-out-expo);
}
.news-accordion-item.is-open {
  background: rgba(200,119,58,.04);
}

/* ヘッダー（クリック領域） */
.news-accordion-header {
  width: 100%;
  display: grid;
  grid-template-columns: 110px 80px 1fr 24px;
  align-items: center;
  gap: 20px;
  padding: 22px 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--dark);
  transition: padding-left .3s var(--ease-out-expo), color .3s;
}
.news-accordion-header:hover {
  padding-left: 16px;
  color: var(--primary-dark);
}

/* 日付 */
.news-accordion-date {
  font-family: var(--font-accent);
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--gray);
  white-space: nowrap;
}

/* カテゴリタグ */
.news-accordion-cat {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .08em;
  padding: 4px 10px;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 20px;
  text-align: center;
  white-space: nowrap;
  min-height: 22px;
}
.news-accordion-cat:empty {
  visibility: hidden;
}

/* タイトル */
.news-accordion-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--dark);
}

/* 開閉アイコン */
.news-accordion-icon {
  font-size: 12px;
  color: var(--primary);
  transition: transform .4s var(--ease-out-expo);
  text-align: center;
}
.news-accordion-item.is-open .news-accordion-icon {
  transform: rotate(180deg);
}

/* 開閉パネル（max-heightアニメーション） */
.news-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease-out-expo);
}

/* パネル内側 */
.news-accordion-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
  padding: 8px 8px 32px 8px;
}

/* アイキャッチ画像 */
.news-accordion-thumb {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--light-gray);
}
.news-accordion-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out-expo);
}
.news-accordion-thumb:hover img {
  transform: scale(1.04);
}

/* 本文ブロック */
.news-accordion-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.news-accordion-excerpt {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.9;
  margin: 0;
}

/* 続きを読むボタン */
.news-accordion-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  border-radius: 50px;
  cursor: pointer;
  transition: all .35s var(--ease-out-expo);
}
.news-accordion-more:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(200,119,58,.3);
  transform: translateY(-2px);
}

/* アイキャッチが無い場合に本文を全幅で表示 */
.news-accordion-inner:not(:has(.news-accordion-thumb)) {
  grid-template-columns: 1fr;
}

/* ===== RECRUIT PAGE ===== */
.recruit-appeal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 72px; }
.appeal-item {
  text-align: center;
  padding: 40px 24px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  transition: all .4s var(--ease-out-expo);
  border-bottom: 3px solid transparent;
}
.appeal-item:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,.1); border-color: var(--primary); }
.appeal-icon { font-size: 40px; margin-bottom: 16px; display: block; }
.appeal-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.appeal-item p  { font-size: 13px; color: var(--gray); }

.job-card {
  background: white;
  border-radius: 20px;
  padding: 44px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  margin-bottom: 28px;
  border-left: 4px solid var(--primary);
  transition: all .4s var(--ease-out-expo);
}
.job-card:hover { box-shadow: 0 12px 48px rgba(0,0,0,.1); transform: translateX(4px); }
.job-card h3 {
  font-size: 20px; font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(200,119,58,.15);
}
.job-table { width: 100%; border-collapse: collapse; }
.job-table th, .job-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.05);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}
.job-table th { width: 130px; font-weight: 700; color: var(--gray); font-size: 13px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .service-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat-item:nth-child(2) { border-right: none; }
  .stats-grid .stat-item:nth-child(3) { border-top: 1px solid rgba(0,0,0,.06); }
  .about-split { grid-template-columns: 1fr; gap: 48px; }
  .about-split.reverse .about-split-img,
  .about-split.reverse .about-split-body { order: unset; }
  .service-detail { grid-template-columns: 1fr; gap: 40px; }
  .service-detail.reverse .service-detail-img,
  .service-detail.reverse .service-detail-body { order: unset; }
  .recruit-banner { grid-template-columns: 1fr; text-align: center; }
  .recruit-banner-body .tag { justify-content: center; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  /* タブレット: アコーディオン内のサムネを少し小さく */
  .news-accordion-inner { grid-template-columns: 220px 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  /* スマホ: ヘッダーを縦積みに、パネル内も縦積みに */
  .news-accordion-header {
    grid-template-columns: 1fr 24px;
    grid-template-rows: auto auto;
    gap: 6px 16px;
    padding: 18px 4px;
    row-gap: 8px;
  }
  .news-accordion-header:hover { padding-left: 8px; }
  .news-accordion-date {
    grid-row: 1;
    grid-column: 1;
    font-size: 12px;
  }
  .news-accordion-cat {
    grid-row: 1;
    grid-column: 1;
    justify-self: end;
    margin-right: 8px;
  }
  .news-accordion-title {
    grid-row: 2;
    grid-column: 1 / -1;
    font-size: 14px;
  }
  .news-accordion-icon {
    grid-row: 1 / span 2;
    grid-column: 2;
  }
  .news-accordion-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 4px 4px 24px;
  }
  .news-accordion-thumb { aspect-ratio: 16/10; }
}

@media (max-width: 640px) {
  .service-grid, .feature-grid, .recruit-appeal { grid-template-columns: 1fr; }
  .service-detail-img { max-width: 70% !important; margin: 0 auto; }
  .service-detail-body h2 { font-size: 18px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .header-tel { display: none; }
  .hamburger { display: flex; }
  nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: #fff;
    padding: 80px 0 48px;
    z-index: 1001;
    justify-content: flex-start;
    overflow-y: auto;
    pointer-events: none;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1), visibility .3s;
    will-change: transform;
  }
  nav ul { flex-direction: column; gap: 0; border-top: 1px solid rgba(0,0,0,.06); }
  nav a {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--dark) !important;
    padding: 20px 28px !important;
    border-bottom: 1px solid rgba(0,0,0,.06) !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    letter-spacing: .06em;
  }
  nav a::after {
    content: '›' !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    font-size: 22px;
    font-weight: 300;
    color: var(--primary);
    transition: transform .2s;
  }
  nav a:hover::after { transform: translateX(4px); }
  .section-title .en { font-size: 48px; }
  section { padding: 72px 0; }
  .hero-dots { right: 16px; }
  .recruit-banner { padding: 48px 32px; }
  .job-card { padding: 28px 24px; }
  .company-table th { width: 100px; padding: 16px; }
  .company-table td { padding: 16px; }
  .news-item { grid-template-columns: 80px 70px 1fr; gap: 12px; }
  .news-wrap { padding: 40px 28px; }
  .header-inner { padding: 10px 16px; }
  .logo { gap: 10px; }
  .logo-mark { width: 36px; height: 36px; border-radius: 10px; }
  .logo-text .name-ja { font-size: 14px; }
  .logo-text .name-en { font-size: 10px; }
  .hamburger { margin-left: auto; padding: 8px; }
  .hamburger span { width: 22px; }
}

/* mobile nav */
@media (max-width: 640px) {
  header.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
.nav-open .hamburger span { background: var(--dark) !important; }
.nav-open .hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-open .hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-open nav {
  pointer-events: auto;
  visibility: visible;
  transform: translateX(0);
}
