/* ============================================================
   style.css — DIZHI INTERNATIONAL Co., LTD.
   共通デザインシステム／トップページ用スタイル
   ============================================================ */

:root {
  --key: #5cbcb9;
  --key-dark: #3a9a97;
  --key-light: #e8f7f7;
  --text: #1a1a1a;
  --text-sub: #666666;
  --text-light: #999999;
  --border: #e8e8e8;
  --bg: #ffffff;
  --section-bg: #f9fafa;
  --dark: #111111;
  --line: #06C755;
  --line-dark: #05a648;
  --max: 1200px;
  --content: 720px;
  --sans: 'Helvetica Neue', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic',
          'PingFang TC', 'Noto Sans TC', sans-serif;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}

.inner { max-width: var(--max); margin: 0 auto; }

a.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--key);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  font-size: 13px;
  font-weight: 600;
}
a.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ── フォーカス表示 ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--key);
  outline-offset: 2px;
}

/* ── HEADER ── */
header.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}
header.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.07); }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 32px; height: 32px; flex-shrink: 0; }
.logo-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.3;
}
.logo-text span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-sub);
}

nav.site-nav { display: flex; gap: 28px; align-items: center; }
nav.site-nav a {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.2s;
}
nav.site-nav a:hover { color: var(--key); }
nav.site-nav a[aria-current="page"] { color: var(--key); font-weight: 700; }

.nav-cta {
  background: var(--key);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--key-dark); }

.lang-switch { display: flex; align-items: center; gap: 4px; font-size: 11px; letter-spacing: 0.06em; }
.lang-switch a { color: var(--text-light); text-decoration: none; padding: 2px 4px; }
.lang-switch a[aria-current="page"] { color: var(--text); font-weight: 700; }
.lang-switch span.sep { color: var(--border); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ── */
#hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding: 0 40px 80px;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/top.jpg');
  background-image: image-set(
    url('../images/top.webp') type('image/webp'),
    url('../images/top.jpg') type('image/jpeg')
  );
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.06);
  animation: heroZoom 9s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.00); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,14,18,0.78) 0%, rgba(10,14,18,0.32) 50%, rgba(10,14,18,0.10) 100%);
}
.hero-content {
  position: relative;
  width: 100%;
  animation: heroFadeUp 1.2s 0.3s both ease-out;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--key);
  margin-bottom: 16px;
  font-weight: 600;
}
.hero-title {
  font-size: clamp(32px, 5.2vw, 60px);
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: clamp(14px, 1.6vw, 16px);
  color: rgba(255,255,255,0.78);
  max-width: 480px;
  line-height: 1.9;
  font-weight: 300;
  letter-spacing: 0.03em;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
}
.btn-primary { background: var(--key); color: #fff; }
.btn-primary:hover { background: var(--key-dark); transform: translateY(-1px); }
.btn-outline { border: 1px solid rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ── SECTION BASE ── */
section.block { padding: 120px 40px; }
section.block.alt { background: var(--section-bg); }

.sec-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--key);
  font-weight: 600;
  margin-bottom: 16px;
}
.sec-title {
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.sec-lead {
  font-size: 15px;
  color: var(--text-sub);
  max-width: var(--content);
  line-height: 1.9;
  font-weight: 300;
  letter-spacing: 0.03em;
}

/* ── VISION ── */
.vision-body {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.vision-item { background: var(--bg); padding: 44px 40px; }
.vision-num { font-size: 11px; letter-spacing: 0.16em; color: var(--key); font-weight: 700; margin-bottom: 16px; }
.vision-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.vision-item p { font-size: 14px; color: var(--text-sub); line-height: 1.9; font-weight: 300; }

/* ── SERVICES ── */
.services-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  padding: 34px 30px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.25s, transform 0.25s;
}
.service-card:hover { border-color: var(--key); transform: translateY(-4px); }
.service-icon { width: 36px; height: 36px; margin-bottom: 18px; color: var(--key); }
.service-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 13.5px; color: var(--text-sub); line-height: 1.85; font-weight: 300; }

/* ── WORKS ── */
.works-grid { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.work-card { overflow: hidden; }
.work-thumb { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #ffffff; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-body { padding: 22px 0 0; }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag { font-size: 10.5px; letter-spacing: 0.10em; color: var(--key-dark); background: var(--key-light); padding: 3px 10px; border-radius: 2px; font-weight: 600; }
.work-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.work-body p { font-size: 13.5px; color: var(--text-sub); line-height: 1.85; font-weight: 300; }
.works-note { margin-top: 32px; font-size: 13px; color: var(--text-light); }

/* ── PROCESS ── */
.flow-steps { margin-top: 56px; display: flex; gap: 0; }
.flow-step { flex: 1; padding: 32px 26px; border-top: 2px solid var(--border); position: relative; }
.flow-step::before {
  content: ''; position: absolute; top: -2px; left: 0; width: 0; height: 2px;
  background: var(--key); transition: width 0.6s ease;
}
.flow-step.in-view::before { width: 100%; }
.flow-num { font-size: 11px; letter-spacing: 0.16em; color: var(--key); font-weight: 700; margin-bottom: 14px; }
.flow-step h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.flow-step p { font-size: 13px; color: var(--text-sub); line-height: 1.85; font-weight: 300; }

/* ── COMPANY抜粋 ── */
.company-table { margin-top: 48px; width: 100%; max-width: 780px; border-top: 1px solid var(--border); }
.company-table div.row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.company-table .th { font-size: 11px; letter-spacing: 0.1em; color: var(--text-light); font-weight: 700; text-transform: uppercase; }
.company-table .td { font-size: 14px; color: var(--text); line-height: 1.8; }
.company-cta { margin-top: 32px; }

/* ── CONTACT CTA ── */
#contact-cta { background: var(--dark); color: #fff; }
#contact-cta .sec-title { color: #fff; }
#contact-cta .sec-lead { color: rgba(255,255,255,0.6); }
.cta-buttons { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ── LINE ボタン ── */
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--line);
  color: #fff !important;
  padding: 13px 28px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-line:hover { background: var(--line-dark); transform: translateY(-1px); }
.btn-line svg { flex-shrink: 0; }

/* ── FOOTER ── */
footer.site-footer { background: #111; color: rgba(255,255,255,0.4); padding: 56px 40px 40px; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo img { width: 28px; height: 28px; }
.footer-logo-text { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); line-height: 1.6; }
.footer-logo-text span { display: block; font-size: 10px; font-weight: 400; color: rgba(255,255,255,0.28); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-links a:hover { color: var(--key); }
.footer-links button.cookie-settings-btn {
  font-size: 12px; color: rgba(255,255,255,0.55); text-decoration: underline; cursor: pointer;
}
.footer-links button.cookie-settings-btn:hover { color: var(--key); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-copy { font-size: 11px; letter-spacing: 0.04em; }
.footer-lang { display: flex; gap: 6px; font-size: 11px; }
.footer-lang a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-lang a[aria-current="page"] { color: #fff; font-weight: 700; }

/* ── SCROLL FADE ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.in-view { opacity: 1; transform: translateY(0); }

/* ── COOKIE CONSENT BANNER ── */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  padding: 24px 40px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
#cookie-banner.visible { transform: translateY(0); }
.cookie-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cookie-text h2 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.cookie-text p { font-size: 12.5px; color: var(--text-sub); line-height: 1.7; max-width: 640px; font-weight: 300; }
.cookie-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cookie-actions a { font-size: 12px; color: var(--text-sub); text-decoration: underline; }
.btn-cookie {
  padding: 10px 20px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; border-radius: 3px; cursor: pointer;
}
.btn-cookie-accept { background: var(--key); color: #fff; }
.btn-cookie-accept:hover { background: var(--key-dark); }
.btn-cookie-decline { background: var(--section-bg); color: var(--text); border: 1px solid var(--border) !important; }
.btn-cookie-decline:hover { background: var(--border); }

/* ── HAMBURGER NAV (MOBILE) ── */
@media (max-width: 900px) {
  header.site-header { padding: 0 20px; }
  nav.site-nav { display: none; }
  .hamburger { display: flex; }
  nav.site-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff;
    padding: 24px 20px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    z-index: 99;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }

  section.block { padding: 72px 20px; }
  #hero { padding: 0 20px 56px; }

  .vision-body, .services-grid, .works-grid { grid-template-columns: 1fr !important; }
  .flow-steps { flex-direction: column; }
  .flow-step { border-top: none; border-left: 2px solid var(--border); padding: 0 20px 32px; }
  .flow-step::before { top: 0; left: -2px; width: 2px; height: 0; transition: height 0.6s ease; }
  .flow-step.in-view::before { width: 2px; height: 100%; }

  .cta-buttons, .hero-cta { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn, .cta-buttons .btn-line, .hero-cta .btn { justify-content: center; }

  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .company-table div.row { grid-template-columns: 1fr; gap: 4px; }

  #cookie-banner { padding: 20px; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: flex-start; }
}
