:root {
  --navy: #0b1728;
  --navy-2: #101f34;
  --blue: #1961d4;
  --gold: #ca8a10;
  --paper: #f8f6f1;
  --text: #172033;
  --muted: #657083;
  --border: #e5e7eb;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: "Noto Serif JP", serif; line-height: 1.28; margin: 0; }
p { margin: 0; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 110px 0; }
.section-dark { color: var(--white); background: var(--navy); }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--blue);
  font-family: "Playfair Display", serif;
  font-style: italic;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 14px;
}
.section-label::before {
  content: "";
  width: 46px;
  height: 1px;
  background: var(--gold);
}
.section-label.light { color: rgba(255,255,255,.72); }
.section h2 {
  font-size: clamp(30px, 4vw, 52px);
  margin-bottom: 28px;
}
.section-lead {
  max-width: 760px;
  color: var(--muted);
  margin-bottom: 46px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(11, 23, 40, .72);
  backdrop-filter: blur(10px);
  transition: background .25s, box-shadow .25s;
}
.site-header.scrolled {
  background: rgba(11, 23, 40, .96);
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
}
.header-inner {
  height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand { display: flex; flex-direction: column; color: var(--white); }
.brand span { font-family: "Noto Serif JP", serif; font-size: 23px; font-weight: 700; letter-spacing: .05em; line-height: 1; }
.brand small { font-size: 10px; color: rgba(255,255,255,.65); letter-spacing: .22em; margin-top: 6px; }
.nav { display: flex; align-items: center; gap: 26px; color: rgba(255,255,255,.82); font-size: 14px; font-weight: 500; }
.nav a { transition: color .2s; }
.nav a:hover { color: var(--white); }
.nav-contact {
  padding: 10px 18px;
  background: var(--blue);
  color: var(--white) !important;
  border-radius: 2px;
}
.menu-button { display: none; background: transparent; border: 0; width: 40px; height: 40px; padding: 9px; }
.menu-button span { display: block; height: 2px; margin: 5px 0; background: var(--white); }

.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 110px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,17,31,.96), rgba(14,30,52,.82), rgba(16,31,52,.58)),
    url("images/about_bg_db87c4da.png") center / cover no-repeat;
}
.hero-inner { position: relative; z-index: 1; max-width: 1180px; }
.hero h1 {
  max-width: 800px;
  font-size: clamp(42px, 7vw, 84px);
  letter-spacing: -.04em;
  margin-bottom: 28px;
}
.hero h1 span { color: #83a9ff; }
.hero-lead {
  max-width: 670px;
  color: rgba(255,255,255,.78);
  font-size: clamp(16px, 2vw, 19px);
  margin-bottom: 24px;
}
.hero-note {
  max-width: 560px;
  color: rgba(255,255,255,.62);
  font-size: 14px;
  border-left: 2px solid var(--gold);
  padding-left: 18px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 28px;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: .08em;
  border: 1px solid transparent;
}
.button.primary { background: var(--blue); color: var(--white); }
.button.primary:hover { filter: brightness(1.08); }
.button.outline { border-color: rgba(255,255,255,.45); color: var(--white); }

.two-column {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: start;
}
.text-block p + p { margin-top: 20px; }
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 34px;
}
.philosophy-grid div,
.target-list div {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 22px;
}
.philosophy-grid strong,
.target-list strong {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  margin-bottom: 8px;
}
.philosophy-grid span,
.target-list span { color: var(--muted); font-size: 14px; }

.services { background: var(--white); }
.service-list { display: grid; gap: 20px; }
.service-card {
  display: grid;
  grid-template-columns: 76px 230px 1fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--border);
  background: linear-gradient(90deg, #fff, #f9fbff);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(14,30,52,.10);
  border-color: rgba(25,97,212,.28);
}
.service-number {
  color: rgba(25,97,212,.25);
  font-family: "Playfair Display", serif;
  font-size: 48px;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
}
.service-subtitle {
  color: var(--blue);
  font-family: "Playfair Display", serif;
  font-style: italic;
  margin-bottom: 5px;
}
.service-image {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  background: #eef2f7;
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.service-card:hover .service-image img { transform: scale(1.05); }
.service-card h3 { font-size: 26px; margin-bottom: 12px; }
.service-card p:last-child { color: var(--muted); }

.strengths { background: #f3f1ea; }
.target-list { display: grid; gap: 16px; }
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.check-list li {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 20px 22px 20px 54px;
  position: relative;
  font-weight: 600;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 22px;
  color: var(--gold);
  font-weight: 700;
}

.message { background: linear-gradient(135deg, #08111f, #142742); }
.message-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
}
.message h2 { color: var(--white); }
.message p { color: rgba(255,255,255,.76); font-size: 17px; }
.message p + p { margin-top: 20px; }
.message-image {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
}
.message-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.company { background: var(--white); }
.company-grid {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 48px;
  align-items: stretch;
}
.profile-table { margin: 0; border-top: 1px solid var(--border); }
.profile-table div {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--border);
}
.profile-table dt {
  padding: 18px;
  color: var(--muted);
  background: #fafafa;
  font-weight: 700;
}
.profile-table dd {
  padding: 18px;
  margin: 0;
}
.profile-table a { color: var(--blue); }
.company-card {
  background: var(--navy);
  color: var(--white);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.company-card h3 { font-size: 27px; margin-bottom: 18px; }
.company-card p { color: rgba(255,255,255,.68); margin-bottom: 26px; }
.company-card a { color: rgba(255,255,255,.72); font-size: 14px; }

.contact { background: #f3f1ea; }
.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.contact-info {
  padding: 38px;
  position: sticky;
  top: 100px;
}
.contact-info h2 { color: var(--white); }
.contact-info p { color: rgba(255,255,255,.74); }
.response-time {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 14px;
}
.contact-form {
  background: var(--white);
  padding: 38px;
  border: 1px solid var(--border);
}
.contact-form h3 { font-size: 25px; margin-bottom: 26px; }
.contact-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 18px;
}
.contact-form label span { color: #dc2626; font-size: 12px; margin-left: 6px; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font: inherit;
  font-weight: 400;
  background: var(--white);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--blue);
}
.privacy {
  display: flex !important;
  gap: 10px;
  align-items: center;
  font-weight: 500 !important;
}
.privacy input { width: auto; margin: 0; }
.submit { width: 100%; border: 0; cursor: pointer; }
.form-note { color: var(--muted); font-size: 12px; margin-top: 14px; }

.footer { padding: 44px 0; background: #08111f; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 30px;
}
.footer strong {
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
}
.footer p, .footer a { color: rgba(255,255,255,.68); font-size: 14px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.copyright { margin-top: 12px; }

.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .menu-button { display: block; }
  .nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11,23,40,.98);
    padding: 10px 20px 22px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-contact { margin-top: 12px; text-align: center; border-bottom: 0 !important; }
  .two-column,
  .company-grid,
  .contact-grid,
  .footer-grid,
  .message-inner { grid-template-columns: 1fr; }
  .contact-info { position: static; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 76px 0; }
  .hero { padding-top: 120px; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .service-card { grid-template-columns: 1fr; padding: 26px; }
  .service-image { max-height: 230px; }
  .profile-table div { grid-template-columns: 1fr; }
  .profile-table dt, .profile-table dd { padding: 13px 16px; }
  .contact-form, .contact-info, .company-card { padding: 26px; }
}


/* ===== プライバシーポリシーボタン ===== */
.privacy-policy-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.btn-privacy-modal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 8px 18px;
  background: transparent;
  border: 1.5px solid #b8973a;
  border-radius: 4px;
  color: #b8973a;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-privacy-modal::before {
  content: '📄';
  font-size: 0.95em;
}
.btn-privacy-modal:hover {
  background: #b8973a;
  color: #fff;
}

/* ===== モーダル ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.is-open {
  display: flex;
}
.modal-container {
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 680px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.modal-header h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #888;
  padding: 0 4px;
  transition: color .2s;
}
.modal-close:hover { color: #1a1a2e; }
.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.85;
  color: #444;
}
.modal-body h1 { display: none; }
.modal-body .updated { font-size: 0.8rem; color: #999; margin-bottom: 20px; }
.modal-body h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 24px 0 8px;
  padding-left: 10px;
  border-left: 3px solid #b8973a;
}
.modal-body ul { padding-left: 1.4em; }
.modal-body .privacy-back { display: none; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* ===== 送信完了トースト ===== */
.toast-popup {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a2e;
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s, transform .35s;
  z-index: 10000;
  white-space: nowrap;
}
.toast-popup.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #b8973a;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: bold;
}