@charset "utf-8";

/* ════════════════════════════════════════
   home.css — トップページ専用スタイル
   参照デザイン: src/design/20260212_檜垣研究室HP構成案_004-1.jpg
   詳細仕様:     rules/design_review.md
════════════════════════════════════════ */

/* ─── main: ヘッダーはメインビジュアル上に重なるため余白なし ─── */
main {
  padding-top: 0;
}

/* ════════════════════════════════════════
   1. HERO SECTION
   背景: shared/img_home_catch.jpg
   キャッチ画像 (2x→CSS 1/2 表示):
     lbl_home_catch_01.png: 超域 + 生命科学分野 + Transdisciplinary...
     lbl_home_catch_02.png: HIGAKI LAB 檜垣研究室
════════════════════════════════════════ */
.hero {
  width: 100%;
  min-height: 45rem;
  background-color: var(--color-hero-bg);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    url('../shared/img_home_catch.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 5.5rem 2.5rem 0.5rem 2.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

/* 上部: 英語所属名 */
.hero__affiliation {
  font-size: var(--font-size-md);
  color: var(--color-white);
  font-family: var(--font-en);
  font-weight: 400;
  margin-bottom: 4.5rem;
  line-height: 1.5;
}

/* キャッチ画像コンテナ */
.hero__catch {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 6.25rem;
}

/* lbl_home_catch_01.png (2x) → 1/2 サイズ表示 */
.hero__catch-1 {
  height: 12.5rem;    /* 208px 表示 / 実画像 416px 想定 */
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* lbl_home_catch_02.png (2x) → 1/2 サイズ表示 */
.hero__catch-2 {
  height: 12.5rem;  /* 168px 表示 / 実画像 336px 想定 */
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* 下部: キャッチコピー */
.hero__tagline {
  font-size: 1.36rem;
  color: var(--color-white);
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.4em;
}

/* ─── Hero: モバイル縮小 ─── */
@media (max-width: 47.9375rem) {
  .hero__catch-1 {
    height: 8rem;
  }
  .hero__catch-2 {
    height: 6.5rem;
  }
  .hero__tagline {
    font-size: 0.8125rem;
    letter-spacing: 0.2em;
  }
}

/* ════════════════════════════════════════
   2. ABOUT SECTION (研究室紹介)
   背景: shared/bg_about.jpg (全面)
   左: 大白円(装飾) + テキスト
   右: ナビ3円 (絶対配置で斜め配列)
   ナビ画像 2x → CSS 1/2 表示
════════════════════════════════════════ */
/* 左側は余白（白）、右側のみ背景画像を表示（デザイン通り） */
.about {
  position: relative;
  background-color: var(--color-white);
  overflow: hidden;
  min-height: 27rem;
  margin-top: 2rem;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 3.1vw;
    width: 100%;
    min-width: 82.5rem;
    background-image: url(../shared/bg_about.jpg);
    background-size: cover;
    background-position: left center;
    z-index: 0;
    pointer-events: none;
}

/* コンテンツ wrapper: max-width でセンタリング */
.about__inner {
  position: relative;
  z-index: 1;           /* 右側背景 (::before) の上に表示 */
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 2.25rem;
  display: flex;
  align-items: stretch;
  min-height: 27rem;
}

/* ── 装飾大白円 (左側) ──
   top を正値にすることで上部は円弧、下部は section の
   overflow:hidden でフラットにクリップされる
── */
.about__white-disk {
  position: absolute;
  width: 58rem;
  height: 58rem;
  border-radius: 50% 50% 0 0;
  background-color: var(--color-white);
  top: 2rem;
  left: -8rem;     /* about__inner 左端からはみ出し → section の overflow:hidden でクリップ */
  /* z-index 不要: DOM順で後続のテキスト要素が自然に前面に来る */
  pointer-events: none;
}

/* ── テキストコンテンツ (左) ── */
.about__content {
  position: relative;
  z-index: 1;
  width: 38.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
}

.about__lead {
  font-size: 1.125rem;
  color: var(--color-text-dark);
  font-weight: 700;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.about__body {
  font-size: 0.8125rem;   /* 13px */
  color: var(--color-text-mid);
  font-weight: 400;
  line-height: 1.9;
  text-align: left;
}

/* ── ナビゲーション (右) ── */
.about__nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
  margin-left: auto;
}

/* 各アイテム: フレックス縦並び */
.about__nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color-white);
  gap: 1rem;
}

/* Research (黄): ラベル左・円右 */
.about__nav-item--research {
  flex-direction: row;   /* [label][circle] */
}

/* Members (青): ラベル左・円右 */
.about__nav-item--members {
  flex-direction: row;
}

/* Publications (緑): ラベル左・円右 */
.about__nav-item--publications {
  flex-direction: row;
}

/* ── 円: 写真 + カラーオーバーレイ ── */
.about__nav-circle {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  width: 10rem;   /* 168px 表示 (デザインに合わせ縮小) */
  height: 10rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.about__nav-item:hover .about__nav-circle {
  transform: scale(1.04);
}

/* 写真画像 */
.about__nav-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* カラーオーバーレイ (mix-blend-mode: multiply) */
.about__nav-circle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

/* ── テキストラベル ──
   Research / 研究内容 それぞれの長さに応じて黒背景を付ける
── */
.about__nav-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.25s ease;
}

.about__nav-item:hover .about__nav-label {
  transform: scale(1.04);
}

.about__nav-en {
  font-family: var(--font-en);
  font-size: 0.85rem;   /* 11px */
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.4;
  background-color: #000;
  padding: 0.25rem 0.5rem;
  width: fit-content;
  white-space: nowrap;
}

.about__nav-ja {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--color-white);   /* アイテム別カラーで上書き */
  font-weight: 400;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 1rem;
  line-height: 1.3;
  background-color: #000;
  padding: 0.25rem 0.5rem;
  width: fit-content;
  white-space: nowrap;
}

/* 矢印画像 */
.about__nav-arrow {
  height: 1rem;
  width: auto;
  display: inline-block;
  flex-shrink: 0;
}

/* ── ナビアイテム別カラー ── */
/* Research: 黄 */
.about__nav-item--research .about__nav-en,
.about__nav-item--research .about__nav-ja {
  color: var(--color-accent);   /* #F2C94C */
}

/* Members: 青 */
.about__nav-item--members .about__nav-en,
.about__nav-item--members .about__nav-ja {
  color: #39abf4;
}

/* Publications: 緑 */
.about__nav-item--publications .about__nav-en,
.about__nav-item--publications .about__nav-ja {
  color: #64d877;
}

/* ─── About: モバイル ─── */
@media (max-width: 63.9375rem) {
  .about__inner {
    flex-direction: column;
    min-height: unset;
  }

  .about__white-disk {
    width: 120vw;
    height: 120vw;
    left: -10vw;
    top: 5vw;      /* モバイルでも curved top */
  }

  .about__content {
    flex: none;
    justify-content: flex-start;
    padding: 55vw 1.5rem 2rem 2rem;  /* 白円の下に入るよう大きなtop padding */
  }

  .about__nav {
    flex: none;
    padding: 2rem 1rem;
    gap: 1rem;
  }

  .about__nav-circle {
    width: 8.5rem;
    height: 8.5rem;
  }

  .about__nav-ja {
    font-size: 1.0625rem;
  }

  .about__lead {
    font-size: 1rem;
  }
}

/* ─── About: デスクトップ ─── */
@media (min-width: 64rem) {
  .about {
    min-height: 30rem;
  }

  .about__inner {
    min-height: 30rem;
  }

  .about__white-disk {
    width: 50rem;
    height: 50rem;
    left: -4rem;
    top: 3rem;
  }

  .about__content {
    padding: 1rem 0;
  }

  .about__lead {
    font-family: var(--font-serif);
    font-size: var(--font-size-xl);
    padding: 0 3rem;
  }

  .about__body {
    color: var(--color-text-dark);
    font-family: var(--font-serif);
    font-size: 0.95rem;
    padding: 0 0 0 3rem;
  }
}

/* ════════════════════════════════════════
   3. PROSPECTIVE SECTION (募集)
   白背景 + 全幅バナー1枚
   背景: shared/img_prospective.jpg
   黄オーバーレイ (var(--color-accent))
════════════════════════════════════════ */
.prospective {
  background-color: var(--color-white);
  padding: 3rem 0;
}

/* ── バナー本体 (リンク) ── */
.prospective__banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 70rem;   /* 1120px */
  margin-inline: auto;
  min-height: 12.5rem;
  padding: 2.25rem 3.5rem;
  background-image:url('../shared/img_prospective.jpg');
  background-size: cover;
  background-position: center 35%;
  text-decoration: none;
  overflow: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.prospective__banner:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

/* ── 左: ラベル + タイトル ── */
.prospective__info {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

.prospective__label {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--font-size-base);
  color: #222222;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 0;
}

.prospective__title {
  font-family: var(--font-en);
  font-size: 2.75rem;
  color: #222222;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

/* ── 右: 説明文 + 矢印 ── */
.prospective__cta {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.prospective__text {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    color: #222222;
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: 0.1em;
}

.prospective__arrow {
  color: #222222;
  font-size: 1.25rem;
  flex-shrink: 0;
  opacity: 0.85;
}

/* ─── Prospective: モバイル ─── */
@media (max-width: 47.9375rem) {
  .prospective__banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }

  .prospective__title {
    font-size: 2rem;
  }

  .prospective__text {
    font-size: 1rem;
  }
}

/* ─── Prospective: デスクトップ ─── */
@media (min-width: 64rem) {
  .prospective {
    padding: 3.5rem 0;
  }

  .prospective__banner {
    padding: 2.75rem 4.5rem 2.75rem 3rem;
    min-height: 12.5rem;
  }

  .prospective__title {
    font-size: 3.4rem;
  }
}

/* ════════════════════════════════════════
   4. NEWS SECTION
   背景: shared/bg_news.jpg (淡青テクスチャ)
════════════════════════════════════════ */
.news {
  background-color: #e8f0f8;   /* bg_news.jpg 読み込みまでのフォールバック */
  background-image: url('../shared/bg_news.jpg');
  background-size: contain;
  background-position: center;
  padding: 3.5rem 0 5rem;
}

.news .container{
  max-width: 63.75rem;
  padding-inline: 0;
}

/* ── ヘッダー行: [見出し列] [タブ列] ── */
.news__header {
  display: flex;
  align-items: flex-end;   /* タブをNewsタイトル下端に揃える */
  gap: 5rem;
  margin-bottom: 2rem;
}

/* ── 左: ラベル + タイトル ── */
.news__heading {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

.news__label {
  font-family: var(--font-serif);
  font-size: var(--font-size-base);   /* 12px */
  color: #254efe;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

/* セクション見出し */
.news__title {
  font-family: var(--font-en);
  font-size: 3.4rem;
  color: #254efe;
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

/* ─── カテゴリタブ ─── */
.news__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.5rem;
  align-items: center;
  flex: 1;
  margin-bottom: 0.125rem;  /* News下端に合わせる微調整 */
}

.news__tab {
  font-family: var(--font-serif);
  font-size: var(--font-size-md);
  color: var(--color-text-dark);
  cursor: pointer;
  font-weight: 500;
  padding:0 0.2rem 0.25rem 0.2rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.news__tab:hover {
  color: var(--color-blue);
  border-bottom-color: var(--color-blue);
}

.news__tab--active {
  color: var(--color-blue);
  font-weight: 700;
  border-bottom-color: var(--color-blue);
}

.news__tab--active:hover {
  border-bottom-color: var(--color-blue);
}

.news__tab--link {
  margin-left: auto;
  color: var(--color-text-dark);
  font-weight: 600;
}

.news__tab--link:hover {
  color: var(--color-primary);
  border-bottom-color: transparent;
}

/* ─── ニュースグリッド ─── */
.news__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  display: none;
}

.news__grid.active{
  display: grid;
}

/* プレースホルダーカードサムネイル内テキスト */
.news-card__thumb--text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm2);
  color: #c0602a;
  font-family: var(--font-sans);
  font-weight: 400;
}

/* ─── ニュースカード (<a> 要素) ─── */
.news-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.news-card::after{
  content:"";
  width: 1px;
  height: 100%;
  background: #d5dce4;
  position: absolute;
  top: 0;
  right: -2.75rem;
  z-index: 1;
}

.news-card:nth-child(3n)::after{
  display: none;
}

.news-card:hover {
  transform: translateY(-4px);
  background-color: var(--color-white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* サムネイル */
.news-card__thumb {
  width: 100%;
  max-width: 17.5rem;
  aspect-ratio: 560 / 232;   /* プレースホルダー div にも高さを確保 */
  object-fit: cover;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.news-card__thumb--placeholder {
  background-color: var(--color-placeholder);
}

/* サムネイル img 要素用スタイル (display:block を上書き) */
img.news-card__thumb {
  display: block;
}

/* カード本文エリア */
.news-card__body {
  padding: 0.9375rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.news-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.news-card__desc {
  font-family: var(--font-serif);
  font-size: var(--font-size-sm2);
  color: var(--color-black);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* カテゴリタグ */
.news-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-white);
  padding: 0.125rem 0.5rem;
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
}

.news-card__tag--conference {
  background-color: var(--color-navy);
}

.news-card__tag--paper {
  background-color: var(--color-navy);
}

.news-card__tag--award {
  background-color: var(--color-navy);
}

.news-card__tag--lab {
  background-color: var(--color-navy);
}

/* 日付 */
.news-card__date {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--color-text-dark);
  font-weight: 500;
  margin-left: auto;
  white-space: nowrap;
}

/* ─── News Grid: タブレット ─── */
@media (min-width: 48rem) {
  .news__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 3rem;
  }
}

/* ─── News Grid: デスクトップ ─── */
@media (min-width: 64rem) {
  .news__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem 5.5rem;
  }
}

/* ##########SP########## */
@media screen and (min-width:1px) and (max-width:479px) {
    .hero{
        min-height: auto;
        background-position: left;
    }

    .hero__inner{
        padding: 5.5rem 0 2rem 0;
    }

    .hero__affiliation{
        font-size:0.8rem;
        margin-bottom: 1.5rem;
    }

    .hero__catch{
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero__catch-1{
      height: auto;
      width: 65vw;
    }

    .hero__catch-2{
      height: auto;
      width: 65vw;
    }

    .hero__tagline{
        font-size: 1.36rem;
    }

    /*about*/
    .about{
      margin-top: 1rem;
    }

    .about::before{
      width: auto;
      min-width: unset;
      height: 112vw;
      aspect-ratio: 2640 / 1120;
    }

    .about__inner{
      flex-direction: column-reverse;
      padding-inline: 1rem;
    }

    .about__white-disk{
        width: 110vw;
        height: 93vw;
        left: -20vw;
        top: unset;
        bottom: 0;
    }

    .about__content{
      width: auto;
      padding: 8vw 0 1rem 0;
    }

    .about__lead{
      font-weight: 500;
      margin-bottom: 1rem;
      line-height: 1.6;
      padding-right: 5rem;
    }

    .about__body{
        font-size: 0.85rem;
        line-height: 1.6;
        padding-right: 2rem;
    }

    .about__nav{
      width: 100%;
      display: flex;
      justify-content: center;
      flex-direction: row;
      gap: 1rem;
      padding: 2rem 0 3rem 0;
      margin-left: 0;
    }

    .about__nav-item{
      flex-direction: column;
      gap: 0.6rem;
    }

    .about__nav-en{
      font-size: 0.75rem;
    }

    .about__nav-ja{
      gap: 0.5rem;
    }

    .about__nav-arrow{
      height: 0.8rem;
    }

    .about__nav-circle{
      width: 7rem;
      height: 7rem;
    }

    /*大学院生募集*/
    .prospective{
        padding: 1rem 0 3rem 0;
    }

    .prospective .container{
      max-width: 100%;
    }

    .prospective__banner{
        padding: 1.5rem 2rem;
        overflow: unset;
        position: relative;
        min-height: auto;
    }

    .prospective__title{
      font-size: 2.8rem;
    }

    .prospective__cta{
      position: absolute;
      bottom: -2.2rem;
      width: calc(100% - 4rem);
    }

    .prospective__text{
      color: #111111;
      text-align: center;
      width: 100%;
      font-size: 0.9rem;
    }

    .prospective__text br{
      display: none;
    }

    .prospective__arrow{
      display: none;
    }

    /*news*/
    .news{
      padding: 2rem 0 3rem;
      background-size: 120vw auto;
    }

    .news .container{
      max-width: 90vw;
    }

    .news__header{
      display: block;
    }

    .news__heading{
      margin-bottom: 1.5rem;
    }

    .news__title{
      font-size: 2.8rem;
    }

    .news__tabs{
      gap:0.45rem 1rem
    }

    .news__tab{
      font-size: 0.94rem;
    }

    .news__grid{
      width: 80vw;
      margin: 0 auto;
    }

    .news-card__thumb{
      max-width: 100%;
    }

    .news-card::after{
      display: none;
    }
}

