/* ============================================
   山哲建設工業 — Main Stylesheet v2
   Concept: 京都の鳶。職人の誇りと信頼を、重厚に。
   ============================================ */

/* --- Tokens --- */
:root {
  --red: #C33528;
  --red-deep: #8f231a;
  --red-bright: #d9422f;
  --ink: #17140f;          /* 墨色 */
  --ink-soft: #26221c;
  --paper: #faf9f6;        /* 生成り */
  --stone: #f0eeea;
  --gray: #6b6560;
  --line: #e3e0da;
  --white: #fff;
  --serif: 'Shippori Mincho', 'Noto Serif JP', serif;
  --system-mincho: 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', 'HGS明朝E', 'MS PMincho', serif;
  --sans: 'Noto Sans JP', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: var(--red); color: #fff; }

/* --- Layout --- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 28px; }

section { padding: 110px 0; position: relative; }
@media (max-width: 768px) { section { padding: 70px 0; } }

/* --- Section heading --- */
.sec-head { margin-bottom: 64px; }
.sec-head .en {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.sec-head .ja {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
}
.sec-head.center { text-align: center; }
.sec-head.light .ja { color: var(--white); }
.sec-head.light .en { color: var(--red-bright); }

.sec-lead {
  font-size: 15px;
  line-height: 2.4;
  color: var(--gray);
}

/* ============ HEADER ============ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  padding: 0 36px;
  transition: height 0.45s var(--ease);
}

.logo { display: flex; align-items: center; gap: 16px; }
.logo img.logo-mark {
  height: 68px;
  width: auto;
  flex: 0 0 auto;
}
/* 黒/白ロゴの切り替えは2枚のimgをdisplayで出し分け（content:url()はFirefox非対応のため） */
.logo img.logo-mark-light { display: none; }
.logo .logo-text { display: flex; flex-direction: column; line-height: 1.35; }
.logo .company-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: color 0.45s;
}
.logo .company-sub {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gray);
  text-transform: uppercase;
  transition: color 0.45s;
}

#gnav ul { display: flex; gap: 34px; align-items: center; }
#gnav ul li a {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 6px 0;
  position: relative;
  transition: color 0.3s;
}
#gnav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
#gnav ul li a:hover::after,
#gnav ul li a.active::after { transform: scaleX(1); transform-origin: left; }

.btn-nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  background: linear-gradient(90deg, var(--red-deep) 0 50%, var(--red) 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  color: #fff !important;
  padding: 15px 36px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background-position 0.4s var(--ease), color 0.4s var(--ease);
}
#gnav ul li a.btn-nav-contact {
  padding: 15px 34px;
  transition: background-position 0.4s var(--ease), color 0.4s var(--ease);
}
.btn-nav-contact::after { display: none !important; }
.btn-nav-contact:hover { background-position: 0 0; }

/* Header states */
#header.on-hero {
  background: transparent;
}
#header.on-hero:not(.scrolled) .logo img.logo-mark-dark { display: none; }
#header.on-hero:not(.scrolled) .logo img.logo-mark-light { display: block; }
#header.on-hero .logo .company-name,
#header.on-hero #gnav ul li a { color: #fff; }
#header.on-hero .logo .company-sub { color: rgba(255,255,255,0.6); }

#header.solid,
#header.on-hero.scrolled {
  background: rgba(250, 249, 246, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
#header.on-hero.scrolled .logo .company-name,
#header.on-hero.scrolled #gnav ul li a { color: var(--ink); }
#header.on-hero.scrolled .logo .company-sub { color: var(--gray); }
#header.solid .header-inner,
#header.scrolled .header-inner { height: 82px; }
#header.drawer-open,
#header.solid.drawer-open,
#header.on-hero.scrolled.drawer-open,
body.drawer-open #header {
  background: rgba(23, 20, 15, 0.97);
  backdrop-filter: none;
  box-shadow: none;
  z-index: 1003;
}
#header.drawer-open .logo img.logo-mark-dark,
body.drawer-open #header .logo img.logo-mark-dark { display: none; }
#header.drawer-open .logo img.logo-mark-light,
body.drawer-open #header .logo img.logo-mark-light { display: block; }
#header.drawer-open .logo .company-name,
#header.drawer-open #gnav ul li a,
#header.on-hero.scrolled.drawer-open .logo .company-name,
#header.on-hero.scrolled.drawer-open #gnav ul li a,
body.drawer-open #header .logo .company-name,
body.drawer-open #header #gnav ul li a { color: #fff; }
#header.drawer-open .logo .company-sub,
#header.on-hero.scrolled.drawer-open .logo .company-sub,
body.drawer-open #header .logo .company-sub { color: rgba(255,255,255,0.62); }

/* Hamburger */
.hamburger {
  display: none;
  width: 46px; height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1002;
}
.hamburger span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--ink);
  transition: 0.35s var(--ease);
}
#header.on-hero:not(.scrolled) .hamburger span { background: #fff; }
.hamburger.open span { background: #fff !important; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  background: rgba(23, 20, 15, 0.97);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.drawer.open { opacity: 1; visibility: visible; }
.drawer ul { text-align: center; }
.drawer ul li { margin: 8px 0; }
.drawer ul li a {
  display: inline-block;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.2em;
  color: #fff;
  padding: 12px 24px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}
.drawer.open ul li a { opacity: 1; transform: none; }
.drawer.open ul li:nth-child(1) a { transition-delay: 0.08s; }
.drawer.open ul li:nth-child(2) a { transition-delay: 0.14s; }
.drawer.open ul li:nth-child(3) a { transition-delay: 0.2s; }
.drawer.open ul li:nth-child(4) a { transition-delay: 0.26s; }
.drawer.open ul li:nth-child(5) a { transition-delay: 0.32s; }
.drawer ul li a:hover { color: var(--red-bright); }
.drawer .drawer-en {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-top: 2px;
}

@media (max-width: 960px) {
  #gnav { display: none; }
  .hamburger { display: flex; }
  .header-inner,
  #header.scrolled .header-inner { padding: 0 20px; height: 74px; }
  .logo { gap: 12px; }
  .logo img.logo-mark { height: 50px; }
  .logo .company-name { font-size: 16px; }
  .logo .company-sub { font-size: 9px; letter-spacing: 0.2em; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: var(--ink);
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}
.hero-slide.active:nth-child(1) img { animation: heroDriftScaffold 8.8s ease-in-out forwards; }
.hero-slide.active:nth-child(2) img { animation: heroDriftHelmet 8.8s ease-in-out forwards; }
.hero-slide.active:nth-child(3) img { animation: heroDriftCrane 8.8s ease-in-out forwards; }
.hero-slide.active:nth-child(4) img { animation: heroDriftSite 8.8s ease-in-out forwards; }
@keyframes heroDriftScaffold {
  from { transform: scale(1.1) translate3d(-1.4%, 1.1%, 0); }
  to   { transform: scale(1.04) translate3d(1.2%, -1.1%, 0); }
}
@keyframes heroDriftHelmet {
  from { transform: scale(1.05) translate3d(1.2%, 0.8%, 0); }
  to   { transform: scale(1.13) translate3d(-1%, -1.2%, 0); }
}
@keyframes heroDriftCrane {
  from { transform: scale(1.12) translate3d(1.8%, -0.8%, 0); }
  to   { transform: scale(1.05) translate3d(-1.6%, 1%, 0); }
}
@keyframes heroDriftSite {
  from { transform: scale(1.07) translate3d(-0.8%, -1.6%, 0); }
  to   { transform: scale(1.12) translate3d(1%, 1.2%, 0); }
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(15,12,8,0.76) 0%, rgba(15,12,8,0.32) 54%, rgba(15,12,8,0.5) 100%);
}
.hero-overlay::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(15,12,8,0.62), transparent 34%),
    linear-gradient(115deg, rgba(255,255,255,0.08), transparent 28%);
}

.hero-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 8vw;
}
.hero-copy { color: #fff; max-width: 720px; }
.hero-copy .en-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
}
.hero-copy .en-label::before {
  content: '';
  width: 48px; height: 1px;
  background: var(--red-bright);
}
.hero-copy h1 {
  font-family: var(--system-mincho);
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
  text-shadow: 0 12px 34px rgba(0,0,0,0.42);
}
.hero-copy h1 .line {
  display: block;
  padding-bottom: 0.08em;
}
.hero-copy h1 .accent {
  display: inline;
  color: var(--red-bright);
}
.hero-copy .desc {
  font-size: 15px;
  line-height: 2.3;
  color: rgba(255,255,255,0.85);
  margin-bottom: 44px;
}
.hero-btns {
  display: flex; gap: 18px; flex-wrap: wrap;
}

@media (max-width: 600px) {
  .hero {
    min-height: 760px;
  }
  .hero-content {
    align-items: flex-start;
    padding: 138px 30px 0;
  }
  .hero-copy .en-label {
    display: inline-flex;
    max-width: 280px;
    gap: 12px;
    font-size: 10px;
    letter-spacing: 0.32em;
    line-height: 2;
    margin-bottom: 24px;
  }
  .hero-copy .en-label::before {
    width: 30px;
    flex: 0 0 auto;
    margin-top: 10px;
  }
  .hero-copy h1 {
    font-size: clamp(38px, 12vw, 50px);
    line-height: 1.45;
    margin-bottom: 22px;
  }
  .hero-copy .desc {
    font-size: 13.5px;
    line-height: 2;
    margin-bottom: 30px;
  }
  .hero-copy .desc br {
    display: none;
  }
  .hero-btns {
    gap: 12px;
  }
  .hero-btns .btn {
    width: 100%;
    justify-content: space-between;
    padding: 15px 26px;
  }
}

.hero-tate {
  position: absolute;
  right: 5vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.55em;
  color: rgba(255,255,255,0.85);
  padding-right: 20px;
  height: 300px;
  overflow: hidden;
}
.hero-tate::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 1px; height: 44px;
  background: var(--red-bright);
}
.hero-tate::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 1px; height: 100%;
  background: rgba(255,255,255,0.35);
}
.hero-tate > span {
  display: block;
}
@media (max-width: 960px) { .hero-tate { display: none; } }

/* Scroll cue */
.scroll_down {
  position: absolute;
  bottom: 0;
  left: clamp(22px, 3.2vw, 42px);
  z-index: 3;
}
.scroll_down a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: 'Josefin Sans', var(--sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s;
}
.scroll_down a .txt {
  writing-mode: vertical-rl;
}
.scroll_down a .bar {
  width: 2px;
  height: 100px;
  overflow: hidden;
}
.scroll_down a .bar::before {
  content: '';
  display: block;
  width: 100%;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  animation: sdl01 1.8s linear infinite;
}
.scroll_down a:hover {
  opacity: 0.5;
}
@keyframes sdl01 {
  0% { transform: translateY(-48px); }
  80%, 100% { transform: translateY(100px); }
}

/* Hero indicators */
.hero-indicators {
  position: absolute;
  bottom: 44px; right: 5vw;
  z-index: 3;
  display: flex;
  gap: 12px;
}
.hero-indicator {
  width: 40px; height: 2px;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.hero-indicator.active { background: var(--red-bright); }
@media (max-width: 960px) {
  .hero-indicators { right: 28px; left: auto; transform: none; bottom: 48px; }
  .hero-indicator { width: 34px; }
}

/* ============ BUTTONS ============ */
.btn {
  --btn-bg: transparent;
  --btn-fill: var(--ink);
  --btn-border: currentColor;
  --btn-hover-color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 42px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(90deg, var(--btn-fill) 0 50%, var(--btn-bg) 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  border: 1px solid var(--btn-border);
  transition: background-position 0.4s var(--ease), color 0.4s var(--ease);
  z-index: 1;
  isolation: isolate;
}
.btn .arrow {
  display: inline-block;
  width: 26px; height: 1px;
  position: relative;
  transition: transform 0.35s var(--ease);
}
.btn .arrow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
}
.btn .arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3.5px;
  width: 9px; height: 1px;
  background: currentColor;
  transform: rotate(38deg);
}
.btn:hover .arrow { transform: translateX(6px); }

.btn:hover {
  background-position: 0 0;
  color: var(--btn-hover-color);
}

.btn-red {
  --btn-bg: var(--red);
  --btn-fill: var(--red-deep);
  --btn-border: var(--red);
  --btn-hover-color: #fff;
  color: #fff;
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-fill: #fff;
  --btn-border: rgba(255,255,255,0.7);
  --btn-hover-color: var(--ink);
  color: #fff;
}

.btn-ink {
  --btn-bg: transparent;
  --btn-fill: var(--ink);
  --btn-border: var(--ink);
  --btn-hover-color: #fff;
  color: var(--ink);
}

/* ============ PAGE HERO（内ページ） ============ */
.page-hero {
  position: relative;
  height: 340px;
  background: var(--ink);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.42;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,12,8,0.65), rgba(15,12,8,0.15) 60%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px 52px;
  color: #fff;
}
.page-hero-content .en {
  display: block;
  font-size: 12px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 10px;
}
.page-hero-content h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 600;
  letter-spacing: 0.12em;
}
@media (max-width: 768px) {
  .page-hero { height: 260px; }
}

/* Breadcrumb */
.breadcrumb {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.breadcrumb ul {
  display: flex;
  gap: 10px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 28px;
  font-size: 12px;
  color: var(--gray);
}
.breadcrumb ul li + li::before { content: '—'; margin-right: 10px; color: var(--line); }
.breadcrumb ul li a:hover { color: var(--red); }

/* ============ INDEX: NUMBERS ============ */
.numbers-section {
  background: var(--ink);
  padding: 0;
  color: #fff;
  position: relative;
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.number-item {
  padding: 64px 20px 58px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.number-item:last-child { border-right: none; }
.number-item .num {
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
}
.number-item .num .unit {
  font-size: 0.38em;
  color: var(--red-bright);
  margin-left: 4px;
  letter-spacing: 0.1em;
}
.number-item .label {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.55);
}
@media (max-width: 768px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .number-item { padding: 40px 12px 36px; }
  .number-item:nth-child(2) { border-right: none; }
  .number-item:nth-child(1), .number-item:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
}

/* ============ INDEX: ABOUT ============ */
.about-section {
  background: var(--paper);
  overflow: hidden;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}
.about-imgs { position: relative; padding-bottom: 56px; }
.about-imgs .img-main {
  width: 88%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.about-imgs .img-sub {
  position: absolute;
  right: 0; bottom: 0;
  width: 46%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 6px solid var(--paper);
  box-shadow: 0 24px 48px rgba(23,20,15,0.18);
}
.about-imgs::before {
  content: 'SINCE 1970';
  position: absolute;
  top: -14px; left: -8px;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--red);
  font-weight: 700;
}
.about-text h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}
.about-text h2 .red { color: var(--red); }
.about-text p {
  font-size: 14.5px;
  line-height: 2.3;
  color: var(--gray);
  margin-bottom: 20px;
}
.about-text .btn { margin-top: 16px; }

/* ============ INDEX: SERVICE ============ */
.service-section {
  background: var(--ink);
  color: #fff;
  position: relative;
}
.service-section::before {
  content: 'SERVICE';
  position: absolute;
  top: 40px; right: -10px;
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 900;
  font-family: var(--sans);
  color: rgba(255,255,255,0.03);
  letter-spacing: 0.05em;
  line-height: 1;
  pointer-events: none;
}
.service-list { display: flex; flex-direction: column; }
.service-row {
  display: grid;
  grid-template-columns: 90px 1fr 340px 60px;
  align-items: center;
  gap: 36px;
  padding: 38px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
  transition: background 0.4s;
}
.service-row:first-child { border-top: 1px solid rgba(255,255,255,0.1); }
.service-row:hover { background: rgba(255,255,255,0.03); }
.service-row .no {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--red-bright);
}
.service-row .titles h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.service-row .titles p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.9;
}
.service-row .thumb {
  overflow: hidden;
  aspect-ratio: 16/7;
}
.service-row .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
  filter: saturate(0.9);
}
.service-row:hover .thumb img { transform: scale(1.06); }
.service-row .go {
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  transition: 0.35s;
}
.service-row:hover .go {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateX(4px);
}
@media (max-width: 900px) {
  .service-row { grid-template-columns: 50px 1fr 60px; }
  .service-row .thumb { display: none; }
}
@media (max-width: 600px) {
  .service-row { grid-template-columns: 40px 1fr; gap: 18px; }
  .service-row .go { display: none; }
}
.service-more { margin-top: 56px; text-align: center; }

/* ============ INDEX: TRUST / AWARD ============ */
.trust-section { background: var(--stone); overflow: hidden; }
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: 1fr; gap: 44px; }
}
.trust-img {
  position: relative;
}
.trust-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.trust-img .badge {
  position: absolute;
  top: -22px; left: -22px;
  width: 108px; height: 108px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 12px 32px rgba(195,53,40,0.35);
}
.trust-img .badge .y { font-size: 20px; font-weight: 700; }
@media (max-width: 600px) {
  .trust-img .badge { width: 88px; height: 88px; font-size: 11px; top: -14px; left: -8px; }
}
.trust-text h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.trust-text p {
  font-size: 14.5px;
  line-height: 2.3;
  color: var(--gray);
  margin-bottom: 18px;
}
.trust-marks {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.trust-mark {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 10px 18px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-mark::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
}

/* ============ INDEX: RECRUIT BANNER ============ */
.recruit-banner {
  position: relative;
  padding: 118px 0;
  background: var(--paper);
  overflow: hidden;
  overflow-x: clip;
}
.recruit-banner .bg {
  display: none;
}
.recruit-banner::after {
  display: none;
}
.recruit-banner .container { position: relative; z-index: 2; }
.recruit-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 70px;
  align-items: center;
}
.recruit-banner-copy {
  max-width: 560px;
}
.recruit-banner .en {
  display: block;
  font-size: 12px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.recruit-banner h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: 0.1em;
  margin-bottom: 22px;
}
.recruit-banner h2 span {
  color: var(--red);
}
.recruit-banner p {
  font-size: 14.5px;
  color: var(--gray);
  line-height: 2.2;
  margin-bottom: 40px;
  max-width: 520px;
}
.recruit-banner-photos {
  position: relative;
  min-height: 445px;
}
.recruit-banner-photos::before {
  content: '';
  position: absolute;
  top: 34px;
  right: 0;
  width: 74%;
  height: 78%;
  border: 1px solid var(--red);
}
.recruit-banner-photos img {
  position: absolute;
  object-fit: cover;
  background: var(--white);
  box-shadow: 0 26px 70px rgba(23,20,15,0.16);
}
.banner-photo-team {
  top: 0;
  left: 0;
  width: 330px;
  aspect-ratio: 33/20;
}
.banner-photo-work {
  right: 0;
  bottom: 0;
  width: 255px;
  aspect-ratio: 1;
  border: 10px solid var(--paper);
}
@media (max-width: 980px) {
  .recruit-banner-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .recruit-banner-photos {
    width: min(500px, 100%);
    min-height: 390px;
  }
}
@media (max-width: 640px) {
  .recruit-banner {
    padding: 92px 0;
  }
  .recruit-banner-photos {
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    gap: 10px;
    min-height: 0;
  }
  .recruit-banner-photos::before {
    display: none;
  }
  .recruit-banner-photos img {
    position: static;
    width: 100%;
    border: 0;
    box-shadow: none;
  }
}

/* ============ CTA ============ */
.cta-section {
  background: linear-gradient(120deg, var(--red) 0%, var(--red-deep) 100%);
  padding: 84px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -60%; right: -8%;
  width: 420px; height: 420px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -70%; left: -5%;
  width: 380px; height: 380px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-text .t {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.cta-text p { font-size: 13.5px; color: rgba(255,255,255,0.85); }
.cta-tel { color: #fff; }
.cta-tel .label { font-size: 11px; letter-spacing: 0.2em; color: rgba(255,255,255,0.75); }
.cta-tel .num {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.cta-tel .num a { color: #fff; }
.cta-section .btn-ghost { border-color: rgba(255,255,255,0.8); }
.cta-section .btn-ghost:hover { color: var(--red); }

/* ============ FOOTER ============ */
#footer {
  background: var(--ink);
  color: rgba(255,255,255,0.8);
  position: relative;
}
.footer-main {
  padding: 80px 0 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
}
@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr; gap: 44px; }
}
.footer-brand .f-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.footer-brand .f-logo img {
  height: 46px;
  width: auto;
}
.footer-brand .f-logo .n {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.12em;
}
.footer-brand .f-logo .e {
  display: block;
  font-size: 9px;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
.footer-brand p {
  font-size: 13px;
  line-height: 2.1;
  color: rgba(255,255,255,0.6);
}
.footer-brand .f-tel {
  font-family: var(--serif);
  font-size: 26px;
  color: #fff;
  letter-spacing: 0.04em;
  margin-top: 14px;
}
.footer-brand .f-tel a { color: inherit; }

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 22px;
}
.footer-col ul li a, .footer-col ul li {
  display: block;
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  transition: color 0.3s, padding-left 0.3s;
  line-height: 1.8;
}
.footer-col ul li a:hover { color: #fff; padding-left: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

/* ============ COMPANY PAGE ============ */
.message-section { background: var(--paper); overflow: hidden; }
.message-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 72px;
  align-items: start;
}
@media (max-width: 900px) {
  .message-grid { grid-template-columns: 1fr; gap: 44px; }
}
.message-photo { position: relative; }
.message-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.message-photo::after {
  content: '';
  position: absolute;
  top: 20px; left: 20px;
  width: 100%; height: 100%;
  border: 1px solid var(--red);
  z-index: -1;
}
.message-photo figcaption {
  margin-top: 28px;
  margin-left: 32px;
  font-size: 13px;
  color: var(--gray);
}
.message-photo figcaption strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 0.15em;
  margin-top: 2px;
}
.message-body h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: 0.05em;
  margin-bottom: 36px;
}
.message-body h2 .red { color: var(--red); }
.message-body p {
  font-size: 14.5px;
  line-height: 2.4;
  color: var(--gray);
  margin-bottom: 22px;
}

/* 理念 */
.philosophy-section {
  background: var(--ink);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.philosophy-section::before {
  content: '家';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: 400px;
  color: rgba(255,255,255,0.02);
  pointer-events: none;
  line-height: 1;
}
.philosophy-section .ph-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 24px;
}
.philosophy-section .ph-main {
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.6;
  margin-bottom: 28px;
}
.philosophy-section .ph-desc {
  font-size: 14.5px;
  line-height: 2.4;
  color: rgba(255,255,255,0.7);
  max-width: 620px;
  margin: 0 auto;
}

/* 会社情報テーブル */
.info-section { background: var(--paper); }
.info-table {
  width: 100%;
  border-collapse: collapse;
}
.info-table th, .info-table td {
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
  line-height: 2;
}
.info-table tr:first-child th,
.info-table tr:first-child td { border-top: 2px solid var(--ink); }
.info-table th {
  width: 220px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink);
  white-space: nowrap;
}
.info-table td { color: var(--gray); }
.info-table td a { color: var(--red); }
.info-table td a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: none; padding-bottom: 4px; }
  .info-table td { padding-top: 0; }
}

/* 資格 */
.qual-section { background: var(--stone); }
.qual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 860px) { .qual-grid { grid-template-columns: 1fr; } }
.qual-card {
  background: var(--white);
  padding: 36px 32px;
  border-top: 2px solid var(--red);
}
.qual-card h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.qual-card ul li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--gray);
}
.qual-card ul li:last-child { border-bottom: none; }
.qual-card ul li .count {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--red);
  font-weight: 600;
  white-space: nowrap;
}

/* 沿革 */
.history-section { background: var(--paper); }
.timeline {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding-left: 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  position: relative;
}
.timeline-year {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.06em;
  padding: 26px 32px 26px 0;
  text-align: right;
  position: relative;
}
.timeline-content {
  padding: 26px 0 26px 40px;
  font-size: 14px;
  color: var(--gray);
  line-height: 2;
  border-left: 1px solid var(--line);
  position: relative;
}
.timeline-content::before {
  content: '';
  position: absolute;
  left: -5px; top: 36px;
  width: 9px; height: 9px;
  background: var(--red);
  border-radius: 50%;
}
.timeline-item:last-child .timeline-content { padding-bottom: 40px; }
@media (max-width: 600px) {
  .timeline-item { grid-template-columns: 100px 1fr; }
  .timeline-year { font-size: 13px; padding-right: 18px; }
  .timeline-content { padding-left: 24px; }
}

/* SDGs */
.sdgs-section { background: var(--white); }
.sdgs-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 800px) { .sdgs-grid { grid-template-columns: 1fr; gap: 36px; } }
.sdgs-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
}
.sdgs-text h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.sdgs-text p {
  font-size: 14.5px;
  line-height: 2.3;
  color: var(--gray);
}

/* ============ SERVICE PAGE ============ */
.service-intro { background: var(--paper); text-align: center; }
.service-intro .sec-lead { max-width: 660px; margin: 0 auto; }

.sv-detail { padding: 0; background: var(--paper); }
.sv-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  scroll-margin-top: 96px;
}
.sv-block.rev .sv-img { order: 2; }
@media (max-width: 860px) {
  .sv-block { grid-template-columns: 1fr; }
  .sv-block.rev .sv-img { order: 0; }
}
.sv-img { position: relative; overflow: hidden; min-height: 320px; }
.sv-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.sv-img .sv-no {
  position: absolute;
  top: 28px; left: 32px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  z-index: 2;
}
.sv-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15,12,8,0.3), transparent 40%);
}
.sv-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 8%;
}
.sv-block:nth-child(even) .sv-body { background: var(--stone); }
.sv-body h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.sv-body .sv-en {
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
}
.sv-body p {
  font-size: 14.5px;
  line-height: 2.3;
  color: var(--gray);
  margin-bottom: 16px;
}
.sv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.sv-tags span {
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  color: var(--gray);
}

/* ============ RECRUIT PAGE ============ */
.recruit-hero-msg {
  background: var(--paper);
  text-align: center;
  padding: 72px 0 82px;
}
.recruit-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 64px;
  align-items: center;
}
.recruit-hero-copy {
  text-align: left;
}
.recruit-hero-msg .big {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}
.recruit-hero-msg .big .red { color: var(--red); }
.recruit-hero-msg .sec-lead { max-width: 680px; margin: 0 auto; }
.recruit-points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px auto 26px;
}
.recruit-points span {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 8px 16px;
}
.recruit-entry-btn {
  --btn-bg: transparent;
  --btn-fill: var(--red);
  --btn-border: var(--ink);
  margin-top: 4px;
}
.recruit-entry-section {
  background: var(--paper);
  text-align: center;
  padding: 0 0 48px;
}

.team-photo-strip {
  padding: 0;
  background: var(--ink);
  position: relative;
}
.team-photo-strip picture {
  display: block;
}
.team-photo-strip img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.recruit-photo-collage {
  position: relative;
  min-height: 520px;
}
.recruit-photo-collage::before {
  content: '';
  position: absolute;
  top: 32px;
  right: 24px;
  width: 72%;
  height: 82%;
  border: 1px solid var(--red);
}
.recruit-photo-collage img {
  position: absolute;
  object-fit: cover;
  background: var(--white);
}
.recruit-photo-team {
  top: 0;
  left: 0;
  width: min(88%, 330px);
  aspect-ratio: 33/20;
  box-shadow: 0 26px 60px rgba(23,20,15,0.16);
}
.recruit-photo-work {
  right: 0;
  bottom: 0;
  width: 58%;
  aspect-ratio: 1;
  border: 10px solid var(--paper);
  box-shadow: 0 24px 56px rgba(23,20,15,0.18);
}
@media (max-width: 768px) {
  .recruit-hero-msg {
    padding: 54px 0 62px;
  }
  .recruit-hero-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .recruit-hero-copy {
    text-align: center;
  }
  .recruit-hero-msg .big {
    line-height: 1.75;
    margin-bottom: 24px;
  }
  .recruit-hero-msg .sec-lead br {
    display: none;
  }
  .recruit-points {
    justify-content: center;
    margin: 28px auto 22px;
  }
  .recruit-points span {
    font-size: 11px;
    padding: 7px 12px;
  }
  .recruit-photo-collage {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 10px;
    min-height: 0;
  }
  .recruit-photo-collage::before {
    display: none;
  }
  .recruit-photo-collage img {
    position: static;
    width: 100%;
    border: 0;
    box-shadow: none;
  }
  .recruit-photo-team {
    aspect-ratio: 33/20;
  }
  .recruit-photo-work {
    aspect-ratio: 1;
  }
  .values-section .sec-head .ja {
    font-size: 26px;
    letter-spacing: 0.04em;
  }
}

.values-section { background: var(--ink); color: #fff; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 800px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
  background: var(--ink);
  padding: 52px 40px;
  transition: background 0.4s;
}
.value-card:hover { background: var(--ink-soft); }
.value-card .v-no {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--red-bright);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  display: block;
}
.value-card h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.value-card p {
  font-size: 13.5px;
  line-height: 2.1;
  color: rgba(255,255,255,0.6);
}

/* 募集要項 */
.jobs-section { background: var(--stone); }
.job-card {
  background: var(--white);
  margin-bottom: 40px;
}
.job-card:last-child { margin-bottom: 0; }
.job-head {
  background: var(--ink);
  color: #fff;
  padding: 26px 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.job-head h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.job-head .badge {
  background: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 5px 14px;
}
.job-table { width: 100%; border-collapse: collapse; }
.job-table th, .job-table td {
  padding: 20px 36px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  text-align: left;
  vertical-align: top;
  line-height: 2;
}
.job-table th {
  width: 180px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink);
  white-space: nowrap;
}
.job-table td { color: var(--gray); }
.job-table td .em {
  color: var(--red);
  font-weight: 700;
}
.job-table tr:last-child th,
.job-table tr:last-child td { border-bottom: none; }
@media (max-width: 640px) {
  .job-head { padding: 20px 24px; }
  .job-table th, .job-table td { display: block; width: 100%; padding: 14px 24px; }
  .job-table th { padding-bottom: 0; border-bottom: none; }
}

/* 福利厚生 */
.welfare-section {
  background: var(--paper);
  padding-bottom: 52px;
}
.welfare-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .welfare-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .welfare-grid { grid-template-columns: 1fr; } }
.welfare-item {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px 24px;
  transition: border-color 0.3s, transform 0.3s;
}
.welfare-item:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}
.welfare-item h4 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.welfare-item h4::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 28px; height: 1px;
  background: var(--red);
}
.welfare-item p { font-size: 12.5px; color: var(--gray); line-height: 1.9; }

/* ============ CONTACT PAGE ============ */
.contact-section { background: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 72px;
}
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; gap: 52px; }
}
.contact-side h3, .contact-form-wrap h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 30px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.contact-side h3::after, .contact-form-wrap h3::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 48px; height: 2px;
  background: var(--red);
}
.c-item { margin-bottom: 28px; }
.c-item .label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.c-item .value { font-size: 14px; color: var(--ink); line-height: 2; }
.c-item .tel-big {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.c-item .tel-big a { color: var(--ink); }
.c-item .note { font-size: 12px; color: var(--gray); }
.c-privacy {
  background: var(--stone);
  padding: 24px;
  font-size: 12.5px;
  color: var(--gray);
  line-height: 2;
}
.c-privacy strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 6px;
}

/* Form */
.form-group { margin-bottom: 28px; }
.form-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.form-group label .req {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  letter-spacing: 0.1em;
}
.form-group label .opt {
  background: var(--line);
  color: var(--gray);
  font-size: 10px;
  padding: 2px 8px;
  letter-spacing: 0.1em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  border-radius: 0;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(195,53,40,0.08);
}
.form-group textarea { height: 160px; resize: vertical; }
.form-note {
  font-size: 12.5px;
  color: var(--gray);
  line-height: 2;
  margin-bottom: 32px;
}
.form-note a { color: var(--red); text-decoration: underline; }
.privacy-policy {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 22px 24px;
  margin: 4px 0 32px;
}
.privacy-policy h4 {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.privacy-policy p {
  font-size: 12.5px;
  line-height: 2;
  color: var(--gray);
}
.form-error {
  display: none;
  border-left: 3px solid var(--red);
  background: rgba(195,53,40,0.08);
  color: var(--red);
  font-size: 13px;
  line-height: 1.8;
  padding: 12px 16px;
  margin: -8px 0 28px;
}
.form-submit { text-align: center; }
.form-submit .btn { min-width: 260px; justify-content: center; }

.form-success {
  display: none;
  border: 1px solid var(--red);
  background: #fff;
  padding: 48px 32px;
  text-align: center;
}
.form-success h4 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--red);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.form-success p { font-size: 13.5px; color: var(--gray); line-height: 2; }

/* Map */
.map-section { padding: 0; }
.map-section iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: none;
  filter: grayscale(60%) contrast(1.05);
}

/* ============ ANIMATION ============ */
:root { --ease-soft: cubic-bezier(0.16, 1, 0.3, 1); }

.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.3s var(--ease-soft), transform 1.3s var(--ease-soft);
  transition-delay: var(--stagger, 0ms);
  will-change: opacity, transform;
}
.fade-in.visible { opacity: 1; transform: none; }

.fade-in-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 1.3s var(--ease-soft), transform 1.3s var(--ease-soft);
  transition-delay: var(--stagger, 0ms);
  will-change: opacity, transform;
}
.fade-in-left.visible { opacity: 1; transform: none; }

.fade-in-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 1.3s var(--ease-soft), transform 1.3s var(--ease-soft);
  transition-delay: var(--stagger, 0ms);
  will-change: opacity, transform;
}
.fade-in-right.visible { opacity: 1; transform: none; }

/* 写真のワイプ表示（左から幕が開くように現れる。クラスはJSで自動付与）
   注意: clip-pathは監視対象自身ではなく中のimgへ。
   完全にクリップされた要素はIntersectionObserverが発火しないため */
.reveal img {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.7s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: var(--stagger, 0ms);
  will-change: clip-path;
}
.reveal.visible img { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .btn,
  #gnav ul li a.btn-nav-contact {
    transition-duration: 0.4s !important;
  }
  .btn .arrow {
    transition-duration: 0.35s !important;
  }
  .hero-slide.active img {
    animation-duration: 8.8s !important;
  }
}
