﻿@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600&family=Noto+Sans+JP:wght@400;500;600&display=swap");

:root {
  --bg: #f3f9ff;
  --panel: #ffffff;
  --panel-soft: #f7fbff;
  --accent: #4ea3ff;
  --accent-strong: #2c80d8;
  --accent-soft: #e0f2ff;
  --text: #20405c;
  --muted: #6c7a89;
  --border: #e0f0ff;
  --shadow: 0 18px 38px rgba(56, 115, 173, 0.14);
  --radius: 18px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', 'Yu Gothic', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

img {
  width: 100%;
  display: block;
  border-radius: 16px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* アンカーリンクのスクロール位置調整（ヘッダーの高さ分） */
section[id] {
  scroll-margin-top: 140px;
}

/* モバイル時はヘッダーが小さいので調整 */
@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 80px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(23, 39, 73, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 24px;
  gap: 24px;
}

.logo-text {
  font-family: 'Nunito', sans-serif;
  letter-spacing: 0.18em;
}

.logo-image {
  height: 66px;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 0;
}

@media (max-width: 768px) {
  .header-inner {
    padding: 5px 20px;
  }

  .logo-image {
    height: 56px;
  }
}

/* デスクトップ時はナビゲーション表示 */
.global-nav {
  display: block;
}

.global-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.global-nav li {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.has-dropdown:hover .dropdown-panel,
.dropdown-panel:hover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-category {
  display: flex;
  flex-direction: column;
}

.dropdown-category-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dropdown-category-btn:hover {
  background: var(--bg);
}

.dropdown-arrow {
  transition: transform 0.2s ease;
}

.dropdown-category.is-open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-subcategories {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.dropdown-category.is-open .dropdown-subcategories {
  max-height: 300px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.dropdown-category-link {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.dropdown-category-link:hover {
  background: var(--bg);
}

/* ハンバーガーメニューボタン */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 60;
}

.hamburger-btn span {
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

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

/* モバイル時のナビゲーション */
@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }

  .global-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--panel);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 50;
    overflow-y: auto;
  }

  .global-nav.is-open {
    right: 0;
  }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 80px 0 24px;
  }

  .global-nav li {
    border-bottom: 1px solid var(--border);
  }

  .global-nav > ul > li > a {
    display: block;
    padding: 16px 24px;
    font-size: 15px;
  }

  .dropdown-panel {
    position: static;
    width: 100%;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    padding: 0 24px 12px 40px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .has-dropdown.is-open .dropdown-panel {
    max-height: 600px;
  }

  .dropdown-panel a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: var(--muted);
  }

  .dropdown-category-btn {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
  }

  .dropdown-category-btn:hover {
    background: transparent;
  }

  .dropdown-subcategories {
    padding-left: 12px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .dropdown-subcategories a {
    padding: 6px 0;
    font-size: 13px;
  }

  .dropdown-category-link {
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
  }

  .dropdown-category-link:hover {
    background: transparent;
  }
}

.search-form {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  min-width: 240px;
  background: var(--panel);
}

.search-form input {
  border: none;
  padding: 10px 16px;
  flex: 1;
  background: transparent;
}

.search-form button {
  border: none;
  background: linear-gradient(135deg, #5bb4ff, #7fd3ff);
  color: #fff;
  width: 52px;
  cursor: pointer;
}

.hero-carousel {
  width: 100%;
  padding: clamp(12px, 2vw, 24px) 24px 60px;
  background: linear-gradient(180deg, #f5fbff, #eef5ff);
}

.carousel-window {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding: 0;
}

@media (min-width: 1024px) {
  .carousel-window {
    aspect-ratio: 4 / 3;
    max-height: 380px;
    overflow: visible;
  }
}

.carousel-track {
  display: flex;
  align-items: stretch;
  padding: 18px 0 32px;
  transition: transform 0.6s ease;
  will-change: transform;
}

.carousel-slide {
  flex-shrink: 0;
  width: 100%;
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  color: #fff;
  background: var(--panel);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 26px;
  flex-shrink: 0;
  background: #fff;
}

/* PC: 横長カード中央配置 + 左右にカード表示 */
@media (min-width: 1024px) {
  .carousel-track {
    gap: 24px;
    justify-content: flex-start;
  }

  .carousel-slide {
    width: min(540px, 55vw);
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .carousel-slide img {
    object-fit: contain;
  }
}

.carousel-slide.no-text img {
  height: 100%;
  border-radius: 26px;
}

.carousel-slide.active {
  box-shadow: 0 30px 60px rgba(43, 90, 138, 0.18);
}

.carousel-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  pointer-events: none;
  border-radius: 26px;
  transition: opacity 0.4s ease;
}
.carousel-slide.is-center::after {
  opacity: 0;
}

.slide-label {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  font-weight: 600;
}

.slide-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-radius: 0 0 26px 26px;
}

.slide-body h2 {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 600;
}

.slide-body p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.slide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(135deg, #5bb4ff, #7fd3ff);
  color: #fff;
  transition: opacity 0.2s ease;
}

.slide-btn:hover {
  opacity: 0.85;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 26px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: #c5d9ef;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.carousel-dot.active {
  width: 22px;
  background: var(--accent-strong);
}

.main-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}

.category-panel {
  position: sticky;
  top: 110px;
  align-self: start;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.category-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #5bb4ff, #7fd3ff);
  color: #fff;
  font-weight: 600;
  margin-bottom: 16px;
}

.category-item + .category-item {
  margin-top: 12px;
}

.category-item button {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.category-item.is-open > button {
  background: linear-gradient(135deg, rgba(94, 164, 255, 0.12), rgba(127, 211, 255, 0.2));
  border-color: var(--accent);
  color: var(--accent-strong);
}

.category-button-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.category-button-link:hover {
  background: linear-gradient(135deg, rgba(94, 164, 255, 0.08), rgba(127, 211, 255, 0.12));
  border-color: var(--accent);
  color: var(--accent-strong);
}

.category-arrow {
  font-size: 1.1em;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.category-button-link:hover .category-arrow {
  transform: translateX(4px);
}

/* PC時のみカテゴリー固定 */
@media (min-width: 1024px) {
  .category-item.is-locked button {
    /* 通常のボタンと同じ見た目だが、クリック不可 */
    cursor: default;
    pointer-events: none;
  }

  /* is-openクラスでロック時は展開状態の見た目を維持 */
  .category-item.is-locked.is-open button {
    background: linear-gradient(135deg, rgba(94, 164, 255, 0.08), rgba(127, 211, 255, 0.12));
    border-color: var(--accent);
    color: var(--accent-strong);
  }

  /* ロック時はホバーエフェクトを無効化 */
  .category-item.is-locked button:hover {
    background: linear-gradient(135deg, rgba(94, 164, 255, 0.08), rgba(127, 211, 255, 0.12));
    border-color: var(--accent);
    color: var(--accent-strong);
  }

  .category-item.is-locked .category-children {
    max-height: 500px !important;
    overflow: visible;
  }
}

.category-children {
  list-style: none;
  max-height: none;
  overflow: visible;
  margin-top: 10px;
  padding: 0 0 0 14px;
}

.category-children li {
  list-style: disc;
  margin: 4px 0;
  flex: 1 1 100%;
}

.category-children li a {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.category-panel-mobile {
  display: none;
}

.category-panel-mobile .category-head {
  margin-bottom: 16px;
}

.category-panel-mobile .category-head h3 {
  margin-top: 4px;
}

@media (max-width: 768px) {
  .category-panel-mobile {
    display: block;
    background: var(--panel);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin: 28px 0;
  }

  .category-panel-mobile .category-children {
    max-height: none !important;
    display: block !important;
    opacity: 1;
    margin-top: 8px;
  }

  .category-panel-mobile .category-item button {
    pointer-events: none;
    background: transparent;
    border: none;
    padding: 0;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: default;
  }
}

.product-area {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

@media (max-width: 1024px) {
  .product-area {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.products-block,
.series-section,
.media-section,
.message-section,
.supervision-section,
.news-section {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.supervision-section {
  padding: 24px;
}

.products-header,
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

.btn-link {
  color: var(--accent-strong);
  font-weight: 600;
}

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

.product-grid.three-up {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.product-card {
  background: var(--panel-soft);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border);
}

.product-card img {
  height: 240px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border-radius: 18px;
}

.product-badge {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
}

.product-badge.limited {
  background: #7fd3ff;
  color: #0e3553;
}

.price {
  font-weight: 600;
}

.series-collage {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 20px;
}

.series-collage--reversed {
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.2fr);
}

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

/* デスクトップ・タブレット用（769px以上）：画像をカード全体に表示 */
@media (min-width: 769px) {
  .series-collage {
    height: 300px;
  }

  .series-main,
  .series-rect {
    height: 100%;
  }
}

.series-main,
.series-rect {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.series-main {
  min-height: 380px;
}

.series-main img,
.series-rect img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.series-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.series-rect {
  flex: 1;
  min-height: 180px;
}

.series-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
  border-width: 2px;
  border-style: dashed;
  border-color: var(--border);
  background: #fdfdfd;
}

.series-main figcaption,
.series-rect figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  color: #fff;
  background: linear-gradient(180deg, rgba(20, 40, 70, 0) 0%, rgba(20, 40, 70, 0.92) 100%);
}

.series-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  margin-bottom: 6px;
}

.media-section {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.media-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.media-card {
  background: var(--panel-soft);
  border-radius: 22px;
  padding: 20px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.media-card video.media-video {
  width: 100%;
  max-height: 420px;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #000;
  object-fit: contain;
}

.media-description-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.media-description-heading {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-strong);
  margin: 0;
}

.media-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

.media-note {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.media-magazine {
  margin-top: 24px;
}

.media-magazine-card {
  display: flex;
  flex-direction: row;
  gap: 24px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 40px rgba(20, 45, 70, 0.08);
  background: #fff;
  padding: 32px;
  align-items: flex-start;
}

.magazine-images {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-items: flex-start;
  max-width: 480px;
}

.magazine-images img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  background: #fafbfd;
}

.magazine-copy {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text);
  padding: 0;
}

.magazine-copy h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

.magazine-copy p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.magazine-copy .eyebrow {
  font-size: 0.68rem;
}

@media (max-width: 1024px) {
  .media-magazine-card {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }
  .magazine-images {
    grid-template-columns: repeat(2, 1fr);
    max-width: 360px;
    margin: 0 auto;
  }
  .magazine-copy {
    gap: 3px;
    padding: 0;
  }
  .magazine-copy h3 {
    font-size: 0.95rem;
    line-height: 1.3;
  }
  .magazine-copy p {
    font-size: 0.85rem;
    line-height: 1.6;
  }
}

.message-section {
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.concept-hero {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.concept-hero .section-header {
  margin-bottom: 20px;
  padding: 0;
}

@media (max-width: 1024px) {
  .concept-hero .section-header {
    margin-bottom: 12px;
  }
}

.concept-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 420px;
}

.concept-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.concept-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px;
  color: #f7fbff;
  background: linear-gradient(180deg, rgba(5, 14, 30, 0) 0%, rgba(5, 14, 30, 0.75) 75%, rgba(5, 14, 30, 0.92) 100%);
  max-width: 600px;
}

.concept-copy h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.concept-copy p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.message-section h2 {
  margin-bottom: 14px;
}

.image-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.supervision-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) 1.55fr;
  gap: 36px;
  align-items: center;
}

.supervision-section .image-frame {
  background: #fff;
  padding: 12px;
  max-width: 240px;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.supervision-section .image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.commitment-section {
  background: transparent;
  padding: 0;
}

.commitment-card {
  margin-top: 28px;
  background: var(--panel);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 30px 50px rgba(41, 80, 122, 0.16);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.commitment-text p {
  margin-bottom: 12px;
}

.signature-visual {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.signature-visual img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.signature-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.signature-points section:nth-child(3) {
  grid-column: 1 / -1;
}

.signature-points section {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
}

.signature-points h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.signature-points p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.supervision-grid ul {
  margin: 12px 0;
  padding-left: 18px;
}

.news-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-grid article {
  background: var(--panel-soft);
  border-radius: 18px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.news-date {
  min-width: 120px;
}

.news-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 600px) {
  .news-grid article {
    flex-direction: column;
  }
  .news-date {
    min-width: auto;
  }
}

.news-title {
  color: var(--accent-strong);
  font-weight: 600;
}

.site-footer {
  background: #1f2b3a;
  color: #e7f0ff;
  padding: 60px 24px 32px;
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-bottom: 32px;
}

.footer-logo {
  font-family: 'Nunito', sans-serif;
  letter-spacing: 0.24em;
  font-size: 18px;
}

.footer-top h4 {
  margin-bottom: 12px;
  color: #bcd7ff;
}

.footer-top ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.footer-sns {
  display: flex;
  gap: 12px;
}

.footer-sns a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .main-wrapper {
    grid-template-columns: 1fr;
  }
  .category-panel {
    display: none;
  }
  .product-area > * {
    order: 0;
  }
  .media-section {
    order: 1;
  }
  .supervision-section {
    order: 2;
  }
  .products-block {
    order: 3;
  }
  .product-series-block {
    order: 4;
  }
  .message-section {
    order: 5;
  }
  .category-panel-mobile {
    order: 6;
  }
  .commitment-card {
    order: 7;
  }
  .news-section {
    order: 8;
  }
}

@media (max-width: 900px) {
  .supervision-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .supervision-section .image-frame {
    align-self: center;
    max-width: 360px;
    margin: 0 auto;
  }
  .supervision-section .image-frame img {
    max-width: 100%;
    margin: 0;
  }
  .supervision-grid > div:last-child h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  .supervision-grid > div:last-child p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .concept-image-wrapper {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }
  .concept-copy {
    position: static;
    max-width: 100%;
    padding: 20px;
    background: none;
    color: var(--text);
    margin-top: 16px;
  }
  .concept-copy h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  .concept-copy p {
    font-size: 0.82rem;
    line-height: 1.6;
  }
  .carousel-slide {
    flex: 0 0 75%;
    margin: 0 12px;
  }
  .series-collage--reversed .series-main {
    order: -1;
  }
  .series-main,
  .series-rect {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }
  .series-main img,
  .series-rect img {
    max-width: 60%;
    margin: 0;
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .series-main figcaption,
  .series-rect figcaption {
    position: static;
    background: transparent;
    color: var(--text);
    padding: 12px 0;
  }
  .series-label {
    background: var(--accent-soft);
    color: var(--accent-strong);
  }
}

@media (max-width: 768px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-carousel .carousel-window {
    width: 88vw;
    margin: 0 auto;
    height: auto;
  }
  .carousel-slide {
    width: 82vw;
    flex-shrink: 0;
  }
  .carousel-track {
    gap: 3vw;
    padding: 12px 0 24px;
  }
  .carousel-btn {
    width: 36px;
    height: 36px;
  }
  .main-wrapper {
    padding: 0 16px 60px;
  }
  .products-block,
  .series-section,
  .media-section,
  .message-section,
  .supervision-section,
  .news-section {
    padding: 24px;
  }
  .supervision-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .supervision-section .image-frame {
    align-self: center;
    max-width: 300px;
    margin: 0 auto;
  }
  .supervision-section .image-frame img {
    max-width: 100%;
    margin: 0;
  }
  .supervision-grid > div:last-child h3 {
    font-size: 0.95rem;
  }
  .supervision-grid > div:last-child p {
    font-size: 0.85rem;
  }
  .concept-hero {
    padding: 24px;
  }
  .concept-hero .section-header {
    margin-bottom: 16px;
  }
  /* 3つのことブロックのスマホ縮小 */
  .commitment-card {
    padding: 18px 16px;
    gap: 12px;
  }
  .signature-visual {
    display: block;
  }
  .signature-visual img {
    display: block;
    width: 100%;
  }
  .commitment-text h2 {
    font-size: 1.08rem;
    margin-bottom: 6px;
  }
  .commitment-text p {
    font-size: 0.84rem;
    line-height: 1.55;
    margin-bottom: 8px;
  }
  .signature-points {
    gap: 8px;
    margin-top: 8px;
  }
  .signature-points section {
    padding: 8px 10px;
  }
  .signature-points h3 {
    font-size: 0.78rem;
    margin-bottom: 0.2rem;
  }
  .signature-points p {
    font-size: 0.74rem;
    line-height: 1.4;
  }
  /* お知らせブロックのスマホ縮小 */
  .news-grid article {
    padding: 14px 16px;
    gap: 12px;
  }
  .news-title {
    font-size: 0.9rem;
  }
  .news-body p {
    font-size: 0.83rem;
    line-height: 1.55;
  }
  .concept-image-wrapper {
    min-height: 280px;
  }
}

@media (max-width: 520px) {
  .product-card img {
    height: 180px;
  }
  .hero-carousel .carousel-window {
    width: 88vw;
  }
  .carousel-slide {
    width: 80vw;
    flex-shrink: 0;
  }
  .carousel-track {
    gap: 4vw;
  }
  .concept-copy p {
    font-size: 0.78rem;
    line-height: 1.6;
  }
  .commitment-card {
    padding: 16px 14px;
  }
  .commitment-text h2 {
    font-size: 1rem;
  }
  .commitment-text p {
    font-size: 0.8rem;
  }
  .signature-points section {
    padding: 8px;
  }
  .signature-points h3 {
    font-size: 0.72rem;
  }
  .signature-points p {
    font-size: 0.7rem;
  }
}

/* === PC用：新着4番目を非表示 === */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
}

/* Carousel styles are now consolidated above */

/* === 定番シリーズ：PC/モバイル切り替え === */
.series-mobile {
  display: none;
}

.series-collage-pc {
  display: block;
}

@media (max-width: 768px) {
  .series-collage-pc {
    display: none;
  }

  .series-mobile {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .series-mobile-item {
    margin: 0;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
  }

  .series-mobile-item img {
    width: 100%;
    display: block;
    height: auto;
  }

  .series-mobile-item.series-square {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
  }

  .series-mobile-item.series-rect {
    aspect-ratio: 3 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
  }

  .series-mobile-item.series-rect img {
    max-height: 100%;
    object-fit: contain;
  }

  .series-mobile-item.series-square img {
    max-height: 100%;
    object-fit: contain;
  }
}

/* 商品シリーズブロック
   -------------------------------------------------- */
.product-series-block {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.product-series-block .section-header {
  margin-bottom: 24px;
}

/* グリッドレイアウト */
.product-series-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* 各カード */
.product-series-item {
  position: relative;
  display: flex;
  overflow: hidden;
  border-radius: 16px;
  background-color: #f5f5f7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-series-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* PC / タブレットレイアウト */
@media (min-width: 768px) {
  .product-series-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .product-series-item {
    border-radius: 18px;
  }

  .product-series-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }

  /* 正方形カードは2行分を占有 */
  .product-series-item--square {
    aspect-ratio: 1 / 1;
    grid-row: span 2;
  }

  /* 長方形カードは1行分 */
  .product-series-item--wide {
    grid-row: span 1;
  }

  /* 2段目：左に長方形4・5、右に正方形6 */
  .product-series-item:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
    margin-top: 20px;
  }
  .product-series-item:nth-child(5) {
    grid-column: 1;
    grid-row: 4;
  }
  .product-series-item:nth-child(6) {
    grid-column: 2;
    grid-row: 3 / span 2;
    margin-top: 20px;
  }
}

/* スマホサイズ：商品シリーズの順序変更 */
@media (max-width: 768px) {
  .product-series-grid {
    display: flex;
    flex-direction: column;
  }

  /* 商品カードの順序: 正方形1 → 長2 → 長3 → 正方形6 → 長4 → 長5 */
  .product-series-item:nth-child(1) { order: 1; }
  .product-series-item:nth-child(2) { order: 2; }
  .product-series-item:nth-child(3) { order: 3; }
  .product-series-item:nth-child(6) { order: 4; }
  .product-series-item:nth-child(4) { order: 5; }
  .product-series-item:nth-child(5) { order: 6; }
}

/* Mobile hamburger menu - All products link */
.nav-all-products {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700 !important;
  color: var(--accent) !important;
}

/* Mobile sidebar button links */
@media (max-width: 768px) {
  .category-button-link-mobile {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid var(--border);
    background: var(--panel-soft);
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .category-button-link-mobile:active {
    background: linear-gradient(135deg, rgba(94, 164, 255, 0.08), rgba(127, 211, 255, 0.12));
    border-color: var(--accent);
  }
}

/* Fix scroll position for concept section */
#concept {
  scroll-margin-top: 120px;
}

@media (max-width: 768px) {
  #concept {
    scroll-margin-top: 100px;
  }
}

/* トップに戻るリンク */
.nav-back-to-top {
  margin-top: 16px !important;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-back-to-top a {
  font-weight: 700 !important;
  color: var(--accent) !important;
  opacity: 0.9;
}

/* PCでは「トップに戻る」を非表示 */
@media (min-width: 769px) {
  .nav-back-to-top {
    display: none;
  }
}

/* ロゴリンク */
.logo-link {
  display: inline-block;
  cursor: pointer;
}

/* PCドロップダウン内サブカテゴリーアイコン */
.dropdown-subcategories a::before {
  content: "›";
  display: inline-block;
  margin-right: 6px;
  color: var(--accent);
  font-size: 1.1em;
}

/* PCドロップダウン内ボタンアイコン */
.dropdown-category-link::after {
  content: "›";
  display: inline-block;
  margin-left: auto;
  color: var(--accent);
  font-size: 1.1em;
  transition: transform 0.2s ease;
}

.dropdown-category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-category-link:hover::after {
  transform: translateX(4px);
}

/* モバイルサブカテゴリーアイコン（サイズ統一） */
.subcategory-icon {
  display: inline-block;
  margin-right: 6px;
  color: var(--accent);
  font-size: 1.1em;
  opacity: 0.7;
}

/* モバイルカテゴリーボタンアイコン */
.category-icon-mobile {
  display: inline-block;
  margin-right: 8px;
  color: var(--accent);
  font-size: 1.1em;
}
