@charset "UTF-8";

/* =========================================================
   社団法人 日本健康寿命研究会
   共通スタイル
   - SP  :        ～ 899px （ハンバーガーメニュー）
   - PC  : 900px ～       （ヘッダーメニュー・サブメニューはホバー展開）
   - コンテンツ幅 : 1000px
   ========================================================= */

:root {
  --width: 1000px;          /* コンテンツ最大幅 */
  --header-h-pc: 88px;      /* PCヘッダー高さ */
  --header-h-sp: 62px;      /* SPヘッダー高さ */
  --text: #111111;
  --text-sub: #555555;
  --line: #e2e2e2;
  --gray: #f2f2f2;          /* フッター等の薄いグレー */
}

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

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

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
               "Hiragino Sans", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, p { margin: 0; }

button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }

table { border-collapse: collapse; }

/* スクリーンリーダー用（画面上は非表示） */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 共通インナー */
.inner {
  width: 100%;
  max-width: var(--width);
  margin-inline: auto;
  padding-inline: 20px;
}

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

.header-inner {
  width: 100%;
  max-width: var(--width);
  margin-inline: auto;
  padding-inline: 20px;
  height: var(--header-h-sp);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ロゴ（マークのみ）＋ 法人名テキスト */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.brand img { height: 36px; width: auto; flex: none; }
.brand-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .02em;
}

/* ---------- ハンバーガーボタン（SPのみ） ---------- */
.hamburger {
  position: relative;
  z-index: 120;
  width: 32px;
  height: 24px;
  flex: none;
}
.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform .3s ease, opacity .2s ease;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 22px; }

/* 展開時：×印 */
.hamburger[aria-expanded="true"] span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* ---------- 背景オーバーレイ（SPメニュー展開時） ---------- */
.nav-overlay {
  position: fixed;
  inset: var(--header-h-sp) 0 0 0;
  z-index: 90;
  background: rgba(0, 0, 0, .35);
}
.nav-overlay[hidden] { display: none; }


/* =========================================================
   SP（～899px）: ハンバーガーメニュー
   ========================================================= */
@media screen and (max-width: 899px) {

  .gnav {
    position: fixed;
    top: var(--header-h-sp);
    left: 0;
    z-index: 95;
    width: 100%;
    max-height: calc(100vh - var(--header-h-sp));
    overflow-y: auto;
    background: #ffffff;
    border-top: 1px solid var(--line);
    /* 閉じている状態 */
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s ease, opacity .3s ease, visibility .3s;
  }

  /* 開いている状態 */
  .gnav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .gnav-list { padding: 8px 0 24px; }

  .gnav-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  /* リンクを持たない親ラベル（事業内容） */
  .gnav-parent { cursor: default; }

  /* サブメニューは常時表示・インデント */
  .subnav { border-bottom: 1px solid var(--line); }
  .subnav a {
    display: block;
    padding: 13px 20px 13px 40px;
    font-size: 14px;
    color: var(--text-sub);
  }
  .subnav a::before {
    content: "－";
    margin-right: 8px;
  }
  .subnav li + li a { border-top: 1px solid #f0f0f0; }

  /* カレントページ */
  .gnav-link.is-current,
  .subnav a.is-current { font-weight: 700; color: var(--text); }

  /* メニュー展開中は背面スクロールを止める */
  body.nav-open { overflow: hidden; }
}


/* =========================================================
   PC（900px～）: ヘッダーメニュー
   ========================================================= */
@media screen and (min-width: 900px) {

  .header-inner { height: var(--header-h-pc); }
  .brand { gap: 12px; }
  .brand img { height: 48px; }
  .brand-name { font-size: 17px; letter-spacing: .04em; }

  .hamburger,
  .nav-overlay { display: none; }

  .gnav-list { display: flex; align-items: center; gap: 8px; }

  .gnav-item { position: relative; }

  .gnav-link {
    display: block;
    padding: 0 16px;
    line-height: var(--header-h-pc);
    font-size: 15px;
    letter-spacing: .08em;
    position: relative;
  }

  /* ホバー時／カレント時の下線 */
  .gnav-link::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 26px;
    height: 1px;
    background: var(--text);
    transform: scaleX(0);
    transition: transform .25s ease;
  }
  .gnav-link:hover::after,
  .gnav-link:focus-visible::after,
  .gnav-link.is-current::after { transform: scaleX(1); }

  .gnav-link.is-current { font-weight: 700; }

  /* ---------- サブメニュー（ホバーで下に展開） ---------- */
  .subnav {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: none;
    /* 閉じている状態 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }

  .has-sub:hover .subnav,
  .has-sub:focus-within .subnav,
  .has-sub.is-open .subnav {   /* is-open : タッチ機器でのクリック展開用 */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .subnav a {
    display: block;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.6;
    white-space: nowrap;
    transition: background-color .2s ease;
  }
  .subnav li + li a { border-top: 1px solid var(--line); }
  .subnav a:hover { background: var(--gray); }
  .subnav a.is-current { font-weight: 700; background: var(--gray); }
}


/* =========================================================
   ヒーロー
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
}

.hero-img {
  display: block;
  width: 100%;
  height: 46vw;
  max-height: 520px;
  min-height: 220px;
  object-fit: cover;
  object-position: center 62%;
}

/* ヒーロー画像の中央に重ねるロゴ */
.hero-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;   /* 画像の上に乗せるだけ。操作の邪魔をしない */
}

.hero-logo img {
  width: 44%;
  max-width: 190px;
  height: auto;
}

@media screen and (min-width: 900px) {
  .hero-logo img {
    width: 30%;
    max-width: 300px;
  }
}


/* =========================================================
   下層ページの見出し
   ========================================================= */
.page-head {
  background: var(--gray);
  padding: 28px 0;
}
.page-head h1 {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .1em;
}

@media screen and (min-width: 900px) {
  .page-head { padding: 44px 0; }
  .page-head h1 { font-size: 28px; }
}


/* =========================================================
   コンテンツブロック
   ========================================================= */
.block { padding: 48px 0; }
.block + .block { border-top: 1px solid var(--line); }

.block h2 {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: .08em;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.block p {
  font-size: 15px;
  color: var(--text-sub);
}

/* 段落間のアキ */
.block p + p { margin-top: 1.2em; }

/* 各セクション冒頭のリード文 */
.block .lead {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--text);
}
.block .lead + p { margin-top: 1.8em; }

/* 「課題整理 → 計画 → …」のような流れの表記 */
.flow { font-weight: 700; color: var(--text); }

/* 4つの姿勢 */
.stance + .stance { margin-top: 30px; }
.stance h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

@media screen and (min-width: 900px) {
  .block { padding: 76px 0; }
  .block h2 {
    font-size: 26px;
    padding-bottom: 18px;
    margin-bottom: 28px;
  }
  .block p { font-size: 16px; }
  .block .lead { font-size: 20px; }

  .stance + .stance { margin-top: 40px; }
  .stance h3 { font-size: 18px; margin-bottom: 8px; }
}


/* =========================================================
   画像ベタ貼り（事業内容ページなど）
     SP : 最大 600px / PC : 最大 1000px、それ以下は幅100%
   ========================================================= */
.figure {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.figure img {
  display: block;
  width: 100%;
  height: auto;
}
.figure picture { display: block; }

@media screen and (min-width: 900px) {
  .figure { max-width: 1000px; }
}

/* 左寄せ・原寸大で貼る場合（所在地画像など）
   ※ 画像幅より画面が狭いときだけ縮小して、はみ出しを防ぐ */
.figure-left {
  max-width: none;
  margin: 0;
}
.figure-left img {
  width: auto;
  max-width: 100%;
}

@media screen and (min-width: 900px) {
  .figure-left { max-width: none; }
}


/* =========================================================
   区切り線
   ========================================================= */
.sep {
  width: 100%;
  max-width: 600px;
  margin: 40px auto;
  border: 0;
  border-top: 1px solid var(--line);
}

@media screen and (min-width: 900px) {
  .sep { max-width: 1000px; margin: 56px auto; }
}


/* =========================================================
   テーブル（会社概要など）
   ========================================================= */
.table { width: 100%; font-size: 15px; }
.table th,
.table td {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 0;
}
.table th {
  font-weight: 700;
  padding-bottom: 2px;
  border-bottom: none;
}
.table td {
  color: var(--text-sub);
  padding-top: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

@media screen and (min-width: 900px) {
  .table th,
  .table td {
    display: table-cell;
    width: auto;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
  }
  .table th {
    width: 200px;
    padding-right: 24px;
  }
}


/* =========================================================
   フッター
   ========================================================= */
.footer {
  background: var(--gray);
  margin-top: 24px;
  padding: 40px 0 28px;
  text-align: center;
}

.footer-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  margin: 22px 0 26px;
}
.footer-nav a {
  font-size: 13px;
  color: var(--text-sub);
}
.footer-nav a:hover { text-decoration: underline; }

.copyright {
  font-size: 12px;
  color: #888888;
  letter-spacing: .06em;
}

@media screen and (min-width: 900px) {
  .footer { margin-top: 0; padding: 56px 0 32px; }
  .footer-name { font-size: 16px; }
  .footer-nav { margin: 26px 0 32px; }
  .footer-nav a { font-size: 14px; }
}
