/* ==========================================================
   Physiorefre 会社概要 先行リリースページ
   デザイン：ChatGPT作成のイメージ画像（2026-07-15）を忠実に再現
   ========================================================== */

:root {
  --accent: #1f3a5f;
  --band: #eef1f5;
  --text: #2b2b2b;
  --text-sub: #555555;
  --border: #e3e6ea;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ---------- 日本語の改行調整 ----------
   .ph : 文節のかたまり。この単位でしか折り返さない（全ブラウザ対応）
   word-break: auto-phrase : 対応ブラウザ（Chrome等）では長文も文節で折り返す */
.ph { display: inline-block; }

.hero-lead,
.col-text p,
.policy-body p,
.cta-band p,
.company-table td {
  word-break: auto-phrase;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.9;
}

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

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

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--accent);
}

.logo-mark { width: 38px; height: 38px; flex-shrink: 0; }

.logo-text { line-height: 1.3; }

.logo-jp {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap; /* 会社名を画面幅にかかわらず1行で表示 */
}

.logo-en {
  display: block;
  font-size: 0.72rem;
  color: var(--text-sub);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.global-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px 22px;
  font-size: 0.85rem;
}

.global-nav a,
.global-nav .nav-soon { white-space: nowrap; }

.global-nav a {
  text-decoration: none;
  color: var(--text);
}

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

.nav-soon {
  color: var(--text);
  opacity: 0.85;
  cursor: default;
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 999px;
}

.nav-cta:hover { opacity: 0.88; }

/* ハンバーガーメニューのボタン（スマホ幅でのみ表示） */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

/* 開いている間は三本線を「×」に変形 */
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- ページヒーロー ---------- */
/* 背景グレーはヒーローとお問い合わせ（cta-band）の2か所のみ。フッターは濃紺 */
.page-hero {
  padding: 56px 0 64px;
  background: var(--band);
}

.hero-grid {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.35em;
}

/* 長いページタイトル（プライバシーポリシー等）は改行させず、
   スマホでは文字サイズ・字間を自動で縮めて1行に収める */
.hero-title-long { white-space: nowrap; }

@media (max-width: 820px) {
  .hero-title-long {
    font-size: clamp(1.3rem, 5.6vw, 2.3rem);
    letter-spacing: 0.12em;
  }
}

.hero-sub {
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.3em;
}

.hero-lead {
  margin-top: 32px;
  font-size: 0.95rem;
  color: var(--text);
}

.hero-photo img,
.col-photo img {
  border-radius: 4px;
  width: 100%;
  object-fit: cover;
}

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

.subhead {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 30px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 46%;
  gap: 48px;
  align-items: center;
}

.col-text p {
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.col-text p:last-child { margin-bottom: 0; }


/* ---------- 会社情報テーブル ---------- */
.company-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.company-table th,
.company-table td {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
  vertical-align: top;
}

.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: none; }

.company-table th {
  width: 34%;
  font-weight: 700;
  background: #f5f7f9;
  border-right: 1px solid var(--border);
}

/* ---------- CTA ---------- */
.cta-band {
  background: var(--band);
  text-align: center;
  padding: 64px 0;
}

.cta-band h2 {
  font-size: 1.35rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.cta-band p {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 15px 52px;
  border-radius: 999px;
}

.btn-primary:hover { opacity: 0.88; }

.btn-primary .arrow { margin-left: 10px; }

/* ---------- フッター（濃紺） ---------- */
.site-footer {
  background: var(--accent);
  padding: 30px 0;
}

.site-footer .logo { color: #ffffff; }

.site-footer .logo-jp { color: #ffffff; }

.site-footer .logo-en { color: rgba(255, 255, 255, 0.7); }

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  font-size: 0.8rem;
}

.footer-links .nav-soon { white-space: nowrap; }

.footer-links .nav-soon { color: rgba(255, 255, 255, 0.75); }

.copyright {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- プライバシーポリシー ---------- */
.policy-body {
  max-width: 760px;
  font-size: 0.92rem;
}

.policy-body h2 {
  font-size: 1.05rem;
  color: var(--accent);
  margin-top: 36px;
  margin-bottom: 10px;
}

.policy-body p { margin-bottom: 12px; }

.policy-body ul {
  margin: 0 0 12px 1.4em;
}

.policy-body li { margin-bottom: 4px; }

.policy-date {
  margin-top: 40px;
  color: var(--text-sub);
  font-size: 0.85rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  white-space: nowrap;
}

.footer-links a:hover { color: #ffffff; text-decoration: underline; }

/* ---------- スマホ専用の固定お問い合わせボタン ---------- */
.floating-cta { display: none; }

@media (max-width: 820px) {
  .floating-cta {
    display: block;
    position: fixed;
    left: 16px;
    right: 16px;
    /* iPhoneの下部ホームバーと重ならないようにする */
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 90;
    background: var(--accent);
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 15px 0;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(31, 58, 95, 0.35);
  }

  /* ページ末尾（フッター）がボタンに隠れないよう余白を確保 */
  body { padding-bottom: 76px; }
}

/* ---------- レスポンシブ ---------- */
.sp-only { display: none; }

@media (max-width: 820px) {
  /* スマホではロゴ＋ハンバーガーボタンの1行にし、メニューは開閉式にする */
  .menu-toggle { display: block; }

  .global-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 8px 0 20px;
  }

  .global-nav.is-open { display: flex; }

  .global-nav a,
  .global-nav .nav-soon {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 0.95rem;
  }

  .global-nav .nav-cta {
    width: auto;
    margin-top: 10px;
    padding: 10px 32px;
  }

  .hero-grid,
  .two-col { grid-template-columns: 1fr; gap: 28px; }

  /* スマホでは 写真→本文 の順ではなく本文を先に */
  .hero-photo, .col-photo { order: 2; }

  .page-hero { padding: 40px 0 48px; }

  .section { padding: 52px 0; }

  .pc-only { display: none; }

  .sp-only { display: inline; }

  .footer-inner { justify-content: center; text-align: center; }
}
