/* ===== リセット・基本設定 ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #1E90FF;
  --blue-dark: #0070E0;
  --blue-light: #E0F0FF;
  --white: #FFFFFF;
  --gray-50: #F8FAFB;
  --gray-100: #F0F4F8;
  --gray-400: #94A3B8;
  --gray-600: #64748B;
  --gray-800: #1E293B;
  --shadow: 0 4px 24px rgba(30, 144, 255, 0.12);
  --shadow-hover: 0 8px 32px rgba(30, 144, 255, 0.22);
  --radius: 12px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.sp-only {
  display: none;
}

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #38B2FF 0%, #1E90FF 50%, #0070E0 100%);
  color: var(--white);
  padding: 14px 40px;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(30, 144, 255, 0.4);
  letter-spacing: 0.04em;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #50BFFF 0%, #2E9CFF 50%, #0080F0 100%);
  box-shadow: 0 12px 36px rgba(30, 144, 255, 0.45);
  transform: translateY(-6px) scale(1.04);
}

.btn-large {
  padding: 18px 52px;
  font-size: 1.1rem;
}

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 144, 255, 0.08);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.02em;
}

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

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
  position: relative;
}

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

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

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

/* ハンバーガーメニュー */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== ヒーロー ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(165deg, rgba(255,255,255,0.95) 0%, rgba(224,240,255,0.92) 50%, rgba(200,230,255,0.88) 100%),
    url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=1400&q=80') center/cover no-repeat;
  padding: 120px 24px 80px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--gray-800);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(255,255,255,0.6);
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--gray-600);
  margin-bottom: 40px;
  line-height: 1.9;
}

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

.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  color: var(--gray-800);
  margin-bottom: 56px;
}

/* ===== コンセプト ===== */
.concept {
  background: var(--gray-50);
}

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

.concept-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.concept-icon {
  font-size: 1.6rem;
  color: var(--blue);
  margin-bottom: 16px;
}

.concept-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--gray-800);
}

.concept-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
}

/* ===== 業務内容 ===== */
.services {
  background: var(--white);
}

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

.service-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  overflow: hidden;
  border-left: 4px solid var(--blue);
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.05);
}

.service-body {
  padding: 28px 28px 32px;
}

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

.service-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  opacity: 0.35;
  margin-bottom: 8px;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--gray-800);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
}

/* ===== 会社概要 ===== */
.company {
  background: var(--gray-50);
}

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

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

.company-table th,
.company-table td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.95rem;
  line-height: 1.8;
}

.company-table th {
  width: 120px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}

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

.company-map {
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ===== お問い合わせ ===== */
.contact {
  background: linear-gradient(165deg, var(--blue-light) 0%, rgba(30, 144, 255, 0.12) 100%);
}

.contact-inner {
  text-align: center;
}

.contact-lead {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 40px;
  line-height: 2;
}

/* ===== フッター ===== */
.footer {
  background: var(--gray-800);
  color: var(--gray-400);
  padding: 40px 0;
}

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

.footer-logo {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.footer-copy {
  font-size: 0.8rem;
}

/* ===== モーダル ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 440px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--gray-400);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--gray-800);
}

.modal-step {
  display: none;
}

.modal-step.active {
  display: block;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-800);
  text-align: center;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 28px;
}

/* 予約方法ボタン */
.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn-outline-modal,
.btn-primary-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 16px;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  text-align: center;
}

.btn-outline-modal {
  background: var(--gray-50);
  color: var(--gray-800);
  border: 2px solid var(--gray-100);
}

.btn-outline-modal:hover {
  background: var(--blue-light);
  border-color: var(--blue);
  color: var(--blue-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(30, 144, 255, 0.15);
}

.btn-primary-modal {
  background: linear-gradient(135deg, #38B2FF 0%, #1E90FF 50%, #0070E0 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(30, 144, 255, 0.35);
}

.btn-primary-modal:hover {
  background: linear-gradient(135deg, #50BFFF 0%, #2E9CFF 50%, #0080F0 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(30, 144, 255, 0.4);
}

.modal-btn-icon {
  font-size: 1.5rem;
  margin-bottom: 2px;
}

.modal-btn-sub {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.75;
}

/* カレンダー */
.calendar {
  max-width: 340px;
  margin: 0 auto;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
}

.calendar-nav {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--blue);
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.calendar-nav:hover {
  background: var(--blue-light);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--gray-800);
  transition: all 0.2s ease;
}

.calendar-day:not(.empty):not(.disabled):hover {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.35);
}

.calendar-day.empty {
  cursor: default;
}

.calendar-day.disabled {
  color: var(--gray-400);
  opacity: 0.4;
  cursor: not-allowed;
}

/* 時間選択 */
.time-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.time-slot {
  padding: 14px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  transition: all 0.3s ease;
}

.time-slot:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 144, 255, 0.3);
}

.modal-back {
  background: none;
  border: none;
  color: var(--gray-600);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s;
}

.modal-back:hover {
  color: var(--blue);
}

/* 完了 */
.done-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #38B2FF 0%, #0070E0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}

/* フォーム */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 16px;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.required {
  font-size: 0.75rem;
  color: #E04040;
  background: #FEE;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.optional {
  font-size: 0.75rem;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-100);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.12);
}

.form-group input::placeholder {
  color: var(--gray-400);
}

.btn-primary-modal:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary-modal:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }

  /* ヘッダー */
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }

  .nav.open {
    max-height: 300px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(30, 144, 255, 0.1);
  }

  .nav a {
    padding: 14px 0;
    font-size: 1rem;
  }

  /* ヒーロー */
  .hero {
    min-height: 85vh;
    padding: 100px 20px 60px;
  }

  .hero-content h1 {
    font-size: 1.9rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  /* セクション */
  .section {
    padding: 72px 0;
  }

  .section-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
  }

  /* コンセプト */
  .concept-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .concept-card {
    padding: 32px 24px;
  }

  /* 業務内容 */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* お問い合わせ */
  .btn-large {
    padding: 16px 36px;
    font-size: 1rem;
  }

  /* 会社概要 */
  .company-grid {
    grid-template-columns: 1fr;
  }

  .company-map {
    min-height: 260px;
  }

  /* モーダル */
  .modal {
    padding: 32px 24px;
    width: 94%;
  }

  /* フッター */
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
