/* ============ 基本 ============ */
:root{
  --brand:#0369BA;          /* 会社ごとに差し替え可 */
  --brand-ink:#178297;
  --ink:#141414;
  --muted:#6b7280;
  --bg:#ffffff;
  --glass:rgba(255,255,255,.7);
  --radius:16px;
  --shadow:0 10px 30px rgba(0,0,0,.10);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:system-ui,-apple-system,"Noto Sans JP","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
  color:var(--ink); background:var(--bg);
}
.container{max-width:1120px;margin:0 auto;padding:0 20px}

/* ============ ヘッダー（ガラス） ============ */
.site-header{
  position:sticky; top:0; z-index:50;
  background-color: #fff;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 20px
}

.brand{
  display:flex;
  align-items:center;
  text-decoration:none;
  color:inherit;
  gap:12px
}

.logo{
  height:28px;
  width:auto;
  display:block;
}

@media (max-width:640px) {
  .logo{
  height:40px;
  width:auto;
  display:block;
}
}

.brand-name{
  font-size:24px;
  font-weight:500;
  letter-spacing:0.02em;
  white-space:nowrap;
  color:var(--ink);
}

@media (max-width:640px) {
  .brand-name {
    font-size:22px;
  }
}

/* ナビ */
.nav{display:flex;gap:22px}
.nav a{
  text-decoration:none; color:#2b2b2b; font-size:15px; letter-spacing:.06em;
  padding:10px 0; border-bottom:2px solid transparent; transition:.2s;
}
.nav a[aria-current="page"], .nav a:hover{color:var(--brand); border-color:var(--brand)}

/* モバイル・ハンバーガー（JSなし） */
.nav-toggle{display:none}
.hamburger{
  display:none;
  cursor:pointer;
  width:40px;
  height:40px;
  position:relative;
  z-index:60;
  padding:8px;
}
.hamburger span, .hamburger span::before, .hamburger span::after{
  display:block;
  background:#333;
  height:2px;
  width:24px;
  position:absolute;
  left:8px;
  top:50%;
  border-radius:2px;
  transition:.3s ease-out;
}
.hamburger span::before,.hamburger span::after{
  content:"";
  position:absolute;
  left:0;
}
.hamburger span::before{top:-7px}
.hamburger span::after{top:7px}

/* ハンバーガーメニューがアクティブな時の状態 */
.nav-toggle:checked ~ .hamburger span{
  background:transparent;
}
.nav-toggle:checked ~ .hamburger span::before{
  top:0;
  transform:rotate(45deg);
}
.nav-toggle:checked ~ .hamburger span::after{
  top:0;
  transform:rotate(-45deg);
}

@media (max-width:920px){
  .nav{
    position:fixed;
    inset:0;
    top:60px;
    background:rgba(0,0,0,0.7);
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:37px;
    padding:40px 32px;
    transform:translateX(100%);
    transition:.3s ease-out;
  }
  .nav a{
    padding:0;
    color:#ffffff;
    font-size:18px;
    border:none;
    text-align:right;
  }
  .nav a[aria-current="page"], .nav a:hover{
    color:#ffffff;
    border:none;
    opacity:0.7;
  }
  .nav-toggle:checked ~ .nav{
    transform:translateX(0);
  }
  .hamburger{display:block}
}

/* ============ ヒーロー（2枚スライダー） ============ */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

/* 背景画像を載せる土台 */
.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* ← ここで濃さを調整（0.3〜0.5が自然） */
  z-index: 2; /* テキストより背面に */
}

/* ===== スライドインジケーター ===== */
.hero-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-indicators .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s, transform 0.3s;
}

.hero-indicators .dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* 各スライド共通 */
.slide{
  position:absolute; 
  inset:0;
  width:100%; 
  height:100%; 
  object-fit:cover;
  opacity:0; 
  transform:scale(1.05);
  transition: opacity 0.9s ease, transform 6s ease; /* フェード＆ゆるいズーム */
}

/* 表示中 */
.slide.active{
  opacity:1; transform:scale(1);
}

/* 常時一定の黒オーバーレイ（濃さは0.25〜0.45で調整） */
.hero-overlay{
  position:absolute; inset:0;
  background: rgba(0,0,0,.35);
  z-index:1;
}

/* テキスト・ドットは前面 */
.hero-content{ position:relative; z-index:2; }
.hero-indicators{ position:absolute; bottom:30px; left:50%; transform:translateX(-50%);
  display:flex; gap:10px; z-index:3; }

/* ヒーローコンテンツ */
.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding: 0 20px;
  max-width: 800px;
  animation: fadeUp 1s ease-out forwards;
}


.hero-content h1 {
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-content h1 .ja {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .hero-content h1 .ja {
    font-size: 24px;
  }
}

.hero-content h1 .en {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .hero-content h1 .en {
    font-size: 18px;
  }
}

.hero-text {
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-text .ja {
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .hero-text .ja {
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}
}

.hero-text .en {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.8;
}

/* ヒーローボタン */
.hero-buttons {
  margin-top: 40px;
}

.btn-hero {
  background: white;
  color: var(--brand);
  padding: 16px 40px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-hero .en {
  font-size: 14px;
  opacity: 0.8;
}

/* フェード用アニメーション（8秒で1周） */
@keyframes fadeCycle {
  0%   { opacity: 0; transform: scale(1.05); }
  4%   { opacity: 1; transform: scale(1); }
  46%  { opacity: 1; transform: scale(1); }
  50%  { opacity: 0; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.05); }
}

/* 1枚目：0秒開始 */
.slide.s1 {
  animation: fadeCycle 16s infinite;
  object-position: 50% 30%;
}

/* 2枚目：8秒遅延で反対位相 */
.slide.s2 {
  animation: fadeCycle 16s infinite 8s;
  object-position: 50% 20%;
}



/* アニメを好まない環境配慮（OS設定に追従） */
@media (prefers-reduced-motion: reduce){
  .slide, .slide.s2{ animation:none; }
  .slide.s1{ opacity:1; }
}

/* ============ 3フィーチャー ============ */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 80px auto;
  padding: 0 20px;
}

@media (max-width: 920px) {
  .features {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 60px auto;
  }
}

.card {
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease-out;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-out;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card:hover::before {
  transform: scaleX(1);
}

.icon {
  width: 56px;
  height: 56px;
  color: var(--brand);
  margin: 0 auto 16px;
  display: block;
}

.card h2 {
  font-size: 20px;
  margin: 0 0 16px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.card p {
  margin: 0;
  text-align: left;
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
}

/* ============ 2カラム紹介 / services (サービス紹介) ============ */
.services {
  background: linear-gradient(180deg, #f8f9fc, #fff);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
  opacity: 0.03;
  animation: rotate 60s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 60px;
  position: relative;
  align-items: center;
}

@media (max-width: 920px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
}

.service-content h3,
.service-content .main-title {
  margin: 0 0 24px;
  font-size: 32px;
  background: linear-gradient(90deg, var(--ink), var(--brand));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
}

@media (max-width: 768px) {
  .service-content h3,
  .service-content .main-title {
    font-size: 28px;
  }
}

.service-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 24px;
}

.feature-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.feature-list li {
  margin: 0;
  padding-left: 26px;
  position: relative;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.8;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(195,0,47,0.06);
}

/* 右側の浮くパネル */
.stats-panel {
  justify-self: end;
  width: 340px;
  padding: 28px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  display: grid;
  gap: 18px;
  align-self: center;
  border: 1px solid rgba(0,0,0,0.04);
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-value {
  font-size: 34px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}

.stat-label {
  text-align: right;
  color: var(--muted);
  font-size: 13px;
}

/* モバイル調整 */
@media (max-width: 920px) {
  .stats-panel {
    width: 100%;
    padding: 20px;
    margin-top: 20px;
  }
  .stat-value {
    font-size: 28px;
  }
}


/* ============ 最終CTA & フッター ============ */
.final-cta {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg, #fff, #f8f9fc);
  position: relative;
  overflow: hidden;
}



.final-cta h3 {
  margin: 0 0 32px;
  font-size: 28px;
  color: var(--ink);
  position: relative;
}

@media (max-width: 768px) {
  .final-cta {
    padding: 0px 0 80px;
  }
  
  .final-cta h3 {
    font-size: 24px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 4px 20px rgba(195,0,47,0.25);
}

.btn-primary:hover {
  background: var(--brand-ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(195,0,47,0.35);
}

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 40px 0;
}

.site-footer .container {
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.02em;
}