/* ============================================================
   HINT | Human Interface Lab — Main Stylesheet
   ============================================================ */

/* ===== Zen Kaku Gothic New (Google Fonts — loaded via <link> in HTML) ===== */

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}
body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  color: #111111;
  background: #b8b4c8;
  line-height: 1.8;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; }

/* ===== Variables ===== */
:root {
  --font:       'Zen Kaku Gothic New', sans-serif;
  --color-dark:  #111111;
  --color-white: #ffffff;
  --color-gray:  #888888;
  --color-light: #f5f5f2;
  --max-w:       1160px;
  --header-h:    60px;
  --pad-h:       60px;
}

/* ===== Section Label ===== */
.section-label {
  display: block;
  margin-bottom: 40px;
  opacity: 0.55;
}
/* image tag variant */
.section-label img,
img.section-label {
  height: 17px;
  width: auto;
}
/* PROJECTS label is slightly larger */
.projects img.section-label {
  height: 18px;
}
/* text fallback */
.section-label--text {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gray);
  height: auto;
  opacity: 1;
}
.section-label--light { filter: invert(1); opacity: 0.55; }
.section-label--text.section-label--light {
  filter: none;
  color: rgba(255,255,255,0.55);
  opacity: 1;
}

/* PC-only line break — hidden on mobile/tablet, shows as break on desktop */
br.pc-only { display: none; }
@media (min-width: 1025px) { br.pc-only { display: inline; } }

/* SP-only line break — shows on mobile/tablet, hidden on desktop */
br.sp-only { display: inline; }
@media (min-width: 1025px) { br.sp-only { display: none; } }

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }


/* ============================================================
   HERO  (parallax: fixed bg, content scrolls over it)
   ============================================================ */
.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding-bottom: var(--header-h);
}

/* Full-page fixed video background */
.hero__bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* "HUMAN INTERFACE LAB" logo top-left */
.hero__site-name-img {
  position: absolute;
  top: 80px;
  left: var(--pad-h);
  height: 56px;
  width: auto;
  z-index: 2;
}

/* Large [HINT] logo — center */
.hero__logo-img {
  position: relative;
  z-index: 2;
  width: clamp(200px, 36vw, 500px);
  height: auto;
  user-select: none;
}

/* Global nav bar at bottom of hero — solid white */
.hero__nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.08);
  z-index: 200;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0s;
}
.hero__nav-bar.is-hidden {
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0.4s;
}
.hero__nav-bar__logo {
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}
.hero__nav-bar__logo:hover { opacity: 0.5; }
.hero__nav-bar__logo img {
  height: 34px;
  width: auto;
}
.hero__nav-bar__links {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

/* Down scroll indicator (above nav bar)
   position:fixed でviewport基準に固定 —
   iOS SafariではstickeyなHero内でabsoluteが誤配置されるバグを回避 */
.hero__scroll {
  position: fixed;
  bottom: calc(var(--header-h) + 32px);
  right: var(--pad-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  z-index: 2;
  animation: scrollFloat 2.4s ease-in-out infinite;
  transition: opacity 0.3s ease;
}
/* コンセプトセクション到達後は非表示 */
.hero__scroll.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: var(--color-dark);
  opacity: 0.5;
}
.hero__scroll-arrow {
  display: block;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--color-dark);
  border-bottom: 1px solid var(--color-dark);
  transform: rotate(45deg);
  margin-top: -4px;
  opacity: 0.5;
}
@keyframes scrollFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}


/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  z-index: 200;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0.4s;
}
.header.is-visible {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0s;
}

.header__inner {
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}
.header__logo:hover { opacity: 0.5; }
.header__logo-img {
  height: 34px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}
.header__nav-item {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-dark);
  transition: opacity 0.2s;
}
.header__nav-item:hover { opacity: 0.4; }
.header__nav-item img { height: 11px; width: auto; display: block; }
/* PROJECTS画像は自然サイズが34px（他は28px）のため同じ縮小率で高さを調整 */
.hero__nav-bar__links .header__nav-item:nth-child(2) img,
.header__nav .header__nav-item:nth-child(2) img { height: 14px; }

/* Hamburger — shared style for header and hero nav bar */
.header__menu-btn,
.hero__nav-bar__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  width: 32px;
  cursor: pointer;
}
.header__menu-btn span,
.hero__nav-bar__menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.header__menu-btn.is-active span:nth-child(1),
.hero__nav-bar__menu-btn.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.header__menu-btn.is-active span:nth-child(2),
.hero__nav-bar__menu-btn.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header__menu-btn.is-active span:nth-child(3),
.hero__nav-bar__menu-btn.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ============================================================
   MOBILE NAV — full-screen dark overlay
   ============================================================ */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  bottom: 0;
  background: #000000;
  z-index: 201; /* header(200)・hero nav bar(200) より前面 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.mobile-nav.is-open { transform: translateY(0); pointer-events: auto; }

/* × 閉じるボタン */
.mobile-nav__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  padding: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mobile-nav__close span {
  position: absolute;
  display: block;
  width: 22px;
  height: 1.5px;
  background: #ffffff;
}
.mobile-nav__close span:nth-child(1) { transform: rotate(45deg); }
.mobile-nav__close span:nth-child(2) { transform: rotate(-45deg); }

.mobile-nav__item {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #ffffff;
  transition: opacity 0.2s;
}
.mobile-nav__item:hover { opacity: 0.4; }
/* 画像を白く反転。28px画像は20px、34px(PROJECTS)は同縮小率で24px */
.mobile-nav__item img { height: 20px; width: auto; display: block; }
/* PROJECTS は1番目が閉じるボタンのため3番目の子 */
.mobile-nav .mobile-nav__item:nth-child(3) img { height: 24px; }


/* ============================================================
   FLOATING LAYER EFFECT
   上下エッジに影を落として動画背景の上に浮くような視覚効果
   ============================================================ */
.concept,
.team-members-group,
.footer {
  box-shadow: 0 -32px 80px rgba(0, 0, 0, 0.14), 0 32px 80px rgba(0, 0, 0, 0.14);
}

.team-members-group {
  position: relative;
}


/* ============================================================
   CONCEPT
   ============================================================ */
.concept {
  position: relative;
  z-index: 2;
  padding: 160px var(--pad-h) 200px;
  min-height: 100vh;
  background: #ffffff;
}
.concept__inner {
  /* no max-width — block centers directly in section content area */
}
.concept__block {
  max-width: 730px;
  margin: 0 auto;
  transform: translateX(17px);
}
.concept__heading {
  font-family: var(--font);
  font-size: clamp(1.6rem, 2.9vw, 2.4rem);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 32px;
  color: var(--color-dark);
}
.concept__body {
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  line-height: 2.2;
  color: #444;
}
.concept__body p + p { margin-top: 0; }


/* ============================================================
   PROJECTS
   ============================================================ */
.projects {
  position: relative;
  padding: 80px var(--pad-h) 100px;
}
.projects__inner {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Project card with bracket images */
.project {
  margin-bottom: 40px;
}
.project__link { display: block; }

.project__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-width: 900px;
  margin: 0 auto;
}
.project__bracket-l,
.project__bracket-r {
  position: absolute;
  top: 0;
  height: 100%;
  width: auto;
  z-index: 2;
  pointer-events: none;
}
.project__bracket-l { left: 0; }
.project__bracket-r { right: 0; }
.project__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.project__link:hover .project__img { transform: scale(1.03); }

/* Hover overlay — slides up from the bottom of the image on hover */
.project__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(30, 30, 30, 0.88);
  padding: 16px 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}
.project__link:hover .project__overlay {
  transform: translateY(0);
}
.project__overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.project__badge-img {
  height: 13px;
  width: auto;
  display: block;
}
.project__overlay-desc {
  font-family: var(--font);
  font-size: 0.82rem;
  line-height: 1.75;
  color: #ffffff;
}
.project__more-img {
  height: 13px;
  width: auto;
  flex-shrink: 0;
  display: block;
  transition: opacity 0.2s;
}
.project__link:hover .project__more-img { opacity: 0.8; }

/* ============================================================
   WORKS CAROUSEL
   ============================================================ */
.projects-carousel {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* Frame: same 16/9 aspect ratio, brackets overlaid */
.projects-carousel__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

/* Sliding track: absolutely fills the frame */
.projects-carousel__track {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Each slide fills the frame exactly */
.projects-carousel__slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

/* Link, picture, img — all absolutely fill the slide */
.projects-carousel__slide .project__link {
  position: absolute;
  inset: 0;
  display: block;
}
.projects-carousel__slide picture {
  position: absolute;
  inset: 0;
  display: block;
}
.projects-carousel__slide .project__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Coming Soon slide */
.projects-carousel__slide--coming {
  background: rgba(30, 30, 30, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
}
.projects-carousel__coming-inner {
  text-align: center;
  padding: 28px 40px;
  border-top: 1.5px solid rgba(255,255,255,0.3);
  border-bottom: 1.5px solid rgba(255,255,255,0.3);
}
.projects-carousel__coming-sub {
  font-family: var(--font);
  font-size: clamp(0.65rem, 1.1vw, 0.85rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}
.projects-carousel__coming-main {
  font-family: var(--font);
  font-size: clamp(1.1rem, 2.6vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  color: #ffffff;
}

/* Bracket images: keep above the sliding track */
.projects-carousel__frame .project__bracket-l,
.projects-carousel__frame .project__bracket-r {
  z-index: 4;
}

/* Overlay: push content inward so it clears the bracket images (~70px wide) */
.projects-carousel__frame .project__overlay {
  padding-left: 84px;
  padding-right: 84px;
}

/* Prev / Next arrow buttons — matches sub-page (work.css) design */
.projects-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.projects-carousel__arrow:hover {
  background: rgba(255,255,255,0.35);
  border-color: rgba(255,255,255,0.6);
}
.projects-carousel__arrow--prev { left: 20px; }
.projects-carousel__arrow--next { right: 20px; }

/* Dot indicators */
.projects-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.projects-carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.projects-carousel__dot.is-active {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.35);
}




/* ============================================================
   OUR TEAM
   ============================================================ */
.team {
  position: relative;
  z-index: 1;
  padding: 100px var(--pad-h) 80px;
  background-color: #ffffff;
  background-image: radial-gradient(circle, #ccccca 1px, transparent 1px);
  background-size: 24px 24px;
}
.team__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.team__block {
  max-width: 780px;
  /* clamp ensures "大学" midpoint aligns to viewport center at all widths */
  margin-left: clamp(0px, calc(50vw - 368px), 272px);
  transform: translateX(-38px);
}
.team__heading {
  font-family: var(--font);
  font-size: clamp(1.6rem, 2.9vw, 2.4rem);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 52px;
  color: var(--color-dark);
  text-align: left;
}

/* Logo images */
.team__logos {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.team__logo-quaras {
  height: 44px;
  width: auto;
}
.team__logo-times {
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-gray);
  line-height: 1;
}
.team__logo-kitasato {
  height: 86px;
  width: auto;
}

.team__body {
  font-family: var(--font);
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  font-weight: 300;
  line-height: 2.1;
  color: #444;
  text-align: left;
}


/* ============================================================
   MEMBERS
   ============================================================ */
.members {
  position: relative;
  z-index: 1;
  padding: 80px var(--pad-h) 120px;
  background-color: #ffffff;
  background-image: radial-gradient(circle, #ccccca 1px, transparent 1px);
  background-size: 24px 24px;
}
.members__inner {
  max-width: 860px;
  margin: 0 auto;
}
.members__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 60px;
}

/* Member Card */
.member-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  column-gap: 20px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid #e8e8e8;
}
.member-card:last-child { border-bottom: none; }

.member-card__photo {
  grid-column: 1;
  grid-row: 1;
  width: 100px;
  height: 100px;
  overflow: hidden;
  background: #d8d8d8;
}
.member-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-card__photo--placeholder {
  background: #d0d0d0;
}

.member-card__info {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.member-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.member-card__name {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-dark);
  letter-spacing: 0.03em;
}
.member-card__badge-logo {
  height: 18px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.85;
}
.member-card__badge-logo--kitasato {
  height: 32px;
}

.member-card__org {
  font-family: var(--font);
  font-size: 0.72rem;
  color: var(--color-gray);
  letter-spacing: 0.02em;
}
.member-card__role {
  font-family: var(--font);
  font-size: 0.72rem;
  color: var(--color-gray);
}
.member-card__desc {
  grid-column: 1 / -1;
  grid-row: 2;
  font-family: var(--font);
  font-size: 0.82rem;
  line-height: 1.9;
  color: #555;
  margin-top: 14px;
}

/* 5th member (半田) - left column only */
.member-card--kitasato {
  grid-column: 1 / -1;
  max-width: calc(50% - 30px);
}


/* ============================================================
   INFORMATION
   ============================================================ */
.information {
  position: relative;
  z-index: 5;
  padding: 80px var(--pad-h) 100px;
}
.information__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.info-list {
  list-style: none;
  max-width: 860px;
  margin: 0 auto;
  border-top: 1px solid rgba(17,17,17,0.2);
}
.info-list__item {
  border-bottom: 1px solid rgba(17,17,17,0.2);
}
.info-list__link {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 0;
  transition: opacity 0.2s;
}
.info-list__link:hover { opacity: 0.6; }
/* Non-linked item: same layout, no hover, no pointer */
.info-list__link--plain {
  cursor: default;
}
.info-list__link--plain:hover { opacity: 1; }

.info-list__date {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-dark);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 80px;
}
.info-list__text {
  font-family: var(--font);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-dark);
  flex: 1;
}
.info-list__arrow {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--color-dark);
  opacity: 0.5;
  flex-shrink: 0;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 6;
  background: #ffffff;
  padding: 64px var(--pad-h);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 28px;
  text-align: right;
}
.footer__contact {
  font-family: var(--font);
  font-size: 0.82rem;
  line-height: 1.9;
  color: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer__email-img {
  height: 14px;
  width: auto;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer__contact a:hover .footer__email-img { opacity: 0.4; }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: flex-end;
}
.footer__nav-item {
  font-family: var(--font);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: rgba(0,0,0,0.35);
  transition: color 0.2s;
}
.footer__nav-item:hover { color: rgba(0,0,0,0.7); }

.footer__copy {
  font-family: var(--font);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(0,0,0,0.22);
}


/* ============================================================
   RESPONSIVE — Tablet (960px)
   ============================================================ */
@media (max-width: 960px) {
  :root { --pad-h: 40px; }
  .header__nav { gap: 20px; }
  .header__nav-item { font-size: 0.65rem; }
  .members__grid { gap: 36px 40px; }
}


/* ============================================================
   RESPONSIVE — Tablet / iPad (769px–1024px)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  .concept {
    padding: 120px var(--pad-h);
    min-height: auto;
  }
  .concept__block { width: fit-content; max-width: 100%; margin: 0 auto; transform: none; }
  .concept__body { font-size: 1.2rem; }

  .project__overlay { transform: translateY(0); padding: 14px 22px 16px; gap: 8px; }
  .project__overlay-desc { font-size: 0.78rem; line-height: 1.6; }

  .team__block { margin: 0 auto; transform: none; }
  .team__logos-wrap { width: fit-content; margin: 0 auto; }
  .team__heading br.sp-only { display: none; }
  .team__body br.pc-only { display: inline; }
}


/* ============================================================
   RESPONSIVE — iPad landscape (769px–1024px × landscape)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
  .concept { padding: 40px var(--pad-h); }
}

/* iPad Air / iPad Pro landscape (1025px–1400px × landscape) */
@media (min-width: 1025px) and (max-width: 1400px) and (orientation: landscape) {
  br.sp-only { display: inline; }
  br.pc-only { display: none; }

  .concept__block { width: fit-content; max-width: 100%; margin: 0 auto; transform: none; }

  .team__block { margin: 0 auto; transform: none; }
  .team__logos-wrap { width: fit-content; margin: 0 auto; }
  .team__heading br.sp-only { display: none; }
  .team__body br.pc-only { display: inline; }
}


/* ============================================================
   RESPONSIVE — Mobile (768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --pad-h: 24px; }

  .hero__site-name-img { left: 24px; height: 40px; }
  .hero__scroll { right: 24px; }
  .hero__nav-bar__links { display: none; }
  .hero__nav-bar__menu-btn { display: flex; }

  .header__nav { display: none; }
  .header__menu-btn { display: flex; }

  .concept { padding: 80px 24px 100px; min-height: auto; }
  .concept__heading { font-size: clamp(1.35rem, 5.5vw, 1.9rem); margin-bottom: 44px; }
  .concept__block { width: fit-content; max-width: 100%; margin: 0 auto; transform: none; }
  .concept__body { max-width: 100%; }

  .projects { padding: 64px 24px 80px; }

  .team { padding: 72px 24px 64px; }
  .team__block { margin: 0 auto; transform: none; }
  .team__heading { font-size: clamp(1.35rem, 5vw, 1.8rem); margin-bottom: 28px; }
  .team__logos { gap: 16px; flex-wrap: nowrap; margin-bottom: 24px; }
  .team__logo-quaras { height: 24px; }
  .team__logo-kitasato { height: 46px; }
  .team__logos-wrap { margin: 0 auto; }
  .team__body { text-align: left; max-width: 100%; font-size: 1.05rem; }

  .members { padding: 64px 24px 80px; }
  .members__grid { grid-template-columns: 1fr; gap: 32px; }
  .member-card--kitasato { grid-column: 1; max-width: 100%; }

  .information { padding: 64px 24px 80px; }
  .info-list__link { gap: 16px; padding: 20px 0; }
  .info-list__date { min-width: 70px; font-size: 0.72rem; }
  .info-list__text { font-size: 0.85rem; }

  .footer { padding: 48px 24px; }
  .footer__inner { align-items: flex-end; text-align: right; }
  .footer__contact { justify-content: flex-end; flex-direction: column; align-items: flex-end; gap: 4px; }
  .footer__nav { justify-content: flex-end; }
}

/* ============================================================
   RESPONSIVE — iPad mini portrait (481px–768px)
   PC-style landscape carousel, centered with max-width
   ============================================================ */
@media (min-width: 481px) and (max-width: 768px) {
  .projects-carousel { max-width: 560px; margin: 0 auto; }
  .projects-carousel__frame { aspect-ratio: 16 / 9; }
}


/* ============================================================
   RESPONSIVE — Phone portrait (≤480px)
   Portrait carousel with SP assets
   ============================================================ */
@media (max-width: 480px) {
  .hero__logo-img { width: clamp(200px, 80vw, 380px); }
  .member-card { grid-template-columns: 80px 1fr; column-gap: 16px; }
  .member-card__photo { width: 80px; height: 80px; }

  /* Portrait carousel */
  .projects > .section-label { position: relative; top: 31px; margin-bottom: 72px; }
  .projects__inner { padding: 0; }
  .projects-carousel__frame { aspect-ratio: 339 / 445; max-width: 100%; }
  .projects-carousel__arrow { width: 36px; height: 36px; }
  .projects-carousel__arrow--prev { left: 8px; }
  .projects-carousel__arrow--next { right: 8px; }
  .projects-carousel__frame .project__overlay { padding-left: 44px; padding-right: 44px; }
  .project__bracket-l,
  .project__bracket-r { width: 28px; }
  /* Overlay: always visible, larger text */
  .project__overlay { padding: 18px 12px 22px; gap: 10px; transform: translateY(0); }
  .project__badge-img { height: 12px; }
  .project__more-img { height: 12px; }
  .project__overlay-desc { font-size: 0.75rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}


/* ============================================================
   RESPONSIVE — Large displays (1920px+)
   Trim CONCEPT vertical whitespace so content doesn't feel sparse
   ============================================================ */
@media (min-width: 1920px) {
  .concept {
    min-height: auto;
    padding-top: 140px;
    padding-bottom: 140px;
  }
}
