/* ===== リセット & ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0d1f3c;
  --gold:   #c9a84c;
  --gold-lt:#e8c97a;
  --water:  #38b6d4;
  --water-dk:#1a8aab;
  --water-lt:#a8e4f0;
  --gray:   #f5f6f8;
  --text:   #2c2c2c;
  --muted:  #6b7280;
  --white:  #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.10);
  --trans:  .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== フェードインアニメーション ===== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background var(--trans), box-shadow var(--trans);
}

.header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  transition: transform var(--trans), box-shadow var(--trans);
}

.logo:hover .logo-mark {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(56,182,212,.45);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-jp {
  font-size: .62rem;
  letter-spacing: .14em;
  color: var(--water-lt);
}

.logo-main {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--trans);
}

.header.scrolled .logo-main { color: var(--navy); }
.header.scrolled .logo-jp   { color: var(--water-dk); }

.nav-list {
  display: flex;
  gap: 32px;
}

.nav-list a {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  letter-spacing: .06em;
  transition: color var(--trans);
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--trans);
}

.nav-list a:hover::after { width: 100%; }
.nav-list a:hover { color: var(--gold-lt); }

.header.scrolled .nav-list a { color: var(--text); }
.header.scrolled .nav-list a:hover { color: var(--gold); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--trans);
}

.header.scrolled .hamburger span { background: var(--navy); }

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #064a5e 0%, #0a6e8a 35%, #1a9ab8 65%, #38b6d4 100%);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 24px 80px;
}

.hero-sub {
  font-size: .85rem;
  letter-spacing: .2em;
  color: var(--gold);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 28px;
}

.hero-title span {
  color: var(--gold);
  display: inline-block;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 40px;
  line-height: 2;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== ボタン ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all var(--trans);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
  transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* スクロール矢印 */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-scroll span {
  font-size: .65rem;
  letter-spacing: .2em;
  color: rgba(255,255,255,.5);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollLine 1.6s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ===== 実績バー ===== */
.stats {
  background: var(--navy);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item { padding: 16px; }

.stat-num {
  display: block;
  font-family: 'Noto Serif JP', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.stat-num small { font-size: 1.4rem; }

.stat-label {
  display: block;
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  margin-top: 6px;
  letter-spacing: .1em;
}

/* ===== セクション共通 ===== */
.section { padding: 96px 0; }

.section-label {
  font-size: .72rem;
  letter-spacing: .25em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.4;
}

.section-desc {
  color: var(--muted);
  margin-bottom: 56px;
  font-size: .95rem;
}

/* ===== 会社概要 ===== */
.about {
  background-color: var(--white);
  background-image: radial-gradient(circle, rgba(56,182,212,.18) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: .95rem;
}

.company-table {
  margin-top: 40px;
  border-top: 1px solid #e5e7eb;
}

.table-row {
  display: flex;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: .9rem;
}

.table-key {
  font-weight: 700;
  color: var(--navy);
  min-width: 80px;
  flex-shrink: 0;
}

.table-val { color: var(--muted); }

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-card {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform var(--trans), box-shadow var(--trans);
}

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

.about-icon { font-size: 2rem; flex-shrink: 0; }

.about-card h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.about-card p { font-size: .88rem; color: var(--muted); }

/* ===== サービス ===== */
.services {
  background-color: #eaf8fc;
  background-image:
    linear-gradient(rgba(56,182,212,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,182,212,.12) 1px, transparent 1px);
  background-size: 48px 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--trans), box-shadow var(--trans);
  border-top: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,.14);
  border-top-color: var(--gold);
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
}

.service-card h3 {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.5;
}

.service-card > p {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.service-card ul { display: flex; flex-direction: column; gap: 6px; }

.service-card li {
  font-size: .82rem;
  color: var(--gold);
  font-weight: 600;
  padding-left: 16px;
  position: relative;
}

.service-card li::before {
  content: '▸';
  position: absolute;
  left: 0;
}

/* ===== 強み ===== */
.strengths {
  background-color: #064a5e;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%2338b6d4' stroke-opacity='0.10' stroke-width='1'%3E%3Cpath d='M0 40 L40 0 L80 40 L40 80 Z'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Ccircle cx='0' cy='0' r='20'/%3E%3Ccircle cx='80' cy='0' r='20'/%3E%3Ccircle cx='0' cy='80' r='20'/%3E%3Ccircle cx='80' cy='80' r='20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

.strengths .section-label { color: var(--gold); }
.strengths .section-title { color: var(--white); }

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.strength-item {
  padding: 40px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  transition: border-color var(--trans), background var(--trans);
}

.strength-item:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,.06);
}

.strength-num {
  font-family: 'Noto Serif JP', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  opacity: .4;
  line-height: 1;
  margin-bottom: 12px;
}

.strength-item h3 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.strength-item p {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  line-height: 1.9;
}

/* ===== お客様の声 ===== */
.testimonials {
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%2338b6d4' stop-opacity='0.08'/%3E%3Cstop offset='1' stop-color='%2338b6d4' stop-opacity='0.03'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpolygon points='50,0 100,25 100,75 50,100 0,75 0,25' fill='url(%23g)'/%3E%3C/svg%3E");
  background-size: 120px 120px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-stars { color: var(--gold); font-size: 1rem; letter-spacing: 2px; }

.testimonial-card p {
  font-size: .88rem;
  color: var(--muted);
  flex: 1;
  line-height: 1.9;
}

.testimonial-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.author-name { font-weight: 700; font-size: .9rem; color: var(--navy); }
.author-info { font-size: .78rem; color: var(--muted); }

/* ===== お問い合わせ ===== */
.contact { background: var(--gray); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon { font-size: 2rem; flex-shrink: 0; margin-top: 4px; }

.contact-item h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: .95rem;
  color: var(--text);
  font-weight: 500;
}

.contact-item small {
  font-size: .78rem;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

/* フォーム */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.required {
  color: #e53935;
  margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-note {
  margin-top: 16px;
  font-size: .75rem;
  color: var(--muted);
  text-align: center;
}

/* ===== フッター ===== */
.footer {
  background: var(--navy);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer .logo-jp   { color: var(--water-lt); font-size: .62rem; letter-spacing: .14em; display: block; }
.footer .logo-main { color: var(--white); font-family: 'Noto Serif JP', serif; font-size: 1.2rem; font-weight: 700; }

.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  transition: color var(--trans);
}

.footer-nav a:hover { color: var(--gold); }

.footer-copy {
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  letter-spacing: .06em;
}

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .services-grid,
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }

  .strengths-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 99;
  }
  .nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: center; gap: 28px; }
  .nav-list a { font-size: 1.2rem; color: var(--white); }
  .hamburger { display: flex; z-index: 100; }

  /* スクロール時もモバイルメニュー内のテキスト・ハンバーガーは常に白 */
  .header.scrolled .nav-list a { color: var(--white); }
  .header.scrolled .hamburger span { background: var(--white); }

  .services-grid,
  .testimonials-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-form { padding: 28px 20px; }

  .hero-btns { flex-direction: column; }
  .btn { width: 100%; }
}
