/* ======================================================
   トップページ固有スタイル
====================================================== */

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-label {
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}
.hero-label::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--teal);
}

.hero-en {
  font-family: var(--font-en-heading);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  opacity: 0;
  animation: fadeUp 0.9s ease 0.35s forwards;
}
.hero-en em {
  font-style: italic;
  color: var(--teal);
}

.hero-ja {
  font-family: var(--font-ja-heading);
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 400;
  color: var(--charcoal);
  margin: 12px 0 32px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap; /* 意図しない改行を防ぐ */
  opacity: 0;
  animation: fadeUp 0.9s ease 0.5s forwards;
}

.hero-desc {
  font-size: 17px;
  color: var(--mid-gray);
  line-height: 1.85;
  max-width: 520px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.65s forwards;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.8s forwards;
}

/* Hero 右：ビジュアル */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  opacity: 0;
  animation: fadeRight 1s ease 0.6s forwards;
}

.hero-img-wrap img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 32px 80px rgba(0,104,130,0.18);
}

/* 浮かぶバッジ */
.hero-badge {
  position: absolute;
  bottom: -24px;
  left: -32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-badge-icon {
  width: 36px; height: 36px;
  background: rgba(134,202,182,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-badge-icon svg {
  width: 18px; height: 18px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-badge-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
}
.hero-badge-text span {
  font-size: 15px;
  color: var(--mid-gray);
}

/* スクロールインジケーター */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s ease 1.4s forwards;
}
.hero-scroll span {
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid-gray);
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ---- 統計セクション ---- */
.stats-section {
  padding: 64px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: 32px 40px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-en-heading);
  font-size: 52px;
  font-weight: 400;
  color: var(--teal);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num sup {
  font-size: 24px;
  vertical-align: super;
}
.stat-label {
  font-size: 15px;
  color: var(--mid-gray);
  letter-spacing: 0.04em;
}

/* ---- サービス紹介 ---- */
.service-tease {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列横並び */
  gap: 24px;
  margin-top: 64px;
}

.service-tease-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 32px; /* 3列時のパディングを調整 */
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.service-tease-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,128,128,0.1);
}
.service-tease-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--teal);
  opacity: 0;
  transition: opacity 0.25s;
}
.service-tease-card:hover::before { opacity: 1; }

.stc-num {
  font-family: var(--font-en-heading);
  font-size: 52px;
  font-weight: 300;
  color: rgba(0,128,128,0.1);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.stc-title {
  font-family: var(--font-ja-heading);
  font-size: 24px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 16px;
  line-height: 1.4;
}

.stc-desc {
  font-size: 16px;
  color: var(--mid-gray);
  line-height: 1.8;
  margin-bottom: 28px;
}

.stc-link {
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s, color 0.2s;
}
.service-tease-card:hover .stc-link {
  gap: 12px;
  color: var(--deep-teal);
}
.stc-link svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Aboutテーザー ---- */
.about-tease {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-tease-img {
  position: relative;
}
.about-tease-img img {
  width: 100%;
  border-radius: 4px;
}
.about-tease-deco {
  position: absolute;
  top: -20px; right: -20px;
  width: 140px; height: 140px;
  border: 1px solid rgba(0,128,128,0.2);
  border-radius: 2px;
  z-index: -1;
}

.about-tease-body {}
.about-tease-quote {
  font-family: var(--font-ja-heading);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.6;
  margin-bottom: 24px;
  position: relative;
  padding-left: 24px;
}
.about-tease-quote::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  background: var(--teal);
}

/* ---- コラムセクション ---- */
.columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.col-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.col-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
}

.col-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.col-card-body {
  padding: 24px;
}
.col-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.col-card-date {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--mid-gray);
}
.col-card-title {
  font-family: var(--font-ja-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.65;
  margin-bottom: 12px;
}
.col-card-excerpt {
  font-size: 15px;
  line-height: 1.78;
  color: var(--mid-gray);
  line-height: 1.8;
}

/* ---- CTA ---- */
.cta-section {
  padding: var(--section-gap) 0;
  background: var(--teal);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-section::before {
  content: 'TRANSFORM';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-en-heading);
  font-size: 160px;
  font-weight: 300;
  color: rgba(255,255,255,0.04);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.1em;
}

.cta-label {
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

.cta-title {
  font-family: var(--font-ja-heading);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
}

/* ---- キーフレーム ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.5); opacity: 0.4; }
}

/* ---- レスポンシブ ---- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .service-tease { grid-template-columns: 1fr; } /* タブレット以下は1列 */
  .about-tease { grid-template-columns: 1fr; }
  .about-tease-img { display: none; }
}
@media (max-width: 767px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .columns-grid { grid-template-columns: 1fr; }
}
