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

:root {
  --navy:   #1a365d;
  --blue:   #2b6cb0;
  --sky:    #4299e1;
  --light:  #ebf8ff;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --radius: .5rem;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  font-size: 1rem;
}

a { color: var(--blue); text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── レイアウトユーティリティ ─────────────────────────────── */
.container { max-width: 1100px; margin-inline: auto; padding-inline: 1.5rem; }
.section    { padding-block: 5rem; }
.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--gray-500);
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ── ナビゲーション ───────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,54,93,.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}
.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav__links a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--white); }
.nav__cta {
  background: var(--sky);
  color: var(--white) !important;
  padding: .5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
  transition: background var(--transition);
}
.nav__cta:hover { background: var(--blue); }

/* ── ヒーロー ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2c5282 60%, #2b6cb0 100%);
  color: var(--white);
  padding-block: 7rem 6rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__inner {
  position: relative;
  max-width: 700px;
}
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 9999px;
  padding: .35rem 1rem;
  font-size: .8rem;
  margin-bottom: 1.5rem;
  letter-spacing: .08em;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}
.hero__title em {
  font-style: normal;
  color: #90cdf4;
}
.hero__desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--sky);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(66,153,225,.5);
}
.btn--primary:hover { background: #3182ce; box-shadow: 0 6px 20px rgba(66,153,225,.6); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.hero__scroll {
  margin-top: 4rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  letter-spacing: .08em;
}
.hero__scroll::before {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.3);
}

/* ── サービス ─────────────────────────────────────────────── */
.services { background: var(--gray-50); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--light);
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.service-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
}
.service-card__desc {
  color: var(--gray-500);
  font-size: .9rem;
}
.service-card__list {
  margin-top: 1rem;
  padding-left: 1.2rem;
  color: var(--gray-700);
  font-size: .875rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

/* ── FAQ ───────────────────────────────────────────────────── */
.faq__list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.faq-item__q {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: .975rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background var(--transition);
}
.faq-item__q:hover { background: var(--gray-50); }
.faq-item__q::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-item__q::after { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding-inline: 1.5rem;
  color: var(--gray-700);
  font-size: .9rem;
  line-height: 1.8;
}
.faq-item.open .faq-item__a { max-height: 400px; padding-block: .75rem 1.25rem; }

/* ── お問い合わせ ──────────────────────────────────────────── */
.contact { background: linear-gradient(160deg, var(--navy) 0%, #2c5282 100%); color: var(--white); }
.contact .section-tag { color: #90cdf4; }
.contact .section-title { color: var(--white); }
.contact .section-desc { color: rgba(255,255,255,.7); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact__info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
.contact__info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact__info-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact__info-text { font-size: .875rem; color: rgba(255,255,255,.7); }
.contact__info-text strong { display: block; color: var(--white); margin-bottom: .1rem; }

/* フォーム */
.form {
  background: var(--white);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.form__row { margin-bottom: 1.25rem; }
.form__label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: .35rem;
}
.form__label span { color: #e53e3e; margin-left: .2rem; font-size: .75rem; }
.form__input,
.form__textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form__input:focus,
.form__textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(66,153,225,.15);
}
.form__input.error,
.form__textarea.error { border-color: #e53e3e; }
.form__textarea { resize: vertical; min-height: 140px; }
.form__error {
  display: none;
  font-size: .8rem;
  color: #e53e3e;
  margin-top: .3rem;
}
.form__error.visible { display: block; }
.form__submit {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
  margin-top: .5rem;
}
.form__submit:hover:not(:disabled) {
  background: var(--blue);
  transform: translateY(-1px);
}
.form__submit:disabled { opacity: .6; cursor: not-allowed; }

/* アラート */
.alert {
  display: none;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: .9rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.alert.visible { display: flex; gap: .75rem; align-items: flex-start; }
.alert--success { background: #f0fff4; color: #276749; border: 1px solid #9ae6b4; }
.alert--error   { background: #fff5f5; color: #c53030; border: 1px solid #feb2b2; }

/* ── フッター ─────────────────────────────────────────────── */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.5);
  padding-block: 2.5rem;
  text-align: center;
  font-size: .85rem;
}
.footer strong { color: rgba(255,255,255,.8); }

/* ── レスポンシブ ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .hero { padding-block: 5rem 4rem; }
  .contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form { padding: 1.75rem; }
}
