/* ==========================================================
   Google Sites (sites.google.com/view/yojiroito) 再現用スタイル
   ---------------------------------------------------------
   ★ DevTools による実測値を反映した版
      - font-family : Lato
      - font-size   : 11pt (= 14.6667px)
      - line-height : 1.6667
      - color       : #212121
      - link        : #006580 + 常時下線
      - list        : square マーカー / margin-left 15pt
   ========================================================== */

:root {
  /* --- タイポグラフィ（実測値） --- */
  --gs-font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI",
             "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  --gs-text: #212121;
  --gs-body-size: 11pt;          /* = 14.6667px */
  --gs-body-line: 1.6667;
  --gs-para-gap: 12px;           /* 段落の margin-top */

  /* --- リンク（実測値） --- */
  --gs-link: #006580;

  /* --- リスト（実測値） --- */
  --gs-li-indent: 15pt;          /* = 20px */

  /* --- 本文カラム --- */
  /* ※ここだけ未実測。元サイトを最大化して Layout タブで測った値に置換してください */
  --content-max: 1080px;
  --content-pad: 24px;

  /* --- ヒーローヘッダー --- */
  --hero-height: 520px;          /* 実測値 */
  --hero-height-sp: 320px;
  --hero-parallax: 120px;
  --hero-overlay: rgba(0, 0, 0, 0.10);   /* 元サイトはほぼ素の画像 */
  --hero-focus: 50% 45%;
  --hero-title-size: 100px;      /* 目視調整で決定 */
  --hero-title-weight: 700;
}

/* ==========================================================
   0. Quarto / Bootstrap の既定パーツを無効化
   ========================================================== */

#quarto-header,
.navbar,
#title-block-header,
.quarto-title-block,
#TOC,
#quarto-margin-sidebar,
#quarto-sidebar,
.nav-footer,
#quarto-back-to-top {
  display: none !important;
}

#quarto-content,
main.content,
#quarto-document-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* 100vw ブレイクアウト時の横スクロールバー発生を防止 */
html,
body {
  overflow-x: hidden;
}

/* ==========================================================
   1. ベースタイポグラフィ
   ========================================================== */

body {
  font-family: var(--gs-font);
  font-size: var(--gs-body-size);
  line-height: var(--gs-body-line);
  color: var(--gs-text);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  background: #ffffff;
}

/* ==========================================================
   2. 本文カラム幅
   ========================================================== */

main.content,
#quarto-document-content {
  max-width: var(--content-max);
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
  padding-bottom: 5rem;
  word-wrap: break-word;          /* 元サイト .mGzaTb と同じ */
}

.page-columns,
.page-columns > * {
  max-width: none;
}

/* 段落間隔（元サイトは margin-top: 12px） */
main.content > p {
  margin-top: var(--gs-para-gap);
  margin-bottom: 0;
  max-width: 100%;
}

/* ==========================================================
   3. ヒーローヘッダー（全幅 + パララックス）
   ========================================================== */

.hero-header {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: var(--hero-height);
  margin-bottom: 2.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1b2733;      /* 画像が出ない場合のフォールバック */
}

/* 第1層：動く背景 */
.hero-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-1 * var(--hero-parallax));
  height: calc(100% + var(--hero-parallax) * 2);
  background-image: url("header.png");
  background-size: cover;
  background-position: var(--hero-focus);
  background-repeat: no-repeat;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  z-index: 0;
}

/* 第2層：暗幕（フラット・薄め） */
.hero-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
  pointer-events: none;
}

/* 第3層：文字（必ず最前面） */
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--content-pad);
}

.hero-title {
  display: block;
  margin: 0;
  color: #ffffff !important;
  font-family: var(--gs-font);
  font-size: var(--hero-title-size);
  font-weight: var(--hero-title-weight);
  letter-spacing: 0.01em;
  line-height: 1.2;
  border: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55), 0 0 4px rgba(0, 0, 0, 0.4);
}

/* ==========================================================
   4. 見出し（Publications: など）
   ---------------------------------------------------------
   ★元サイトでは「太字ではない、本文と同じ書式の段落」でした。
     太字のほうが読みやすいと感じる場合は、下のコメントを
     外して font-weight: 700 を有効にしてください。
   ========================================================== */

.gs-heading {
  font-family: var(--gs-font);
  font-size: var(--gs-body-size);
  /* font-weight: 400; */        /* ← 元サイト（太字なし）に戻す場合はこちらを有効化 */
  font-weight: 700;
  line-height: var(--gs-body-line);
  color: var(--gs-text);
  margin: 60px 0 0;              /* 元サイトの空段落ぶんの間隔 */
  padding: 0;
  border: none;
  text-decoration: none;
}

.gs-heading p {
  margin: 0;
}

.anchorjs-link {
  display: none !important;
}

/* ==========================================================
   5. 論文リスト（実測：square マーカー / margin-left 15pt）
   ========================================================== */

main.content ul {
  list-style-type: square;
  margin: 0;
  padding: 0;
}

main.content li {
  margin-left: var(--gs-li-indent);
  margin-top: var(--gs-para-gap);
  line-height: var(--gs-body-line);
  font-size: var(--gs-body-size);
}

main.content li p {
  margin: 0;
}

main.content li em {
  font-style: italic;
}

/* 学会報告歴（本文より一段小さく、灰色で副次情報として表示） */
.gs-venues {
  display: block;
  margin-top: 2px;
  font-size: 10pt;
  color: #5f6368;
  line-height: 1.5;
}

/* ==========================================================
   6. リンク（実測：#006580 / 常時下線 / ホバー変化なし）
   ========================================================== */

main.content a {
  color: var(--gs-link);
  text-decoration: underline;
  overflow-wrap: break-word;
}

main.content a:hover,
main.content a:focus {
  color: var(--gs-link);
  text-decoration: underline;
}

main.content a:focus-visible {
  outline: 2px solid var(--gs-link);
  outline-offset: 2px;
  border-radius: 2px;
}

.external-link-icon,
a.external::after {
  display: none !important;
}

/* ==========================================================
   7. レスポンシブ
   ========================================================== */

@media (max-width: 768px) {
  :root {
    --hero-height: var(--hero-height-sp);
    --hero-parallax: 60px;
    --hero-title-size: 30px;
    --content-pad: 18px;
  }

  .hero-header {
    margin-bottom: 2rem;
  }
}

/* ==========================================================
   8. アクセシビリティ
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    transform: none !important;
    transition: none !important;
  }
}
