/*------------------------------------------
カスタムリセット
---------------------------------------------*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family-body);
  line-height: var(--line-height-relaxed);
  letter-spacing: var(--letter-spacing-default);
  color: var(--color-text-body);
  background-color: var(--color-bg-page);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/*------------------------------------------
:root 定義（Clinicle）
---------------------------------------------*/

:root {
  /* カラー */
  --color-white: #ffffff;
  --color-main: #5ab9d1;
  --color-main-deep: #388e9e;
  --color-accent: #f8d34d;
  --color-bg-page: #fdfdfd;
  --color-bg-soft: #dceef3;
  --color-bg-tint: #e6f4f9;
  --color-text-body: #334155;
  --color-text-muted: #64748b;
  --color-text-heading: #1e293b;
  --color-border-light: #f1f5f9;
  --color-border-card: #cbd5e1;
  --color-watermark: #cbd5e1;
  --color-navy: #1e293b;
  --color-gray: #e2e8f0;

  /* フォント */
  --font-family-body: "Noto Sans JP", sans-serif;
  --font-family-accent: "Inter", "Noto Sans JP", sans-serif;

  /* タイポグラフィ（clamp） */
  --font-size-h1: clamp(1.5rem, 3vw + 1rem, 3.75rem);
  --font-size-h2: clamp(1.25rem, 2vw + 0.75rem, 2.5rem);
  --font-size-h3: clamp(1.125rem, 1.5vw + 0.45rem, 1.5rem);
  --font-size-h3-section: clamp(1.25rem, 2.5vw + 0.5rem, 2.5rem);
  --font-size-menu: clamp(0.75rem, 0.652rem + 0.43vw, 1rem);
  --font-size-body: clamp(0.875rem, 1.1vw + 0.6rem, 1.125rem);
  --font-size-eyebrow: clamp(0.75rem, 0.12vw + 0.62rem, 0.875rem);
  --font-size-display: clamp(2.5rem, 4vw + 1rem, 3.75rem);

  /* フォントの太さ（ここで統一） */
  --font-weight-light: 300;
  --font-weight-medium: 500;
  --font-weight-semi-bold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  /* 余白 */
  --space-xs: 4px;
  --space-s: 8px;
  --space-sm: 16px;
  --space-m: 20px;
  --space-ml: 26px;
  --space-l: 40px;
  --space-xl: 60px;
  --space-xxl: 100px;
  --space-xxxl: 200px;

  /* 角丸 */
  --border-radius-sm: 4px;
  --border-radius-m: 7px;
  --border-radius-lg: 12px;
  --border-radius-xl: 50px;
  --border-radius-full: 50%;

  /* テキスト */
  --line-height-normal: normal;
  --line-height-solid: 1;
  --line-height-default: 1.5;
  --line-height-relaxed: 1.75;
  --line-height-loose: 2;

  --letter-spacing-normal: normal;
  --letter-spacing-tight: 0.05em;
  --letter-spacing-default: 0.05em;
  --letter-spacing-relaxed: 0.2em;
  --letter-spacing-wide: 0.3em;

  --text-align-justify: justify;
  --text-align-center: center;
  --text-align-right: right;
  --text-align-left: left;

  /* レイアウト */
  --layout-max: 1280px;
  --layout-narrow: 896px;
  --layout-services: 1152px;
}

@media (max-width: 767px) {
  :root {
    --line-height-relaxed: 1.7;
  }
}

/*------------------------------------------
見出し・本文（共通トークン）
---------------------------------------------*/

h1 {
  font-size: var(--font-size-h1);
  line-height: var(--line-height-default);
}

h2 {
  font-size: var(--font-size-h2);
  line-height: var(--line-height-default);
}

h3 {
  font-size: var(--font-size-h3);
  line-height: var(--line-height-default);
}

p {
  font-size: var(--font-size-body);
}

/*------------------------------------------
Scroll reveal (fade-in)
---------------------------------------------*/

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  will-change: opacity, transform;
}

.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

.delay-100 {
  transition-delay: 0.1s;
}
.delay-200 {
  transition-delay: 0.2s;
}
.delay-300 {
  transition-delay: 0.3s;
}
.delay-400 {
  transition-delay: 0.4s;
}
.delay-500 {
  transition-delay: 0.5s;
}

/*------------------------------------------
コンテンツレイアウト
---------------------------------------------*/

.wide_1120 {
  max-width: 1120px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.layout-max {
  width: 100%;
  max-width: var(--layout-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.layout-max--narrow {
  max-width: var(--layout-narrow);
}

.layout-max--services {
  max-width: var(--layout-services);
}

.reverse {
  flex-direction: row-reverse;
}

/*------------------------------------------
レスポンシブ br
---------------------------------------------*/

.br-sp {
  display: block;
}

.br-pc {
  display: none;
}

@media screen and (min-width: 768px) {
  .br-sp {
    display: none;
  }
}

@media screen and (min-width: 1024px) {
  .br-pc {
    display: block;
  }
}

/*------------------------------------------
装飾ユーティリティ（共通）
---------------------------------------------*/

.arch-top {
  border-radius: 300px 300px 0 0;
}

.arch-full {
  border-radius: 999px;
}

.soft-shadow {
  box-shadow: 0 20px 40px rgba(90, 185, 209, 0.08);
}

.section-spacing {
  padding: 80px 0;
}

@media (min-width: 768px) {
  .section-spacing {
    padding: 112px 0;
  }
}

@media (min-width: 1024px) {
  .section-spacing {
    padding: 160px 0;
  }
}

/**
 * ヒーロー・メイン画像なし（法的ページ・投稿詳細など）
 * SP のみ固定ナビ直下に十分な余白を確保（.hero の padding-top と揃える）
 */
@media (max-width: 767px) {
  .legal-page.section-spacing,
  .single-post.section-spacing {
    padding-top: 7rem;
  }
}

.btn-fancy {
  position: relative;
  transition:
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}

.btn-fancy:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(248, 211, 77, 0.4);
}

.text-outline {
  -webkit-text-stroke: 1px var(--color-main);
  color: transparent;
}

.wpcf7-spinner{
  display: none;
}

/*------------------------------------------
ユーティリティ
---------------------------------------------*/

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.font-inter {
  font-family: var(--font-family-accent);
}
