/* ==========================================================================
   Responsive Styles - nail room スキマ
   ========================================================================== */

/* Mobile: Features スタック表示 */
.feature-item {
  grid-template-columns: 1fr;
}
.feature-item--reverse .feature-item__media { order: 1; }
.feature-item--reverse .feature-item__body  { order: 2; }

/* Mobile: Concept スタック表示 */
@media (max-width: 767px) {
  .concept__layout {
    grid-template-columns: 1fr;
  }
  .concept__image {
    min-height: 280px;
    position: relative;
  }
}

/* Tablet (768px and up) */
@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
  }

  .menu-detail--nail,
  .menu-detail--hydrogen,
  .menu-detail--enzyme {
    padding-top: calc(var(--header-height) + var(--spacing-lg));
  }

  /* Header */
  .header {
    height: var(--header-height);
  }

  .header__logo-icon {
    width: 60px;
    height: 60px;
  }

  .header__logo-text {
    font-size: var(--font-size-2xl);
  }

  .nav {
    display: block;
  }

  .mobile-menu-btn {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  /* Hero — tablet: split layout */
  .hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    padding-top: var(--header-height);
    align-items: center;
  }

  .hero__ambient {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .hero__text-col {
    grid-column: 1;
    grid-row: 1;
    padding: var(--spacing-2xl) var(--container-padding);
  }

  .hero__gallery {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    justify-content: center;
    align-self: stretch;
    align-items: center;
  }

  .hero__nail-img {
    width: 170px;
    height: 225px;
  }

  .hero__scroll-hint {
    grid-column: 1 / -1;
  }

  /* Section Titles */
  .section-title__en {
    font-size: var(--font-size-4xl);
  }

  /* Features — タブレット以上: 左右2カラム */
  .feature-item {
    grid-template-columns: 1fr 1fr;
  }
  .feature-item--reverse .feature-item__media { order: 2; }
  .feature-item--reverse .feature-item__body  { order: 1; }

  .feature-item__media {
    min-height: 400px;
  }

  .feature-item__body {
    padding: 3rem;
  }

  /* Menu Panels */
  .menu-panels {
    grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
    justify-content: center;
  }

  /* Menu Grid */
  .menu__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }

  /* Staff Grid */
  .staff__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-2xl);
  }

  .staff-card__image {
    width: 180px;
    height: 180px;
  }

  /* Staff Profile — 2カラム */
  .staff-profile {
    grid-template-columns: 2fr 3fr;
    gap: var(--spacing-3xl);
  }

  .staff-profile__photo {
    max-width: none;
  }

  .staff-profile__image-col {
    text-align: left;
  }

  /* Instagram Grid */
  .instagram__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Blog Preview Grid */
  .blog-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Blog List Grid */
  .blog-list__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Access */
  .access__map {
    height: 400px;
  }

  /* Floating Buttons */
  .floating-buttons {
    right: var(--spacing-xl);
    flex-direction: row;
    bottom: var(--spacing-xl);
  }

  .floating-btn {
    width: auto;
    height: auto;
    flex-direction: row;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-full);
    gap: var(--spacing-sm);
  }

  .floating-btn i {
    font-size: 1.5rem;
    margin-bottom: 0;
  }

  .floating-btn span {
    font-size: var(--font-size-base);
    font-weight: 600;
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  /* Sections */
  .section {
    padding: var(--spacing-4xl) 0;
  }

  /* Menu Grid */
  .menu__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Staff Grid */
  .staff__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .staff-card__image {
    width: 200px;
    height: 200px;
  }

  /* Instagram Grid */
  .instagram__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
  }

  /* Blog Preview Grid */
  .blog-preview__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Blog List Grid */
  .blog-list__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Access Layout */
  .access__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
  }

  .access__map {
    height: 100%;
    min-height: 350px;
    margin-bottom: 0;
  }

  /* Features */
  .feature-item__title {
    font-size: var(--font-size-3xl);
  }

  .feature-item__body {
    padding: 4rem 5rem;
  }

  .feature-item__bg-letter {
    font-size: 16rem;
  }

  .feature-item__media {
    min-height: 520px;
  }

  /* Article */
  .article__title {
    font-size: var(--font-size-3xl);
  }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
  .hero__title {
    font-size: 4rem;
  }

  .nav__list {
    gap: var(--spacing-2xl);
  }
}

/* Print Styles */
@media print {
  .header,
  .floating-buttons,
  .back-to-top,
  .mobile-menu {
    display: none !important;
  }

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

  .section {
    padding: 1rem 0;
  }

  a {
    text-decoration: underline;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark Mode Support (optional - for future use) */
@media (prefers-color-scheme: dark) {
  /*
   * Dark mode styles can be added here if needed.
   * For now, the site uses a fixed light theme.
   */
}

/* ==========================================================================
   Menu Detail – Responsive (new components)
   ========================================================================== */

@media (min-width: 768px) {
  .menu-hero__title {
    font-size: var(--font-size-4xl);
  }

  .menu-features__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .menu-cta__buttons {
    flex-direction: row;
    justify-content: center;
  }

  .menu-cta__btn {
    width: auto;
    min-width: 220px;
  }

  .menu-gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .menu-detail--hydrogen .menu__grid,
  .menu-detail--enzyme .menu__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .menu-gallery__grid {
    grid-template-columns: repeat(6, 1fr);
  }

  /* Hero — desktop */
  .hero__gallery {
    perspective: 1200px;
  }

  .hero__nail-img {
    width: 190px;
    height: 250px;
  }
}

@media (min-width: 1200px) {
  /* Hero — wide */
  .hero__title-ja {
    font-size: 7rem;
  }

  .hero__text-col {
    padding-left: max(var(--container-padding), calc((100vw - 1200px) / 2 + var(--container-padding)));
  }
}

/* Hero — mobile layout */
@media (max-width: 767px) {
  .hero {
    grid-template-rows: auto 1fr;
  }

  .hero__text-col {
    align-items: center;
    text-align: center;
    padding: var(--spacing-lg) var(--container-padding) var(--spacing-md);
  }

  .hero__title {
    align-items: center;
  }

  .hero__ornament {
    align-self: center;
  }

  .hero__gallery {
    padding: var(--spacing-sm) 0 var(--spacing-2xl);
    align-self: stretch;
    justify-content: center;
  }

  .hero__nail-img {
    width: 110px;
    height: 148px;
    margin-right: 8px;
  }
}

/* Very small screens */
@media (max-width: 399px) {
  .hero__nail-img {
    width: 90px;
    height: 120px;
    margin-right: 6px;
  }
}

@media (max-width: 767px) {
  .menu-hero__overlay {
    padding-top: calc(var(--header-height-mobile) + var(--spacing-lg));
  }
}

/* menu-intro 2カラム → 1カラムスタック */
@media (max-width: 767px) {
  .menu-intro__content {
    grid-template-columns: 1fr;
  }

  .menu-intro__image-col {
    order: -1;
  }

  /* Pointカード 3カラム → 1カラム */
  .menu-effect-list {
    grid-template-columns: 1fr;
  }
}
