/*
Theme Name: Takahashi Lab
Theme URI: https://takahashi-lab.com/
Author: Sugimoto
Description: 自作テーマ
Version: 1.0
*/

/* 一般設定 */

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: black;
  color: white;
  margin: 0;
  padding: 0;
  padding-top: 100px;
  font-size: 1.2rem;
}

body h1,
body h2,
body h3,
body p {
  text-align: center;
  margin-inline-start: 1rem;
  margin-inline-end: 1rem;
  margin-block-start: 1rem;
  margin-block-end: 1rem;
}

body.admin-bar header {
  top: 32px;
  /* WP管理バーの高さ分だけ下げる */
}


/* ヘッダー設定 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: black;
  z-index: 9999;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  padding: 0.5rem 4rem 0;
  margin: 0 auto;
  box-sizing: border-box;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  font-size: 1.1rem;
}

/* メニューのスタイル */
.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.global-nav li a {
  text-decoration: none;
  color: white;
}

.logo {
  max-width: 250px;
  height: auto;
  display: block;
}

.main-logo {
  max-width: 100%;
}

.hamburger {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 30px;
  cursor: pointer;
  z-index: 10000;
}

.hamburger span {
  display: block;
  height: 5px;
  background: #6a5cff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, background .2s ease;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-bg {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transform-origin: 50% 50%;
  animation: heroZoomRotate 20s ease-out forwards;
}

.hero-bg-sp {
  display: none;
}

.overlay-content {
  position: absolute;
  top: 30%;
  left: 5%;
  z-index: 20;
}

.hero h1 {
  font-size: 4rem;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: normal;
  margin: 0 auto 2rem;
  text-align: left;
}

.hero-title {
  display: inline-block;
  margin-bottom: 2rem;
  clip-path: inset(0 100% 0 0);
  /* 右側を100%切り落として非表示 */
  animation: heroWipeIn 0.6s cubic-bezier(.22, .61, .36, 1) forwards;
  /* 任意で遅延設定 */
  animation-delay: 2s;
}


/* レシポンシブ設定 */
@media screen and (max-width: 768px) {
  body.admin-bar header {
    top: 46px;
    /* WP管理バーの高さ分だけ下げる */
  }

  body {
    padding-top: 60px;
    font-size: 1rem;
  }

  .header-inner {
    display: flex;
    align-items: center;
    padding: 0rem 2rem 0 1rem;
    gap: 3rem;
  }

  .hamburger {
    display: flex;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 95px;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    width: 100%;
    z-index: 999;
  }

  .header-nav.active {
    display: block;
  }

  .contact-button a {
    display: block;
    height: 60px;
    margin-left: 0;
    text-align: center;
    align-content: center;
    color: white;
  }

  .global-nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 0.5rem;
  }

  .global-nav li {
    margin: 10px auto;
  }

  .logo-header {
    display: inline-block;
    max-width: 300px;
  }

  .hero-bg-sp {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transform-origin: 50% 50%;
    animation: heroZoomRotate 20s ease-out forwards;
  }

  .hero-bg {
    display: none;
  }

  .overlay-content {
    top: 30%;
    left: 5%;
  }

  .section-contents h1 {
    font-size: 1.4rem;
    font-weight: normal;
    margin: 0;
    margin-bottom: 2rem;
  }

  .section-contents p {
    font-size: 0.9rem;
    margin: 1rem 0 0;
  }
}


/* Top page */
.bg-space {
  min-height: 100vh;
  background-image: url('https://takahashi.createwebsite18.com/wp-content/uploads/2026/01/tp_background.png');
  background-size: auto;
  /* 画像の実寸・縦横比を維持 */
  background-repeat: repeat;
  /* 画像サイズに合わせて繰り返す */
  background-position: top left;
  background-attachment: fixed;
  /* スクロールしても動かさない */
}

.pickup {
  background: #f4f5ff;
  padding: 4rem 0 4rem;
}

.pickup__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-family: "Noto Serif JP", serif;
  font-weight: bold;
  line-height: 1.05;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 8px;
  background: #6a5cff;
}

.section-title--pickup {
  margin: 0 0 2.5rem;
  color: #3a3a3a;

}

.pickup__link {
  display: inline-block;
  color: #3a3a3a;
  font-size: 1.2rem;
  line-height: 1.9;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  margin: 0 1rem;
}

.pickup__link:hover {
  opacity: .85;
}

.about {
  padding: clamp(24px, 4vw, 56px) 16px;
  margin-top: 3rem;
}

.about__inner {
  /* ここが肝：画像幅と重なり量を“画面に連動”させる */
  --imgW: clamp(300px, 42vw, 560px);
  --overlap: clamp(18px, 4.2vw, 96px);
  --gap: clamp(14px, 2.2vw, 28px);

  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: var(--imgW) 1fr;
  align-items: start;
  gap: var(--gap);
  position: relative;
}

/* 左の画像 */
.about__media {
  position: relative;
  z-index: 1;
  margin-right: calc(var(--overlap) * -1);
}

.about__img {
  width: 100%;
  height: auto;
  display: block;
}

/* 右の文章パネル（画像に“かぶせる”） */
.about__panel {
  position: relative;
  z-index: 2;
  margin: 2rem auto;

  /* 画像側へ引き込んで重ねる */
  margin-left: calc(var(--overlap) * -0.5);
  max-width: 500px;

}

.section-title--about {
  margin-bottom: 5rem;
  left: 25%;
}


/* 文章 */
.about__lead {
  font-size: 1.1rem;
  text-align: left;
  line-height: 1.8;
  margin: 0 0 5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
  /* 背景が明るい箇所でも読めるように */
}

.about__body p {
  margin: 0 0 2rem;
  text-align: left;
  font-size: 1rem;
  line-height: 1.8;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

/* どうしても狭いときは段組みを諦めて縦積み（比率維持の限界点） */
@media screen and (max-width: 768px) {

  .pickup__link {
    font-size: 1rem;
  }

  .about {
    margin-top: 0;
  }

  .about__inner {
    grid-template-columns: 1fr;
  }

  .about__media {
    margin-right: 0;
  }


  .about__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    margin-top: 3rem;
  }

  .section-title--about {
    width: fit-content;
    margin: 0 auto 3rem;
    left: 0;
  }

  .about__lead {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
}

/* ===== News (What's new) ===== */
.news {
  padding: 3rem 0.5rem;
}

.news__inner {
  display: flex;
  flex-direction: column;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title--news {
  width: fit-content;
  margin: 0 auto 3rem;
}

.news__list {
  display: grid;
  gap: 1.375rem;
  /* 22px */
  margin: 1rem 0;
}

.news-card {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0;
  align-items: center;

  padding: 1.5rem 3rem;
  border-radius: 0.625rem;
  background: rgba(245, 246, 255, .95);

  text-decoration: none;
  color: #3a3a3a;

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    opacity .15s ease;
}

.news-card:hover,
.news-card:focus-visible {
  transform: translateY(-0.0625rem);
  /* -1px */
  box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, .18);
  opacity: .98;
}

.news-card__date {
  font-size: 1rem;
  text-align: left;
  white-space: nowrap;
  margin-top: 0.125rem;
}

.news-card__title {
  font-size: 1rem;
  line-height: 1.85;

  text-decoration: none;
  text-underline-offset: 0.25rem;
  text-decoration-thickness: 0.0625rem;
}

.news-card__title:hover {
  color: #6a5cff;
}

.news-card__excerpt {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  /* 13px */
  line-height: 1.8;
  opacity: .9;
}

.news__more {
  margin-top: 1.125rem;
  text-align: right;
}

.news__more-link {
  color: #fff;
  text-decoration: none;
  font-weight: normal;
  text-align: end;
}

.news__more-link:hover,
.news__more-link:focus-visible {
  font-weight: bold;
  color: #6a5cff;
}

/* responsive */
@media screen and (max-width: 768px) {

  .news-card {
    grid-template-columns: 1fr;
    padding: 1rem 1rem;
    gap: 0.5rem;
  }

  .news-card__date {
    order: -1;
  }

  .news-card__title {
    font-size: 0.9rem;
    text-decoration: underline;
  }
}


/* ===== Research ===== */
.research {
  padding: clamp(2.5rem, 5vw, 4rem) 1rem;
  padding-top: 0;
  padding-bottom: 8rem;
}

.research__inner {
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  margin: 0 auto;
}

.section-title--research {
  width: fit-content;
  margin: 0 auto 3rem;
}


.research-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem;
  /* スクショの余白感 */
}

/* card */
.research-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  padding: 1rem 3rem 3rem;
  border-radius: 1rem;
  background: rgba(245, 246, 255, .96);
  text-decoration: none;
  color: #3a3a3a;

  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}


.research-card:hover,
.research-card:focus-visible {
  transform: translateY(-0.0625rem);
  box-shadow: 0 0.75rem 2.25rem rgba(0, 0, 0, .18);
  opacity: .98;
}

.research-card__head {
  text-align: center;
  font-size: 1.5rem;
  font-weight: normal;
  padding: 0.5rem 1rem;
}


.research-card__media {
  border-radius: 0.25rem;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.research-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.research-card:hover .research-card__media img {
  transform: scale(1.06);
}


/* 画像がないカード（空枠） */
.research-card--empty .research-card__media {
  background: rgba(255, 255, 255, .7);
}

/* more link */
.research__more {
  margin-top: 1.25rem;
  text-align: right;
}

.research__more-link {
  color: #fff;
  /* 背景が暗い前提。明るいなら #333 */
  text-decoration: none;
  font-weight: normal;
}

.research__more-link:hover,
.research__more-link:focus-visible {
  font-weight: bold;
  color: #6a5cff;
}

/* ===== Mobile: 1 column ===== */
@media screen and (max-width: 768px) {

  .research-grid {
    gap: 1.5rem;
  }

  .research-card {
    gap: 0.5rem;
    padding: 1rem 0.5rem 1rem;
  }

  .research-card__head {
    font-size: 1rem;
  }

  .section-title--research {
    margin: 0 auto 1rem;
  }
}


/* フッター設定 */
footer {
  padding: 0.5rem 1rem;
  background-color: black;
  color: white;
}

.footer-contents {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
  margin: 0 auto;
  gap: 3rem
}

.footer-contents-contact {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-contents-sitemap {
  justify-content: center;
  align-items: center;
}

.enterprise-logo {
  max-width: 150px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.enterprise-logo img {
  max-width: 100%;
}

.enterprise-detail {
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 5rem 0 0;
}

.enterprise-detail h3,
.enterprise-detail p {
  font-size: 1rem;
  text-align: left;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 1rem;
}

footer ul li {
  padding: 0 1rem;
  position: relative;
  text-align: center;
}

footer ul li:not(:first-child)::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background-color: white;
}

.footer-nav li a {
  text-decoration: none;
  color: white;
}

.divider {
  width: 1px;
  height: 200px;
  background-color: white;
}

.contact-top {
  display: flex;
  gap: 2rem;
  margin: 1rem auto 2rem;
  justify-content: center;
}

.contact-top img {
  display: block;
  max-width: 80px;
}

.contact-message {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.contact-message p {
  margin-block-start: 0.5;
  margin-block-end: 0.5;
}

.contact-button-f {
  display: block;
  max-width: 500px;
  text-align: center;
  margin: 0 auto 2rem;
}

.contact-button-f a {
  display: block;
  max-width: 250px;
  border: 3px solid #6a5cff;
  color: white;
  padding: 0.8rem 3rem;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  text-align: center;
}


.button-link-contact:hover {
  background: linear-gradient(135deg, #6a5cff 0%, #3b2fbf 100%);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transition: background-linear-gradient 0.8s ease;
}

/* フッターレシポンシブ設定 */
@media screen and (max-width: 768px) {

  .footer-contents,
  .footer-contents-contact,
  .footer-nav ul {
    display: block;
    padding: 0 0;
    margin: 0 auto;
    width: 100%;
  }

  .footer-nav ul {
    text-decoration: underline;
  }

  .enterprise-logo {
    margin: 2rem auto 0;
  }

  .enterprise-detail {
    margin: 0 auto 2rem;
  }

  .enterprise-detail h3,
  .enterprise-detail p {
    text-align: center;
  }

  .btn-2column {
    display: grid;
    gap: 1rem;
  }

  .divider {
    display: none;
  }

  .footer-contents-sitemap {
    margin: 2rem auto;
    font-size: 0.9rem;
  }

  .footer-contents-sitemap p {
    margin-inline-start: 0;
    margin-inline-end: 0;
  }

  footer ul li:not(:first-child)::before {
    display: none;
  }

  footer ul li {
    margin-bottom: 1rem;
  }
}

/* 個別ページ見出し設定 */
.page-header {
  position: relative;
  width: 100%;
  max-height: 300px;
  overflow: hidden;
}

.page-header img {
  width: 100%;
  height: auto;
}

.page-title-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 4rem;
  font-family: "Noto Serif JP", serif;
  font-weight: bold;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
  margin: 0;
  padding: 0;
}


/* 個別ページ　レシポンシブ設定 */
@media screen and (max-width: 768px) {
  .page-header img {
    width: auto;
  }

  .page-title-overlay {
    font-size: 3rem;
  }

}

/* ===== Members ===== */
.members {
  max-width: 900px;
  margin: 0rem auto 8rem;
  padding: clamp(3rem, 6vw, 5rem) 1rem;
  color: #fff;
}

.members-title {
  margin: 3rem 0 1.5rem;
  font-size: 2rem;
}

.faculty {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 5rem;
  margin-bottom: 1rem;
}

.faculty__role,
.student__role {
  text-align: left;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  margin-inline-start: 0;
  margin-inline-end: 0;
}

.faculty__name,
.student__name {
  text-align: left;
  font-size: 1.5rem;
  font-weight: normal;
  margin-inline-start: 2rem;
  margin-bottom: 1rem;
}

.faculty__link {
  text-align: right;
  display: block;
  margin-bottom: 1.5rem;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: .25rem;
}

.faculty__link:hover {
  color: #6a5cff;
  text-decoration-color: #6a5cff;
}

.faculty__career {
  padding-left: 2rem;
}

.faculty__career h4 {
  font-size: 1.2rem;
  font-weight: normal;
  margin-bottom: 1rem;
}

.faculty__career ul {
  list-style: disc;
  padding-left: 1.5rem;
  line-height: 1.9;
  font-size: 1.1rem;
}

.faculty__career li span {
  display: inline-block;
  min-width: 15rem;
}

.faculty__photo img {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 0 0 0 auto;
}

/* Doctor */
.student {
  margin-top: 1.5rem;
}

.doctor__grade {
  font-weight: 700;
  margin-bottom: .5rem;
}

.doctor__name {
  font-size: 1.125rem;
}

/* ===== Mobile ===== */
@media screen and (max-width: 768px) {
  .members {
    margin: 0rem auto 5rem;
    padding: 2rem
  }

  .faculty {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .members-title {
    margin: 3rem auto 0.5rem;
    font-size: 1.5rem;
    text-align: left;
    max-width: 400px;
    line-height: 1.2;
  }

  .faculty__role,
  .student__role,
  .faculty__name,
  .student__name {
    font-size: 1.2rem;
  }

  .faculty__photo {}

  .faculty__photo img {
    margin: 0 auto 1rem;
    max-width: 12rem;
  }

  .faculty__career {
    padding-left: 0;
  }

  .faculty__career ul {
    font-size: 1rem;
  }

  .faculty__career h4 {
    padding-left: 1.5rem;
  }


  .faculty__career li span {
    width: 100%;
  }
}



/* ===== Research ===== */
.research-page {
  padding: 5rem 2rem 8rem;
  background-color: white;
}

.research-page__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 0;
  align-items: start;
}

/* 左：本文（白パネル版） */
.research-page__main {
  max-width: 900px;
  padding: 28px 28px 32px;
  color: #3a3a3a;
  line-height: 1.5;
  justify-self: center;
}


.research-section-link {
  scroll-margin-top: 150px;
  /* ヘッダー高さ分だけオフセット */
}

.each-research {
  display: flex;
  flex-direction: column;
}


.research-page__sidebar {
  position: sticky;
  top: 200px;
}


.research-field-title {
  display: flex;
  width: fit-content;
  margin: 0 auto 5rem;
  font-size: 2rem;
  color: #3a3a3a;
}

.research-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.research-subtitle {
  margin: 0 0 2rem;
  font-size: 1.2rem;
  font-weight: normal;
  line-height: 1.6;
}

.research-page__main p {
  margin: 0 0 2rem;
  font-size: 1rem;
  text-align: left;
}

/* 文章中リンク */
.research-page__main a {
  color: #1d3fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.research-page__main a:hover,
.research-page__main a:focus-visible {
  text-decoration-thickness: 2px;
}


/* =========================================================
   画像（2枚並び → スマホで1列）
   ========================================================= */
.research-images {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  justify-items: center;
  gap: 30px;
  margin: 1rem 0 1rem;
}

.research-images__figure {
  display: block;
  margin: 0 auto;
  text-align: center;
}

.divided-leftside {
  width: 55%;
}

.divided-rightside {
  width: 42%;
}

.divided-large {
  width: 80%;
}


.research-images__figure img {
  max-height: 300px;
  /* 基準サイズ（PC） */
  width: auto;
  /* 比率維持 */
  max-width: 100%;
  /* 親より大きくならない */
  display: block;
  margin: 0 auto;
}

.research-images__figure figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

/* 論文リンク誘導（任意） */
.research-paper {
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
  border-bottom: 2px solid #6a5cff;
  margin-bottom: 5rem;
}

.research-paper__lead {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.research-paper p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.research-paper__list {
  margin: 0;
  padding-left: 1.2em;
}

.research-paper__list li {
  line-height: 1.6;
}

.research-paper__list a {
  color: #000;
  text-decoration: underline;
}

.research-paper__list a:hover {
  color: #6a5cff;
}


/* =========================================================
   研究テーマサイドバー（右）
   ========================================================= */
.research-side {
  background: black;
  border-radius: 0;
  padding: 2rem 1rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .25);
}

.research-side__title {
  color: #fff;
  font-weight: normal;
  text-align: center;
  padding: 0 0 2rem;
  letter-spacing: 0.04em;
}

.research-side__list {
  display: grid;
  gap: 1.5rem;
}


/* ボタン */
.research-side__btn {
  display: block;
  text-align: center;
  padding: 1rem 1rem;
  border-radius: 8px;

  background: rgba(245, 246, 255, .96);
  color: #6a5cff;
  text-decoration: none;
  font-weight: normal;
  font-size: 1rem;
  line-height: 1.3;

  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}

.research-side__btn:hover,
.research-side__btn:focus-visible {
  transform: translateY(-1px);
  opacity: .96;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

/* 現在ページ（任意：枠だけ強調） */
.research-side__btn.is-active {
  outline: 2px solid #6a5cff;
  outline-offset: 2px;
}



@media (max-width: 900px) {
  .research-page__inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .research-page__sidebar {
    position: sticky;
    top: 100px;
    /* 固定ヘッダー高さに合わせて調整 */
    order: -1;
    display: block;
    /* 中央寄せの必要があれば後述 */
    z-index: 50;
  }

  /* サイドバー本体 */
  .research-side {
    padding: 10px;
    border-radius: 12px;
    background: black;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, .08);
  }

  /* 見出しはスマホでは不要なら非表示 */
  .research-side__title {
    display: none;
  }

  /* ===== 折りたたみトグル ===== */
  .research-side__toggle {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0.5rem 1rem 0.5rem 2rem;
    border-radius: 12px;
    border: 1px solid black;
    background: rgba(245, 246, 255, .96);
    font: inherit;
    cursor: pointer;
  }

  .research-side__toggleLabel {
    font-weight: bold;
    color: #6a5cff;
  }

  .research-side__toggleHint {
    font-size: .9em;
    opacity: .75;
    margin-left: auto;
  }

  .research-side__chev {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .18s ease;
  }

  .research-side__toggle[aria-expanded="true"] .research-side__chev {
    transform: rotate(-135deg);
  }

  /* ===== 展開パネル ===== */
  .research-side__panel {
    margin-top: 8px;
    border-radius: 12px;
    border: 1px solid black;
    background: black;
    overflow: hidden;
  }

  /* 展開時のリスト（現状の2列グリッドを流用） */
  .research-side__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
  }

  .research-side__btn {
    display: block;
    text-align: center;
    white-space: nowrap;
    padding: 0.8rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    max-width: none;
    /* 150px制限は外した方が押しやすい */
  }

  /* アンカーのオフセット（固定物の合計に合わせて調整） */
  .research-section-link {
    scroll-margin-top: 180px;
  }
}

@media (min-width: 901px) {
  .research-side__toggle {
    display: none;
  }

  .research-side__panel {
    display: block !important;
  }

  /* hidden 属性を強制解除（PCでは常時表示） */
  .research-side__panel[hidden] {
    display: block !important;
  }
}

@media screen and (max-width: 768px) {
  .page-hero--research {
    padding: 44px 16px 18px;
  }

  .research-page {
    padding: 24px 16px 52px;
  }

  .research-page__main {
    padding: 1rem 0;
    border-radius: 16px;
  }

  .research-title {
    font-size: 1.2rem;
  }

  .research-subtitle {
    font-size: 1.1rem;
  }

  .research-page__main p {
    font-size: 1rem;
  }

  .research-images {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}


/* ===== News Archive ===== */
.news-archive {
  padding: 0;
}

.news-archive__inner {
  max-width: 1200px;
  margin: 5rem auto 8rem;
  padding: 1rem;
}

/* 白いボックス */
.news-rows {
  margin-top: 1.5rem;
  background: rgba(245, 246, 255, .96);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 4vw, 4rem);
  padding-left: 5rem;
  padding-right: 5rem;
}

/* 1行 */
.news-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  /* 日付カラム固定 */
  column-gap: 2rem;
  align-items: center;
  padding: 1.5rem 0 1rem;
  text-decoration: none;
  color: #3a3a3a;
  position: relative;
}

/* 紫の区切り線（各行の下） */
.news-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #6a5cff;
  opacity: .85;
}

/* 最後の行は線を消す（スクショに合わせるなら残してもOK） */
.news-row:last-child::after {
  opacity: 0;
}

/* 日付 */
.news-row__date {
  font-size: 1rem;
  white-space: nowrap;
  text-align: center;
}

/* タイトル（リンク） */
.news-row__text {
  font-size: 1rem;
  line-height: 1.9;
}

/* hover */
.news-row:hover .news-row__text,
.news-row:focus-visible .news-row__text {
  text-decoration: underline;
  text-decoration-color: #6a5cff;
  text-decoration-thickness: 0.125rem;
  color: #6a5cff;
}

/* mobile: 1列（スクショ要件に合わせて） */
@media screen and (max-width: 768px) {
  .news-archive__inner {
    margin: 3rem auto;
  }

  .news-rows {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .news-row {
    grid-template-columns: 1fr;
    row-gap: 0.5rem;
  }

  .news-row__date {
    text-align: left;
  }

  .news-row__text {
    font-size: 1rem;
    text-decoration: underline;
    line-height: 1.5;
  }

}



/* ===== Publication ===== */
/* ページ本文コンテナ（あなたのpage.php構造に合わせてクラスは調整可） */
.publication-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 5rem 1rem 8rem;
  color: #fff;
}

/* 箇条書き（•） */
.publication-body ul {
  margin: 0;
  padding-left: 1.5rem;
  list-style: disc;
}

/* 行間と余白 */
.publication-body li {
  margin: 0 0 1.5rem;
  line-height: 1.5;
  font-size: 1rem;
}

/* リンク：白＋下線 */
.publication-body a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.publication-body a:hover,
.publication-body a:focus-visible {
  color: #6a5cff;
  text-decoration-color: #6a5cff;
  text-decoration-thickness: 2px;
  opacity: .95;
}

/* 見やすさ：長文での折返し改善（任意） */
.publication-body li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media screen and (max-width: 768px) {
  .publication-body {
    padding: 3rem 1rem 5rem 0rem;
  }

  .publication-body li {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
}

/* ===== Contact ===== */
.contact-page {
  margin: 0 auto;
  padding: 5rem 3rem 8rem;
  justify-content: center;
}

.section-title--access,
.section-title--link {
  margin: 5rem 5rem 1rem;
  font-size: 2rem;
}

.company-add-map {
  display: flex;
  align-items: center;
  margin: 0 auto 2rem;
  max-width: 1400px;
  flex-wrap: wrap;
}

.company-address {
  margin: 1rem auto;
  align-items: center;
  max-width: 600px;
}

.company-address ul {
  list-style: none;
  padding-inline-start: 0;
  padding-bottom: 2rem;
  margin: 1em 0;
  max-width: 100%;
}

.company-address li {
  display: flex;
  padding: 1rem 0;
  border-bottom: 1px solid #3a3a3a;
  flex-wrap: nowrap;
}

.company-address .label {
  width: 150px;
  margin: auto 3rem auto 1rem;
}

.contact__link-url {
  color: white;
}

.contact__link-url:hover {
  text-decoration-color: #6a5cff;
  color: #6a5cff;
}



.company-address h2 {
  margin: 2rem auto 0 1rem;
  text-align: left;
  font-size: 1.5rem;
}

.company-map {
  margin: 0 auto;
  max-width: 100%;
}

.google-map {
  max-width: 100%;
}

.contact-form {
  text-align: left;
  max-width: 735px;
  margin: 0 auto;
}

.contact-form p {
  margin-block-start: 0.5rem;
  margin-block-end: 0.5rem;
  margin-inline-start: 0;
  margin-inline-end: 0;
}

.contact-form a {
  color: white;
}

.contact-form a:hover {
  text-decoration-color: #6a5cff;
  color: #6a5cff;
}

.form-inner {
  max-width: 800px;
  margin: 2rem auto 5rem;
  padding: 0 1rem;
  box-sizing: border-box;
  text-align: left;
}

.input-box {
  display: flex;
  align-items: center;
  margin-bottom: 1em;
  flex-wrap: wrap;
}

.label-area {
  display: inline-block;
  width: 170px;
  text-align: left;
}

.input-area {
  flex: 1;
}

.input-area input,
.input-area textarea {
  width: 100%;
  padding: 0.5em;
  font-size: 1rem;
  border: 1px solid #ccc;
  /* 境界線を設定 */
  border-radius: 5px;
  /* 角を丸める（任意） */
}

/* 非表示のスピナー（くるくる回るアイコン） */
.wpcf7-spinner {
  position: absolute;
  left: 50%;
  transform: translateX(60px);
  /* ボタン横にずらす */
}

@media screen and (max-width: 768px) {


  .contact-page {
    padding: 1rem;
  }

  .section-title--access,
  .section-title--link {
    margin: 5rem 1rem 1rem;
    font-size: 2rem;
  }

  .company-add-map {
    display: block;
  }

  .company-map {
    margin: 2rem 0 5rem;
    max-width: 600px;
  }

  .google-map {
    width: 100%;
  }

  .input-area input,
  .input-area textarea {
    padding: 0.5rem 0;
  }


  .input-box {
    display: block;
  }


  .form-inner {
    margin: 5rem auto 2rem;
    padding: 0rem;
  }

  .label-area {
    width: -webkit-fill-available;
    text-align: left;
  }

  .company-address {
    margin: 2rem auto;
  }

  .company-address ul {
    font-size: 0.9rem;
  }

  .company-address .label {
    width: 130px;
    min-width: 80px;
    margin: auto 1rem;
  }

  .company-address h2 {
    margin: 1rem auto 0 1rem;
    font-size: 1.2rem;
  }
}

.post-content {
  margin: 8rem auto;
}

.privacy-text {
  margin: 8rem auto;
  max-width: 800px;
}


@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes shine {
  0% {
    left: 0%;
  }

  100% {
    left: 125%;
  }
}

@keyframes heroZoomRotate {
  from {
    transform: scale(1.3) rotate(-7deg);
  }

  to {
    transform: scale(1.0) rotate(0deg);
  }
}

@keyframes heroWipeIn {
  to {
    clip-path: inset(0 0 0 0);
  }
}



/* 左から表示（clip-path） */
.animate.reveal-left {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.5s ease-out;
  opacity: 0;
}

.animate.reveal-left.show {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

/* 右から表示（clip-path） */
.animate.reveal-right {
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0.5s ease-out;
  opacity: 0;
}

.animate.reveal-right.show {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

/* フェードイン 
.animate.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.animate.fade-in.show {
  opacity: 1;
}

/* 左からスライドイン 
.animate.slide-in-left {
  opacity: 0;
  transform: translateX(-24px);
  transition:
    transform 0.8s ease-out,
    opacity 0.8s ease-out;
  will-change: transform, opacity;
}

.animate.slide-in-left.show {
  opacity: 1;
  transform: translateX(0);
}

/* 右からスライドイン 
.animate.slide-in-right {
  opacity: 0;
  transform: translateX(24px);
  transition:
    transform 0.8s ease-out,
    opacity 0.8s ease-out;
  will-change: transform, opacity;
}

.animate.slide-in-right.show {
  opacity: 1;
  transform: translateX(0);
}

/* 右からスライドイン 
.animate.slide-in-right {
  opacity: 0;
  transform: translateX(24px);
  transition:
    transform 0.8s ease-out,
    opacity 0.8s ease-out;
}

.animate.slide-in-right.show {
  opacity: 1;
  transform: translateX(0);
}
*/

.animate.slide-in-right {
  opacity: 0;
  clip-path: inset(0 0 0 50px);
  /* 左に24px分だけ切り取り */
  transition: clip-path 0.8s ease-out, opacity 0.8s ease-out;
}

.animate.slide-in-right.show {
  opacity: 1;
  clip-path: inset(0);
}

/* 下からスライドイン */
.animate.slide-in-bottom {
  opacity: 0;
  transform: translateY(24px);
  transition:
    transform 0.8s ease-out,
    opacity 0.8s ease-out;
}

.animate.slide-in-bottom.show {
  opacity: 1;
  transform: translateY(0);
}