/* ========================= 
  ベース
========================= */
:root {
  --main-blue: #007B8A;
  --sub-blue: #003B4A;
  --light-blue: #3AAFB9;
  --gold: #D7B16A;
  --bg-light: #f7f7f7;
  --bg-dark: #111820;
  --text-main: #222;
  --text-muted: #666;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: #ffffff;
  line-height: 1.7;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.section {
  padding: 80px 16px;
}
.section-bg-light {
  background: var(--bg-light);
}
.section-bg-dark {
  background: var(--bg-dark);
  color: #fff;
}
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.section-title {
  font-size: 28px;
  margin: 0 0 16px;
  text-align: center;
  letter-spacing: 0.12em;
}
.section-title--light {
  color: #fff;
}
.section-lead {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.section-lead--light {
  color: #ccc;
}
.center {
  text-align: center;
}

/* =========================
  オープニング（2.5秒）
========================= */
.opening-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #1b3545, #020509 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  animation: openingFade 2.5s ease forwards;
}
.opening-screen img {
  max-width: 220px;
  width: 40vw;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.5));
  animation: openingLogo 2.5s ease forwards;
}
@keyframes openingFade {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes openingLogo {
  0%   { opacity: 0; transform: translateY(8px) scale(0.9); }
  25%  { opacity: 1; transform: translateY(0) scale(1); }
  80%  { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-6px) scale(0.97); }
}

/* =========================
  ヘッダー & ナビ（常にハンバーガー）
========================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 14, 20, 0.9);
  backdrop-filter: blur(10px);
  z-index: 2800;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ロゴ */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-image {
  height: 40px;
  width: auto;
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.logo-main {
  font-weight: 700;
  color: var(--main-blue);
  font-size: 16px;
}
.logo-sub {
  font-size: 11px;
  color: #eee;
}

/* ハンバーガー */
.hamburger {
  display: flex;
  width: 32px;
  height: 24px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  z-index: 3001;
}
.hamburger span {
  display: block;
  width: 100%;        /* ← iPhone でも線が見えるように幅を固定 */
  height: 3px;
  border-radius: 999px;
  background: #fff;
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ナビ（オーバーレイ＋カード型） */
.nav {
  position: fixed;
  inset: 64px 0 0 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 8px;
  z-index: 2600;
}
.nav.active {
  display: flex;
}
.nav ul {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  font-size: 16px;
  border-top: 4px solid transparent;
  background:
    linear-gradient(to right, #007B8A, #D7B16A) top/100% 4px no-repeat,
    linear-gradient(135deg, #ffffff 0%, #f7fafc 50%, #ffffff 100%);
}
.nav li + li {
  border-top: 1px solid #e2e7ee;
}
.nav a {
  display: block;
  padding: 14px 18px;
  color: #233143;
  letter-spacing: 0.02em;
}
.nav a:hover {
  background: #eef1f6;
}

/* =========================
  ヒーロー
========================= */
.hero {
  min-height: 80vh;
  padding: 104px 16px 72px;
  background: radial-gradient(circle at top left, #163845, #020810 60%);
  color: #fff;
  display: flex;
  align-items: center;
}
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.hero-inner--center {
  text-align: center;
}
.hero-eyecatch {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.opening-title {
  font-size: 32px;
  line-height: 1.4;
  margin: 0 0 10px;
  color: #ffffff;
}
.opening-title span {
  color: var(--main-blue);
}
.hero-lead {
  margin: 0 0 18px;
  max-width: 640px;
  color: #dde5ec;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
  justify-content: center;
}
.hero-note {
  font-size: 12px;
  color: #9fb2c0;
}

/* =========================
  ボタン
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-lg {
  padding: 11px 24px;
  font-size: 15px;
}
.btn-icon {
  margin-right: 6px;
}
.btn.primary {
  background: var(--main-blue);
  color: #fff;
  border-color: var(--main-blue);
  box-shadow: 0 12px 24px rgba(0, 123, 138, 0.35);
}
.btn.primary:hover {
  background: var(--light-blue);
  border-color: var(--light-blue);
  box-shadow: 0 6px 16px rgba(0, 123, 138, 0.4);
}
.btn.secondary {
  background: #fff;
  color: var(--sub-blue);
  border-color: #e0e0e0;
}
.btn.secondary:hover {
  border-color: var(--main-blue);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}
.btn.outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn.outline.light {
  border-color: var(--gold);
}
.btn.outline.light:hover {
  background: rgba(215, 177, 106, 0.12);
}
.text-link {
  font-size: 13px;
  color: var(--main-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* =========================
  カード / 料金（トップ用）
========================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  border-top: 3px solid rgba(0, 123, 138, 0.15);
}
.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--sub-blue);
}
.card p {
  font-size: 14px;
  color: var(--text-muted);
}
.card-list {
  margin-top: 10px;
  padding-left: 16px;
}
.card-list li {
  position: relative;
  padding-left: 10px;
  font-size: 13px;
  color: #444;
}
.card-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 8px;
  color: var(--main-blue);
}
.card-cta {
  margin-top: 14px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.price-card {
  border-radius: 16px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.price-card h3 {
  margin: 0 0 12px;
}
.price-main {
  font-size: 22px;
  font-weight: 700;
  color: var(--main-blue);
  margin: 0 0 8px;
}
.price-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* =========================
  Flow
========================= */
.flow-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.flow-list li {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.flow-list h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--sub-blue);
}
.flow-list p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* =========================
  お問い合わせ
========================= */
.contact-form {
  max-width: 600px;
  margin: 0 auto 40px;
}
.form-row {
  margin-bottom: 16px;
}
.form-row label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #121821;
  color: #fff;
  font-size: 14px;
}
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #666;
}
.form-note {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 12px;
}
.contact-direct {
  text-align: center;
  font-size: 14px;
}
.contact-direct p {
  margin-bottom: 12px;
}

/* =========================
  フッター
========================= */
.site-footer {
  background: #050809;
  color: #aaa;
  padding: 32px 16px;
  font-size: 12px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
.footer-logo {
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}
.footer-copy {
  margin: 0;
  font-size: 11px;
  color: #666;
}

/* =========================
  右下固定電話ボタン
========================= */
.floating-tel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--main-blue);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}
.floating-tel .icon {
  font-size: 18px;
  line-height: 1;
}

/* =========================
  アンカーずれ防止
========================= */
#top,
#service,
#price,
#flow,
#area,
#contact,
#plan,
#contents {
  scroll-margin-top: 84px;
}

/* =========================
  レスポンシブ
========================= */
@media (max-width: 960px) {
  .card-grid,
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 92px;
    padding-bottom: 48px;
    min-height: auto;
  }
  .opening-title {
    font-size: 24px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .card-grid,
  .price-grid {
    display: block;
  }
  .card,
  .price-card {
    margin-bottom: 16px;
  }

  .section {
    padding: 64px 16px;
  }

  .floating-tel {
    padding: 9px 12px;
    font-size: 12px;
  }
}

/* ===== CONTACT + 結果ページ用 追記ここから ===== */

.contact-layout {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-form {
  flex: 1 1 320px;
}

.contact-side {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.req {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.8rem;
  color: #ffb3b3;
  border: 1px solid #ffb3b3;
  border-radius: 4px;
  padding: 1px 4px;
}

.contact-qr {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 14px 16px;
}

.contact-qr p {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.qr-box {
  text-align: center;
  margin-bottom: 6px;
}

.qr-box img {
  max-width: 180px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}

.qr-note {
  font-size: 0.8rem;
  color: #ccc;
}

/* contact.php の完了／エラー画面用 */

.contact-result-body {
  background: #0f172a;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.contact-result {
  max-width: 600px;
  margin: 80px auto;
  padding: 24px 20px;
  background: #020617;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.7);
  text-align: center;
}

.contact-result h1 {
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.contact-result ul {
  text-align: left;
  margin: 0 0 16px;
  padding-left: 1.2em;
}

.contact-result a {
  color: #60a5fa;
  text-decoration: underline;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .contact-layout {
    flex-direction: column;
  }
}

/* ===== CONTACT + 結果ページ用 追記ここまで ===== */


/* =========================
  料金表ページ（price.html 専用）
========================= */

.price-body {
  background: #eef2f7;
  color: var(--text-main);
}

/* 料金ページ上部ヘッダー帯 */
.price-header {
  padding: 96px 16px 40px;
  background: radial-gradient(circle at top left, #163845, #020810 70%);
  color: #fff;
}
.price-header-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.price-logo {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--gold);
}
.price-header-inner h1 {
  margin: 0 0 10px;
  font-size: 26px;
}
.price-header-sub {
  margin: 0 0 18px;
  font-size: 14px;
  color: #d1e1ee;
}

/* 料金ページ内ナビ（小さなリンク） */
.price-header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.price-header-nav a {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  background: rgba(0,0,0,0.1);
}
.price-header-nav a:hover {
  background: rgba(255,255,255,0.12);
}

/* メインコンテンツ */
.price-main {
  max-width: 1080px;
  margin: 32px auto 80px;
  padding: 0 16px;
}

/* セクション見出し */
.price-section {
  margin-bottom: 40px;
}
.price-section h2 {
  font-size: 20px;
  margin: 0 0 12px;
  border-left: 4px solid var(--main-blue);
  padding-left: 10px;
}
.price-section p {
  font-size: 14px;
}

/* price-card：トップでも使ってるが、料金ページでは左寄せに */
.price-body .price-card {
  text-align: left;
  line-height: 1.8;
}

/* テーブル風レイアウト */
.price-table {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.price-table .item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #edf0f4;
  font-size: 14px;
}
.price-table .item:last-child {
  border-bottom: none;
}
.price-table .item span {
  color: var(--text-main);
}
.price-table .item strong {
  color: var(--main-blue);
  white-space: nowrap;
}

/* 注意書きなど */
.price-note {
  margin-top: 6px;
}

/* 最後の問い合わせブロック */
.price-section-last {
  text-align: center;
}
.price-contact-text {
  font-size: 14px;
  margin-bottom: 18px;
}
.price-contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

/* 戻るリンク（旧 .price-back）を軽くボタン風に */
.price-back {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
}

/* 料金ページのレスポンシブ */
@media (max-width: 768px) {
  .price-header {
    padding-top: 88px;
    padding-bottom: 32px;
  }
  .price-header-inner h1 {
    font-size: 22px;
  }
  .price-table .item {
    flex-direction: column;
    align-items: flex-start;
  }
  .price-table .item strong {
    font-size: 13px;
  }
  .price-main {
    margin-bottom: 64px;
  }
}