/* ============================================
   hanico — Additional Refinements & New Sections
   ============================================ */

/* ============================================
   BRAND RELATED CARDS (Head Spa / Shop / FC)
   ============================================ */
.brands__related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: clamp(28px, 4vw, 48px);
}

.brand-related-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 28px);
  background: var(--color-soft-gray);
  transition: background var(--transition);
  text-decoration: none;
}

.brand-related-card:hover {
  background: var(--color-charcoal);
  color: var(--color-white);
}

.brand-related-card:hover .brand-related-card__desc {
  color: rgba(247,245,241,0.6);
}

.brand-related-card:hover .brand-related-card__arrow {
  color: var(--color-dusty-beige);
}

.brand-related-card__icon {
  font-size: 1.4rem;
  color: var(--color-brand-blue);
  flex-shrink: 0;
  transition: color var(--transition);
}

.brand-related-card:hover .brand-related-card__icon {
  color: var(--color-dusty-beige);
}

.brand-related-card__name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 4px;
  transition: color var(--transition);
}

.brand-related-card:hover .brand-related-card__name {
  color: var(--color-white);
}

.brand-related-card__desc {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--color-mid-gray);
  line-height: 1.5;
  transition: color var(--transition);
}

.brand-related-card__arrow {
  margin-left: auto;
  font-size: 1.1rem;
  color: var(--color-mid-gray);
  flex-shrink: 0;
  transition: color var(--transition), transform var(--transition);
}

.brand-related-card:hover .brand-related-card__arrow {
  transform: translateX(6px);
}

@media (max-width: 768px) {
  .brands__related {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SEAM FEATURE SECTION
   ============================================ */
.seam-feature {
  background: var(--color-soft-gray);
  padding: var(--sp-section) 0;
  overflow: hidden;
}

.seam-feature__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.seam-feature__image-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2px;
  align-items: stretch;
}

.seam-feature__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 500px;
}

.seam-feature__img--main {
  min-height: 600px;
}

.seam-feature__content {
  background: var(--color-base);
  padding: clamp(48px, 6vw, 80px) clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.seam-feature__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.35;
  color: var(--color-charcoal);
}

.seam-feature__title em {
  font-style: italic;
  color: var(--color-brand-blue);
}

.seam-feature__text {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-mid-gray);
  line-height: 2.05;
}

.seam-feature__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

@media (max-width: 1024px) {
  .seam-feature__inner {
    grid-template-columns: 1fr;
  }

  .seam-feature__image-col {
    min-height: 320px;
  }

  .seam-feature__img,
  .seam-feature__img--main {
    min-height: 240px;
  }
}

@media (max-width: 768px) {
  .seam-feature__image-col {
    grid-template-columns: 1fr;
  }

  .seam-feature__img--sub {
    display: none;
  }

  .seam-feature__content {
    padding: clamp(36px, 6vw, 56px) clamp(24px, 5vw, 40px);
  }
}

/* ============================================
   RECRUIT — Full-bleed layout fix
   ============================================ */
.recruit__inner-full {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.recruit__inner-full .recruit__image-side {
  position: relative;
  overflow: hidden;
  background: var(--color-soft-gray);
}

.recruit__inner-full .recruit__image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.recruit__inner-full .recruit__content {
  background: var(--color-ink-navy);
  padding: clamp(40px, 6vw, 72px) clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

@media (max-width: 768px) {
  .recruit__inner-full {
    grid-template-columns: 1fr;
  }

  .recruit__inner-full .recruit__image-side {
    min-height: 280px;
  }

  .recruit__inner-full .recruit__content {
    padding: clamp(36px, 6vw, 56px) clamp(24px, 5vw, 40px);
  }
}

/* Hide old .recruit__inner if exists */
.recruit__inner.container {
  display: none;
}


/* --- Recruit section inner fix for full-bleed layout --- */
.recruit__inner.container {
  max-width: 100% !important;
  padding: 0 !important;
}

/* On mobile, stack recruit section vertically */
@media (max-width: 768px) {
  .recruit__content {
    padding: clamp(36px, 6vw, 56px) clamp(24px, 5vw, 40px);
  }
}

/* --- Works grid image placeholder tint --- */
.work-item {
  background: var(--color-soft-gray);
}

/* --- Journal card image overflow fix --- */
.journal-card > div:first-child {
  overflow: hidden;
  flex-shrink: 0;
}

/* --- Brand grid nested layout fix --- */
.brands__grid > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* --- Smooth image loading state --- */
img {
  transition: opacity 0.4s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].is-loaded,
img.loaded {
  opacity: 1;
}

/* --- Reserve CTA background decoration --- */
.reserve-cta {
  isolation: isolate;
}

/* --- History timeline item min-width fix for small screens --- */
@media (max-width: 480px) {
  .history__item {
    min-width: 100px;
    flex: 1 0 calc(50% - 10px);
  }
}

/* --- Footer address font-style reset --- */
.footer__col-list address {
  font-style: normal;
}

/* --- Mobile nav z-index layering --- */
.site-header {
  z-index: 1001;
}

.mobile-nav {
  z-index: 1000;
}

.mobile-nav__overlay {
  z-index: 999;
}

/* --- Philosophy quote mark decoration --- */
.philosophy__quote::before {
  content: '"';
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--color-dusty-beige);
  line-height: 0;
  vertical-align: -0.6em;
  margin-right: 4px;
}

/* --- Intro link arrow fix --- */
.intro__link {
  text-decoration: none;
  border-bottom: none;
}

/* --- Global selection color --- */
::selection {
  background: var(--color-brand-blue);
  color: var(--color-white);
}

/* --- Focus visible (accessibility) --- */
:focus-visible {
  outline: 2px solid var(--color-brand-blue);
  outline-offset: 3px;
}

/* --- Placeholder image aspect ratio guard --- */
.brand-card__image[src=""],
.brand-card__image:not([src]) {
  background: var(--color-soft-gray);
  min-height: 200px;
}

/* --- Eyebrow / section label size guard --- */
.section-label {
  display: block;
}

/* --- Works section "More" button spacing --- */
.works__more .btn {
  padding: 14px 36px;
}

/* --- Statistics number font size on very small screens --- */
@media (max-width: 360px) {
  .intro__stat-num {
    font-size: 1.4rem;
  }

  .intro__number {
    font-size: 3rem;
  }
}

/* --- Journal date styling --- */
.journal-card__date {
  font-style: normal;
  display: block;
}

/* --- Brand card image transition reset on touch devices --- */
@media (hover: none) {
  .brand-card__image {
    transition: opacity 0.4s ease;
  }

  .brand-card:active .brand-card__image {
    opacity: 0.85;
  }
}

/* --- Scroll line animation on reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-line::after,
  .hero__bg-image {
    animation: none;
    transition: none;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .page-loader__logo {
    animation: none;
  }
}

/* ============================================
   HISTORY TIMELINE — Enhanced design
   ============================================ */

/* 現在年のハイライト */
.history__item--current .history__year {
  color: var(--color-white) !important;
}

.history__item--current .history__year::after {
  content: 'NOW';
  font-family: var(--font-ui);
  font-size: 0.48rem;
  letter-spacing: 0.18em;
  color: var(--color-brand-blue);
  background: rgba(78, 111, 174, 0.2);
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 8px;
  vertical-align: middle;
}

.history__item--current .history__event {
  color: rgba(247, 245, 241, 0.88) !important;
}

/* アイテムに左ボーダーラインを追加 */
.history__item {
  position: relative;
  padding-left: 14px;
  border-left: 2px solid rgba(200, 186, 166, 0.25);
}

.history__item--current {
  border-left-color: var(--color-brand-blue) !important;
}

/* タイムライン横スクロール対応 */
.history__timeline {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
  align-items: flex-start;
}

.history__item {
  min-width: 108px;
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .history__item {
    min-width: calc(50% - 16px);
    flex: 0 0 calc(50% - 8px);
  }
}

/* ============================================
   MEMBER ONLY バッジ
   ============================================ */
.member-only-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand-blue);
  border: 1px solid var(--color-brand-blue);
  border-radius: 3px;
  padding: 1px 5px;
  vertical-align: middle;
  line-height: 1.4;
  white-space: nowrap;
  margin-left: 4px;
  opacity: 0.85;
}

/* ============================================
   ILLUST — 挿絵スタイル（控えめ・切り抜け感覚）
   共通ルール: 白背景を透過させ、小さく添える
   ============================================ */

/* Introセクション — 背景イラスト要素は非表示 */
.intro__illust-bg { display: none; }

/* Worksグリッド — イラストセルは非表示。写真のみ */
.work-item--illust  { display: none; }

/* イラストストリップ — 非表示 */
.illust-strip { display: none; }

/* Philosophyセクションのアクセント要素 — 非表示（新設計で差し替え） */
.philosophy__illust-accent { display: none; }
.philosophy__content { position: relative; }



/* --- Print styles --- */
@media print {
  .site-header,
  .page-loader,
  .mobile-nav,
  .mobile-nav__overlay,
  .hero__scroll,
  .menu-toggle {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}
