@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* ===== CSS Variables ===== */
:root {
  --color-navy: #1A2B4A;
  --color-navy-light: #243761;
  --color-blue: #2563EB;
  --color-blue-light: #3B82F6;
  --color-white: #FFFFFF;
  --color-bg: #F8F9FB;
  --color-text: #1F2937;
  --color-text-sub: #6B7280;
  --color-border: #E5E7EB;
  --font-jp: 'Noto Sans JP', sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-jp);
  color: var(--color-text);
  line-height: 1.8;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Container ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

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

.header-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo img {
  height: 80px;
  width: auto;
}

.header-logo span {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy);
  white-space: nowrap;
}

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

.nav-list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.3s;
  position: relative;
}

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

.nav-list a:hover {
  color: var(--color-blue);
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-list a.active {
  color: var(--color-blue);
}

.nav-list a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  margin-top: var(--header-height);
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: var(--color-white);
  padding: 80px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.hero p {
  font-size: 16px;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Page Hero (subpages) ===== */
.page-hero {
  margin-top: var(--header-height);
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: var(--color-white);
  padding: 48px 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.page-hero p {
  font-size: 14px;
  opacity: 0.7;
  margin-top: 8px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: var(--color-bg);
  padding: 12px 24px;
  font-size: 13px;
  color: var(--color-text-sub);
}

.breadcrumb .container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.breadcrumb a {
  color: var(--color-blue);
  transition: opacity 0.3s;
}

.breadcrumb a:hover {
  opacity: 0.7;
}

.breadcrumb span {
  color: var(--color-text-sub);
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section--bg {
  background: var(--color-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.section-title p {
  font-size: 14px;
  color: var(--color-text-sub);
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.card .icon {
  font-size: 40px;
  color: var(--color-blue);
  margin-bottom: 16px;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.card p {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.8;
}

/* ===== Company Info Table ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  font-size: 15px;
  vertical-align: top;
}

.info-table th {
  width: 200px;
  background: var(--color-bg);
  font-weight: 500;
  color: var(--color-navy);
  white-space: nowrap;
}

.info-table td {
  color: var(--color-text);
}

/* ===== Philosophy ===== */
.philosophy {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.philosophy h3 {
  font-size: 22px;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.philosophy p {
  font-size: 15px;
  color: var(--color-text-sub);
  line-height: 2;
}

/* ===== Client List ===== */
.client-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.client-list span {
  background: var(--color-bg);
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* ===== Service Links ===== */
.service-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.service-item .icon {
  font-size: 36px;
  color: var(--color-blue);
  flex-shrink: 0;
}

.service-item h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.service-item p {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.8;
  margin-bottom: 12px;
}

.service-item .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-blue);
  font-weight: 500;
  transition: opacity 0.3s;
}

.service-item .btn-link:hover {
  opacity: 0.7;
}

/* ===== Access / Map ===== */
.map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.map-wrapper iframe {
  width: 100%;
  height: 400px;
  display: block;
}

.access-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.access-info-block h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.access-info-block p {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.8;
}

/* ===== Form ===== */
.form-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

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

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

.form-group label .required {
  background: #EF4444;
  color: var(--color-white);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  font-weight: 400;
}

.form-group label .optional {
  background: var(--color-text-sub);
  color: var(--color-white);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  font-weight: 400;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 15px;
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-submit {
  text-align: center;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 48px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-jp);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.btn--primary {
  background: var(--color-blue);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-blue-light);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--color-blue);
  border: 2px solid var(--color-blue);
}

.btn--outline:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

/* ===== Complete Message ===== */
.complete-message {
  text-align: center;
  padding: 60px 24px;
}

.complete-message .icon {
  font-size: 64px;
  color: #10B981;
  margin-bottom: 24px;
}

.complete-message h2 {
  font-size: 24px;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.complete-message p {
  font-size: 15px;
  color: var(--color-text-sub);
  margin-bottom: 32px;
  line-height: 1.8;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-info p {
  font-size: 13px;
  opacity: 0.7;
  line-height: 1.8;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--color-white);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-copy {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px;
  opacity: 0.5;
}

/* ===== CTA Section ===== */
.cta {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: var(--color-white);
  text-align: center;
  padding: 64px 24px;
}

.cta h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta p {
  font-size: 15px;
  opacity: 0.8;
  margin-bottom: 32px;
}

.cta .btn--primary {
  background: var(--color-white);
  color: var(--color-navy);
}

.cta .btn--primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    padding: 100px 32px 32px;
    transition: right 0.3s;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 24px;
  }

  .nav-list a {
    font-size: 16px;
  }

  .hero {
    padding: 56px 24px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .page-hero h1 {
    font-size: 22px;
  }

  .section {
    padding: 56px 0;
  }

  .section-title h2 {
    font-size: 22px;
  }

  .info-table th {
    width: 120px;
    padding: 12px;
    font-size: 13px;
  }

  .info-table td {
    padding: 12px;
    font-size: 13px;
  }

  .service-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .access-info {
    grid-template-columns: 1fr;
  }

  .map-wrapper iframe {
    height: 280px;
  }

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

  .footer-nav {
    flex-wrap: wrap;
    gap: 16px;
  }

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

/* ===== Overlay ===== */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
}

.nav-overlay.active {
  display: block;
}
