/* ==========================================================================
   CoTerrace Corporate Site - style.css
   カラーやフォントは :root のカスタムプロパティで一括管理しています。
   ========================================================================== */

:root {
  /* Colors */
  --color-yellow: #F1CF25;
  --color-orange: #E3823D;
  --color-cream: #FFFAE7;
  --color-pale-yellow: #FFEEAE;
  --color-black: #000000;
  --color-white: #FFFFFF;
  --gradient-cta: linear-gradient(115deg, var(--color-orange) 0%, var(--color-yellow) 100%);
  --shadow-card: 4px 4px 15px 0 rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-ja: "Noto Sans JP", sans-serif;
  --font-en: "Poppins", sans-serif;
  --font-en-sub: "DM Sans", sans-serif;

  /* Layout */
  --header-height: 72px;
  --container-max: 1080px;
}

/* ----- Reset ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-ja);
  color: var(--color-black);
  background: var(--color-cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 32px;
  background: var(--color-cream);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
  will-change: box-shadow;
}

.header.is-scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header__logo img {
  width: 164px;
  height: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__link {
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.header__link:hover {
  opacity: 0.6;
}

.header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}

.header__btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.header__btn--yellow {
  background: var(--color-yellow);
  color: var(--color-black);
}

.header__btn--gradient {
  background: var(--gradient-cta);
  color: var(--color-white);
}

.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.header__hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-black);
  transition: transform 0.3s, opacity 0.3s;
}

.header__hamburger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: calc(var(--header-height) + 40px) 0 80px;
  background: url("../images/hero-bg.webp") center / cover no-repeat;
}

.hero__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.4;
}

.hero__title-line {
  display: inline-block;
  padding: 4px 20px;
  background: var(--color-orange);
  color: var(--color-white);
}

.hero__subtitle {
  margin-top: 32px;
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.5;
}

.hero__scroll {
  position: absolute;
  left: 48px;
  bottom: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-white);
}

.hero__scroll .material-icons {
  animation: scroll-bounce 1.6s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ==========================================================================
   Section heading (共通見出し)
   ========================================================================== */
.section-heading {
  display: flex;
  align-items: flex-end;
  margin-bottom: 64px;
  font-weight: 700;
  line-height: 1;
}

.section-heading__en {
  padding: 8px 20px 4px;
  font-family: var(--font-en);
  font-size: clamp(56px, 8vw, 90px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-black);
}

.section-heading__en--cream { background: var(--color-cream); }
.section-heading__en--yellow { background: var(--color-yellow); }
.section-heading__en--orange { background: var(--color-orange); }

.section-heading__ja {
  padding: 14px 28px;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 600;
}

.section-heading__ja--black {
  background: var(--color-black);
  color: var(--color-white);
}

.news .section-heading__ja--black,
.member .section-heading__ja--black,
.company .section-heading__ja--black,
.contact .section-heading__ja--black {
  color: var(--color-white);
}

.service .section-heading__ja--black {
  color: var(--color-yellow);
}

/* ==========================================================================
   Service
   ========================================================================== */
.service {
  padding: 120px 0 80px;
  background: var(--color-yellow);
}

.service__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
}

.service__image img {
  width: 100%;
  border: 2px solid var(--color-black);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.service__number {
  font-family: var(--font-en);
  font-size: 64px;
  font-weight: 400;
  line-height: 1.2;
  text-align: right;
}

.service__title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
}

.service__title-en {
  margin-top: 4px;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 600;
  text-align: right;
}

.service__text {
  margin-top: 28px;
  font-size: 15px;
  font-weight: 500;
  line-height: 2;
}

.service__divider {
  border: none;
  border-top: 1px solid var(--color-black);
}

/* ==========================================================================
   News
   ========================================================================== */
.news {
  padding: 120px 0;
  background: var(--color-cream);
}

.news__layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
}

.news__lead-ja {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.7;
}

.news__lead-en {
  margin-top: 24px;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 500;
}

.news__list {
  border-top: 1px solid var(--color-black);
}

.news__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-black);
  transition: opacity 0.2s;
}

.news__item:hover {
  opacity: 0.7;
}

.news__item-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.news__item-date {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 500;
}

.news__item-tag {
  padding: 2px 14px;
  background: var(--color-yellow);
  border-radius: 4px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
}

.news__item-title {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
}

.news__item-thumb {
  flex-shrink: 0;
  width: 184px;
}

.news__item-thumb img {
  width: 100%;
  aspect-ratio: 920 / 450;
  object-fit: cover;
  border-radius: 6px;
}

/* ----- 一覧を見るボタン (共通) ----- */
.list-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding: 20px 32px;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 18px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.list-button:hover {
  opacity: 0.8;
}

.list-button img {
  width: 40px;
  height: 40px;
}

/* ==========================================================================
   Event
   ========================================================================== */
.event {
  padding: 120px 0;
  background: var(--color-orange);
}

.event__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: end;
}

.event__head .section-heading {
  margin-bottom: 0;
}

.event__lead {
  font-size: 15px;
  font-weight: 600;
  line-height: 2;
  padding-bottom: 8px;
}

.event__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.event__card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  background: var(--color-cream);
  transition: transform 0.2s, box-shadow 0.2s;
}

.event__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.event__card-date {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 500;
}

.event__card-thumb {
  margin-top: 16px;
}

.event__card-thumb img {
  width: 100%;
  aspect-ratio: 920 / 450;
  object-fit: cover;
}

.event__card-title {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  flex-grow: 1;
}

.event__card-more {
  margin-top: 24px;
  align-self: flex-end;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.event .list-button {
  margin-top: 56px;
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  padding: 120px 0;
  background: var(--color-cream) url("../images/about-bg.webp") center / cover no-repeat;
  position: relative;
}

.about .container {
  position: relative;
}

.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about__label {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 600;
}

.about__statement {
  margin-top: 24px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.9;
}

.about__text {
  font-size: 15px;
  font-weight: 500;
  line-height: 2.2;
  padding-top: 8px;
}

/* ==========================================================================
   Member
   ========================================================================== */
.member {
  padding: 120px 0;
  background: transparent;
}

.member__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.member__card {
  padding: 32px 32px 48px;
  background: var(--color-yellow);
}

.member__photo img {
  width: 100%;
  aspect-ratio: 1106 / 914;
  object-fit: cover;
  border-radius: 10px;
}

.member__name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.member__name {
  font-size: 26px;
  font-weight: 600;
}

.member__name-en {
  font-family: var(--font-en);
  font-size: 17px;
  font-weight: 500;
}

.member__role {
  margin-top: 8px;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 500;
}

.member__bio {
  margin-top: 28px;
  font-size: 14px;
  font-weight: 500;
  line-height: 2.1;
}

/* ==========================================================================
   Company
   ========================================================================== */
.company {
  padding: 120px 0;
}

.company__table {
  max-width: 720px;
  margin: 0 auto;
}

.company__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--color-black);
}

.company__row dt {
  font-size: 16px;
  font-weight: 500;
}

.company__row dd {
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  padding: 100px 0 120px;
  background: var(--color-orange);
}

.contact__box {
  background: var(--color-white);
  padding: 56px 48px;
}

.contact__text {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.9;
}

.contact__link {
  display: block;
  margin-top: 8px;
  text-align: right;
  font-family: var(--font-en);
  font-size: 17px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 6px;
  transition: opacity 0.2s;
}

.contact__link:hover {
  opacity: 0.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 56px 0 40px;
  background: var(--color-cream);
}

.footer__logo {
  width: 164px;
}

.footer__address {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.footer__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-white);
  transition: opacity 0.2s;
}

.footer__x:hover {
  opacity: 0.7;
}

.footer__privacy {
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__copyright {
  margin-top: 32px;
  font-family: var(--font-en-sub);
  font-size: 13px;
}

/* ==========================================================================
   Floating contact banner
   ========================================================================== */
.contact-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px 12px 12px;
  border-radius: 60px;
  background: var(--gradient-cta);
  color: var(--color-white);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s;
}

.contact-banner:hover {
  transform: translateY(-3px);
}

.contact-banner__image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.contact-banner__title {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.contact-banner__text {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  max-width: 10em;
  line-height: 1.6;
}

.contact-banner__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-white);
  border-radius: 50%;
  font-size: 20px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .header__nav {
    gap: 16px;
  }

  .header__link {
    font-size: 13px;
  }

  .header__btn {
    padding: 8px 18px;
    font-size: 13px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 64px;
  }

  .header {
    padding: 0 20px;
  }

  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 24px;
    background: var(--color-cream);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }

  .header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header__link {
    padding: 14px 4px;
    font-size: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .header__btn {
    margin-top: 16px;
  }

  .header__hamburger {
    display: flex;
  }

  .hero__title {
    font-size: clamp(26px, 6.5vw, 40px);
  }

  .hero__subtitle {
    font-size: 20px;
  }

  .hero__scroll {
    left: 24px;
    font-size: 20px;
  }

  .service__item {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }

  .news__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .news__item {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 16px;
  }

  .news__item-thumb {
    width: 100%;
  }

  .event__head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .about__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .company__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact__text {
    font-size: 20px;
  }

  .contact-banner {
    right: 12px;
    bottom: 12px;
    gap: 10px;
    padding: 8px 14px 8px 8px;
  }

  .contact-banner__image {
    width: 56px;
    height: 56px;
  }
}

/* ==========================================================================
   Scroll reveal & polish（スクロール連動アニメーション・アンカーオフセット）
   ========================================================================== */

/* 固定ヘッダー分だけアンカー位置をずらす（スムーズスクロール時に見出しが隠れない） */
[id] { scroll-margin-top: calc(var(--header-height) + 16px); }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  /* 同一グループ内の連続要素をわずかにずらして波打たせる */
  .reveal[data-reveal-delay="1"] { transition-delay: 0.08s; }
  .reveal[data-reveal-delay="2"] { transition-delay: 0.16s; }
  .reveal[data-reveal-delay="3"] { transition-delay: 0.24s; }
}

/* ==========================================================================
   Contact page（お問い合わせ /contact）
   ========================================================================== */
.contact-page {
  background: var(--color-cream);
  padding: calc(var(--header-height) + 72px) 0 96px;
}

.contact-page__heading {
  margin-bottom: 56px;
}

.contact-form {
  max-width: 960px;
}

.contact-form__row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 18px 0;
}

.contact-form__label {
  flex: 0 0 210px;
  padding-top: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.5;
}

.contact-form__req {
  margin-left: 6px;
  color: var(--color-orange);
  font-weight: 700;
}

.contact-form__field {
  flex: 1 1 auto;
  min-width: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-ja);
  font-size: 15px;
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form textarea {
  resize: vertical;
  line-height: 1.7;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #b9b3a0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(227, 130, 61, 0.15);
}

.contact-form__radios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  padding-top: 10px;
}

.contact-form__radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.contact-form__radio input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-orange);
  flex: 0 0 auto;
}

.contact-form__submit {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.contact-form__btn {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px 16px 40px;
  font-family: var(--font-ja);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-black);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.contact-form__btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.contact-form__btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.contact-form__btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 22px;
  color: var(--color-black);
  background: var(--color-white);
  border-radius: 50%;
}

.contact-form__status {
  margin: 24px 0 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #2e7d32;
}

.contact-form__status--error { color: #c0392b; }

@media (max-width: 860px) {
  .contact-page { padding: calc(var(--header-height) + 40px) 0 64px; }
  .contact-form__row { flex-direction: column; gap: 8px; padding: 14px 0; }
  .contact-form__label { flex-basis: auto; padding-top: 0; }
  .contact-form__radios { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Archive pages（NEWS一覧 / EVENT一覧）
   ========================================================================== */
.archive-page {
  background: var(--color-cream);
  padding: calc(var(--header-height) + 72px) 0 96px;
}

.archive-lead {
  font-size: 16px;
  line-height: 1.9;
  margin: -32px 0 48px;
}

/* ==========================================================================
   HR Terrace Lab（ブログ /blog）— 既存トンマナ準拠・控えめに洗練
   ========================================================================== */
.lab {
  background: var(--color-cream);
  padding: calc(var(--header-height) + 72px) 0 96px;
}

.lab__hero {
  margin-bottom: 40px;
}

.lab__eyebrow {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-orange);
  margin: 0 0 10px;
}

.lab__title {
  font-family: var(--font-en);
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  display: inline-block;
  background: linear-gradient(transparent 62%, var(--color-yellow) 62%);
  padding: 0 6px;
}

.lab__tagline {
  font-size: 16px;
  line-height: 1.8;
  margin: 20px 0 0;
}

/* カテゴリチップ */
.lab__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.lab__cat {
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.lab__cat:hover { border-color: var(--color-orange); }
.lab__cat.is-active {
  background: var(--color-yellow);
  border-color: var(--color-yellow);
}

/* 注目記事 */
.lab-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 56px;
  color: var(--color-black);
  transition: transform 0.2s, box-shadow 0.2s;
}

.lab-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.lab-featured__thumb {
  aspect-ratio: 16 / 10;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lab-featured__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lab-featured__thumb--placeholder img { width: 46%; height: auto; opacity: 0.32; object-fit: contain; }

.lab-featured__body {
  padding: 44px 44px 40px;
  display: flex;
  flex-direction: column;
}

.lab-featured__title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  margin: 16px 0 14px;
}

.lab-featured__excerpt {
  font-size: 15px;
  line-height: 1.9;
  color: #4a4741;
  flex: 1 1 auto;
}

.lab-featured__more,
.lab-card__more {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-orange);
  margin-top: 22px;
}

/* 記事グリッド */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 32px;
}

.lab-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
  color: var(--color-black);
  transition: transform 0.2s, box-shadow 0.2s;
}

.lab-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
}

.lab-card__thumb {
  aspect-ratio: 16 / 10;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lab-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lab-card__thumb--placeholder img { width: 48%; height: auto; opacity: 0.3; object-fit: contain; }

.lab-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.lab-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  margin: 12px 0 0;
  flex: 1 1 auto;
}

/* メタ（タグ＋日付） */
.lab-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lab-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-black);
  background: var(--color-yellow);
  border-radius: 4px;
  padding: 4px 10px;
}

.lab-date {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  color: #8a857a;
}

.lab-hidden { display: none !important; }

/* 資料請求CTA（ブログ末尾） */
.lab-cta {
  background: var(--gradient-cta);
  padding: 64px 0;
}

.lab-cta__box {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.lab-cta__eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 8px;
}

.lab-cta__title {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 14px;
}

.lab-cta__text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-white);
  margin: 0;
}

.lab-cta__form {
  display: grid;
  gap: 12px;
  background: var(--color-white);
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.lab-cta__form input {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-ja);
  font-size: 15px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
}

.lab-cta__form input:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(227, 130, 61, 0.15);
}

.lab-cta__btn {
  margin-top: 4px;
  padding: 15px;
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-black);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.lab-cta__btn:hover { opacity: 0.9; transform: translateY(-2px); }
.lab-cta__btn:disabled { opacity: 0.5; cursor: default; transform: none; }

.lab-cta__status {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #1b5e20;
  text-align: center;
}
.lab-cta__status--error { color: #c0392b; }

@media (max-width: 720px) {
  .lab-cta__box { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 900px) {
  .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .lab { padding: calc(var(--header-height) + 40px) 0 64px; }
  .lab-featured { grid-template-columns: 1fr; }
  .lab-featured__body { padding: 28px 24px 26px; }
  .lab-featured__title { font-size: 21px; }
  .lab-grid { grid-template-columns: 1fr; }
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 48px;
}

.archive-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  padding: 28px 28px 24px;
  color: var(--color-black);
  transition: transform 0.2s, box-shadow 0.2s;
}

.archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.archive-card__date {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
}

.archive-card__thumb {
  aspect-ratio: 920 / 450;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--color-cream);
}

.archive-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 画像未設定カードのプレースホルダ（後で画像を差し込む） */
.archive-card__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
  border: 1px dashed rgba(0, 0, 0, 0.12);
}

.archive-card__thumb--placeholder img {
  width: 52%;
  height: auto;
  opacity: 0.35;
  object-fit: contain;
}

.archive-card__title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  flex: 1 1 auto;
  margin-bottom: 20px;
}

.archive-card__more {
  align-self: flex-start;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

@media (max-width: 720px) {
  .archive-page { padding: calc(var(--header-height) + 40px) 0 64px; }
  .archive-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ==========================================================================
   記事詳細（/news/:id, /event/:id）
   ========================================================================== */
.article {
  background: var(--color-cream);
  padding: calc(var(--header-height) + 56px) 0 88px;
}

.article__inner {
  max-width: 820px;
  margin: 0 auto;
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.article__cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-black);
  background: var(--color-yellow);
  border-radius: 4px;
  padding: 5px 12px;
}

.article__date {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  color: #8a857a;
}

.article__title {
  font-size: clamp(24px, 3.8vw, 38px);
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 28px;
}

.article__hero {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 40px;
  display: block;
}

.article__body h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  margin: 40px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--color-yellow);
}

.article__body p {
  font-size: 16px;
  line-height: 2;
  margin: 0 0 18px;
}

.article__body a {
  color: var(--color-orange);
  text-decoration: underline;
  word-break: break-all;
}

.article__detail {
  font-size: 16px;
  line-height: 1.9;
  margin: 0 0 6px;
}

.article__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-black);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

@media (max-width: 720px) {
  .article { padding: calc(var(--header-height) + 32px) 0 60px; }
  .article__body p { line-height: 1.9; }
}

/* ==========================================================================
   Recruit page（採用情報 /recruit）
   ========================================================================== */
.recruit {
  background: var(--color-cream);
  padding: calc(var(--header-height) + 72px) 0 96px;
}

.recruit__lead {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 56px;
}

.recruit__block { margin-bottom: 56px; }

.recruit__block-title {
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 8px;
}

.recruit__block-title-ja {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--color-yellow);
}

.recruit__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.recruit__list li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  line-height: 1.7;
}

.recruit__list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-orange);
}

.recruit__mission {
  background: var(--color-yellow);
  padding: 48px;
  border-radius: 8px;
}

.recruit__mission-catch {
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 24px;
}

.recruit__mission-body {
  font-size: 15px;
  line-height: 2;
  margin: 0;
}

.recruit__table {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.recruit__table div {
  display: flex;
  gap: 24px;
  padding: 18px 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.recruit__table dt {
  flex: 0 0 160px;
  font-weight: 700;
  margin: 0;
}

.recruit__table dd {
  margin: 0;
  line-height: 1.7;
}

.recruit__positions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.recruit__position {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-white);
  padding: 28px 32px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  transition: transform 0.2s, box-shadow 0.2s;
}

.recruit__position:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.recruit__position .material-icons { color: var(--color-orange); }

.recruit__cta {
  margin-top: 56px;
  text-align: center;
}

.recruit__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 44px;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-white);
  background: var(--gradient-cta);
  border-radius: 999px;
  transition: transform 0.2s, opacity 0.2s;
}

.recruit__cta-btn:hover { transform: translateY(-2px); opacity: 0.95; }

@media (max-width: 720px) {
  .recruit { padding: calc(var(--header-height) + 40px) 0 64px; }
  .recruit__mission { padding: 32px 24px; }
  .recruit__positions { grid-template-columns: 1fr; }
  .recruit__table div { flex-direction: column; gap: 4px; }
}

/* 見出し(section-heading)の折返し: 狭幅で EN+JA が横に収まらない時は縦積みに */
@media (max-width: 600px) {
  .section-heading { flex-wrap: wrap; align-items: flex-start; row-gap: 6px; }
  .section-heading__en { font-size: clamp(40px, 13vw, 60px); }
}
