/* ============================================
   BE LEGACY - Common Styles
   ============================================ */

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

/* ---------- Redesign Header / Footer (index-2) ---------- */
.header {
  /* position: sticky; */
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
  background: #fff;
  padding: 20px 40px 20px 8px;
}

.header-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 8px;
}

.header__site-title {
  font: inherit;
  line-height: 1;
  margin: 0;
}

.header__logo-img {
  height: 48px;
  width: auto;
  display: block;
}

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

.header__nav-link {
  font-family: "Zen Old Mincho", "Yu Mincho", "游明朝", serif;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.header__youtube {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header__youtube img,
.header__youtube svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer {
  background: #fff;
  width: 100%;
  padding: 40px 0;
  border-top: 0;
}

.footer-inner {
  width: calc(100% - 80px);
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  padding-top: 40px;
  border-top: 1px solid #000;
}

.footer__brand {
  width: 430px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__logo {
  display: block;
  width: 109px;
  height: auto;
}

.footer__address {
  font-family: "Zen Old Mincho", "Yu Mincho", "游明朝", serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  margin: 0;
}

.footer__right {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.footer__nav-link {
  font-family: "Zen Old Mincho", "Yu Mincho", "游明朝", serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: #000;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.footer__nav-link svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

.footer__copy {
  font-family: "Libre Caslon Text", "Cormorant Garamond", serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: #a2a2a2;
  margin: 0;
}

.page-content__title {
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: #303034;
  margin: 0 0 32px;
}

@media (max-width: 767px) {
  .header {
    padding: 12px 24px;
  }

  .header__logo-img {
    height: 32px;
  }

  .header__nav {
    gap: 16px;
  }

  .header__nav-link {
    font-size: 13px;
  }

  .footer {
    padding: 24px 0;
  }

  .footer-inner {
    width: calc(100% - 48px);
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }

  .footer__brand {
    width: 100%;
  }

  .footer__right {
    flex: 1 1 auto;
    width: 100%;
    align-items: flex-start;
    gap: 24px;
  }

  .footer__nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px 24px;
  }

  .footer__nav-link {
    font-size: 14px;
  }
}

/* ---------- Hamburger Menu (SP only) ---------- */
.hamburger {
  display: none;
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 110;
}

.hamburger .hamburger__line,
.header--dark .hamburger .hamburger__line {
  position: absolute;
  left: 4px;
  right: 4px;
  width: auto;
  height: 2px;
  background: #303034;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.hamburger .hamburger__line:nth-child(1) { top: 9px; }
.hamburger .hamburger__line:nth-child(2) { top: 15px; }
.hamburger .hamburger__line:nth-child(3) { top: 21px; }

.hamburger.is-open .hamburger__line:nth-child(1) {
  top: 15px;
  transform: rotate(45deg);
}

.hamburger.is-open .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open .hamburger__line:nth-child(3) {
  top: 15px;
  transform: rotate(-45deg);
}

body.is-menu-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .hamburger {
    display: block;
  }

  .header__nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 80px 32px 32px;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 105;
    overflow-y: auto;
  }

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

  .header__nav .header__nav-link {
    font-size: 18px;
    padding: 8px 0;
  }
}

.header__external {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header__external-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  color: #303034;
  letter-spacing: 0.1em;
  line-height: 32px;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.sp-only {
  display: none;
}

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

figure {
  margin: 0;
}

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

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

/* Header - Dark (for sub pages) */
.header--dark {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

.header--dark .header__nav-link {
  color: #303034;
}

/* ---------- Sub Page Header / Breadcrumb ---------- */
.sub-header {
  position: relative;
  padding-top: 0px;
}

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 80px;
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #666;
}

.breadcrumb__item a {
  transition: opacity 0.3s;
}

.breadcrumb__item a:hover {
  opacity: 0.7;
}

.breadcrumb__separator {
  font-size: 10px;
}

/* ---------- Section Title ---------- */
.c-section__title {
  display: flex;
  flex-direction: column;
}

.c-section__title-en {
  font-family: "Cormorant Garamond", "Shippori Mincho", serif;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: #303034;
}

.c-section__title-ja {
  font-size: 16px;
  font-weight: 500;
  color: #303034;
  letter-spacing: 0.1em;
  margin-top: 5px;
}

/* ---------- Tag ---------- */
.article-card__tag {
  display: inline-block;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(48, 48, 52, 0.8);
  background: #f1f1f1;
  padding: 2px 12px 3px;
  letter-spacing: 0.7px;
  line-height: 1.5;
}

/* ---------- Arrow Button ---------- */
.btn-arrow {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid rgba(48, 48, 52, 0.4);
  padding: 0 40px;
  height: 80px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 32px;
  color: rgba(48, 48, 52, 0.8);
  width: 416px;
  overflow: hidden;
  background: linear-gradient(to right, #303034 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: right;
  transition: background-position 0.45s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease, border-color 0.4s ease;
}

.btn-arrow::after {
  content: "";
  position: absolute;
  right: 40px;
  top: 50%;
  width: 28px;
  height: 1px;
  background: rgba(48, 48, 52, 0.4);
  transition: background 0.3s;
}

.btn-arrow::before {
  content: "";
  position: absolute;
  right: 40px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 1px solid rgba(48, 48, 52, 0.4);
  border-right: 1px solid rgba(48, 48, 52, 0.4);
  transform: translateY(-50%) rotate(45deg);
  transition: border-color 0.3s;
}

.btn-arrow:hover {
  background-position: left;
  color: #fff;
  border-color: #303034;
}

.btn-arrow:hover::after {
  background: #fff;
}

.btn-arrow:hover::before {
  border-color: #fff;
}

.btn-arrow--center {
  justify-content: center;
  gap: 40px;
}

/* ---------- Article Card ---------- */
.article-card {
  display: block;
  transition: opacity 0.3s;
}

.article-card:hover {
  opacity: 0.8;
}

.article-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.article-card__thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-card__meta {
  margin-top: 12px;
}

.article-card__catch {
  font-size: 16px;
  font-weight: 400;
  color: #303034;
  letter-spacing: 0.1em;
}

.article-card__name {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #303034;
  margin-top: 4px;
}

.article-card__company {
  font-size: 18px;
  font-weight: 600;
  color: #303034;
  letter-spacing: 0.1em;
  line-height: 1.4;
  margin-top: 12px;
}

.article-card__profile {
  font-size: 16px;
  font-weight: 400;
  color: #303034;
  margin-top: 16px;
  line-height: 32px;
  letter-spacing: 0.05em;
}

.article-card__tags {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ---------- CTA Section ---------- */
.cta {
  position: relative;
  aspect-ratio: 1440 / 388;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
}

.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 20, 50, 0.5) 0%, rgba(60, 40, 80, 0.6) 100%);
}

.cta__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #fff;
}

.cta__title {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta__title-en {
  font-family: "Cormorant Garamond", "Shippori Mincho", serif;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 34px;
}

.cta__title-ja {
  font-size: 16px;
  font-weight: 700;
  margin-top: 10px;
  letter-spacing: 0.1em;
  line-height: 32px;
}

.cta__btn-wrapper {
  margin-top: 48px;
}

.cta__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 0 40px;
  height: 80px;
  width: 497px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  overflow: hidden;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.08) 50%);
  background-size: 200% 100%;
  background-position: right;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-position 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta__btn::after {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
}

.cta__btn::before {
  content: "";
  position: absolute;
  right: 40px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  border-right: 1px solid rgba(255, 255, 255, 0.8);
  transform: translateY(-50%) rotate(45deg);
}

.cta__btn:hover {
  background-position: left;
}

/* ---------- 4. Image Hover Zoom ---------- */
.article-card__thumb img {
  transition: transform 0.5s ease;
}

.article-card:hover .article-card__thumb img {
  transform: scale(1.05);
}

/* ---------- 5. Page Top Button ---------- */
.page-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  aspect-ratio: 1 / 1;
  background: #303034;
  border: none;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.3s;
  z-index: 50;
}

.page-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.page-top:hover {
  opacity: 0.8;
}

.page-top svg {
  width: 20px;
  aspect-ratio: 1 / 1;
  color: #fff;
}

/* ============================================
   Common - Responsive Tablet (768px - 1023px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1023px) {

  .cta {
    aspect-ratio: auto;
    height: 320px;
  }

  .cta__btn {
    width: 520px;
  }

  .btn-arrow {
    min-width: 280px;
  }
}

@media (max-width: 767px) {

  .sp-only {
    display: inline;
  }

  /* --- Sub Header / Breadcrumb --- */
  /* .sub-header {
    padding-top: 40px;
  } */

  .breadcrumb {
    padding: 12px 20px;
  }

  .breadcrumb__list {
    font-size: 11px;
  }

  /* --- Section Titles --- */
  .c-section__title-en {
    font-size: 36px;
    letter-spacing: 1.8px;
  }

  .c-section__title-ja {
    font-size: 16px;
    letter-spacing: 1.6px;
  }

  /* --- CTA --- */
  .cta {
    height: 331px;
    aspect-ratio: auto;
  }

  .cta__title-en {
    font-size: 36px;
    letter-spacing: 1.8px;
    line-height: 34px;
  }

  .cta__title-ja {
    font-size: 16px;
    letter-spacing: 1.6px;
  }

  .cta__btn-wrapper {
    margin-top: 40px;
    width: calc(100% - 40px);
    max-width: 335px;
  }

  .cta__btn {
    min-width: auto;
    width: 335px;
    height: 85px;
    padding: 0 32px;
    font-size: 14px;
    letter-spacing: 1.4px;
    line-height: 24px;
    justify-content: space-between;
  }

  .cta__btn::after,
  .cta__btn::before {
    right: 32px;
  }

  /* --- Buttons --- */
  .btn-arrow {
    width: 100%;
    max-width: 335px;
    height: 40px;
    padding: 0 32px;
    font-size: 12px;
    letter-spacing: 1.4px;
  }

  .btn-arrow::after {
    right: 32px;
    width: 22px;
  }

  .btn-arrow::before {
    right: 32px;
    width: 6px;
    height: 6px;
  }
}

