:root {
  --sky: #4bb7e6;
  --sky-soft: #e7f7ff;

  /* 見出し用の「ほぼ黒ネイビー」 */
  --deep: #111827;   /* かなり黒に近い濃紺 */

  /* 本文の標準文字色（事実上“黒”に見える） */
  --text: #111111;   /* #000より少しだけ柔らかい黒 */

  /* サブテキスト用：これもかなり黒寄りのグレーに */
  --muted: #4b5563;  /* 以前よりだいぶ濃いグレー */

  --bg: #f6fbff;
  --card: #ffffff;
  --shadow: 0 16px 40px rgba(15, 47, 74, 0.08);
  --radius: 14px;
  --header-height: 76px;
  --header-offset: var(--header-height);
  --top-area-min: clamp(120px, 20vh, 200px);
}



* {
  box-sizing: border-box;
}



body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "游ゴシック体", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

#site-header {
  height: var(--header-height);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(79, 183, 230, 0.1);
  z-index: 999;
  display: flex;
  align-items: center;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0;
  height: 100%;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
  color: var(--deep);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--deep);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  background: #eaf7fd;
  color: #0f2f4a;
  transform: translateY(-1px);
}

.nav-link.active {
  background: var(--sky);
  color: #fff;
  box-shadow: 0 10px 20px rgba(75, 183, 230, 0.25);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(79, 183, 230, 0.35);
  background: rgba(79, 183, 230, 0.12);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--deep);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

main {
  min-height: calc(100vh - var(--header-height) - 40px);
  flex: 1 0 auto;
  padding-top: var(--header-offset);
}

.hero {
  position: relative;
  padding: calc(120px + var(--header-height)) 0 90px;
  margin-top: calc(-1 * var(--header-height));
  overflow: hidden;
  background: linear-gradient(135deg, #e9f7ff 0%, #fdfdff 40%, #e5f3fb 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  background: radial-gradient(circle at 30% 40%, rgba(75, 183, 230, 0.18), transparent 50%);
  width: 60%;
  height: 60%;
  top: -10%;
  left: -5%;
  filter: blur(4px);
  z-index: 0;
}

.hero::after {
  background: radial-gradient(circle at 80% 60%, rgba(15, 47, 74, 0.12), transparent 50%);
  width: 50%;
  height: 50%;
  bottom: -5%;
  right: -10%;
  left: auto;
  top: auto;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  z-index: 1;
  min-height: var(--top-area-min);
}

.hero-text h1 {
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  margin: 12px 0 14px;
  color: var(--deep);
  line-height: 1.3;
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 10px;
  background: rgba(75, 183, 230, 0.14);
  color: var(--deep);
  font-weight: 700;
  letter-spacing: 0.4px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--sky);
  color: #fff;
  box-shadow: 0 12px 25px rgba(75, 183, 230, 0.35);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(75, 183, 230, 0.4);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(75, 183, 230, 0.35);
  color: var(--deep);
}

.btn.ghost:hover {
  transform: translateY(-2px);
  background: #fff;
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.panel-card {
  background: var(--card);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(75, 183, 230, 0.12);
}

.panel-label {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.4px;
  margin: 0 0 6px;
}

.panel-card h3 {
  margin: 6px 0 12px;
  color: var(--deep);
}

.panel-desc {
  margin: 0 0 14px;
  color: var(--muted);
}

.panel-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.panel-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--sky-soft);
  color: var(--deep);
  font-weight: 700;
  font-size: 0.85rem;
}

.section {
  padding: 86px 0;
}

.contact-page .section {
  padding: 110px 0;
}

.section.soft {
  background: #f0f8ff;
}

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section h2 {
  margin: 10px 0 12px;
  color: var(--deep);
}

.section-lead {
  margin: 0 auto;
  max-width: 760px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 22px;
}

.card-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid rgba(75, 183, 230, 0.14);
  box-shadow: 0 10px 30px rgba(15, 47, 74, 0.08);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--deep);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card.highlight {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.card-kicker {
  font-weight: 700;
  color: var(--deep);
  margin: 0 0 6px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--deep);
  font-weight: 700;
}

.text-link:hover {
  color: var(--sky);
}

.page-hero {
  padding: calc(100px + var(--header-height)) 0 60px;
  margin-top: calc(-1 * var(--header-height));
  background: linear-gradient(135deg, #e7f7ff 0%, #ffffff 60%);
  border-bottom: 1px solid rgba(75, 183, 230, 0.12);
}

.page-hero h1 {
  margin: 10px 0 12px;
  color: var(--deep);
}

.page-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: var(--top-area-min);
}

.page-hero .section-lead {
  margin: 0;
}

.two-col {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.info-card {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(75, 183, 230, 0.12);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.info-table th,
.info-table td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(15, 47, 74, 0.08);
}

.info-table th {
  width: 32%;
  color: var(--deep);
  font-weight: 700;
}

.info-table ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.service-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(75, 183, 230, 0.14);
  box-shadow: 0 12px 32px rgba(15, 47, 74, 0.08);
}

.service-card h3 {
  margin-top: 6px;
  margin-bottom: 12px;
  color: var(--deep);
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.contact-form {
  background: var(--card);
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(75, 183, 230, 0.12);
  overflow: visible;
  min-height: unset;
}

.wpcf7,
.wpcf7 form,
.wpcf7-form,
.wpcf7-form p,
.wpcf7-form-control-wrap {
  overflow: visible !important;
  min-height: unset !important;
}

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

.form-group label {
  display: block;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  background: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: border 0.15s ease, box-shadow 0.15s ease;
  resize: vertical;
}

/* Contact Form 7 を使う場合もスクロールバーを出さずに高さを確保する */
.wpcf7-form textarea,
.contact-form textarea {
  min-height: unset;
  overflow: hidden;
}

.wpcf7-form,
.wpcf7-form p {
  overflow: visible;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(75, 183, 230, 0.15);
}

.required,
.optional {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  vertical-align: middle;
}


.required {
  background: rgba(75, 183, 230, 0.14);
  color: var(--deep);
  font-weight: 700;
}



.optional {
  background: rgba(15, 47, 74, 0.08);
  color: var(--muted);
}

.form-actions {
  text-align: right;
  margin-top: 10px;
}

.contact-extra {
  margin-top: 18px;
  color: var(--muted);
}

.contact-extra strong {
  color: var(--deep);
}

.shortcode-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  border-top: 1px solid rgba(75, 183, 230, 0.12);
  padding: 28px 0;
  background: #fff;
}

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

.footer-logo {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--deep);
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.footer-nav a {
  color: var(--deep);
  font-weight: 600;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    justify-content: flex-start;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 66px;
    right: 4%;
    background: #fff;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 47, 74, 0.12);
    flex-direction: column;
    align-items: stretch;
    width: min(320px, 92%);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    text-align: center;
  }

  .page-hero-inner,
  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 100px 0 70px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .card,
  .service-card,
  .info-card,
  .contact-form {
    padding: 18px;
  }

  .navbar {
    padding: 10px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ------------------------------------------
   contactページ（ID=197）専用：
   services.html と同じ世界観に寄せる
------------------------------------------- */

/* WPデフォルトのページタイトル行（Cocoonのタイトル＋線）を消す */
.page-id-197 .entry-header {
  display: none !important;
}

/* 背景・基本レイアウト：services.html と同じ雰囲気 */
.page-id-197 body {
  background: var(--bg) !important;
}

.page-id-197 #main {
  background: var(--bg);
  padding-top: 100px; /* 固定ヘッダー分のオフセット。必要なら90〜120pxで微調整 */
}

/* コンテンツ幅を services.html と合わせる */
.page-id-197 .entry-content {
  max-width: 1120px;
  width: 92%;
  margin: 0 auto 80px;
  padding: 0;
}

/* 一番上の見出しを services のH1感にする */
.page-id-197 .entry-content > h1:first-of-type,
.page-id-197 .entry-content > h2:first-of-type {
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  line-height: 1.3;
  margin: 0 0 18px;
  color: var(--deep);
}

/* 見出し直下のリード文（最初の段落）はやや薄い説明テキスト風に */
.page-id-197 .entry-content > p:first-of-type {
  margin-top: 0;
  margin-bottom: 28px;
  color: var(--muted);
}

/* 余計な上部の線を殺す（Cocoon標準のボーダー類） */
.page-id-197 .article .article-header,
.page-id-197 .article .article-header:before,
.page-id-197 .article .article-header:after,
.page-id-197 .entry-content hr,
.page-id-197 .entry-content .wp-block-separator {
  border: none !important;
  box-shadow: none !important;
}

/* フォントは services.html と同じ世界観で固定（body側の設定を優先） */
.page-id-197 .entry-content,
.page-id-197 .entry-content *,
.page-id-197 .wpcf7,
.page-id-197 .wpcf7 * {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "游ゴシック体",
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: var(--text);
  line-height: 1.7;
}

/* Contact Form 7：カード風だが、services のブロックと馴染む程度に */
.page-id-197 .wpcf7 form {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 47, 74, 0.08);
  box-shadow: 0 10px 24px rgba(15, 47, 74, 0.06);
}

/* ラベル・入力欄：services の .form-group と揃える */
.page-id-197 .wpcf7-form p {
  margin-bottom: 16px;
}

.page-id-197 .wpcf7-form label {
  display: block;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 6px;
}

.page-id-197 .wpcf7-form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  background: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}

.page-id-197 .wpcf7-form-control:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(75, 183, 230, 0.15);
}

/* 送信ボタンを .btn.primary に近づける */
.page-id-197 .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  background: var(--sky);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(75, 183, 230, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}

.page-id-197 .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(75, 183, 230, 0.4);
}

/* 入力欄下のエラーや注意書きも、services に近いトーンに */
.page-id-197 .wpcf7-not-valid-tip,
.page-id-197 .wpcf7-response-output {
  font-size: 0.9rem;
  margin-top: 4px;
}

/* 本文末尾の「ホーム」リンクだけ消す（フッターのナビはそのまま） */
.page-id-197 .entry-content a:last-of-type {
  display: none !important;
}

.contact-form-iframe {
  width: 70%;
  min-height: 880px;
  border: none;
  overflow: hidden;
  background: transparent;

  display: block;
  margin: 0 auto;   /* ★ これが中央寄せの決め手 */
}


/* =========================================
   Contact Form 7 中身の色を左右と合わせる
   （page-id-197：お問い合わせページ）
========================================= */

/* フォーム全体のカード感（外のカードと同じトーン） */
.page-id-197 .wpcf7 form {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 47, 74, 0.08);
  box-shadow: 0 10px 24px rgba(15, 47, 74, 0.06);

  max-width: 720px;
  margin: 0 auto;
}

/* 入力欄のプレースホルダーも周囲と同じトーンに */
.page-id-197 .wpcf7-form-control::placeholder {
  color: rgba(92, 107, 122, 0.8); /* var(--muted) ベース */
}

/* バリデーションエラーの一行メッセージ（各フィールド下） */
.page-id-197 .wpcf7-not-valid-tip {
  margin-top: 4px;
  padding: 4px 8px;
  border-left: 3px solid rgba(75, 183, 230, 0.9);   /* sky と揃える */
  background: rgba(75, 183, 230, 0.06);
  color: var(--deep);
  font-size: 0.85rem;
}

/* 送信結果メッセージ（フォーム下の大きい枠）共通スタイル */
.page-id-197 .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 送信エラー / 入力不備：左右と揃えた青系 */
.page-id-197 .wpcf7-response-output.wpcf7-validation-errors,
.page-id-197 .wpcf7-response-output.wpcf7-spam-blocked,
.page-id-197 .wpcf7-response-output.wpcf7-aborted {
  border: 1px solid rgba(75, 183, 230, 0.75);
  background: rgba(75, 183, 230, 0.06);
  color: var(--deep);
}

/* 送信成功メッセージ：少しだけ濃いめの sky */
.page-id-197 .wpcf7-response-output.wpcf7-mail-sent-ok {
  border: 1px solid rgba(75, 183, 230, 0.9);
  background: rgba(75, 183, 230, 0.10);
  color: var(--deep);
}



/* =========================================
   ◆ 全ページの薄い文字（muted含む）を完全に黒で統一
========================================= */

body,
body * {
  color: var(--text) !important;
}
