:root {
  --bg: #181614;
  --bg2: #1e1c19;
  --bg3: #232018;
  --surface: #2a2720;
  --border: rgba(210,190,150,0.15);
  --gold: #c8935a;
  --gold2: #e0aa72;
  --sand: #d4b896;
  --muted: rgba(214,196,160,0.45);
  --text: #f0ece4;
  --text2: rgba(240,236,228,0.72);
  --white: #f9f6f0;
  --accent: #8fb3a0;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}



/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 64px;
  transition: background 0.5s, padding 0.4s;
}
nav.scrolled {
  background: rgba(24,22,20,0.96);
  backdrop-filter: blur(20px);
  padding: 18px 64px;
  border-bottom: 1px solid var(--border);
}
.logo {
  display: flex; flex-direction: column;
}
.logo-main {
  font-family: 'Jost', sans-serif;
  font-weight: 200; font-size: 19px;
  letter-spacing: 0.35em; color: var(--white);
}
.logo-main span { color: var(--gold); }
.logo-sub {
  font-size: 9px; letter-spacing: 0.5em; color: var(--muted);
  margin-top: 3px; font-weight: 300;
}
.nav-links { display: flex; gap: 44px; list-style: none; flex-shrink: 0; }
.nav-links li { white-space: nowrap; }
.nav-links a {
  font-size: 11px; letter-spacing: 0.35em; color: var(--text2);
  text-decoration: none; transition: color 0.3s; font-weight: 400;
  position: relative; white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform 0.3s; transform-origin: right;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-contact {
  padding: 10px 26px; border: 1px solid var(--gold);
  color: var(--gold); font-size: 10px; letter-spacing: 0.4em;
  text-decoration: none; transition: all 0.35s;
  font-family: 'Jost', sans-serif; font-weight: 300;
  white-space: nowrap; flex-shrink: 0;
}
.nav-contact:hover { background: var(--gold); color: var(--bg); }

/* HERO */
#hero {
  min-height: 100vh;
  display: grid; grid-template-rows: 1fr auto;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/hero-bg.jpg') center/cover;
  filter: brightness(0.35) saturate(0.75);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; opacity: 0.6;
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 160px 100px 80px;
  min-height: 100vh;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 52px;
  opacity: 0; animation: fadeUp 0.9s 0.3s forwards;
}
.hero-tag-line { width: 48px; height: 1px; background: var(--gold); }
.hero-tag span {
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 11px; letter-spacing: 0.55em; color: var(--gold);
  text-transform: uppercase;
}
.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(44px, 5.5vw, 78px);
  line-height: 1.08; font-weight: 400;
  color: var(--white);
  opacity: 0; animation: fadeUp 1s 0.5s forwards;
}
.hero-title em {
  font-style: italic; color: var(--gold);
}
.hero-title .line2 {
  display: block; padding-left: 80px;
  color: rgba(237,232,222,0.75);
}
.hero-desc {
  max-width: 480px; margin-top: 44px;
  font-size: 13px; line-height: 2.3; color: var(--text2);
  opacity: 0; animation: fadeUp 1s 0.75s forwards;
}
.hero-cta-row {
  display: flex; align-items: center; gap: 32px; margin-top: 56px;
  opacity: 0; animation: fadeUp 1s 1s forwards;
}
.btn-gold {
  display: inline-block;
  padding: 15px 44px; background: var(--gold);
  color: var(--bg); font-size: 11px; letter-spacing: 0.4em;
  text-decoration: none; font-family: 'Jost', sans-serif; font-weight: 400;
  transition: all 0.35s;
}
.btn-gold:hover { background: var(--gold2); transform: translateY(-2px); }
.btn-text {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.35em; color: var(--text2);
  text-decoration: none; transition: color 0.3s;
}
.btn-text:hover { color: var(--gold); }
.btn-text::after { content: '↓'; }
.hero-scroll {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 20px;
  padding: 36px 100px;
  border-top: 1px solid var(--border);
  opacity: 0; animation: fadeUp 1s 1.3s forwards;
}
.hero-scroll-line {
  width: 1px; height: 48px; background: var(--gold);
  animation: pulse-line 2s infinite;
}
.hero-scroll span { font-size: 10px; letter-spacing: 0.5em; color: var(--muted); }
.hero-year {
  margin-left: auto;
  font-family: 'Jost', sans-serif; font-size: 11px;
  letter-spacing: 0.3em; color: var(--muted);
}

/* MARQUEE */
.marquee-wrap {
  background: #b07d4a;
  padding: 12px 0; overflow: hidden;
}
.marquee-track {
  display: flex; gap: 0;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 40px;
  padding: 0 40px;
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 11px; letter-spacing: 0.5em;
  color: var(--bg); text-transform: uppercase;
}
.marquee-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(14,13,11,0.4); }

/* SECTION SHARED */
section { padding: 90px 72px; }
.s-tag {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.s-tag::before { content: ''; width: 32px; height: 1px; background: var(--gold); }
.s-tag span { font-family: 'Jost', sans-serif; font-size: 10px; letter-spacing: 0.55em; color: var(--gold); font-weight: 300; }
.s-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 3.5vw, 48px); font-weight: 400; line-height: 1.2;
}
.s-title-en {
  font-family: 'Jost', sans-serif; font-weight: 200;
  font-size: 12px; letter-spacing: 0.45em; color: var(--muted); margin-top: 14px;
}

/* ABOUT */
#about { background: var(--bg2); }
.about-wrap { display: grid; grid-template-columns: 5fr 4fr; gap: 100px; align-items: center; }
.about-left {}
.about-header { margin-bottom: 52px; }
.about-body { font-size: 13.5px; line-height: 2.6; color: var(--text2); max-width: 520px; }
.about-body p + p { margin-top: 24px; }
.about-highlight {
  margin-top: 52px; padding: 36px 40px;
  border: 1px solid var(--border); border-left: 3px solid var(--gold);
  background: rgba(201,169,110,0.04);
}
.about-highlight p {
  font-family: 'Playfair Display', serif;
  font-size: 18px; line-height: 1.9; color: var(--sand); font-style: italic;
}
.about-highlight cite {
  display: block; margin-top: 18px;
  font-size: 11px; letter-spacing: 0.3em; color: var(--muted); font-style: normal;
}
.about-right { position: relative; }
.about-img-main {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  display: block; filter: saturate(0.85);
}
.about-img-accent {
  position: absolute; bottom: -28px; right: -28px;
  width: 55%; aspect-ratio: 1;
  border: 1px solid var(--gold); z-index: -1;
}
.about-badge {
  position: absolute; top: 28px; left: -24px;
  background: var(--bg); border: 1px solid var(--border);
  padding: 20px 22px; text-align: center;
}
.about-badge-num {
  font-family: 'DM Serif Display', serif; font-size: 42px; color: var(--gold); line-height: 1;
}
.about-badge-label { font-size: 9px; letter-spacing: 0.4em; color: var(--muted); margin-top: 6px; }

/* SERVICES */
#services { background: var(--bg3); }
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 72px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.svc-card {
  background: var(--bg2); padding: 48px 36px;
  transition: background 0.4s; position: relative; overflow: hidden;
}
.svc-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,169,110,0.06) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.svc-card:hover { background: var(--surface); }
.svc-card:hover::after { opacity: 1; }
.svc-num {
  font-family: 'Jost', sans-serif; font-size: 11px;
  letter-spacing: 0.4em; color: var(--gold); margin-bottom: 32px; font-weight: 300;
}
.svc-icon {
  font-size: 28px; margin-bottom: 20px; display: block;
  filter: grayscale(0.3);
}
.svc-name {
  font-family: 'DM Serif Display', serif; font-size: 22px;
  margin-bottom: 14px; color: var(--white);
}
.svc-name-en {
  font-family: 'Jost', sans-serif; font-size: 10px;
  letter-spacing: 0.45em; color: var(--gold); margin-bottom: 20px; font-weight: 300;
}
.svc-desc { font-size: 12.5px; line-height: 2.2; color: var(--text2); }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.svc-tag {
  padding: 5px 14px; border: 1px solid var(--border);
  font-size: 10px; letter-spacing: 0.25em; color: var(--muted);
}

/* WORKS REAL GRID */
.works-grid-real {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.work-item-real {
  position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 16/9;
}
.work-item-real img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.work-item-real:hover img { transform: scale(1.05); }
.work-item-real .work-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,13,11,0.82) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; opacity: 0; transition: opacity 0.4s;
}
.work-item-real:hover .work-overlay { opacity: 1; }
.work-item-wide {
  grid-column: span 2;
  aspect-ratio: unset !important;
  display: flex; align-items: center; justify-content: flex-start;
  padding: 28px 32px;
  background: var(--surface);
  cursor: default;
}
.work-project-label {
  font-family: 'DM Serif Display', serif;
  font-size: 20px; color: var(--gold);
  letter-spacing: 0.05em;
}
.work-project-label::before {
  content: '▎ ';
  color: var(--gold);
}

/* WORKS */
#works { background: var(--bg); padding-bottom: 80px; }
.works-header { margin-bottom: 64px; }
.works-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto;
  gap: 3px;
}
.work-item {
  position: relative; overflow: hidden; cursor: pointer;
}
.work-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
  filter: saturate(0.7) brightness(0.9);
}
.work-item:hover img { transform: scale(1.06); filter: saturate(1) brightness(0.95); }
.work-item.large { grid-row: span 2; aspect-ratio: 0.72; }
.work-item.small { aspect-ratio: 1.3; }
.work-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,13,11,0.88) 0%, rgba(14,13,11,0.1) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 36px; opacity: 0; transition: opacity 0.4s;
}
.work-item:hover .work-overlay { opacity: 1; }
.work-cat { font-size: 9px; letter-spacing: 0.55em; color: var(--gold); margin-bottom: 10px; font-family: 'Jost', sans-serif; font-weight: 300; }
.work-title { font-family: 'DM Serif Display', serif; font-size: 22px; color: var(--white); }
.work-sub { font-size: 11px; color: var(--text2); margin-top: 6px; }
.works-more { text-align: center; margin-top: 60px; }
.btn-outline-gold {
  display: inline-block; padding: 14px 52px;
  border: 1px solid var(--gold); color: var(--gold);
  text-decoration: none; font-size: 11px; letter-spacing: 0.45em;
  font-family: 'Jost', sans-serif; font-weight: 300;
  transition: all 0.35s;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--bg); }

/* PROCESS */
#process { background: var(--bg2); }
.process-intro { max-width: 600px; margin-bottom: 80px; }
.process-intro p { font-size: 13.5px; line-height: 2.5; color: var(--text2); margin-top: 28px; }
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.process-steps::before {
  content: ''; position: absolute; top: 28px; left: 10%; right: 10%;
  height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.step {
  padding: 0 24px; text-align: center; position: relative; padding-top: 60px;
}
.step-num {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 56px; height: 56px; border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Jost', sans-serif; font-size: 14px; color: var(--gold); font-weight: 300;
  background: var(--bg2);
}
.step-title { font-family: 'DM Serif Display', serif; font-size: 17px; margin-bottom: 12px; }
.step-desc { font-size: 12px; line-height: 2; color: var(--text2); }

/* RECRUIT */
#recruit { background: var(--bg3); }
.recruit-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
.recruit-left .s-title { margin-bottom: 36px; }
.recruit-lead { font-size: 13.5px; line-height: 2.5; color: var(--text2); }
.recruit-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); margin-top: 52px; }
.perk {
  background: var(--bg2); padding: 28px 28px;
}
.perk-icon { font-size: 22px; margin-bottom: 14px; }
.perk-title { font-size: 13px; font-weight: 500; color: var(--sand); margin-bottom: 8px; }
.perk-desc { font-size: 11.5px; line-height: 1.9; color: var(--text2); }
.recruit-right {}
.job-cards { display: flex; flex-direction: column; gap: 1px; background: var(--border); }
.job-card {
  background: var(--bg2); padding: 36px 32px;
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.3s, padding-left 0.3s; cursor: pointer;
}
.job-card:hover { background: var(--surface); padding-left: 44px; }
.job-card-left {}
.job-type { font-size: 9px; letter-spacing: 0.55em; color: var(--gold); margin-bottom: 10px; font-family: 'Jost', sans-serif; }
.job-title { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--white); }
.job-info { font-size: 11px; color: var(--text2); margin-top: 6px; }
.job-arrow { font-size: 18px; color: var(--gold); transition: transform 0.3s; }
.job-card:hover .job-arrow { transform: translateX(6px); }
.recruit-note {
  margin-top: 40px; padding: 28px 32px;
  background: rgba(201,169,110,0.06); border: 1px solid var(--border);
}
.recruit-note p { font-size: 12px; line-height: 2; color: var(--text2); }

/* CONTACT */
#contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 100px; align-items: start; }
.contact-left {}
.contact-lead { font-size: 13px; line-height: 2.5; color: var(--text2); margin-top: 32px; }
.contact-info-list { display: flex; flex-direction: column; gap: 32px; margin-top: 52px; }
.ci-item {}
.ci-label { font-size: 9px; letter-spacing: 0.55em; color: var(--gold); margin-bottom: 10px; font-family: 'Jost', sans-serif; font-weight: 300; }
.ci-val { font-size: 14px; color: var(--text); }
.ci-sub { font-size: 11px; color: var(--text2); margin-top: 4px; }
.contact-right {}
.cf { display: flex; flex-direction: column; gap: 22px; }
.cf-group { display: flex; flex-direction: column; gap: 9px; }
.cf-group label { font-size: 10px; letter-spacing: 0.4em; color: var(--gold); font-family: 'Jost', sans-serif; font-weight: 300; }
.cf-group input,
.cf-group select,
.cf-group textarea {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 13px 18px;
  font-size: 13px; font-family: 'Noto Sans JP', sans-serif;
  outline: none; transition: border-color 0.3s;
  -webkit-appearance: none; appearance: none;
}
.cf-group input:focus,
.cf-group select:focus,
.cf-group textarea:focus { border-color: var(--gold); }
.cf-group select option { background: var(--bg3); }
.cf-group textarea { resize: vertical; min-height: 150px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cf-submit {
  padding: 16px 52px; background: var(--gold); color: var(--bg);
  border: none; cursor: pointer; font-size: 11px; letter-spacing: 0.45em;
  font-family: 'Jost', sans-serif; font-weight: 400;
  align-self: flex-start; margin-top: 12px; transition: all 0.35s;
}
.cf-submit:hover { background: var(--gold2); transform: translateY(-2px); }

/* FOOTER */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 52px 80px;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 40px;
}
.footer-logo .logo-main { font-size: 17px; }
.footer-logo .logo-sub { font-size: 8px; }
.footer-links { display: flex; gap: 36px; }
.footer-links a { font-size: 10px; letter-spacing: 0.3em; color: var(--text2); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  grid-column: 1/-1;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--border);
}
.footer-copy { font-size: 10px; letter-spacing: 0.25em; color: var(--muted); }
.footer-craft { font-size: 10px; letter-spacing: 0.2em; color: var(--muted); }
.footer-craft span { color: var(--gold); }

/* DIVIDER */
.gold-rule {
  display: flex; align-items: center; gap: 24px;
  margin: 60px 0;
}
.gold-rule::before, .gold-rule::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.gold-rule span { font-family: 'Jost', sans-serif; font-size: 14px; color: var(--gold); font-weight: 200; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes pulse-line {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* HORIZONTAL RULE SECTION */
.thin-rule {
  border: none; border-top: 1px solid var(--border);
  margin: 0 80px;
}

/* LOGO IMAGE */
/* 背景透過済みの白ロゴを使うため、invertフィルターは不要になりました。 */
.logo-img-wrap { display: flex; flex-direction: column; align-items: flex-start; }
.nav-logo-img {
  height: 44px; width: auto;
  opacity: 0.96;
  transition: opacity 0.3s, height 0.4s;
}
.nav-logo-img:hover { opacity: 1; }
/* スクロール後は少し縮めて、コンテンツの邪魔をしないようにする */
nav.scrolled .nav-logo-img { height: 36px; }
.footer-logo-img {
  height: 52px; width: auto;
  opacity: 0.8;
}

/* RON HERMAN VIBE TWEAKS */
/* Slightly more breathing room in nav */
nav { letter-spacing: 0.02em; }
.nav-links { gap: 52px; }
.nav-links a {
  font-size: 10.5px;
  letter-spacing: 0.42em;
  font-weight: 300;
}
/* Hero tag looser */
.hero-tag span { letter-spacing: 0.65em; font-size: 10px; }
/* Section tags: more air */
.s-tag span { letter-spacing: 0.65em; font-size: 9.5px; }
/* Body text: slightly looser line height */
.about-body { line-height: 2.8; }
/* Marquee: slightly slower, more refined */
.marquee-track { animation-duration: 35s; }


/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {

  /* Hide desktop nav links & contact button */
  .nav-links { display: none; }
  .nav-contact { display: none; }

  /* Nav */
  nav {
    padding: 16px 20px;
    justify-content: space-between;
    align-items: center;
  }
  nav.scrolled { padding: 12px 20px; }

  .nav-logo-img { height: 32px; }
  nav.scrolled .nav-logo-img { height: 28px; }
  .logo-sub { font-size: 7.5px; letter-spacing: 0.3em; }

  /* Hamburger button */
  .hamburger {
    display: flex; flex-direction: column;
    gap: 5px; cursor: pointer; z-index: 600;
    background: none; border: none; padding: 4px;
  }
  .hamburger span {
    display: block; width: 24px; height: 1.5px;
    background: var(--text); transition: all 0.35s;
  }
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

  /* Mobile menu overlay */
  .mobile-menu {
    display: none;
    position: fixed; inset: 0; z-index: 550;
    background: rgba(14,13,11,0.97);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 40px;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    font-size: 15px; letter-spacing: 0.45em; color: var(--text2);
    text-decoration: none; transition: color 0.3s;
  }
  .mobile-menu a:hover { color: var(--gold); }
  .mobile-menu .m-contact {
    margin-top: 16px; padding: 14px 40px;
    border: 1px solid var(--gold); color: var(--gold);
    font-size: 11px; letter-spacing: 0.4em;
  }

  /* HERO */
  /* #hero は section の共通余白(左右24px)を受けるが、内側の .hero-content
     にも24pxあるため左右で計96pxが失われ、文字が画面幅の74%しか使えなかった。
     余白は .hero-content 側に一本化する。 */
  #hero {
    grid-template-rows: 1fr auto; min-height: 100svh;
    padding-left: 0; padding-right: 0;
  }
  .hero-content {
    padding: 120px 24px 48px;
    min-height: unset;
  }
  .hero-tag { margin-bottom: 28px; }
  .hero-tag-line { width: 28px; }
  .hero-tag span { font-size: 9px; letter-spacing: 0.4em; }
  .hero-title {
    /* 文字に使える幅は「画面幅 - 48px」。
       1行8文字＋字下げ12pxがそこに収まるよう画面幅から逆算している。
       固定値にすると狭い端末で「素材の声を聴 / き、」と文の途中で折り返す。 */
    font-size: clamp(24px, calc(11vw - 8px), 46px);
    line-height: 1.4;
  }
  /* 1行分をまとまりとして扱い、文の途中での改行を禁止する */
  .hero-title .line1,
  .hero-title .line2 { display: inline-block; white-space: nowrap; }
  .hero-title .line2 { padding-left: 12px; }
  .hero-desc { font-size: 12px; line-height: 2.1; margin-top: 28px; }
  /* PC用に入れてある改行位置は狭い画面だと崩れるため、
     モバイルでは自然な折り返しに任せる */
  .hero-desc br { display: none; }
  .hero-cta-row { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 36px; }
  .btn-gold { padding: 14px 32px; font-size: 10px; }
  .hero-scroll { padding: 24px 24px; }
  .hero-scroll-line { height: 32px; }

  /* MARQUEE */
  .marquee-item { font-size: 9.5px; padding: 0 24px; gap: 24px; }

  /* SECTIONS */
  section { padding: 64px 24px; }

  /* ABOUT */
  .about-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-right { order: -1; }
  .about-img-accent { display: none; }
  .about-badge { left: 16px; top: 16px; padding: 14px 16px; }
  .about-badge-num { font-size: 32px; }
  .about-highlight { padding: 24px; }
  .about-highlight p { font-size: 15px; line-height: 1.85; }
  table { display: block; overflow-x: auto; }
  table th { width: 120px; font-size: 10px; }
  table td { font-size: 12px; }

  /* SERVICES */
  .services-header { flex-direction: column; gap: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .svc-card { padding: 36px 24px; }

  /* WORKS */
  .works-grid-real {
    grid-template-columns: 1fr 1fr;
  }
  .work-item-wide {
    grid-column: span 2;
    padding: 16px 20px;
  }
  .work-project-label { font-size: 14px; }
  .work-overlay { opacity: 1; }
  .work-overlay .work-title { font-size: 14px; }
  .work-overlay .work-sub { font-size: 10px; }
  .work-overlay .work-cat { font-size: 8px; }

  /* PROCESS */
  .process-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .process-steps::before { display: none; }
  .step { padding-top: 0; text-align: left; display: flex; gap: 20px; align-items: flex-start; }
  .step-num {
    position: static; transform: none;
    flex-shrink: 0; width: 44px; height: 44px; font-size: 12px;
  }

  /* RECRUIT */
  .recruit-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .recruit-perks { grid-template-columns: 1fr; }
  .perk { padding: 20px; }

  /* CONTACT */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .cf-row { grid-template-columns: 1fr; }
  .cf-submit { width: 100%; text-align: center; padding: 16px; }
  .contact-info-list { gap: 24px; }

  /* FOOTER */
  footer {
    padding: 36px 24px;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-links {
    flex-wrap: wrap; gap: 20px;
  }
  .footer-links a { font-size: 9px; }
  .footer-bottom {
    flex-direction: column; gap: 12px; text-align: center;
  }
  .footer-logo-img { height: 42px; }

  /* S-TITLE sizes */
  .s-title { font-size: clamp(28px, 7vw, 40px); }

  /* Gold rule */
  .gold-rule { margin: 36px 0; }

  /* Thin rule */
  .thin-rule { margin: 0 24px; }
}

/* Extra small phones */
@media (max-width: 390px) {
  /* 見出しのサイズはここでは指定しない。
     上の calc(11vw - 12px) が全幅で成立するよう計算済みで、
     固定値を足すと文の途中改行が再発するため。 */
  .works-grid-real { grid-template-columns: 1fr; }
  .work-item-wide { grid-column: span 1; }
}

/* Desktop: hide hamburger */
@media (min-width: 769px) {
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
}

/* 中間幅（小さめのノートPC・タブレット横）でロゴとメニューが
   ぶつからないよう、余白とロゴを少し詰める */
@media (min-width: 769px) and (max-width: 1200px) {
  nav { padding: 18px 28px; }
  nav.scrolled { padding: 14px 28px; }
  .nav-logo-img { height: 38px; }
  nav.scrolled .nav-logo-img { height: 32px; }
  .nav-links { gap: 24px; }
  .nav-links a { font-size: 9.5px; letter-spacing: 0.2em; }
  .nav-contact { padding: 8px 16px; font-size: 9px; letter-spacing: 0.2em; }
  .logo-sub { font-size: 8px; letter-spacing: 0.3em; }
}


/* RECRUIT REDESIGN */
#recruit { background: var(--bg3); }

.recruit-message-card {
  display: flex; gap: 28px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 36px 40px; margin-bottom: 56px;
  max-width: 760px;
}
.rmc-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.rmc-lead {
  font-size: 10px; letter-spacing: 0.45em; color: var(--gold);
  margin-bottom: 14px; font-family: 'Jost', sans-serif; font-weight: 300;
}
.rmc-text {
  font-size: 14px; line-height: 2.4; color: var(--text2);
}

.recruit-perks-new {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border); margin-bottom: 72px;
}
.rperk {
  background: var(--bg2); padding: 36px 28px;
  transition: background 0.3s;
}
.rperk:hover { background: var(--surface); }
.rperk-num {
  font-family: 'Jost', sans-serif; font-size: 11px;
  letter-spacing: 0.4em; color: var(--gold); margin-bottom: 16px; font-weight: 300;
}
.rperk-title {
  font-family: 'DM Serif Display', serif; font-size: 17px;
  color: var(--white); margin-bottom: 14px; line-height: 1.4;
}
.rperk-desc { font-size: 12.5px; line-height: 2.1; color: var(--text2); }

.recruit-cta { }
.recruit-cta-inner {
  background: var(--bg2); border: 1px solid var(--border);
  padding: 56px 48px; text-align: center; max-width: 640px; margin: 0 auto;
}
.recruit-cta-title {
  font-family: 'DM Serif Display', serif; font-size: 24px;
  color: var(--white); margin-bottom: 16px;
}
.recruit-cta-sub {
  font-size: 13px; line-height: 2.2; color: var(--text2); margin-bottom: 36px;
}
.recruit-mail-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 36px; background: var(--gold); color: var(--bg);
  text-decoration: none; font-size: 13px; letter-spacing: 0.1em;
  font-family: 'Jost', sans-serif; font-weight: 400;
  transition: all 0.3s; margin-bottom: 20px;
}
.recruit-mail-btn:hover { background: var(--gold2); transform: translateY(-2px); }
.recruit-mail-icon { font-size: 16px; }
.recruit-cta-note {
  font-size: 11px; color: var(--muted); margin-top: 16px; letter-spacing: 0.15em;
}

@media (max-width: 768px) {
  .recruit-message-card { flex-direction: column; gap: 16px; padding: 24px 20px; }
  .recruit-perks-new { grid-template-columns: 1fr 1fr; }
  .rperk { padding: 24px 20px; }
  .recruit-cta-inner { padding: 36px 24px; }
  .recruit-cta-title { font-size: 20px; }
  .recruit-mail-btn { font-size: 11px; padding: 14px 20px; word-break: break-all; }
}
@media (max-width: 390px) {
  .recruit-perks-new { grid-template-columns: 1fr; }
}


.footer-insta {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text2); text-decoration: none;
  font-size: 10px; letter-spacing: 0.3em;
  transition: color 0.3s;
}
.footer-insta:hover { color: var(--gold); }
.footer-insta svg { transition: stroke 0.3s; }
.footer-insta:hover svg { stroke: var(--gold); }


/* DIY SERVICE SECTION */
.diy-cards {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border); margin-bottom: 64px;
}
.diy-card {
  background: var(--bg3); padding: 44px 32px;
  transition: background 0.3s;
}
.diy-card:hover { background: var(--surface); }
.diy-card-icon { font-size: 32px; margin-bottom: 20px; }
.diy-card-title {
  font-family: 'DM Serif Display', serif; font-size: 20px;
  color: var(--white); margin-bottom: 14px;
}
.diy-card-desc { font-size: 13px; line-height: 2.2; color: var(--text2); margin-bottom: 20px; }
.diy-card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.diy-tag {
  padding: 4px 12px; border: 1px solid var(--border);
  font-size: 10px; letter-spacing: 0.2em; color: var(--muted);
}

.diy-flow {
  background: var(--bg3); border: 1px solid var(--border);
  padding: 44px 40px; margin-bottom: 48px;
}
.diy-flow-title {
  font-size: 11px; letter-spacing: 0.45em; color: var(--gold);
  margin-bottom: 32px; font-family: 'Jost', sans-serif; font-weight: 300;
}
.diy-flow-steps {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.diy-step { text-align: center; }
.diy-step-num {
  font-family: 'Jost', sans-serif; font-size: 11px;
  color: var(--gold); letter-spacing: 0.3em; margin-bottom: 8px;
}
.diy-step-text { font-size: 13px; color: var(--text2); line-height: 1.6; }
.diy-flow-arrow { font-size: 20px; color: var(--border); flex-shrink: 0; }

.diy-price { margin-bottom: 56px; }
.diy-price-inner {
  border-left: 3px solid var(--gold); padding: 24px 32px;
  background: rgba(201,169,110,0.05);
}
.diy-price-label {
  font-size: 10px; letter-spacing: 0.45em; color: var(--gold);
  margin-bottom: 12px; font-family: 'Jost', sans-serif;
}
.diy-price-main { font-size: 16px; color: var(--white); margin-bottom: 10px; }
.diy-price-note { font-size: 12px; color: var(--text2); }

.diy-cta { text-align: center; }
.diy-cta-title {
  font-family: 'DM Serif Display', serif; font-size: 26px;
  color: var(--white); margin-bottom: 12px;
}
.diy-cta-sub { font-size: 13px; color: var(--text2); margin-bottom: 36px; line-height: 2; }
.diy-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* LINE Button */
.btn-line {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; background: #06C755; color: white;
  text-decoration: none; font-size: 13px; letter-spacing: 0.15em;
  font-family: 'Jost', sans-serif; font-weight: 400;
  transition: all 0.3s;
}
.btn-line:hover { background: #05b34c; transform: translateY(-2px); }

.btn-mail-diy {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border: 1px solid var(--gold); color: var(--gold);
  text-decoration: none; font-size: 13px; letter-spacing: 0.15em;
  transition: all 0.3s;
}
.btn-mail-diy:hover { background: var(--gold); color: var(--bg); transform: translateY(-2px); }

@media (max-width: 768px) {
  .diy-cards { grid-template-columns: 1fr; }
  .diy-card { padding: 28px 20px; }
  .diy-flow { padding: 28px 20px; }
  .diy-flow-steps { flex-direction: column; gap: 20px; }
  .diy-flow-arrow { transform: rotate(90deg); }
  .diy-cta-buttons { flex-direction: column; align-items: center; }
  .btn-line, .btn-mail-diy { width: 100%; justify-content: center; }
}


/* ONLINE ORDER */
.order-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 72px; flex-wrap: wrap;
}
.order-step {
  text-align: center; padding: 28px 20px;
  background: var(--bg2); border: 1px solid var(--border);
  flex: 1; min-width: 120px; max-width: 180px;
}
.order-step-num {
  font-family: 'Jost', sans-serif; font-size: 10px;
  letter-spacing: 0.4em; color: var(--gold); margin-bottom: 10px;
}
.order-step-icon { font-size: 28px; margin-bottom: 10px; }
.order-step-title { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.order-step-desc { font-size: 11px; color: var(--text2); line-height: 1.8; }
.order-arrow { font-size: 22px; color: var(--gold); flex-shrink: 0; }

/* ESTIMATE WRAP */
.estimate-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; margin-bottom: 64px;
  align-items: start;
}
.estimate-title {
  font-family: 'DM Serif Display', serif; font-size: 20px;
  color: var(--white); margin-bottom: 8px;
  display: flex; align-items: center; gap: 14px;
}
.estimate-tag {
  font-family: 'Jost', sans-serif; font-size: 9px;
  letter-spacing: 0.4em; color: var(--gold);
  border: 1px solid var(--gold); padding: 3px 10px;
  font-weight: 300;
}
.estimate-note { font-size: 11px; color: var(--muted); margin-bottom: 28px; }

.est-group { margin-bottom: 20px; }
.est-label {
  display: block; font-size: 10px; letter-spacing: 0.35em;
  color: var(--gold); margin-bottom: 10px; font-family: 'Jost', sans-serif;
}
.est-radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.est-radio {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 1px solid var(--border);
  cursor: pointer; transition: all 0.3s; font-size: 13px; color: var(--text2);
}
.est-radio input { display: none; }
.est-radio:has(input:checked) { border-color: var(--gold); color: var(--gold); background: rgba(201,169,110,0.08); }

.est-row { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.est-row .est-group { margin-bottom: 0; flex: 1; }
.est-size-x { font-size: 20px; color: var(--muted); padding-bottom: 10px; }
.est-input {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 12px 16px; font-size: 16px;
  font-family: 'Noto Sans JP', sans-serif; outline: none;
  transition: border-color 0.3s;
}
.est-input:focus { border-color: var(--gold); }

.est-count-wrap { display: flex; align-items: center; gap: 16px; }
.est-count-btn {
  width: 36px; height: 36px; border: 1px solid var(--border);
  background: none; color: var(--gold); font-size: 18px;
  cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center;
}
.est-count-btn:hover { background: var(--gold); color: var(--bg); }
.est-count-num { font-family: 'DM Serif Display', serif; font-size: 28px; color: var(--white); min-width: 32px; text-align: center; }

.est-result {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 24px 28px; margin-top: 28px;
}
.est-result-label { font-size: 10px; letter-spacing: 0.35em; color: var(--gold); margin-bottom: 10px; font-family: 'Jost', sans-serif; }
.est-result-price { font-family: 'DM Serif Display', serif; font-size: 36px; color: var(--white); margin-bottom: 8px; }
.est-result-note { font-size: 10px; color: var(--muted); }

/* CATALOG */
.catalog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 16px; }
.catalog-item {
  border: 1px solid var(--border); cursor: pointer;
  transition: all 0.3s; overflow: hidden;
}
.catalog-item:hover { border-color: var(--gold); }
.catalog-item.selected { border-color: var(--gold); background: rgba(201,169,110,0.1); }
.catalog-img {
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
}
.catalog-name { font-size: 11px; color: var(--text2); padding: 10px 10px; line-height: 1.6; text-align: center; }
.catalog-check { display: none; }
.catalog-item.selected .catalog-check {
  display: block; font-size: 11px; color: var(--gold);
  text-align: center; padding-bottom: 8px;
}
.selected-product {
  font-size: 12px; color: var(--gold); padding: 10px 14px;
  border: 1px solid var(--border); margin-top: 8px;
}

/* ORDER FORM */
.order-form-wrap {
  background: var(--bg2); border: 1px solid var(--border);
  padding: 52px 48px; max-width: 800px; margin: 0 auto;
}
.order-form { display: flex; flex-direction: column; gap: 18px; }
.of-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.of-group { display: flex; flex-direction: column; gap: 8px; }
.of-group label { font-size: 10px; letter-spacing: 0.35em; color: var(--gold); font-family: 'Jost', sans-serif; }
.of-group input, .of-group textarea {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 12px 16px; font-size: 13px;
  font-family: 'Noto Sans JP', sans-serif; outline: none;
  transition: border-color 0.3s;
}
.of-group input:focus, .of-group textarea:focus { border-color: var(--gold); }
.of-group textarea { resize: vertical; }

.of-file-area {
  border: 1px dashed var(--border); padding: 28px;
  text-align: center; cursor: pointer; transition: border-color 0.3s;
}
.of-file-area:hover { border-color: var(--gold); }
.of-file-icon { font-size: 28px; margin-bottom: 10px; }
.of-file-text { font-size: 13px; color: var(--text2); line-height: 1.8; }
.of-file-text span { font-size: 11px; color: var(--muted); }

.order-submit-btn {
  padding: 16px; background: var(--gold); color: var(--bg);
  border: none; cursor: pointer; font-size: 13px; letter-spacing: 0.4em;
  font-family: 'Jost', sans-serif; transition: all 0.3s; margin-top: 8px;
}
.order-submit-btn:hover { background: var(--gold2); transform: translateY(-2px); }

.order-or {
  display: flex; align-items: center; gap: 16px;
  margin: 32px 0; color: var(--muted); font-size: 11px; letter-spacing: 0.3em;
}
.order-or::before, .order-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.order-direct-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 768px) {
  .order-steps { gap: 4px; }
  .order-step { min-width: 80px; padding: 18px 12px; }
  .order-arrow { font-size: 14px; }
  .estimate-wrap { grid-template-columns: 1fr; gap: 48px; }
  .catalog-grid { grid-template-columns: repeat(2,1fr); }
  .order-form-wrap { padding: 32px 20px; }
  .of-row { grid-template-columns: 1fr; }
  .order-direct-btns { flex-direction: column; align-items: stretch; }
  .btn-line, .btn-mail-diy { justify-content: center; }
}


/* =============================================
   ACCORDION SECTIONS
   ============================================= */

/* Section toggle button */
.section-toggle {
  width: 100%;
  background: none; border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0; text-align: left;
}
.section-toggle:focus { outline: none; }

/* Arrow icon */
.toggle-arrow {
  width: 44px; height: 44px; flex-shrink: 0;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--gold);
  transition: transform 0.4s, background 0.3s;
}
.section-open .toggle-arrow {
  transform: rotate(45deg);
  background: var(--gold); color: var(--bg);
}

/* Collapsible content */
.section-body {
  display: none;
}
.section-open .section-body {
  display: block;
}

/* Compact section header (always visible) */
.section-compact {
  display: flex; align-items: center; justify-content: space-between;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.section-compact-left { display: flex; align-items: center; gap: 28px; }
.section-compact-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; color: var(--gold); font-style: italic;
  line-height: 1; min-width: 40px;
}
.section-compact-info {}
.section-compact-tag {
  font-family: 'Jost', sans-serif; font-size: 9px;
  letter-spacing: 0.55em; color: var(--gold); margin-bottom: 6px;
}
.section-compact-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(20px, 3vw, 28px); color: var(--white); line-height: 1.2;
}
.section-compact-desc {
  font-size: 12px; color: var(--text2); margin-top: 6px; letter-spacing: 0.05em;
}

/* Wrapper for all accordion sections */
.accordion-wrapper {
  padding: 0 80px;
  background: var(--bg);
}

/* Inner content padding */
.section-body-inner {
  padding: 60px 0 80px;
}

@media (max-width: 768px) {
  .accordion-wrapper { padding: 0 20px; }
  .section-compact { padding: 28px 0; }
  .section-compact-num { font-size: 26px; min-width: 30px; }
  .section-compact-title { font-size: 18px; }
  .section-compact-desc { display: none; }
  .toggle-arrow { width: 36px; height: 36px; font-size: 14px; }
  .section-body-inner { padding: 36px 0 56px; }
}


/* WORKS TABS */
.works-tabs {
  display: flex; gap: 8px; margin-bottom: 32px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.works-tab {
  background: none; border: none; cursor: pointer;
  padding: 14px 22px;
  color: var(--text2); font-size: 12px;
  letter-spacing: 0.15em;
  font-family: 'Noto Sans JP', sans-serif;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  margin-bottom: -1px;
}
.works-tab:hover { color: var(--gold); }
.works-tab-active {
  color: var(--gold); border-bottom-color: var(--gold);
}
.works-tab-content { display: none; }
.works-tab-content-active { display: block; }

@media (max-width: 768px) {
  .works-tabs { gap: 0; overflow-x: auto; flex-wrap: nowrap; }
  .works-tab { padding: 12px 16px; font-size: 11px; white-space: nowrap; flex-shrink: 0; }
}

/* CONTACT FORM: honeypot + submit status */
.cf-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}
.cf-status {
  font-size: 12.5px; line-height: 1.8; padding: 0; min-height: 0;
  transition: all 0.25s;
}
.cf-status:empty { display: none; }
.cf-status.is-success {
  color: var(--accent); padding: 14px 18px;
  border: 1px solid rgba(143,179,160,0.4); background: rgba(143,179,160,0.08);
}
.cf-status.is-error {
  color: #e08a8a; padding: 14px 18px;
  border: 1px solid rgba(224,138,138,0.4); background: rgba(224,138,138,0.08);
}
.cf-submit[disabled] { opacity: 0.55; cursor: not-allowed; }
.cf-submit[disabled]:hover { background: var(--gold); transform: none; }

