@charset "UTF-8";

/* ==========================================================================
   BASE - リセット & 基本設定
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:target {
  scroll-margin-top: 110px; /* 固定ヘッダー分のマージン調整 */
}

body {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS Mincho", serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  overscroll-behavior-x: none; /* スマホの横揺れ防止（固定ヒーローに影響しない） */
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

br {
  display: block;
  margin: 0;
  line-height: 0;
}

.detail-point-subtitle br {
  display: block;
  margin: 2.4em 0;
  height: 0;
}

/* ==========================================================================
   LAYOUT - 共通コンテナ
   ========================================================================== */
.container {
  max-width: 1130px;
  margin: 0 auto;
  padding: 0px 10px 30px;
}

.content-inner {
  max-width: 1130px;
  margin: 0 auto;
  padding: 20px 0 10px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
  margin-top: -35px;
}

.top-banner {
  background: #534743;
  color: #fff;
  text-align: center;
  padding: 15px 20px;
  font-size: 1.05em;
  font-weight: 500;
}

/* ==========================================================================
   SITE NAV - ナビゲーション帯
   ========================================================================== */
.site-nav {
  background: #fff;
  position: relative;
}

.site-nav-inner {
  max-width: 1350px;
  margin: 0 auto;
  padding: 5px 25px;
  height: 65x;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* ハンバーガー（スマホ用・PC非表示） */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  position: relative;
  width: 30px;
  height: 30px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #534743;
  border-radius: 2px;
  position: absolute;
  left: 4px;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.nav-hamburger span:nth-child(1) { top: 7px; }
.nav-hamburger span:nth-child(2) { top: 14px; }
.nav-hamburger span:nth-child(3) { top: 21px; }

/* ×に変化 */
.nav-hamburger.is-open span:nth-child(1) {
  top: 14px;
  transform: rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-6px);
}
.nav-hamburger.is-open span:nth-child(3) {
  top: 14px;
  transform: rotate(-45deg);
}

/* ロゴ */
.nav-logo {
  font-size: 1.5em;
  font-weight: 700;
  color: #534743;
  letter-spacing: 1px;
  font-family: "Georgia", serif;
}

/* 中央リンク群（PC表示） */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* リサイズ中はトランジション無効 */
.no-transition .nav-links,
.no-transition .drawer {
  transition: none !important;
}

.nav-links a {
  font-size: 1.05em;
  color: #000;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #a5a5a5;
  opacity: 1;
}

/* 右側ボタン群 */
.site-nav-right {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.nav-buy,
.nav-register {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  height: 56px;
  font-size: 1.05em;
  color: #000;
  white-space: nowrap;
}

.nav-buy:hover,
.nav-register:hover {
  color: #757575;
  opacity: 1;
}

/* スマホ：ハンバーガー表示・リンクとボタンを非表示 */
@media (max-width: 768px) {
  .site-nav-inner {
    padding: 0 15px;
    height: 60px;
  }

  .nav-hamburger {
    display: flex;
  }

  /* 左スライドドロワー */
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 75vw;
    max-width: 300px;
    height: 100dvh;
    background: #fff;
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 72px;
    overflow-y: auto;
  }

  .nav-links.nav-open {
    transform: translateX(0);
  }

  /* 背景オーバーレイ */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1099;
  }

  .nav-overlay.nav-open {
    display: block;
  }

  .nav-links li {
    border-bottom: 1px solid #f0ebe4;
  }

  .nav-links a {
    display: block;
    padding: 16px 24px;
    font-size: 1.05em;
    color: #534743;
  }

  .nav-buy span,
  .nav-register span {
    display: none;
  }

  .nav-buy,
  .nav-register {
    padding: 0 8px;
    height: 48px;
    font-size: 0;
  }

  .nav-buy svg,
  .nav-register svg {
    width: 23px;
    height: 23px;
  }
}

/* スクロール時にスティッキーヘッダーでタイトルが隠れないオフセット
   top-banner(約47px) + site-nav(56px) + 余白(16px) = 約119px → 120px */
#about, #product, #comparison, #liposome,
#ingredients-detail, #faq, #usage, #news, #reviews-section {
  scroll-margin-top: 120px;
}

/* スマホはsite-nav高さが48pxに変わるため再計算
   top-banner(約47px) + site-nav(48px) + 余白(16px) = 約111px → 115px */
@media (max-width: 768px), (max-height: 500px) {
  #about, #product, #comparison, #liposome,
  #ingredients-detail, #faq, #usage, #news, #reviews-section {
    scroll-margin-top: 115px;
  }
}

/* ==========================================================================
   DRAWER - スマホ用左スライドドロワーメニュー
   ========================================================================== */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 80vw;
  max-width: 320px;
  height: 100dvh;
  background: #fff;
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.drawer.is-open {
  transform: translateX(0);
}

/* ドロワーヘッダー行 */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 52px;
  border-bottom: 1px solid #e8dfd6;
  flex-shrink: 0;
}

.drawer-header-label {
  font-size: 1.6em;
  color: #888;
  letter-spacing: 1px;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.3em;
  color: #534743;
  cursor: pointer;
  padding: 6px 8px;
  line-height: 1;
  transition: opacity 0.2s;
}

.drawer-close:hover {
  opacity: 0.6;
}

/* ドロワーリスト */
.drawer-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  flex: 1;
}

.drawer-list li {
  border-bottom: 1px solid #f0ebe4;
}

.drawer-anchor {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  color: #534743;
  font-size: 1.05em;
  transition: background 0.15s;
  text-decoration: none;
}

.drawer-anchor:hover {
  background: #faf7f4;
  opacity: 1;
}

.drawer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  color: #7a5c52;
}

.drawer-icon svg {
  width: 20px;
  height: 20px;
}

.drawer-text {
  font-weight: 500;
}

/* 購入する行（枠線ハイライト） */
.drawer-item-highlight .drawer-anchor {
  margin: 12px 16px;
  padding: 14px 20px;
  border-radius: 6px;
}

.drawer-item-highlight {
  border-bottom: none;
}

/* PCではドロワー非表示（スマホ横向きは除く） */
@media (min-width: 769px) and (min-height: 501px) {
  .drawer {
    display: none;
  }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  overflow: hidden;
  background: #FFF;
}

.hero-content {
  padding-top: 0;
}

.hero-text-area {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-bg {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: url("../img/main.webp") no-repeat center 15%;
  background-size: cover;
  z-index: -1;
}

/* PC版：オーバーレイに高級感グラデーション */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(30, 20, 10, 0.55) 0%,
    rgba(60, 40, 20, 0.35) 40%,
    rgba(180, 150, 110, 0.15) 70%,
    rgba(200, 170, 130, 0.05) 100%
  );
}

.hero-content {
  position: fixed;
  z-index: 3;
  width: 100%;
}

.hero .container {
  padding-top: 0;
  padding-bottom: 0;
}

.hero-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-text-area {
  max-width: 720px;
  margin-right: auto;
  margin-left: 200px;
  margin-bottom: 100px;
}

.hero-mainline {
  font-size: 4.5em;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  padding: 20px;
  margin-bottom: 24px;
}

.hero-mainline-brand {
  display: block;
  font-size: 0.6em;
  font-weight: 300;
}

.hero-mainline-sub {
  display: block;
  font-size: 0.4em;
  color: #fff;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS Mincho", serif;
  font-weight: 300;
  line-height: 1.2;
  margin-top: 10px;
}

.brand-name {
  font-size: 1.35em; /* 調整可能なサイズ */
}


/* ==========================================================================
   SECTION COMMON - 共通セクションスタイル
   ========================================================================== */
.content-section {
  padding: 80px 20px 30px;
  background: #f7f4ef;
}

.section-title {
  font-size: 1.8em;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  color: #534743;
  letter-spacing: 2px;
  margin-bottom: 65px;
}

.section-intro {
  text-align: left;
  color: #666;
  font-size: 1.2em;
  line-height: 1.8;
  max-width: 800px;
  margin: 20px auto;
  padding: 0 15x;
}

/* ==========================================================================
   LIPOSOME SECTION - リポソームセクション（JS挿入）
   ========================================================================== */
.liposome-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8e8f0 100%);
  padding: 80px 0 30px;
  overflow-x: hidden;
}

.liposome-section h2 {
  text-align: center;
  margin-bottom: 24px;
  padding: 0;
  line-height: 1.4;
}

.liposome-section .container {
  box-sizing: border-box;
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 1130px) {
  .liposome-section .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

.highlight-badge {
  display: block;
  width: fit-content;
  background: #4b5483;
  color: #fff;
  padding: 8px 24px;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: 600;
  margin: 0 auto 20px;
  text-align: center;
}

.liposome-content {
  margin-top: 40px;
}

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

.feature-card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.feature-card h3 {
  color: #534743;
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: #666;
  font-size: 1.2em;
  line-height: 1.6;
}

.diagram-wrapper {
  text-align: center;
  margin-top: 30px;
}

.diagram-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   FOOTER - PC・スマホ共通（1つのHTML）
   ========================================================================== */
.footer {
  background: #f9f9f9;
  padding: 60px 40px 30px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e0d7cd;
}

.footer-column h3 {
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 16px;
  color: #534743;
}

.footer-column li {
  margin-bottom: 20px;
}

.footer-column a {
  font-size: 1em;
  color: #534743;
  transition: color 0.3s ease;
  line-height: 1.5;
}

.footer-column a:hover {
  color: #53474375;
  opacity: 1;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #534743;
}

.footer-bottom a {
  color: #534743;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* タブレット */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .detail-point-item {
    gap: 40px;
  }
}

/* スマホ */
@media (max-width: 768px) {

  /* ① ヒーロー：テキスト上部・画像はcoverで表示し箱が見える位置に調整 */
  .hero {
    height: 100svh;
    min-height: 500px;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  .hero-bg {
    background-position: 62.5% center;
    background-size: cover;
    height: 100svh;
  }

  /* オーバーレイは上部だけ薄く暗くしてテキストを読みやすくする */
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.2) 30%,
      rgba(0, 0, 0, 0) 55%
    );
  }

  /* hero-content：absolute で画面最上部に固定 */
  .hero-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 140px 16px 16px;
    z-index: 3;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
  }

  .hero-flex {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 0;
    margin: 0;
  }

  .hero-text-area {
    width: 100%;
    padding: 0;
    margin: 0 auto;
    text-align: center;
  }

  .hero-mainline {
    font-size: 1em;
    margin: 10px 0 6px;
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
  }

  .hero-mainline-brand {
    font-size: 1.9rem;
  }

  .hero-mainline-sub {
    font-size: 1.65rem;
    color: #fff;
  }

  

  /* コンテンツ共通 */
  .content-section {
    padding: 60px 15px 15px;
  }

  .section-title {
    font-size: 1.8em;
  }

  /* 2カラム → 1カラム */
  .detail-point-item {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .detail-point-item:nth-child(even) {
    direction: ltr;
  }

  /* skin-science・liposome */
  .image-grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* SNS */
  .sns-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .sns-icon {
    width: 56px;
    height: 56px;
  }

  /* CTA */
  .cta-section {
    padding: 60px 20px;
  }

  .cta-section .section-title {
    font-size: 1.6em;
  }

  .cta-button {
    padding: 16px 40px;
    font-size: 16px;
  }

/* フッター */
  .footer {
    padding: 40px 20px 20px;
  }

  /* ⑥スマホはフッターを1列表示 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* 成分表スマホ表示 */
  .ingredient-table thead {
    display: none;
  }

  .ingredient-table,
  .ingredient-table tbody {
    display: block;
    width: 100%;
    border: none;
  }

  .ingredient-table tr {
    display: block;
    margin-bottom: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
  }

  .ingredient-table td {
    display: grid;
    grid-template-columns: 70px 1fr; /* ←ここ変更 */
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    align-items: center;
  }

  .ingredient-table td:last-child {
    border-bottom: none;
  }

  .ingredient-table td::before {
    font-weight: bold;
    color: #6d4c41;
    font-size: 13px;
  }

  .ingredient-table td:nth-child(1)::before { content: "No"; }
  .ingredient-table td:nth-child(2)::before { content: "成分名"; }
  .ingredient-table td:nth-child(3)::before { content: "分類"; }

}

/* 小型スマホ */
@media (max-width: 480px) {
  .sns-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ⑥小型スマホも1列 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   COMPARISON SECTION - 一般石鹸との比較
   ========================================================================== */
.comparison-section {
  padding: 50px 20px;
  background: #fff;
}

.comparison-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.comparison-item {
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  background: #f9f9f9;
}

.comparison-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.comparison-label {
  font-weight: 600;
  color: #333;
  font-size: 1.2em;
}

.comparison-table-wrapper {
  margin: 10px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.comparison-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.comparison-table thead {
  background: #9c9c9c;
  color: #fff;
  border-bottom: 1px solid #eee;
}

.comparison-table th {
  padding: 16px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 1em;
  white-space: nowrap;
}

.comparison-table th.highlight-col {
  background: #64738b;
}

.comparison-table td {
  padding: 14px 12px;
  text-align: center;
  border-bottom: 1px solid #eee;
  font-size: 1em;
  text-align: left;
  white-space: nowrap;
}

.comparison-table td.label-cell {
  background: #f5f5f5;
  font-weight: 600;
  color: #555;
  text-align: left;
  padding-left: 20px;
}

.comparison-table td.highlight-cell {
  background: #99a9c1;
  color: #fff;
  font-weight: 600;
  text-align: left;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.explanation-text {
  padding: 20px 24px;
  border-radius: 8px;
  color: #555;
  line-height: 1.8;
  font-size: 1.3em;
  margin-top: 30px;
}

/* ==========================================================================
   INGREDIENTS SECTION - こだわり成分配合
   ========================================================================== */
.ingredients-detail-section {
  padding: 20px 20px;
  background: #fff;
}

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

.ingredient-category {
  border-radius: 12px;
  padding: 10px 0px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ingredient-category h3 {
  color: #6d4c41;
  text-align: center;
  font-size: 1.6em;
  font-weight: 700;
  padding-bottom: 12px;
}

.ingredient-list {
  display: grid;
  gap: 14px;
}

.ingredient-item {
  background: #e3dfdb;
  padding: 25px 20px 25px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.ingredient-item h4 {
  color: #654337;
  font-size: 1.3em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

.ingredient-item p {
  background: #fff;
    color: #654337;
    font-size: 1.2em;
    line-height: 1.5;
    border-radius: 8px;
    padding: 20px 20px;
    margin: 0;
    height: 130px;
}

/* ==========================================================================
   LANDSCAPE（スマホ横向き）専用 - PCレイアウトに近い表示
   ========================================================================== */
@media (max-height: 500px) and (orientation: landscape) {

  /* ナビ */
  .site-nav-inner {
    padding: 0 16px;
    height: 48px;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none; /* PCリンクは非表示、ドロワーを使う */
  }

  .nav-buy,
  .nav-register {
    padding: 0 8px;
    height: 48px;
    font-size: 0;
  }

  .nav-buy svg,
  .nav-register svg {
    width: 23px;
    height: 23px;
  }

  /* ヒーロー：PC版に近いレイアウト（左寄せテキスト） */
  .hero {
    height: 100svh;
    min-height: 300px;
    align-items: center;
    justify-content: center;
  }

  .hero-bg {
    background-position: center 15%;
    background-size: cover;
    height: 100svh;
  }

  .hero-overlay {
    background: linear-gradient(
      135deg,
      rgba(30, 20, 10, 0.55) 0%,
      rgba(60, 40, 20, 0.35) 40%,
      rgba(180, 150, 110, 0.15) 70%,
      rgba(200, 170, 130, 0.05) 100%
    );
  }

  .hero-content {
    position: fixed;
    top: calc(95px + env(safe-area-inset-top, 0px));
    left: 0;
    width: 100%;
    padding: 0;
    z-index: 3;
  }

  .hero-flex {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 24px 16px 20px;
    margin: 0;
    min-height: calc(100svh - 95px);
  }

  .hero-text-area {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem 12px 0;
    text-align: center;
  }

  .hero-mainline {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    margin: 1rem 0 0;
    text-align: center;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  }

  .hero-mainline-brand {
    font-size: clamp(2.2rem, 6vw, 2.6rem);
    line-height: 1.15;
  }

  .hero-mainline-sub {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    display: block;
    margin-top: 0.35em;
    color: #fff;
  }
}


@media (max-width: 768px) {
  
  
}

@media (min-width: 769px) {
  .hero {
    height: 100svh;
    min-height: 300px;
    align-items: center;
    justify-content: center;
  }

  .hero-flex {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    margin: 0;
    height: 100svh;
  }

  .hero-text-area {
    width: auto;
    max-width: 100%;
    margin: 0 0 0 40px;
    padding: 0;
    text-align: left;
  }

  .hero-mainline {
    font-size: 2.4rem;
    margin: 0;
    text-align: left;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  }

  .hero-mainline-brand {
    font-size: 3.2rem;
  }

  .hero-mainline-sub {
    font-size: 2.2rem;
    display: block;
    margin-top: 0.4em;
    margin-left: 0.3em;
    color: #fff;
  }
}

@media (min-width: 769px) and (max-height: 500px) and (orientation: landscape) {
  .hero {
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 100svh;
  }

  .hero-content {
    position: fixed;
    top: calc(95px + env(safe-area-inset-top, 0px));
    left: 0;
    width: 100%;
    padding: 0;
    z-index: 3;
  }

  .hero-flex {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 24px 16px 20px;
    margin: 0;
    min-height: calc(100svh - 95px);
  }

  .hero-text-area {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem 12px 0;
    text-align: center;
  }

  .hero-mainline {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    margin: 1rem 0 0;
    text-align: center;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  }

  .hero-mainline-brand {
    font-size: clamp(2.2rem, 6vw, 2.6rem);
    line-height: 1.15;
  }

  .hero-mainline-sub {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    display: block;
    margin-top: 0.35em;
    margin-left: 0;
    color: #fff;
  }
}

/* ============================================================
   ③ 成分表 スライドヒント
   ============================================================ */
.ingredients-table-wrap {
  position: relative;
}

.scroll-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95em;
  color: #fff;
  margin-bottom: 15px;
  padding: 6px 12px;
  background: #6b6e73;
  border-radius: 12px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  animation: hint-bounce 1.5s ease-in-out infinite;
}

.scroll-hint::before {
  content: "←";
  font-size: 1.1em;
}
.scroll-hint::after {
  content: "→";
  font-size: 1.1em;
}

@keyframes hint-bounce {
  0%, 100% { opacity: 1; transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@media (max-width: 768px) {
  .scroll-hint {
    display: flex;
  }
}

@media (max-width: 768px) {
  
}

/* =========================
   レイヤー修正だけ
========================= */


.hero {
  position: relative;
  overflow: hidden;
  height: 100vh;
  z-index: -1;
}

.content-wrapper {
  position: relative;
  z-index: 2;
  background: #fff;
}


/* ==========================================================================
   INGREDIENTS SECTION - こだわり成分配合
   ========================================================================== */
.ingredients-detail-section {
  padding: 80px 20px;
  background: #fff;
}

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

.ingredient-category {
  border-radius: 12px;
  padding: 10px 0px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ingredient-category h3 {
  color: #6d4c41;
  text-align: center;
  font-size: 1.6em;
  font-weight: 700;
  padding-bottom: 12px;
}

.ingredient-list {
  display: grid;
  gap: 14px;
}

.ingredient-item {
  background: #e3dfdb;
  padding: 25px 20px 25px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.ingredient-item h4 {
  color: #654337;
  font-size: 1.3em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

.ingredient-item p {
  background: #fff;
    color: #654337;
    font-size: 1.2em;
    line-height: 1.5;
    border-radius: 8px;
    padding: 20px 20px;
    margin: 0;
    height: 130px;
}


/* ── 比較テーブル v2（スクショ4）── */
.comparison-table-v2 {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
.comparison-table-v2 th { padding: 18px 24px; font-weight: 400; font-size: 1.2em; }
.comparison-table-v2 th:first-child { background: #ccc8c2; width: 220px; min-width: 180px; color: #555; }
.comparison-table-v2 .col-general   { background: #7b7b7b; color: #fff; text-align: center; }
.comparison-table-v2 .col-moissmois { background: #8BC34A; color: #fff; text-align: center; font-size: 1.5em; }
.comparison-table-v2 tbody tr { border-bottom: 1px dashed #e8e2da; }
.comparison-table-v2 tbody tr:last-child { border-bottom: none; }
.comparison-table-v2 td { padding: 16px 20px; background: #fff; vertical-align: middle; }
.comparison-table-v2 .label-cell { background: #f4f0eb; min-width: 180px; }
.label-cell-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* アイコン領域（差し替え: img/icon-row-01.png〜05.png、推奨28×28px） */
.label-cell-inner .row-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: .7;
  /* アイコン未設定時に領域を確保 */
  min-width: 28px;
  display: block;
}
.label-cell-inner span { font-size: 1.1em; color: #555; line-height: 1.4; }
.comparison-table-v2 .col-general-cell {
  text-align: center;
  color: #555;
  font-size: 1.1em;
  background: #faf8f5;
  text-align: left;
}
.comparison-table-v2 .col-moissmois-cell {
  background: #fcfff8;
}
.moissmois-cell-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.moissmois-cell-inner > span { font-size: 1.1em; color: #444; line-height: 1.5; }

/* ── 成分グリッド v2（スクショ5）── */
.ingredients-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ingredient-card-v2 {
  background: #fff;
  border: 1px solid #b8a89e;
  border-radius: 12px;
  padding: 28px 20px 24px;
  text-align: center;
  transition: box-shadow .2s, transform .15s ease;
}
.ingredient-card-v2:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.ingredient-icon-circle {
  width: 135px;
  height: 135px;
  border-radius: 50%;
  background: #f1ede6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  transition: transform .2s ease;
}
.ingredient-card-v2:hover .ingredient-icon-circle {
  transform: scale(1.05);
}
.ingredient-icon-circle::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgb(83 71 67 / 50%);
  opacity: .75;
  transform: scale(0.95);
  animation: ingredient-pulse 2.2s ease-out infinite;
}
.ingredient-card-v2:hover .ingredient-icon-circle::after {
  opacity: 1;
}
.ingredient-icon-circle img,
.ingredient-icon-circle svg {
  margin-top: 10px;
  width: 135px;
  height: 135px;
  object-fit: contain;
}
.ingredient-card-v2 h4 {
  font-size: 1.35em;
  font-weight: 500;
  color: #3d3d3d;
  margin-bottom: 20px;
  letter-spacing: .02em;
}
.ingredient-card-v2:hover h4 {
  color: #43362b;
}
.ingredient-card-v2 p {
  font-size: 1.2em;
  color: #888;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .feature-cards { grid-template-columns: 1fr; gap: 16px; background: transparent; box-shadow: none; }
  .feature-card { border-right: none; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
  .feature-card-icon { margin: 20px 20px 0; }
  .feature-card-body { padding: 12px 20px 20px; }
}


/* ==========================================================================
   追加スタイル — スクショ対応（元style.css末尾に追記）
   ========================================================================== */

/* ── 特徴3カード（スクショ1）── */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 60px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.feature-card {
  background: #fff;
  border-right: 1px solid #f0ebe4;
  display: flex;
  flex-direction: column;
}
.feature-card:last-child { border-right: none; }
.feature-card-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  /* 写真はHTMLの先頭に配置（orderは不使用） */
}
.feature-card-icon {
  width: 52px;
  height: 52px;
  border: 1.5px solid #d4bfb0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px 24px 0;
  flex-shrink: 0;
}
.feature-card-icon img,
.feature-card-icon svg {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.feature-card-body {
  padding: 16px 24px 24px;
  flex: 1;
}
.feature-card-body h3 {
  font-size: 1.05em;
  font-weight: 600;
  color: #534743;
  margin-bottom: 10px;
}
.feature-card-body p {
  font-size: .88em;
  color: #666;
  line-height: 1.8;
}

/* ── バッジ4項目（スクショ2）── */

/* 特徴3アイコン */
.product-features {
  display: flex;
  gap: 24px;
  padding: 25px 0;
}
.product-feature-item {
  flex: 1;
  text-align: center;
}
.product-feature-icon {
  width: 100px;
  height: 100px;
  border: 1.5px solid #534743;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  background: #faf7f2;
}
.product-feature-icon img,
.product-feature-icon svg {
  width: 120px;
  height: 120px;
  object-fit: contain;
}
.product-feature-item h4 {
  font-size: 1.2em;
  font-weight: 500;
  color: #534743;
  margin-bottom: 4px;
  letter-spacing: .02em;
  text-decoration: underline;
  text-decoration-color: #534743;
  text-underline-offset: 3px;
  
}
.product-feature-item p {
  font-size: .75em;
  color: #888;
  line-height: 1.6;
}


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

body{
  font-family:serif;
  background:#f8f6f2;
  color:#3f3027;
}

img{
  width:100%;
  display:block;
}

.about-product{
  padding:100px 0;
}

.about-product__inner{
  width:min(1400px,92%);
  margin:0 auto;
}

/* タイトル */

.about-product__heading{
  text-align:center;
  margin-bottom: 0px;
  padding: 80px 0px 100px;
}


.about-product__sub{
  font-size:2.3em;
  letter-spacing:.15em;
}

.about-product__title{
  font-size:3.2em;
  font-weight:400;
  line-height:1.0;
}

.about-product__title span{
  font-size:0.65em;
}

.about-product__line{
  width:180px;
  height:1px;
  background:#534743;
  margin:25px auto 0;
}

/* 本文＋画像 */

.about-product__body{
  display:grid;
  align-items:start;
}

.about-product__text p{
  font-size:1.35em;
  line-height:1.8;
  margin-top: 50px;
}

/* 右画像 */

.about-product__visual{
  position:relative;
  width:100%;
  max-width:640px;
  margin-left:auto;
}

.about-product__image{
  border-radius:20px;
}

.about-product__price{
  position:absolute;
  right:20px;
  bottom:40px;
  width:170px;
  height:170px;
  border:1px solid #c8ae76;
  border-radius:50%;
  background: rgb(255 255 255 / 65%);
  display:flex;
  font-size: 0.95em;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
}

.about-product__price p{
  line-height:1.8;
}

/* 3カード */

.feature-list{
  margin-top:30px;

  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:30px;
}

.feature-card{
  background:#fff;
  border-radius:20px;
  padding:25px;
  box-shadow:0 10px 20px rgba(0,0,0,.05);
}

.feature-card__content{
  display:flex;
  flex-direction:column;
  height:100%;
}

.feature-card__content h3{
  font-size: 1.5em;
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 20px;
  color: #816633;
}

.feature-card__content p{
  font-size:16px;
  line-height:1.9;
  margin-bottom:20px;
}

.feature-card__image{
  margin-top:auto;
}

.feature-card__image img{
  width:100%;
  border-radius:10px;
  object-fit:cover;
}

/* 下段 */

/* tablet */

@media(max-width:768px){

  .about-product__body{
    display:flex;
    flex-direction:column;
  }

  .about-product__visual{
    order:1;
    margin-bottom:30px;
  }

  .about-product__text{
    order:2;
  }

}

/* smartphone */

@media(max-width:768px){

  .about-product{
    padding:80px 0;
  }

  .about-product__inner{
    width:92%;
  }

  .about-product__title{
    font-size:3em;
  }

  .about-product__title span{
    font-size:24px;
  }

  .about-product__text p{
    font-size:1.2em;
  }

  .about-product__price{
    width:140px;
    height:140px;
    right:10px;
    bottom:20px;
    font-size:12px;
  }

  .feature-list{
    grid-template-columns:1fr;
    gap:20px;
  }

  

}

/* ── フィーチャーアイコン：タップ可能表示 ── */
.feature-modal-trigger {
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease;
}
.feature-modal-trigger:active {
  transform: scale(.93);
}
/* アイコン枠にパルスアニメーション */
.feature-modal-trigger .product-feature-icon {
  position: relative;
}
.feature-modal-trigger .product-feature-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #c4a89e;
  opacity: 0;
  animation: feature-pulse 2.4s ease-out infinite;
}
.feature-modal-trigger:nth-child(2) .product-feature-icon::after {
  animation-delay: .8s;
}
.feature-modal-trigger:nth-child(3) .product-feature-icon::after {
  animation-delay: 1.6s;
}
@keyframes feature-pulse {
  0%   { transform: scale(.95); opacity: .7; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
@keyframes ingredient-pulse {
  0%   { transform: scale(.95); opacity: .75; }
  50%  { transform: scale(1.12); opacity: 0; }
  100% { transform: scale(1.12); opacity: 0; }
}
/* h4テキストに下線ヒント */
.feature-modal-trigger h4 {
  text-decoration: underline;
  text-decoration-color: #232d18;
  text-underline-offset: 3px;
}
/* タップヒント「詳しく見る」 */
.feature-modal-trigger::after {
  content: 'クリックして見る';
  display: block;
  font-size: .85em;
  color: #232d18;
  margin-top: 3px;
  letter-spacing: .02em;
}
@media (max-width: 480px) {
  .feature-modal-trigger::after {
    font-size: .75em;
  }
}

/* ── フィーチャーモーダル フェードアニメーション ── */
#feature-modal {
  transition: opacity .28s ease !important;
}
#feature-modal > div {
  transition: transform .28s cubic-bezier(.34,1.38,.64,1) !important;
}

/* ═══════════════════════════════════════════════════════
   スマホ セクションタイトル 上下余白の統一調整
   対象: 全セクションの見出し（about/comparison/liposome/
         ingredients/faq/usage/news/reviews）
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* セクション全体の上下余白を統一 */
  .about-product        { padding: 60px 0 48px; }
  .comparison-section   { padding: 30px 16px 48px; }
  .liposome-section     { padding: 60px 16px 48px; }
  .ingredients-detail-section { padding: 56px 16px 48px; }
  .content-section      { padding: 56px 16px 48px; }

  /* about-product__heading（サブ + タイトル + ライン）の余白 */
  .about-product__heading {
    padding: 0 0 32px;
    margin-bottom: 30px;
  }
  .about-product__sub {
    font-size: 1.65em;
    letter-spacing: .1em;
    display: block;
    margin-bottom: 10px;
  }
  .about-product__title {
    font-size: 2em;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 0;
  }
  .about-product__title span {
    font-size: 0.85em;
  }
  .about-product__line {
    width: 120px;
    margin: 20px auto 0;
  }

  /* section-title（比較・FAQ・使用方法・ニュース等） */
  .section-title {
    font-size: 1.6em;
    margin-bottom: 28px;
    line-height: 1.3;
  }

  /* liposome セクションタイトル */
  .liposome-section h2 {
    font-size: 2em;
    margin-bottom: 24px;
  }

  /* レビューセクション */
  #reviews-section {
    padding: 56px 16px 48px;
  }

  /* ニュースセクション */
  #news {
    padding: 0px 16px 0px;
  }

  /* よくある質問 */
  #faq {
    padding: 56px 16px 48px;
  }

  /* 使用方法 */
  #usage {
    padding: 56px 16px 48px;
  }

  /* 成分グリッドのスマホ対応 */
  .ingredients-grid-v2 {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    width: 100%;
  }
  .ingredient-card-v2 {
    width: 100%;
    max-width: 100%;
    padding: 22px 18px 20px;
    margin: 0 auto;
  }
  .ingredient-icon-circle {
    width: 118px;
    height: 118px;
    margin-bottom: 18px;
  }
  .ingredient-icon-circle img,
  .ingredient-icon-circle svg {
    width: 100px;
    height: 100px;
  }
  
}

@media (max-width: 480px) {
  .about-product        { padding: 48px 0 40px; }
  .comparison-section   { padding: 60x 14px 40px; }
  .liposome-section     { padding: 60px 14px 10px; }
  .ingredients-detail-section { padding: 100px 14px 100px; }
  .content-section      { padding: 48px 14px 40px; }
  #faq, #usage { padding: 0px 14px 10px; }
  #news { padding: 10px 14px 0px; }
  #reviews-section { padding: 100px 14px 10px; }

  .about-product__heading { padding: 0px 0 0px; }
  .about-product__sub     { font-size: 1.8em; margin-bottom: 8px; }
  .about-product__title   { font-size: 1.65em; }
  .about-product__title span { font-size: 1.05em; }
  .about-product__line    { margin: 16px auto 0; }
  .section-title          { font-size: 1.45em; margin-bottom: 24px; }
  .liposome-section h2    { font-size: 1.75em; }


  /* 成分グリッドの超小型画面調整 */
  .ingredient-card-v2 {
    padding: 20px 16px 18px;
  }
  .ingredient-icon-circle {
    width: 100px;
    height: 100px;
  }
  .ingredient-icon-circle img,
  .ingredient-icon-circle svg {
    width: 100px;
    height: 100px;
  }
}

/* 新着情報セクションのタイトル上部に余白を追加 */
#news .about-product__heading {
  padding-top: 30px;
}

/* レビューセクションのタイトル上部に余白を追加 */
#reviews-section .about-product__heading {
  padding-top: 50px;
  padding-bottom: 30px;
}
/* slider */
.feature-slider-section {
  padding: 100px 25px 50px;
  background: #fff;
}

.feature-slider-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.feature-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}

.feature-slider::-webkit-scrollbar {
  display: none;
}

/* card */
.slide-card {
  flex: 0 0 85%;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid #9E9E9E;
}

/* image */
.slide-image {
  position: relative;
}

.slide-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* text */
.slide-content {
  padding: 24px;
}

.slide-content h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #4d4037;
}

.slide-content p {
  font-size: 1.2em;
  line-height: 1.8;
  color: #666;
  word-break: break-word;
}

/* dots */
.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.slider-dots button {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: .25s ease;
}

.slider-dots button.active {
  background: #b1b1b1;
  transform: scale(1.15);
}

/* zoom icon */
.zoom-icon {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  z-index: 10;
}

.zoom-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
}

/* modal */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 9999;
  display: none;
}

.image-modal.active {
  display: block;
}

/* modal wrapper */
.modal-wrapper {
  width: 100%;
  height: calc(100vh - 100px);
  margin-top: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* modal content */
.modal-content {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}

/* modal image */
.modal-content img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  touch-action: pinch-zoom;
}

/* close button */
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  z-index: 60;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
}

/* arrows */
.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  z-index: 50;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
}

/* PC：画像近く */
.modal-prev {
  left: calc(50% - 470px);
}

.modal-next {
  right: calc(50% - 470px);
}

/* tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .slide-card {
    flex: 0 0 48%;
  }

  .modal-prev {
    left: calc(50% - 360px);
  }

  .modal-next {
    right: calc(50% - 360px);
  }
}

/* pc */
@media (min-width: 1024px) {
  .slide-card {
    flex: 0 0 31%;
  }
}

/* smartphone */
@media (max-width: 767px) {
  .slide-card {
    flex: 0 0 85%;
  }

  .modal-prev,
  .modal-next {
    display: none;
  }

  .modal-content {
    max-width: 92vw;
    max-height: 85vh;
  }

  .modal-content img {
    max-width: 92vw;
    max-height: 82vh;
  }

  .modal-close {
    top: 8px;
    right: 8px;
  }
}

.nav-logo img {
  height: 38px; /* ヘッダーに合わせて調整 */
  width: auto;
  display: block;
}

.nav-logo {
  display: flex;
  align-items: center;
}


/* ── ヒーローちらつき防止（旧 <style id="_hh"> の外部化）──
   公開時の generate_html.php が body に hero-loading を付与し、文言セット後に
   これを外す（classList.remove）と表示される。サブページには hero-loading が無いため影響しない。 */
body.hero-loading .hero-mainline-brand,
body.hero-loading .hero-mainline-sub,
body.hero-loading .top-banner{visibility:hidden!important}
