/* ============================================================
   ishii HP Renewal - Main Stylesheet
   BEM記法 / CSS Variables / Flexbox / Grid Layout
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS Variables (Design Tokens)
   ------------------------------------------------------------ */
:root {
  /* Colors */
  --color-primary:       #E86BA0; /* ピンク（彩度を微調整したくすみピンク） */
  --color-primary-dark:  #b84878; /* 白テキストとのコントラスト比 4.5:1 以上確保 */
  --color-primary-light: #FFF7FA; /* 薄ピンク背景（調整済み） */
  --color-bg-off-white:  #F7F5F2;
  --color-bg-white:      #FFFFFF;
  --color-text-heading:  #1A1A1A;
  --color-text-body:     #3D3D3D; /* 本文：ダークグレーに調整 */
  --color-text-caption:  #6B6966; /* WCAG AA準拠（白・薄ピンク背景両方で 4.5:1 以上） */
  --color-text-white:    #FFFFFF;
  --color-border:        #EAEAEA;
  --color-accent-red:    #F22828;
  --color-overlay:       rgba(36, 36, 36, 0.16);

  /* Typography */
  --font-sans:   'Noto Sans JP', sans-serif;
  --font-serif:  'Noto Serif JP', serif;

  --fs-xs:   0.75rem;   /* 12px */
  --fs-sm:   0.875rem;  /* 14px */
  --fs-base: 1rem;      /* 16px */
  --fs-md:   1.125rem;  /* 18px */
  --fs-lg:   1.25rem;   /* 20px */
  --fs-xl:   1.375rem;  /* 22px */
  --fs-2xl:  1.5625rem; /* 25px */
  --fs-3xl:  1.875rem;  /* 30px */
  --fs-4xl:  2rem;      /* 32px */
  --fs-5xl:  2.25rem;   /* 36px */

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-bold:    700;

  --lh-tight:  1.4;
  --lh-base:   1.7;
  --lh-loose:  1.8;

  --ls-tight:  0.02em;
  --ls-base:   0.05em;
  --ls-wide:   0.1em;
  --ls-wider:  0.18em;

  /* Spacing */
  --space-xs:   0.5rem;   /* 8px */
  --space-sm:   1rem;     /* 16px */
  --space-md:   1.5rem;   /* 24px */
  --space-lg:   2rem;     /* 32px */
  --space-xl:   3rem;     /* 48px */
  --space-2xl:  3.5rem;   /* 56px  ← 余白過多を修正 */
  --space-3xl:  5rem;     /* 80px  ← 余白過多を修正 */

  /* Layout */
  --container-max: 1200px;
  --container-pad: 1.5rem;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-btn: 0 3px 10px rgba(232, 107, 160, 0.30);

  /* Border Radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-full: 9999px;

  /* Transition */
  --transition: 0.25s ease;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-base);
  letter-spacing: var(--ls-tight);
  color: var(--color-text-body);
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

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

/* ------------------------------------------------------------
   3. Utility
   ------------------------------------------------------------ */
.u-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Section Heading — おしゃれなコーナータイトルスタイル
   英語ラベル＋左ボーダーライン＋日本語大見出しの2段構成
   ============================================================ */
.section__heading {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--color-primary);
  margin-bottom: var(--space-xl);
}

.section__label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  color: var(--color-primary);
  text-transform: uppercase;
}

.section__title {
  font-family: var(--font-serif);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-base);
  color: var(--color-text-heading);
  position: relative;
}

/* ------------------------------------------------------------
   4. Header
   ------------------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg-white);
  box-shadow: 0 1px 0 var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.header__logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-decoration: none;
}

.header__logo-mark {
  display: flex;
  align-items: center;
  line-height: 1;
}

.header__logo-name {
  font-size: var(--fs-xs);
  color: var(--color-text-caption);
  letter-spacing: var(--ls-base);
}

/* Global Nav */
.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__item a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-heading);
  letter-spacing: var(--ls-base);
  transition: color var(--transition);
}

.nav__item a:hover {
  color: var(--color-primary);
}

.nav__item--cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  background-color: var(--color-primary-dark); /* コントラスト比改善のため濃いピンクを使用 */
  color: var(--color-text-white);
  font-weight: var(--fw-bold);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-btn);
}

.nav__item--cta a:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 4px 14px rgba(232, 107, 160, 0.40);
}

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

.header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-heading);
  border-radius: var(--radius-full);
  transition: transform var(--transition), opacity var(--transition);
}

.header__hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.header__hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.header__nav-drawer {
  display: none;
  position: fixed;
  inset: 80px 0 0 0;
  background-color: var(--color-bg-white);
  z-index: 99;
  padding: var(--space-lg) var(--container-pad);
  overflow-y: auto;
}

.header__nav-drawer.is-open {
  display: block;
}

.drawer__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.drawer__item {
  border-bottom: 1px solid var(--color-border);
}

.drawer__item a {
  display: block;
  padding: 1rem 0;
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--color-text-heading);
  letter-spacing: var(--ls-base);
}

.drawer__item--cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: var(--space-md);
  padding: 0.875rem;
  background-color: var(--color-primary);
  color: var(--color-text-white);
  font-weight: var(--fw-bold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-btn);
}

/* ------------------------------------------------------------
   5. Hero Slider
   ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background-color: #111;
}

.hero__slider {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero__slide {
  min-width: 100%;
  position: relative;
}

.hero__slide-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 340px;
}

.hero__banner {
  position: relative;
  overflow: hidden;
}

.hero__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero__banner:hover img {
  transform: scale(1.03);
}

.hero__banner-label {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-block;
  padding: 3px 10px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-base);
  border-radius: var(--radius-sm);
  z-index: 1;
}

.hero__banner-label--column {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

.hero__banner-label--sales {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

.hero__banner-label--seminar {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

.hero__banner-label--product {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

/* Dark banner (first banner) */
.hero__banner--dark {
  background-color: #1a1a1a;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.hero__banner--dark .hero__banner-text {
  color: var(--color-text-white);
  font-family: var(--font-sans);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-base);
  margin-top: 2.5rem;
}

.hero__banner--dark .hero__banner-sub {
  color: var(--color-text-caption);
  font-size: var(--fs-xs);
  margin-top: 0.5rem;
}

.hero__banner--dark .hero__banner-author {
  color: var(--color-primary);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  margin-top: 0.25rem;
}

/* Slider Controls */
.hero__prev,
.hero__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.85);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background-color var(--transition);
}

.hero__prev:hover,
.hero__next:hover {
  background-color: var(--color-bg-white);
}

.hero__prev { left: 12px; }
.hero__next { right: 12px; }

.hero__prev svg,
.hero__next svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-text-heading);
}

/* ------------------------------------------------------------
   6. Diagnosis Banner
   ------------------------------------------------------------ */
.diagnosis {
  background-color: var(--color-primary-light);
  padding: var(--space-md) 0;
}

.diagnosis__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.diagnosis__copy {
  font-size: var(--fs-xs);
  color: var(--color-text-caption);
  letter-spacing: var(--ls-base);
}

.diagnosis__title {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-sans);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--color-text-heading);
  letter-spacing: var(--ls-base);
}

.diagnosis__title-icon {
  color: var(--color-primary);
  font-size: 1.5rem;
}

.diagnosis__tags {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.diagnosis__tag {
  font-size: var(--fs-xs);
  color: var(--color-text-caption);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 2px 10px;
}

.diagnosis__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-primary);
  color: var(--color-text-white);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-btn);
  transition: background-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.diagnosis__cta:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 4px 14px rgba(232, 107, 160, 0.40);
}

.diagnosis__cta-icon {
  font-size: 0.75rem;
}

/* ------------------------------------------------------------
   7. About Section
   ------------------------------------------------------------ */
.about {
  padding: var(--space-2xl) 0;
  background-color: var(--color-primary-light);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.about__content {}

.about__heading {
  /* section__headingに統一、個別スタイルは不要 */
}

.about__body {
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
  color: var(--color-text-body);
  margin-bottom: var(--space-lg);
}

.about__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  border-radius: var(--radius-full);
  letter-spacing: var(--ls-base);
  transition: background-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 4px 14px rgba(232, 107, 160, 0.40);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-text-heading);
  border: 2px solid var(--color-text-heading);
}

.btn--outline:hover {
  background-color: var(--color-text-heading);
  color: var(--color-text-white);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-text-caption);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ============================================================
   About INDEX — カード型クリック誘導デザイン
   ============================================================ */
.about__index {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.about__index-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary-light);
}

.about__index-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about__index-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition);
}

.about__index-item:hover {
  transform: translateX(4px);
}

.about__index-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--color-text-heading);
  letter-spacing: var(--ls-base);
  background-color: var(--color-primary-light);
  border-left: 3px solid var(--color-primary);
  transition: background-color var(--transition), color var(--transition);
}

.about__index-item a:hover {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

.about__index-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: var(--color-text-white);
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: background-color var(--transition), color var(--transition);
}

.about__index-item a:hover .about__index-arrow {
  background-color: var(--color-text-white);
  color: var(--color-primary);
}

/* ------------------------------------------------------------
   8. Cases Section
   ------------------------------------------------------------ */
.cases {
  padding: var(--space-2xl) 0;
  background-color: var(--color-bg-off-white);
}

.cases__header {
  margin-bottom: var(--space-xl);
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.case-card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.case-card__image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.case-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-card:hover .case-card__image img {
  transform: scale(1.04);
}

.case-card__label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-block;
  padding: 3px 12px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

.case-card__body {
  padding: var(--space-md);
}

.case-card__title {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--color-text-heading);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-xs);
  letter-spacing: var(--ls-tight);
}

.case-card__text {
  font-size: var(--fs-sm);
  color: var(--color-text-body);
  line-height: var(--lh-base);
}

.cases__footer {
  text-align: center;
}

/* ------------------------------------------------------------
   9. Products Section
   ------------------------------------------------------------ */
.products {
  padding: var(--space-2xl) 0;
  background-color: var(--color-bg-white);
}

.products__header {
  margin-bottom: var(--space-xl);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.product-card {
  background-color: var(--color-bg-off-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.product-card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.04);
}

.product-card__body {
  padding: var(--space-sm);
}

.product-card__name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-text-heading);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

.products__footer {
  text-align: center;
}

/* ------------------------------------------------------------
   10. News Section
   ------------------------------------------------------------ */
.news {
  padding: var(--space-2xl) 0;
  background-color: var(--color-bg-white);
}

.news__header {
  margin-bottom: var(--space-xl);
}

.news__tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-lg);
}

.news__tab {
  padding: 0.5rem 1.25rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-caption);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.news__tab.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: var(--fw-bold);
}

.news__panel {
  display: none;
}

.news__panel.is-active {
  display: block;
}

/* Column cards */
.news__column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.column-card {
  background-color: #1a1a1a;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
}

.column-card__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0.5;
  width: 100%;
  height: 100%;
}

.column-card__label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 10px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  background-color: var(--color-primary);
  color: var(--color-text-white);
  border-radius: var(--radius-sm);
}

.column-card__title {
  position: relative;
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--color-text-white);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-base);
}

.column-card__sub {
  position: relative;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.7);
  margin-top: 0.25rem;
}

/* News list */
.news__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.news__list-group {}

.news__list-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wider);
  color: var(--color-text-caption);
  text-transform: uppercase;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-sm);
}

.news__list {}

.news__list-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-sm);
}

.news__list-date {
  color: var(--color-text-caption);
  white-space: nowrap;
  flex-shrink: 0;
}

.news__list-title {
  color: var(--color-text-heading);
  transition: color var(--transition);
}

.news__list-item a:hover .news__list-title {
  color: var(--color-primary);
}

/* ------------------------------------------------------------
   11. SNS Section
   ------------------------------------------------------------ */
.sns {
  padding: var(--space-2xl) 0;
  background-color: var(--color-bg-off-white);
}

.sns__header {
  margin-bottom: var(--space-xl);
}

.sns__list {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.sns-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 1rem 2rem;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--color-text-heading);
  transition: box-shadow var(--transition), transform var(--transition);
  min-width: 180px;
  justify-content: center;
}

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

.sns-card__icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* ------------------------------------------------------------
   12. Footer
   ------------------------------------------------------------ */
.footer {
  background-color: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer__nav {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.footer__nav a {
  font-size: var(--fs-sm);
  color: var(--color-text-caption);
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--color-primary);
}

.footer__copy {
  font-size: var(--fs-xs);
  color: var(--color-text-caption);
  text-align: center;
  margin-top: var(--space-sm);
}

/* ------------------------------------------------------------
   13. Inline Editor (Preview Edit Mode)
   ------------------------------------------------------------ */
.edit-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: #1A1A1A;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1.5rem;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.25);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.edit-bar__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.edit-bar__indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #6ee7b7;
  flex-shrink: 0;
}

.edit-bar__label {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.edit-bar__hint {
  color: #aaa;
  font-size: 0.75rem;
}

.edit-bar__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.edit-bar__btn {
  padding: 0.375rem 1rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  border: none;
}

.edit-bar__btn--save {
  background-color: var(--color-primary);
  color: #fff;
}

.edit-bar__btn--save:hover {
  background-color: var(--color-primary-dark);
}

.edit-bar__btn--reset {
  background-color: transparent;
  color: #ccc;
  border: 1px solid #555;
}

.edit-bar__btn--reset:hover {
  background-color: #333;
}

.edit-bar__btn--export {
  background-color: #2563eb;
  color: #fff;
}

.edit-bar__btn--export:hover {
  background-color: #1d4ed8;
}

/* Editable element highlight */
[data-editable] {
  position: relative;
  outline: 2px dashed transparent;
  outline-offset: 2px;
  transition: outline-color 0.2s;
  cursor: text;
}

[data-editable]:hover {
  outline-color: rgba(232, 107, 160, 0.5);
}

[data-editable]:focus {
  outline-color: var(--color-primary);
  outline-style: solid;
}

/* Edit tooltip */
.edit-tooltip {
  position: absolute;
  top: -26px;
  left: 0;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100;
}

[data-editable]:hover .edit-tooltip {
  opacity: 1;
}

/* Color picker panel */
.color-panel {
  position: fixed;
  bottom: 60px;
  right: 1.5rem;
  z-index: 9998;
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1rem;
  width: 260px;
  display: none;
}

.color-panel.is-open {
  display: block;
}

.color-panel__title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 0.75rem;
}

.color-panel__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}

.color-panel__label {
  font-size: 0.75rem;
  color: var(--color-text-caption);
  flex: 1;
}

.color-panel__input {
  width: 40px;
  height: 32px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
  padding: 2px;
}

.color-panel__hex {
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--color-text-heading);
  width: 80px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 4px 6px;
}

/* Spacing panel */
.spacing-panel {
  position: fixed;
  bottom: 60px;
  right: 1.5rem;
  z-index: 9998;
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1rem;
  width: 260px;
  display: none;
}

.spacing-panel.is-open {
  display: block;
}

.spacing-panel__title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 0.75rem;
}

.spacing-panel__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}

.spacing-panel__label {
  font-size: 0.75rem;
  color: var(--color-text-caption);
  flex: 1;
}

.spacing-panel__input {
  width: 70px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 0.75rem;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: #1A1A1A;
  color: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10000;
  white-space: nowrap;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ------------------------------------------------------------
   14. Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .hero__slide-inner {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
  }

  .hero__banner {
    height: 220px;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .cases__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news__column-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --fs-4xl: 1.625rem;
    --fs-3xl: 1.5rem;
    --space-3xl: 4rem;
    --space-2xl: 3rem;
  }

  .header__nav {
    display: none;
  }

  .header__hamburger {
    display: flex;
  }

  .hero__slide-inner {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hero__banner {
    height: 200px;
  }

  .hero__banner--dark {
    height: 240px;
  }

  .diagnosis__inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }

  .cases__grid {
    grid-template-columns: 1fr;
  }

  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news__column-grid {
    grid-template-columns: 1fr;
  }

  .news__grid {
    grid-template-columns: 1fr;
  }

  .sns__list {
    flex-direction: column;
  }

  .sns-card {
    width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .about__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .edit-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem;
  }

  .edit-bar__right {
    width: 100%;
    justify-content: flex-end;
  }
}

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