/* =============================================
   ユニフォームのトーエイ - Main Stylesheet
   CSS Custom Properties & BEM Architecture
   ============================================= */

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --primary-blue: #1E3A8A;
  --primary-blue-light: #2B4EB0;
  --primary-blue-dark: #152C6B;
  --accent-red: #DC2626;
  --accent-red-light: #EF4444;
  --orange: #F97316;
  --orange-light: #FB923C;
  --base-white: #FFFFFF;
  --light-gray: #F5F5F5;
  --mid-gray: #E5E7EB;
  --text-dark: #1A1A1A;
  --text-gray: #6B7280;
  --text-light: #9CA3AF;
  --line-green: #06C755;
  --overlay-dark: rgba(0, 0, 0, 0.6);
  --overlay-blue: rgba(30, 58, 138, 0.85);

  /* Typography */
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Montserrat', sans-serif;
  --font-en-display: 'Bebas Neue', sans-serif;

  /* Sizes */
  --header-height: 80px;
  --max-width: 1280px;
  --section-padding: 80px 0;
  --card-radius: 12px;
  --btn-radius: 8px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);
  --shadow-hover: 0 12px 36px rgba(0,0,0,0.18);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease-out;
}

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

.section {
  padding: var(--section-padding);
}

.section--gray {
  background: var(--light-gray);
}

.section--blue {
  background: var(--primary-blue);
  color: var(--base-white);
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__title-en {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary-blue);
  line-height: 1.1;
}

.section--blue .section__title-en,
.section--dark .section__title-en {
  color: var(--base-white);
}

.section__title-jp {
  font-size: 0.875rem;
  color: var(--text-gray);
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.2em;
}

.section--blue .section__title-jp {
  color: rgba(255,255,255,0.7);
}

.section__title-bar {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent-red);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--btn-radius);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary-blue);
  color: var(--base-white);
}
.btn--primary:hover {
  background: var(--primary-blue-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--red {
  background: var(--accent-red);
  color: var(--base-white);
}
.btn--red:hover {
  background: var(--accent-red-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}
.btn--outline:hover {
  background: var(--primary-blue);
  color: var(--base-white);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--base-white);
  color: var(--primary-blue);
}
.btn--white:hover {
  background: var(--light-gray);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--line {
  background: var(--line-green);
  color: var(--base-white);
  font-weight: 700;
}
.btn--line:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.125rem;
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--base-white);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.header__logo {
  flex-shrink: 0;
}

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

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

.header__nav-item {
  position: relative;
  padding: 8px 16px;
  text-align: center;
  border-radius: 6px;
  transition: background var(--transition-fast);
}

.header__nav-item:hover {
  background: var(--light-gray);
}

.header__nav-item.is-active {
  color: var(--primary-blue);
}

.header__nav-item.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 2px;
}

.header__nav-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.header__nav-sub {
  display: block;
  font-family: var(--font-en);
  font-size: 0.625rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header__line-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--line-green);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.header__line-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.header__line-btn i {
  font-size: 1.1rem;
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 28px;
  justify-content: center;
  cursor: pointer;
  z-index: 1010;
  background: none;
  border: none;
  padding: 0;
}

.header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.header__hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.header__hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mobile-nav.is-open {
  opacity: 1;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--base-white);
  padding: 100px 24px 40px;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  overflow-y: auto;
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: translateX(0);
}

.mobile-nav__item {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--mid-gray);
  font-size: 1rem;
  font-weight: 600;
}

.mobile-nav__item:last-child {
  border-bottom: none;
}

.mobile-nav__line-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 14px;
  background: var(--line-green);
  color: #fff;
  font-weight: 700;
  border-radius: 50px;
  font-size: 1rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--primary-blue);
  color: var(--base-white);
  padding: 60px 0 0;
}

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

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer__brand {
  flex-shrink: 0;
}

.footer__logo {
  height: 60px;
  width: auto;
  margin-bottom: 12px;
}

.footer__catchphrase {
  font-size: 0.8rem;
  opacity: 0.8;
  line-height: 1.6;
}

.footer__nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer__nav-item {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
  white-space: nowrap;
}

.footer__nav-item:hover {
  opacity: 1;
}

.footer__social {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: all var(--transition-normal);
  font-size: 1.1rem;
}

.footer__social-link:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.footer__bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* =============================================
   PAGE HEADER (Subpage hero)
   ============================================= */
.page-header {
  position: relative;
  padding: 140px 0 60px;
  background: var(--primary-blue);
  color: var(--base-white);
  text-align: center;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 50%, var(--primary-blue-light) 100%);
  opacity: 0.95;
}

.page-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header__content {
  position: relative;
  z-index: 1;
}

.page-header__title {
  font-family: var(--font-en);
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.page-header__subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  opacity: 0.7;
}

/* =============================================
   HERO SLIDER (TOP page)
   ============================================= */
.hero {
  position: relative;
  width: 100%;
  height: 600px;
  margin-top: var(--header-height);
  overflow: hidden;
  background: var(--primary-blue-dark);
}

.hero__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__slide-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30,58,138,0.8) 0%, rgba(30,58,138,0.4) 100%);
}

.hero__slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--base-white);
  padding: 0 24px;
}

.hero__slide-catchphrase {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 16px;
  opacity: 0.9;
  letter-spacing: 0.1em;
}

.hero__slide-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero__slide-desc {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__slide-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__indicators {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero__indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  padding: 0;
}

.hero__indicator.is-active {
  background: var(--base-white);
  transform: scale(1.2);
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--base-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-normal);
  border: none;
  backdrop-filter: blur(4px);
}

.hero__arrow:hover {
  background: rgba(255,255,255,0.3);
}

.hero__arrow--prev { left: 24px; }
.hero__arrow--next { right: 24px; }

/* =============================================
   INTRO Section
   ============================================= */
.intro {
  padding: 80px 0 60px;
  text-align: center;
}

.intro__catchphrase-img {
  max-width: 700px;
  margin: 0 auto 32px;
}

.intro__text {
  max-width: 720px;
  margin: 0 auto 48px;
  font-size: 1rem;
  line-height: 2;
  color: var(--text-dark);
}

.intro__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.intro__stat {
  text-align: center;
}

.intro__stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: var(--base-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 12px;
}

.intro__stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  font-family: var(--font-en);
}

.intro__stat-label {
  font-size: 0.875rem;
  color: var(--text-gray);
  margin-top: 4px;
}

/* =============================================
   PRODUCT CATEGORIES (TOP)
   ============================================= */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--base-white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

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

.category-card__image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.category-card:hover .category-card__image img {
  transform: scale(1.05);
}

.category-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: var(--primary-blue);
  font-size: 3rem;
}

.category-card__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--overlay-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.category-card:hover .category-card__overlay {
  opacity: 1;
}

.category-card__overlay i {
  color: var(--base-white);
  font-size: 2rem;
}

.category-card__body {
  padding: 16px 20px;
  text-align: center;
}

.category-card__name {
  font-size: 1rem;
  font-weight: 700;
}

.category-card__name-en {
  font-family: var(--font-en);
  font-size: 0.7rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* =============================================
   MANUFACTURING PREVIEW (TOP)
   ============================================= */
.manufacturing-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.manufacturing-preview__item {
  border-radius: var(--card-radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--light-gray);
}

.manufacturing-preview__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.manufacturing-preview__item:hover img {
  transform: scale(1.05);
}

.manufacturing-preview__more {
  text-align: center;
}

/* =============================================
   BENEFITS Section
   ============================================= */
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit-card {
  background: var(--base-white);
  border-radius: var(--card-radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.benefit-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: var(--base-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 16px;
}

.benefit-card__icon--green {
  background: linear-gradient(135deg, var(--line-green) 0%, #34D399 100%);
}

.benefit-card__icon--orange {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
}

.benefit-card__icon--red {
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-light) 100%);
}

.benefit-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.benefit-card__text {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.6;
}

/* =============================================
   NEWS + INSTAGRAM (2-column)
   ============================================= */
.news-ig {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.news-list__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--mid-gray);
}

.news-list__date {
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--text-gray);
  flex-shrink: 0;
  min-width: 90px;
}

.news-list__tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  background: var(--primary-blue);
  color: var(--base-white);
  flex-shrink: 0;
}

.news-list__tag--sale { background: var(--accent-red); }
.news-list__tag--new { background: var(--orange); }
.news-list__tag--event { background: var(--line-green); }

.news-list__title {
  font-size: 0.9rem;
  font-weight: 500;
  flex: 1;
  transition: color var(--transition-fast);
}

.news-list__item:hover .news-list__title {
  color: var(--primary-blue);
}

.news-list__more {
  margin-top: 24px;
  text-align: center;
}

.ig-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ig-section__item {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--light-gray);
}

.ig-section__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.ig-section__item:hover img {
  transform: scale(1.08);
}

.ig-section__follow {
  margin-top: 16px;
  text-align: center;
}

/* =============================================
   SHOP LIST (TOP)
   ============================================= */
.shop-list__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.shop-card {
  background: var(--base-white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.shop-card__image {
  height: 180px;
  overflow: hidden;
  background: var(--light-gray);
}

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

.shop-card__body {
  padding: 20px;
}

.shop-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1A1A1A;
}

.shop-card__address {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 12px;
  line-height: 1.5;
}

.shop-card__btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.shop-card__btn:hover {
  text-decoration: underline;
}

/* =============================================
   PRODUCT PAGE
   ============================================= */
.product-nav {
  position: sticky;
  top: var(--header-height);
  background: var(--base-white);
  border-bottom: 1px solid var(--mid-gray);
  z-index: 100;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.product-nav::-webkit-scrollbar {
  display: none;
}

.product-nav__inner {
  display: flex;
  gap: 4px;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  white-space: nowrap;
}

.product-nav__item {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  color: var(--text-gray);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  background: none;
  white-space: nowrap;
}

.product-nav__item:hover,
.product-nav__item.is-active {
  background: var(--primary-blue);
  color: var(--base-white);
}

.product-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--mid-gray);
}

.product-section:nth-child(even) {
  background: var(--light-gray);
}

.product-section__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 8px;
  padding-left: 16px;
  border-left: 4px solid var(--primary-blue);
}

.product-section__subtitle {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 32px;
  padding-left: 16px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-item {
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--base-white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.product-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-item__image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--light-gray);
}

.product-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.product-item:hover .product-item__image img {
  transform: scale(1.05);
}

.product-item__body {
  padding: 12px 16px;
}

.product-item__name {
  font-size: 0.9rem;
  font-weight: 600;
}

.product-item__desc {
  font-size: 0.8rem;
  color: var(--text-gray);
  margin-top: 4px;
}

/* =============================================
   MANUFACTURING PAGE
   ============================================= */
.mfg-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.mfg-type-card {
  background: var(--base-white);
  border-radius: var(--card-radius);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.mfg-type-card__icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

.mfg-type-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.mfg-type-card__text {
  font-size: 0.85rem;
  color: var(--text-gray);
}

/* Gallery Filter */
.gallery-filter {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.gallery-filter__btn {
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid var(--mid-gray);
  background: var(--base-white);
  color: var(--text-gray);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-filter__btn:hover,
.gallery-filter__btn.is-active {
  border-color: var(--primary-blue);
  background: var(--primary-blue);
  color: var(--base-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--card-radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--light-gray);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--overlay-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  opacity: 0;
  transition: opacity var(--transition-normal);
  color: var(--base-white);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--primary-blue);
  color: var(--base-white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
}

.gallery-item__company {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--base-white);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.02em;
  z-index: 2;
}

/* 写真枚数バッジ（overlayの中） */
.gallery-item__count {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--base-white);
  letter-spacing: 0.05em;
}

.gallery-item__overlay i {
  font-size: 1.6rem;
}

/* プレースホルダーのカーソル無効化 */
.gallery-item--placeholder {
  cursor: default;
}

.gallery-item--placeholder .gallery-item__overlay {
  display: none;
}

/* =============================================
   SHOP PAGE
   ============================================= */
.shop-filter {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.shop-filter__btn {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid var(--mid-gray);
  background: var(--base-white);
  color: var(--text-gray);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.shop-filter__btn:hover,
.shop-filter__btn.is-active {
  border-color: var(--primary-blue);
  background: var(--primary-blue);
  color: var(--base-white);
}

.shop-detail-card {
  background: var(--base-white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
  transition: box-shadow var(--transition-normal);
}

.shop-detail-card:hover {
  box-shadow: var(--shadow-md);
}

.shop-detail-card__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.shop-detail-card__gallery {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: var(--light-gray);
}

.shop-detail-card__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-detail-card__info {
  padding: 32px;
}

.shop-detail-card__name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-blue);
  display: inline-block;
}

.shop-detail-card__table {
  width: 100%;
  margin-bottom: 20px;
}

.shop-detail-card__table th {
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-blue);
  padding: 8px 16px 8px 0;
  vertical-align: top;
  white-space: nowrap;
  width: 80px;
}

.shop-detail-card__table td {
  font-size: 0.85rem;
  color: var(--text-dark);
  padding: 8px 0;
}

.shop-detail-card__actions {
  display: flex;
  gap: 12px;
}

/* =============================================
   NEWS PAGE
   ============================================= */
.news-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--base-white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.news-card__image {
  height: 200px;
  overflow: hidden;
  background: var(--light-gray);
}

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

.news-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.news-card__date {
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--text-gray);
}

.news-card__tag {
  display: inline-block;
  padding: 3px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  background: var(--primary-blue);
  color: var(--base-white);
}

.news-card__tag--sale { background: var(--accent-red); }
.news-card__tag--new { background: var(--orange); }
.news-card__tag--event { background: var(--line-green); }

.news-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
}

.news-card__excerpt {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.7;
  flex: 1;
}

.news-card__read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-gray);
  background: var(--base-white);
  border: 1px solid var(--mid-gray);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination__item:hover,
.pagination__item.is-active {
  background: var(--primary-blue);
  color: var(--base-white);
  border-color: var(--primary-blue);
}

/* =============================================
   RECRUIT PAGE
   ============================================= */
.recruit-coming {
  text-align: center;
  padding: 100px 24px;
}

.recruit-coming__icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  font-size: 2.5rem;
  color: var(--primary-blue);
  animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.recruit-coming__title {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.recruit-coming__text {
  font-size: 1.05rem;
  color: var(--text-gray);
  margin-bottom: 32px;
}

.recruit-coming__contact {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* About us section (for Recruit page) */
.about-table {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.about-table tr {
  border-bottom: 1px solid var(--mid-gray);
}

.about-table th {
  padding: 16px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--primary-blue);
  color: var(--base-white);
  text-align: center;
  width: 140px;
  vertical-align: middle;
}

.about-table td {
  padding: 16px 24px;
  font-size: 0.9rem;
}

/* =============================================
   LIGHTBOX SLIDER
   ============================================= */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  user-select: none;
}

.lightbox.is-open {
  display: flex;
}

/* 閉じるボタン */
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  color: var(--base-white);
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 2010;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast);
}

.lightbox__close:hover {
  opacity: 0.7;
}

/* ヘッダー（企業名 + カウンター） */
.lightbox__header {
  position: absolute;
  top: 20px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2010;
}

.lightbox__company {
  color: var(--base-white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.lightbox__counter {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ステージ（画像表示エリア） */
.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  padding: 60px 80px 40px;
  min-height: 0;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: opacity 0.25s ease;
}

.lightbox__img.is-switching {
  opacity: 0.3;
}

/* prev / next 矢印 */
.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--base-white);
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2010;
  transition: background var(--transition-fast), opacity var(--transition-fast);
  backdrop-filter: blur(4px);
}

.lightbox__arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__arrow--prev { left: 20px; }
.lightbox__arrow--next { right: 20px; }

.lightbox__arrow:disabled {
  opacity: 0.2;
  cursor: default;
}

/* キャプション */
.lightbox__caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  padding: 0 24px;
  min-height: 1.4em;
}

/* ドットインジケーター */
.lightbox__dots {
  display: flex;
  gap: 10px;
  padding: 16px 0 28px;
}

.lightbox__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.lightbox__dot.is-active {
  background: var(--base-white);
  transform: scale(1.25);
}

/* =============================================
   PLACEHOLDER IMAGES
   ============================================= */
.placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-gray);
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.placeholder-img i {
  font-size: 2rem;
  opacity: 0.5;
}

.placeholder-img--dark {
  background: linear-gradient(135deg, #374151 0%, #4B5563 100%);
  color: rgba(255,255,255,0.6);
}

.placeholder-img--shop {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.animate-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-children.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.animate-children.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.animate-children.is-visible > *:nth-child(3) { transition-delay: 0.15s; }
.animate-children.is-visible > *:nth-child(4) { transition-delay: 0.2s; }
.animate-children.is-visible > *:nth-child(5) { transition-delay: 0.25s; }
.animate-children.is-visible > *:nth-child(6) { transition-delay: 0.3s; }
.animate-children.is-visible > *:nth-child(7) { transition-delay: 0.35s; }
.animate-children.is-visible > *:nth-child(8) { transition-delay: 0.4s; }

.animate-children.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   PAGE TRANSITION
   ============================================= */
.page-transition {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: var(--base-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 500;
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary-blue-light);
  transform: translateY(-2px);
}

/* --- Admin Bar Compensation --- */
.admin-bar .header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
}
