/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:   #1a2e4a;
  --teal:   #2a7a6f;
  --teal-light: #3a9e90;
  --coral:  #c0604a;
  --sand:   #f5f0e8;
  --cream:  #fdfaf5;
  --gray:   #666;
  --text:   #1a1a1a;
  --border: #e0dbd0;
  --font-serif: 'Noto Serif JP', serif;
  --font-sans:  'Noto Sans JP', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.8;
  font-size: 16px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Header ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

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

#header.scrolled {
  background: rgba(26, 46, 74, 0.97);
  padding: 14px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

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

.logo-main {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.05em;
}

.logo-sub {
  font-size: 9px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.2em;
  font-weight: 300;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
}

nav ul li a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

nav ul li a:hover {
  color: #fff;
}

/* ===== Hero ===== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Ocean-inspired gradient background */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(42, 122, 111, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(192, 96, 74, 0.15) 0%, transparent 50%),
    linear-gradient(160deg, #0d1e32 0%, #1a2e4a 50%, #1e3a4a 100%);
}

/* Decorative lines */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      rgba(255,255,255,0.02) 79px,
      rgba(255,255,255,0.02) 80px
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.hero-lead {
  font-family: var(--font-serif);
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 300;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
  margin-bottom: 48px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  padding: 14px 44px;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.15em;
  transition: background 0.3s, border-color 0.3s;
  font-family: var(--font-sans);
}

.btn-primary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}

/* ===== Section Common ===== */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--teal);
  margin-bottom: 12px;
  font-weight: 500;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 0.05em;
}

/* ===== About ===== */
#about {
  background: var(--cream);
}

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

.about-text p {
  color: var(--gray);
  font-size: 15px;
  line-height: 2;
  margin-bottom: 20px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

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

.value-item {
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border: 1px solid var(--border);
}

.value-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.value-item h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.value-item p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.8;
}

/* ===== Services ===== */
#services {
  background: var(--sand);
}

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

.service-card {
  background: #fff;
  padding: 48px 40px;
  transition: background 0.3s;
}

.service-card:hover {
  background: var(--navy);
}

.service-card:hover .service-number,
.service-card:hover h3,
.service-card:hover p {
  color: rgba(255,255,255,0.9);
}

.service-number {
  font-size: 40px;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  margin-bottom: 20px;
  font-family: var(--font-sans);
  transition: color 0.3s;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 14px;
  transition: color 0.3s;
}

.service-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.9;
  transition: color 0.3s;
}

/* ===== Company ===== */
#company {
  background: var(--cream);
}

.company-table-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}

.company-table th {
  width: 160px;
  color: var(--navy);
  font-weight: 500;
  font-family: var(--font-serif);
  white-space: nowrap;
}

.company-table td {
  color: var(--gray);
}

.company-table tr:first-child th,
.company-table tr:first-child td {
  border-top: 1px solid var(--border);
}

/* ===== Contact ===== */
#contact {
  background: var(--sand);
}

.contact-lead {
  text-align: center;
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 56px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  max-width: 680px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.required {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 400;
  letter-spacing: 0;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
}

.contact-form .btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--navy);
  border: none;
  padding: 16px;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 0.15em;
  color: #fff;
  transition: background 0.3s;
}

.contact-form .btn-primary:hover {
  background: var(--teal);
}

/* ===== Footer ===== */
#footer {
  background: var(--navy);
  padding: 60px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}

#footer .logo-main {
  font-size: 20px;
}

.footer-address {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.9;
  text-align: right;
}

.footer-copy {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

/* ===== Fade-in animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  nav { display: none; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-address {
    text-align: left;
  }
}

.form-status {
  margin-top: 1em;
  font-size: 0.9em;
}
.form-status--success { color: #2a7a6f; }
.form-status--error   { color: #c0392b; }
