/* =========================================
   フォトンヒーリング協会  共通スタイル
   スマホを基本に作り、広い画面で整える
   ========================================= */

:root {
  --ai: #1f2585;          /* 藍色（ロゴの色） */
  --ai-deep: #141a5c;     /* 濃い藍 */
  --ai-soft: #e9eaf6;     /* 薄い藍 */
  --gold: #b8955a;        /* 金 */
  --gold-soft: #f3ead9;
  --paper: #faf8f3;       /* 生成り */
  --white: #ffffff;
  --text: #2a2c3d;
  --muted: #5d6075;
  --line: #ddd8cc;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(20, 26, 92, 0.08);
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  /* 日本語を文節で改行する（対応ブラウザのみ） */
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

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

a {
  color: var(--ai);
}

p {
  margin: 0 0 1em;
}

/* 改行の調整：このかたまりの途中では改行しない */
.nb {
  display: inline-block;
}

/* スマホだけで改行する */
.sp {
  display: inline;
}

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.brand img {
  width: 40px;
  height: auto;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  line-height: 1.3;
  letter-spacing: 0.06em;
}

/* メニュー（スマホでは開閉式） */
.menu {
  position: relative;
}

.menu summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--ai);
  border-radius: 999px;
  color: var(--ai);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  user-select: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu summary::before {
  content: "☰";
  font-size: 1rem;
}

.menu[open] summary::before {
  content: "×";
}

.menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(78vw, 300px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
}

.menu nav a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid #f0ede6;
}

.menu nav a:last-child {
  border-bottom: none;
}

.menu nav a:hover,
.menu nav a:focus {
  background: var(--ai-soft);
  color: var(--ai-deep);
}

/* ---------- 大きな見出し（ファーストビュー） ---------- */

.hero {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(31, 37, 133, 0.08), transparent 70%),
    var(--white);
  text-align: center;
  padding: 40px 16px 48px;
  border-bottom: 1px solid var(--line);
}

.hero-logo {
  width: 150px;
  margin: 0 auto 20px;
  mix-blend-mode: multiply; /* ロゴの白い背景をなじませる */
}

.brand img {
  mix-blend-mode: multiply;
}

.hero-sub {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
}

.hero h1 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1.4;
  color: var(--ai-deep);
  letter-spacing: 0.08em;
}

.hero-words {
  font-family: var(--serif);
  color: var(--ai);
  font-size: 1.2rem;
  line-height: 2;
  margin: 0 0 20px;
}

.hero-lead {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 auto 28px;
  max-width: 34em;
}

/* ---------- 区切り（セクション） ---------- */

.section {
  padding: 56px 16px;
}

.section.alt {
  background: var(--white);
}

.section.ai {
  background: var(--ai-deep);
  color: #f2f2fa;
}

.container {
  max-width: 880px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin: 0 0 32px;
}

.section-title .en {
  display: block;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  margin-bottom: 6px;
}

.section-title h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--ai-deep);
  letter-spacing: 0.08em;
}

.section.ai .section-title h2 {
  color: var(--white);
}

.section-title h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 14px auto 0;
}

.lead {
  text-align: center;
  margin-bottom: 28px;
}

/* ---------- カード ---------- */

.cards {
  display: grid;
  gap: 16px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.section.alt .card {
  background: var(--paper);
}

.card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  color: var(--ai-deep);
  font-size: 1.15rem;
  line-height: 1.5;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card .tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}

/* 8つのエッセンス */
.essence-figure {
  max-width: 520px;
  margin: 0 auto 28px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.essence-card {
  border-top: 4px solid var(--ai);
}

.essence-card.c1 { border-top-color: #7fb4e6; }
.essence-card.c2 { border-top-color: #a89be0; }
.essence-card.c3 { border-top-color: #79c7c2; }
.essence-card.c4 { border-top-color: #e2bf6e; }

.pill-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-list li {
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 2px 14px;
  font-size: 0.9rem;
  background: var(--white);
}

/* ページへの入口 */
.link-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  padding-right: 44px;
}

.link-card::after {
  content: "›";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--gold);
}

.link-card:hover,
.link-card:focus {
  border-color: var(--ai);
}

/* ---------- ボタン ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--ai);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: center;
}

.btn:hover,
.btn:focus {
  background: var(--ai-deep);
}

.btn.outline {
  background: transparent;
  color: var(--ai);
  border: 1px solid var(--ai);
}

.btn.gold {
  background: var(--gold);
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

/* ---------- お知らせ（イベント） ---------- */

.event-box {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.event-head {
  background: var(--ai-deep);
  color: var(--white);
  text-align: center;
  padding: 18px 16px;
}

.event-head .badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.75rem;
  padding: 2px 12px;
  border-radius: 999px;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.event-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.5;
}

.event-body {
  padding: 20px;
}

.info-list {
  margin: 0 0 16px;
  padding: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.info-list dt {
  font-weight: 700;
  color: var(--ai);
}

.info-list dd {
  margin: 0;
}

/* ---------- 引用・言葉 ---------- */

.words {
  font-family: var(--serif);
  text-align: center;
  font-size: 1.15rem;
  line-height: 2.1;
  color: var(--ai-deep);
  margin: 0 0 24px;
}

.section.ai .words {
  color: var(--white);
}

/* ---------- 代表 ---------- */

.profile {
  text-align: center;
}

.profile .name {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ai-deep);
  margin: 0 0 8px;
  letter-spacing: 0.15em;
}

.profile .roles {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ---------- 注意書き ---------- */

.note {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  background: var(--gold-soft);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 20px;
}

/* ---------- フッター ---------- */

.site-footer {
  background: var(--ai-deep);
  color: #d9dbef;
  padding: 40px 16px 28px;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--white);
  margin: 0 0 12px;
  letter-spacing: 0.1em;
}

.site-footer a {
  color: var(--white);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
}

.copyright {
  font-size: 0.75rem;
  color: #a7aad0;
  margin: 16px 0 0;
}

.credit {
  font-size: 0.72rem;
  color: #a7aad0;
  line-height: 1.8;
  margin: 16px 0 0;
}

/* ---------- 大自然の水（動画）と BGM（トップ） ---------- */
.nature {
  background: var(--ai-deep);
}

.nature-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 460px;
  object-fit: cover;
  background: var(--ai-deep);
}

.bgm {
  max-width: 480px;
  margin: 0 auto;
  padding: 18px 16px 22px;
  text-align: center;
  color: #f2f2fa;
}

.bgm-title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.bgm-title small {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: #c9cbe6;
  letter-spacing: 0.04em;
}

.bgm audio {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.bgm-note {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: #a7aad0;
}

/* 地球の写真：黒い宇宙を藍色の背景になじませる */
.earth {
  display: block;
  width: min(70%, 280px);
  height: auto;
  margin: 0 auto 8px;
  mix-blend-mode: screen;
}

/* =========================================
   下のページ用の部品
   ========================================= */

/* ページ内リンクで飛んだとき、見出しが上の帯に隠れないように */
[id] {
  scroll-margin-top: 72px;
}

/* 今いるページ（メニュー） */
.menu nav a[aria-current="page"] {
  color: var(--ai);
  font-weight: 700;
  background: var(--ai-soft);
}

/* ページの見出し */
.page-hero {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(31, 37, 133, 0.10), transparent 70%),
    var(--white);
  text-align: center;
  padding: 36px 16px 32px;
  border-bottom: 1px solid var(--line);
}

.page-hero .en {
  display: block;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  margin-bottom: 6px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.45;
  color: var(--ai-deep);
  letter-spacing: 0.08em;
}

.page-hero p {
  margin: 0 auto;
  max-width: 34em;
  color: var(--muted);
  font-size: 0.95rem;
}

/* パンくず（トップへ戻る） */
.crumb {
  max-width: 880px;
  margin: 0 auto;
  padding: 10px 16px 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.crumb a {
  color: var(--muted);
}

/* ページ内の目次 */
.page-toc {
  list-style: none;
  margin: 20px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 640px;
}

.page-toc a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--ai);
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  background: var(--white);
  line-height: 1.5;
}

/* 小見出し */
.sub-title {
  font-family: var(--serif);
  color: var(--ai-deep);
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 40px 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--gold);
}

.sub-title:first-child {
  margin-top: 0;
}

.center {
  text-align: center;
}

.small {
  font-size: 0.88rem;
  color: var(--muted);
}

/* 番号つきの項目 */
.num-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.num-list > li {
  display: grid;
  grid-template-columns: 2.4em 1fr;
  gap: 12px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.section.alt .num-list > li {
  background: var(--paper);
}

.num-list .num {
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  background: var(--ai);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}

.num-list h3,
.num-list .ttl {
  margin: 4px 0 4px;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ai-deep);
}

.num-list p {
  margin: 0;
  font-size: 0.95rem;
}

.num-list .extra {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.num-list .extra b {
  color: var(--gold);
  font-weight: 700;
  margin-right: 4px;
}

/* 比べるカード（オミクロンとサピエンス） */
.vs-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.section.alt .vs-card {
  background: var(--paper);
}

.vs-card h3 {
  margin: 0;
  padding: 10px 16px;
  background: var(--ai-soft);
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ai-deep);
}

.vs-card dl {
  margin: 0;
  padding: 4px 16px 12px;
}

.vs-card dl div {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.vs-card dl div:last-child {
  border-bottom: none;
}

.vs-card dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.vs-card dt.o {
  color: var(--ai);
}

.vs-card dt.s {
  color: var(--muted);
}

.vs-card dd {
  margin: 0;
  font-size: 0.95rem;
}

/* チェックリスト */
.check-group {
  margin: 0 0 24px;
}

.check-group h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ai-deep);
  margin: 0 0 8px;
}

.check-group h3 small {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--gold);
  margin-left: 6px;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section.alt .check-list {
  background: var(--paper);
}

.check-list li {
  display: grid;
  grid-template-columns: 2em 1fr;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0ede6;
  font-size: 0.95rem;
  line-height: 1.75;
}

.check-list li:last-child {
  border-bottom: none;
}

.check-list .no {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  padding-top: 2px;
}

/* 時間の流れ（スケジュール・年齢） */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 4px;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 4.2em 1fr;
  gap: 10px;
  padding: 8px 0 8px 16px;
  border-left: 2px solid var(--ai-soft);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.timeline .time {
  font-weight: 700;
  color: var(--ai);
  font-size: 0.95rem;
}

.timeline .what {
  font-size: 0.95rem;
}

.day-head {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--white);
  background: var(--ai);
  border-radius: 10px;
  padding: 8px 14px;
  margin: 24px 0 12px;
  font-size: 1rem;
  line-height: 1.5;
}

.day-head small {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.8rem;
  opacity: 0.85;
}

/* 料金などの表（2列） */
.price-list {
  margin: 0;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price-list div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0ede6;
}

.price-list div:last-child {
  border-bottom: none;
}

.price-list dt {
  font-size: 0.95rem;
}

.price-list dd {
  margin: 0;
  font-weight: 700;
  color: var(--ai-deep);
  white-space: nowrap;
}

.price-list small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}

/* 準備中 */
.pending {
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  background: var(--gold-soft);
  padding: 16px 18px;
  font-size: 0.95rem;
}

.pending .label {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.75rem;
  padding: 1px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
  letter-spacing: 0.1em;
}

/* 箇条書き（点つき） */
.dot-list {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.dot-list li {
  margin-bottom: 6px;
}

.dot-list li::marker {
  color: var(--gold);
}

/* 文章を読むためのページ（あいさつ） */
.message {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 2.1;
}

.message .sign {
  text-align: right;
  margin-top: 24px;
}

.figure {
  margin: 0 auto 24px;
  max-width: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.figure figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 8px 12px;
  background: var(--white);
  text-align: center;
}

/* =========================================
   広い画面（タブレット・パソコン）
   ========================================= */

@media (min-width: 768px) {
  body {
    font-size: 17px;
  }

  .sp {
    display: none;
  }

  .brand img {
    width: 46px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .hero {
    padding: 64px 24px 72px;
  }

  .hero-logo {
    width: 190px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero-words {
    font-size: 1.45rem;
  }

  .section {
    padding: 80px 24px;
  }

  .section-title h2 {
    font-size: 1.9rem;
  }

  .cards.two {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards.three {
    grid-template-columns: repeat(3, 1fr);
  }

  .btn-row {
    flex-direction: row;
    justify-content: center;
  }

  .page-hero {
    padding: 56px 24px 48px;
  }

  .page-hero h1 {
    font-size: 2.2rem;
  }

  .num-list.two {
    grid-template-columns: repeat(2, 1fr);
  }

  .vs-card dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }

  .vs-card dl div {
    border-bottom: none;
  }
}
