/* ===== リセット・基本設定 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #8B1A2F;
  --red-dark: #6B1324;
  --red-light: #B0243E;
  --text: #1A1A1A;
  --text-sub: #666;
  --bg: #fff;
  --bg-light: #F7F4F4;
  --bg-dark: #111114;
  --border: #E5DADA;
  --sans: 'Noto Sans JP', sans-serif;
  --serif: 'Noto Serif JP', serif;
  --max: 1120px;
  --r: 6px;
  --ease: 0.28s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.8; font-size: 15px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ===== ヘッダー ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease);
  backdrop-filter: blur(8px);
}
.header.scrolled { border-color: var(--border); box-shadow: 0 2px 24px rgba(0,0,0,0.07); }
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 32px;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { height: 42px; width: auto; }
.logo-name { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--red); letter-spacing: 0.05em; white-space: nowrap; }
.header-nav ul { display: flex; align-items: center; gap: 40px; }
.header-nav a { font-size: 13.5px; font-weight: 500; letter-spacing: 0.04em; transition: color var(--ease); }
.header-nav a:hover { color: var(--red); }
.header-nav .nav-btn {
  background: var(--red); color: #fff;
  padding: 9px 22px; border-radius: 4px; font-size: 13px;
  transition: background var(--ease);
}
.header-nav .nav-btn:hover { background: var(--red-dark); color: #fff; }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--text); transition: 0.3s; transform-origin: center; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sp-nav { display: none; background: #fff; border-top: 1px solid var(--border); }
.sp-nav.open { display: block; }
.sp-nav li { border-bottom: 1px solid var(--border); }
.sp-nav a { display: block; padding: 16px 32px; font-size: 15px; font-weight: 500; }

/* ===== ヒーロー ===== */
.hero {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; align-items: center; overflow: hidden;
  background: #0d0d10;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,5,8,0.92) 0%, rgba(40,5,15,0.85) 60%, rgba(100,15,35,0.75) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto; padding: 0 32px;
  padding-top: 72px;
}
.hero-label {
  font-size: 11px; letter-spacing: 0.28em; color: rgba(255,255,255,0.4);
  text-transform: uppercase; margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.hero-label::before { content: ''; display: block; width: 32px; height: 1px; background: var(--red); }
.hero-title {
  font-family: var(--serif); font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 700; color: #fff; line-height: 1.6; margin-bottom: 28px;
}
.hero-title em {
  font-style: normal;
  color: #D4566A;
  display: inline-block;
  animation: enZoomIn 5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
@keyframes enZoomIn {
  0%   { transform: scale(22); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.hero-title em.michi {
  font-style: normal;
  color: #D4566A;
  display: inline-block;
  animation: michiZoomIn 3.8s cubic-bezier(0.16, 1, 0.3, 1) 2.8s both;
}
@keyframes michiZoomIn {
  0%   { transform: scale(16); opacity: 0; }
  18%  { opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.hero-text { font-size: 16px; color: rgba(255,255,255,0.65); line-height: 2; max-width: 520px; margin-bottom: 48px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; background: var(--red); color: #fff;
  padding: 15px 36px; border-radius: 4px; font-size: 14px; font-weight: 500; letter-spacing: 0.06em;
  transition: background var(--ease), transform var(--ease);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); color: #fff; }
.btn-outline {
  display: inline-block; border: 1px solid rgba(255,255,255,0.35); color: rgba(255,255,255,0.8);
  padding: 15px 36px; border-radius: 4px; font-size: 14px; font-weight: 500; letter-spacing: 0.06em;
  transition: border-color var(--ease), color var(--ease), transform var(--ease);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.7); color: #fff; transform: translateY(-2px); }

.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.35); font-size: 10px; letter-spacing: 0.2em; z-index: 2;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  animation: scrollDown 1.8s ease infinite;
}
@keyframes scrollDown { 0%,100%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform:scaleY(1);transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* ===== 数字実績 ===== */
.stats { background: var(--bg-light); border-bottom: 1px solid var(--border); }
.stats-grid {
  display: flex; align-items: center; justify-content: center;
  padding: 52px 0; gap: 0;
}
.stat-item { text-align: center; padding: 0 60px; flex: 1; }
.stat-num {
  font-family: var(--serif); font-size: 52px; font-weight: 700; color: var(--red);
  line-height: 1; margin-bottom: 10px;
}
.stat-num span { font-size: 22px; font-weight: 500; margin-left: 4px; }
.stat-label { font-size: 13px; color: var(--text-sub); line-height: 1.6; }
.stat-divider { width: 1px; height: 72px; background: var(--border); flex-shrink: 0; }

/* テキスト帯スタイル */
.stats-text { flex-direction: column; gap: 0; padding: 28px 0; }
.stats-text .stat-item { text-align: left; padding: 16px 48px; flex: unset; width: 100%; }
.stats-text .stat-divider { width: 100%; height: 1px; flex-shrink: 0; }
.stat-accent { width: 24px; height: 2px; background: var(--red); margin-bottom: 8px; border-radius: 2px; }
.stat-body { font-size: 15px; color: var(--text); line-height: 1.7; font-weight: 400; }

/* ===== 企業コンセプト ===== */
.concept { position: relative; background: var(--bg-dark); padding: 120px 0; overflow: hidden; }
.concept-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(100,15,35,0.3) 0%, transparent 60%);
}
.concept-inner {
  position: relative; display: grid; grid-template-columns: 1fr 360px; gap: 80px; align-items: center;
}
.section-label-light {
  display: inline-block; font-size: 11px; letter-spacing: 0.22em;
  color: var(--red-light); text-transform: uppercase; margin-bottom: 12px;
}
.concept-title {
  font-family: var(--serif); font-size: clamp(28px, 3.5vw, 44px); font-weight: 700;
  color: #fff; line-height: 1.5; margin-bottom: 20px;
}
.concept-lead { font-size: 15px; color: rgba(255,255,255,0.55); margin-bottom: 48px; line-height: 1.8; }
.concept-items { display: flex; flex-direction: column; gap: 28px; }
.concept-item { display: flex; align-items: flex-start; gap: 20px; }
.concept-kanji {
  font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--red-light);
  min-width: 56px; text-align: center; padding-top: 2px; line-height: 1.2;
}
.concept-detail strong { display: block; font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.concept-detail p { font-size: 13.5px; color: rgba(255,255,255,0.5); line-height: 1.7; }
.concept-visual { display: flex; justify-content: center; align-items: center; }
.concept-circle { width: 300px; height: 300px; }
#conceptCanvas { display: block; }

/* ===== Mission / Vision / Value ===== */
.mvv { padding: 100px 0; background: #f8f6f4; }
.mvv-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 56px; max-width: 800px; margin-left: auto; margin-right: auto; }
.mvv-card {
  background: #fff;
  border-radius: 8px;
  padding: 36px 48px;
  border-left: 4px solid var(--red);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: start;
  gap: 32px;
}
.mvv-label {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.05em;
  padding-top: 2px;
}
.mvv-text {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 2;
}
@media (max-width: 600px) {
  .mvv-card { grid-template-columns: 1fr; gap: 12px; padding: 28px 24px; }
}

/* ===== 事業内容 ===== */
.services { padding: 120px 0; background: var(--bg); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  display: inline-block; font-size: 11px; letter-spacing: 0.22em;
  color: var(--red); text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
  font-family: var(--serif); font-size: clamp(26px, 3.5vw, 38px); font-weight: 700;
  color: var(--text); margin-bottom: 16px;
  display: inline-block; position: relative;
}
.section-title::after {
  content: ''; display: block; width: 36px; height: 3px;
  background: var(--red); margin: 14px auto 0; border-radius: 2px;
}
.section-title-light {
  font-family: var(--serif); font-size: clamp(26px, 3.5vw, 38px); font-weight: 700;
  color: #fff; margin-bottom: 16px; display: inline-block; position: relative;
}
.section-title-light::after {
  content: ''; display: block; width: 36px; height: 3px;
  background: var(--red-light); margin: 14px auto 0; border-radius: 2px;
}
.section-desc { font-size: 15px; color: var(--text-sub); line-height: 2; }
.section-desc-light { font-size: 15px; color: rgba(255,255,255,0.55); line-height: 2; }

.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.service-card {
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 40px 32px; position: relative; overflow: hidden;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform var(--ease);
}
.service-card:hover { box-shadow: 0 8px 40px rgba(139,26,47,0.1); transform: translateY(-4px); border-color: rgba(139,26,47,0.2); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 52px; height: 52px; color: var(--red); margin-bottom: 20px; }
.service-icon svg { width: 100%; height: 100%; }
.service-num { font-size: 42px; font-weight: 700; color: #EDE5E5; font-family: var(--serif); line-height: 1; margin-bottom: 14px; }
.service-card h3 { font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.55; margin-bottom: 14px; }
.service-card p { font-size: 13.5px; color: var(--text-sub); line-height: 1.9; margin-bottom: 20px; }
.service-tag-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.service-tag {
  font-size: 11px; padding: 3px 10px; border-radius: 20px;
  background: rgba(139,26,47,0.07); color: var(--red); border: 1px solid rgba(139,26,47,0.15);
}

/* ===== 強み ===== */
.strengths { padding: 100px 0; background: var(--bg-light); }
.strengths-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.strengths-3 { grid-template-columns: repeat(3,1fr); }
.strength-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r);
  padding: 36px 24px; text-align: center;
  transition: box-shadow var(--ease), transform var(--ease);
}
.strength-item:hover { box-shadow: 0 6px 32px rgba(139,26,47,0.09); transform: translateY(-4px); }
.strength-icon { width: 44px; height: 44px; color: var(--red); margin: 0 auto 18px; }
.strength-icon svg { width: 100%; height: 100%; }
.strength-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.strength-item p { font-size: 13px; color: var(--text-sub); line-height: 1.85; }

/* ===== 代表の言葉 ===== */
.message { padding: 100px 0; background: var(--bg); }
.message-inner { display: flex; gap: 40px; align-items: flex-start; max-width: 760px; margin: 0 auto; }
.message-line { width: 3px; min-height: 120px; background: var(--red); border-radius: 2px; flex-shrink: 0; margin-top: 4px; }
.message-body { flex: 1; }
.message-text { font-family: var(--serif); font-size: 16px; line-height: 2.1; color: var(--text); margin-bottom: 28px; }
.message-sign { font-family: 'Yuji Syuku', serif; font-size: 16px; color: var(--text-sub); text-align: right; letter-spacing: 0.1em; }
.message-sign-name { font-family: 'Yuji Syuku', serif; font-size: 22px; color: var(--text); letter-spacing: 0.15em; vertical-align: middle; }

/* ===== 会社概要 ===== */
.about { padding: 120px 0; background: var(--bg); }
.about-inner { display: grid; grid-template-columns: 280px 1fr; gap: 72px; align-items: start; }
.about-logo-img { max-width: 200px; margin: 0 auto 24px; }
.about-catch {
  font-family: var(--serif); font-size: 15px; font-weight: 600;
  color: var(--red-dark); text-align: center; line-height: 1.7;
}
.about-table { width: 100%; border-collapse: collapse; }
.about-table th, .about-table td {
  padding: 20px 22px; border-bottom: 1px solid var(--border);
  font-size: 14px; line-height: 1.7; text-align: left;
}
.about-table th {
  width: 150px; font-weight: 600; color: var(--red-dark);
  background: rgba(139,26,47,0.03); white-space: nowrap;
}
.about-note { margin-top: 20px; font-size: 12.5px; color: var(--text-sub); }

.map-wrap {
  margin-top: 56px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* ===== お問い合わせ ===== */
.contact { position: relative; padding: 120px 0; background: var(--bg-dark); overflow: hidden; }
.contact-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(100,15,35,0.25) 0%, transparent 60%);
}
.contact .container { position: relative; z-index: 1; }
.contact .section-header { text-align: center; margin-bottom: 56px; }
.contact-form { max-width: 760px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; color: rgba(255,255,255,0.75); }
.required {
  display: inline-block; background: var(--red); color: #fff;
  font-size: 10px; padding: 2px 6px; border-radius: 3px; margin-left: 6px; font-weight: 400;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r); font-size: 14px; font-family: var(--sans);
  color: #fff; transition: border-color var(--ease), background var(--ease);
  appearance: none; -webkit-appearance: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--red-light); background: rgba(255,255,255,0.1);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer;
}
.form-group select option { background: #1a1a1a; color: #fff; }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-submit { text-align: center; margin-top: 16px; }
.submit-btn {
  display: inline-block; background: var(--red); color: #fff; border: none;
  padding: 16px 64px; font-size: 15px; font-weight: 500; font-family: var(--sans);
  letter-spacing: 0.1em; border-radius: 4px; cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}
.submit-btn:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ===== フッター ===== */
.footer { background: #fff; padding: 60px 0 0; border-top: 1px solid rgba(0,0,0,0.1); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 48px; gap: 40px; }
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo { height: 48px; width: auto; opacity: 1; }
.footer-logo-name { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--red); letter-spacing: 0.05em; white-space: nowrap; }
.footer-tagline { font-size: 12.5px; color: rgba(0,0,0,0.4); margin-bottom: 16px; line-height: 1.7; }
.footer-copy { font-size: 11px; color: rgba(0,0,0,0.3); }
.footer-nav-head { font-size: 11px; letter-spacing: 0.18em; color: rgba(0,0,0,0.35); text-transform: uppercase; margin-bottom: 16px; }
.footer-nav ul { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px 28px; }
.footer-nav a { font-size: 13px; color: rgba(0,0,0,0.5); transition: color var(--ease); }
.footer-nav a:hover { color: var(--red); }

/* ===== フェードアップアニメーション ===== */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 2s ease, transform 2s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.concept-item:nth-child(1).fade-up.visible { transition-delay: 0s; }
.concept-item:nth-child(2).fade-up.visible { transition-delay: 0.25s; }
.concept-item:nth-child(3).fade-up.visible { transition-delay: 0.5s; }

/* ===== 右から左へスライドインアニメーション ===== */
.fade-right { opacity: 0; transform: translateX(70px); transition: opacity 1.8s ease, transform 1.8s cubic-bezier(0.25, 0.8, 0.25, 1); }
.fade-right.visible { opacity: 1; transform: translateX(0); }
.service-card:nth-child(1).fade-right.visible { transition-delay: 0s; }
.service-card:nth-child(2).fade-right.visible { transition-delay: 0.18s; }
.service-card:nth-child(3).fade-right.visible { transition-delay: 0.36s; }
.strength-item:nth-child(1).fade-right.visible { transition-delay: 0s; }
.strength-item:nth-child(2).fade-right.visible { transition-delay: 0.15s; }
.strength-item:nth-child(3).fade-right.visible { transition-delay: 0.3s; }
.strength-item:nth-child(4).fade-right.visible { transition-delay: 0.45s; }
.mvv-card:nth-child(1).fade-right.visible { transition-delay: 0s; }
.mvv-card:nth-child(2).fade-right.visible { transition-delay: 0.2s; }
.mvv-card:nth-child(3).fade-right.visible { transition-delay: 0.4s; }

/* ===== レスポンシブ ===== */
/* ===== タブレット（〜900px） ===== */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .concept-inner { grid-template-columns: 1fr; gap: 48px; }
  .concept-visual { display: none; }
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .strengths-grid { grid-template-columns: repeat(2,1fr); }
  .strengths-3 { grid-template-columns: repeat(3,1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-logo-block { display: none; }
  .stats-grid { gap: 0; }
  .stat-item { padding: 0 20px; }
  .footer-inner { flex-direction: column; gap: 36px; }
  .stat-num { font-size: 40px; }
}

/* ===== スマホ（〜600px） ===== */
@media (max-width: 600px) {
  .container { padding: 0 18px; }

  /* ヘッダー */
  .header-inner { padding: 0 18px; }
  .logo-img { height: 34px; }

  /* ヒーロー */
  .hero-content { padding: 0 18px; padding-top: 72px; }
  .hero-label { font-size: 10px; }
  .hero-text br.pc-br { display: none; }
  .hero-btns { flex-direction: column; gap: 12px; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; padding: 14px 24px; }
  .hero-scroll { display: none; }

  /* 数字実績 */
  .stats-grid { flex-direction: column; gap: 0; padding: 36px 0; }
  .stat-item { padding: 20px 0; }
  .stat-divider { width: 48px; height: 1px; margin: 0 auto; }
  .stat-num { font-size: 44px; }

  /* コンセプト */
  .concept { padding: 72px 0; }
  .concept-kanji { font-size: 22px; min-width: 44px; }

  /* 事業内容 */
  .services { padding: 72px 0; }
  .service-card { padding: 28px 22px; }

  /* 強み */
  .strengths { padding: 72px 0; }
  .strengths-grid { grid-template-columns: 1fr; gap: 16px; }

  /* 会社概要 */
  .about { padding: 72px 0; }
  .about-table th, .about-table td { padding: 14px 14px; font-size: 13px; }
  .about-table th { width: 100px; }
  .map-wrap iframe { height: 260px; }

  /* お問い合わせ */
  .contact { padding: 72px 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .submit-btn { width: 100%; padding: 15px 24px; }

  /* セクション共通 */
  .section-header { margin-bottom: 44px; }

  /* フッター */
  .footer { padding: 44px 0 0; }
  .footer-inner { padding-bottom: 36px; }
}
