@charset "UTF-8";

/* ==========================================================================
   common.css
   変数・リセット・共通部品（ヘッダー・フッター・ボタン・見出し）
   ========================================================================== */

/* --------------------------------------------------------------------------
   変数
   -------------------------------------------------------------------------- */
:root {
  /* 色 */
  --color-main: #1c3a5c;
  --color-main-dark: #142b45;
  --color-accent: #bf2a2f;
  --color-accent-dark: #a32226;
  --color-text: #2b2f36;
  --color-text-sub: #5c626b;
  --color-white: #fff;
  --color-bg: #fff;
  --color-bg-cream: #f8f6f2;
  --color-bg-gray: #f3f4f5;
  --color-bg-pink: #f6eded;
  --color-bg-blue: #ebeff4;
  --color-tag: #f3e3e3;
  --color-border: #d9dde2;
  --color-icon-individual: #b86d6d;
  --color-tbc: #c4501f;
  --color-tbc-light: #f2b8a6;

  /* フォント */
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;

  /* 文字サイズ */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-section-title: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem);
  --fs-hero-title: clamp(2.25rem, 1.2rem + 3.6vw, 4.25rem);

  /* 余白 */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: clamp(20px, 2vw, 32px);
  --space-lg: clamp(32px, 4vw, 56px);
  --space-section: clamp(56px, 7vw, 100px);

  /* コンテンツ幅 */
  --content-width: 1240px;
  --gutter: clamp(16px, 4vw, 40px);

  /* ロゴの高さ */
  --logo-height: 72px;
  --logo-height-sp: 56px;
  --footer-logo-height: 90px;
  --footer-logo-height-sp: 70px;

  /* その他 */
  --radius: 4px;
  --shadow: 0 2px 10px rgba(28, 58, 92, 0.06);
  --transition: 0.2s ease;
}

/* --------------------------------------------------------------------------
   リセット・ベース
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.8;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

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

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   汎用
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--content-width) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* PC・スマートフォンの表示切り替え（主に<br>の改行制御に使用）
   hidden-xs ：PCでは表示、スマートフォン（767px以下）では非表示
   visible-xs：PCでは非表示、スマートフォン（767px以下）では表示
   表示する側にはdisplayを指定しないため、要素本来の表示形式が保たれる */
@media (min-width: 768px) {
  .visible-xs {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .hidden-xs {
    display: none !important;
  }
}

/* 要確認表示（確定後に削除する） */
.tbc {
  color: var(--color-tbc);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   電話リンク：PCではクリック不可、スマートフォンのみ発信
   -------------------------------------------------------------------------- */
.tel-link {
  pointer-events: none;
  cursor: default;
}

@media (max-width: 767px) {
  .tel-link {
    pointer-events: auto;
    cursor: pointer;
  }
}

/* --------------------------------------------------------------------------
   矢印（CSSで表現）
   -------------------------------------------------------------------------- */
.arrow {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 14px;
  height: 10px;
}

.arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%);
}

.arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* --------------------------------------------------------------------------
   ボタン
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 240px;
  padding: 16px 24px;
  border: 1px solid var(--color-main);
  border-radius: 2px;
  background: var(--color-white);
  color: var(--color-main);
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.5;
  transition: background-color var(--transition), color var(--transition);
}

.btn:hover {
  background: var(--color-main);
  color: var(--color-white);
}

.btn .arrow {
  transition: transform var(--transition);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn--accent {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--accent:hover {
  border-color: var(--color-accent-dark);
  background: var(--color-accent-dark);
}

.btn--small {
  min-width: 200px;
}

@media (max-width: 767px) {
  .btn {
    width: 100%;
    min-width: 0;
  }
}

/* --------------------------------------------------------------------------
   テキストリンク（矢印付き）
   -------------------------------------------------------------------------- */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-main);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.text-link .arrow {
  transition: transform var(--transition);
}

.text-link:hover .arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   セクション見出し
   -------------------------------------------------------------------------- */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--color-text-sub);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--color-accent);
}

.section-title {
  color: var(--color-main);
  font-family: var(--font-serif);
  font-size: var(--fs-section-title);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.section-lead {
  margin-top: 16px;
  color: var(--color-text-sub);
}

/* --------------------------------------------------------------------------
   ヘッダー
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: 0 1px 0 var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 40px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px var(--gutter);
}

/* ロゴ（縦組みのため高さで大きさを指定） */
.logo {
  display: block;
  flex-shrink: 0;
}

.logo img {
  width: auto;
  height: var(--logo-height);
}

@media (max-width: 900px) {
  .logo img {
    height: var(--logo-height-sp);
  }
}

.global-nav {
  margin-left: auto;
}

.global-nav-list {
  display: flex;
  gap: clamp(14px, 1.6vw, 32px);
}

.global-nav-list a {
  position: relative;
  display: block;
  padding: 8px 0;
  color: var(--color-main);
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color var(--transition);
}

.global-nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.global-nav-list a:hover::after,
.global-nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.global-nav-list a[aria-current="page"] {
  color: var(--color-accent);
}

.header-tel {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  color: var(--color-main);
  line-height: 1.3;
}

.header-tel-number {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.header-tel-number .bi {
  font-size: 1.25rem;
}

.header-tel-hours {
  font-size: var(--fs-xs);
  letter-spacing: 0;
  text-align: right;
}

.header-cta {
  flex-shrink: 0;
  gap: 12px;
  min-width: 0;
  padding: 14px 20px;
}

.header-sp-tel,
.menu-button {
  display: none;
}

.drawer-cta {
  display: none;
}

/* ヘッダー：PC幅が狭い場合は電話番号ブロックを省略（ナビの折り返し防止） */
@media (max-width: 1100px) {
  .header-tel {
    display: none;
  }
}

@media (max-width: 900px) {
  .header-inner {
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header-cta {
    display: none;
  }

  .header-sp-tel,
  .menu-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: var(--radius);
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .header-sp-tel {
    margin-left: auto;
    background: var(--color-bg-blue);
    color: var(--color-main);
  }

  .header-sp-tel .bi {
    font-size: 1.25rem;
  }

  .menu-button {
    gap: 5px;
    background: var(--color-main);
    color: var(--color-white);
    cursor: pointer;
  }

  .menu-button-line {
    position: relative;
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: background-color var(--transition);
  }

  .menu-button-line::before,
  .menu-button-line::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform var(--transition);
  }

  .menu-button-line::before {
    top: -7px;
  }

  .menu-button-line::after {
    top: 7px;
  }

  .menu-button[aria-expanded="true"] .menu-button-line {
    background: transparent;
  }

  .menu-button[aria-expanded="true"] .menu-button-line::before {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] .menu-button-line::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .menu-button-text {
    margin-top: 10px;
  }

  .global-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: calc(100vh - var(--logo-height-sp) - 20px);
    margin: 0;
    padding: 8px var(--gutter) 32px;
    overflow-y: auto;
    background: var(--color-white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--transition), visibility var(--transition);
  }

  .global-nav.is-open {
    visibility: visible;
    opacity: 1;
  }

  .global-nav-list {
    flex-direction: column;
    gap: 0;
  }

  .global-nav-list li {
    border-bottom: 1px solid var(--color-border);
  }

  .global-nav-list a {
    padding: 16px 4px;
    font-size: var(--fs-base);
  }

  .global-nav-list a::after {
    display: none;
  }

  .drawer-cta {
    display: grid;
    gap: 12px;
    margin-top: 24px;
  }

  .drawer-cta .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   フッター
   -------------------------------------------------------------------------- */
.site-footer {
  padding: clamp(40px, 5vw, 56px) 0 32px;
  background: var(--color-main);
  color: var(--color-white);
}

/* すべて中央揃え：ロゴ → 事務所情報 → プライバシーポリシー → コピーライト */
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.site-footer .logo img {
  height: var(--footer-logo-height);
}

@media (max-width: 900px) {
  .site-footer .logo img {
    height: var(--footer-logo-height-sp);
  }
}

/* 3行構成：住所 → TEL・FAX → 受付時間 */
.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 32px;
  font-size: var(--fs-xs);
  line-height: 1.8;
  letter-spacing: 0.02em;
}

/* TELとFAXの間隔 */
.footer-info li span + span {
  margin-left: 1.5em;
}

.footer-info .tbc {
  color: var(--color-tbc-light);
}

.footer-privacy {
  margin-top: 24px;
  font-size: var(--fs-sm);
}

.footer-privacy a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity var(--transition);
}

.footer-privacy .bi {
  font-size: 0.75em;
  color: var(--color-white);
}

.footer-privacy a:hover {
  opacity: 0.7;
}

.copyright {
  margin-top: 12px;
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
}
