/* =============================================
   お薬相談 - 共通スタイルシート
   ============================================= */

:root {
  --primary:        #3CAD96;
  --primary-dark:   #2A9278;
  --primary-light:  #EBF8F5;
  --primary-xlight: #F2FAF8;

  --accent:       #FF7043;
  --accent-light: #FFF0EB;

  --teal:        #3CAD96; --teal-light:   #EBF8F5;
  --blue:        #4A90D9; --blue-light:   #EBF3FC;
  --green:       #52B45A; --green-light:  #EDF7EE;
  --orange:      #FF9534; --orange-light: #FFF4E8;
  --purple:      #7B68EE; --purple-light: #F0EEFF;
  --pink:        #F06292; --pink-light:   #FDE8F1;
  --red:         #E53E3E; --red-light:    #FFF0F0;
  --yellow:      #D69E2E; --yellow-light: #FEFCE8;

  --text-primary:   #2D3748;
  --text-secondary: #718096;
  --text-light:     #A0ADB4;

  --bg-main:  #F7F8FA;
  --bg-white: #FFFFFF;
  --border:   #E2E8F0;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.05);

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --transition: .2s ease;

  --container-max: 1100px;
  --container-pad: 16px;
  --header-height: 64px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-primary);
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
}

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.02em;
}

/* Nav */
.header__nav { flex: 1; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav__link:hover,
.nav__link.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* Actions */
.header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-mynote {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600;
  border: 1.5px solid transparent;
  transition: all var(--transition);
}
.btn-mynote:hover { background: var(--primary); color: #fff; }
.btn-mynote span { white-space: nowrap; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  border: none; background: none; cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.hamburger:hover { background: var(--bg-main); }
.hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: all .3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  z-index: 199;
}
.mobile-menu.open { display: block; }
.mobile-menu__list a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px var(--container-pad);
  font-size: 15px; font-weight: 500;
  color: var(--text-primary);
  border-left: 3px solid transparent;
  transition: all var(--transition);
}
.mobile-menu__list a:hover {
  background: var(--primary-light); color: var(--primary);
  border-left-color: var(--primary);
}
.mobile-menu__list a i { color: var(--primary); width: 20px; text-align: center; }

/* =============================================
   HERO
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #239E88 100%);
  padding: 52px var(--container-pad);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -40%; right: -15%;
  width: 420px; height: 420px;
  background: rgba(255,255,255,.06);
  border-radius: 50%; pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -55%; left: -8%;
  width: 320px; height: 320px;
  background: rgba(255,255,255,.04);
  border-radius: 50%; pointer-events: none;
}
.hero__title {
  font-size: 30px; font-weight: 700; line-height: 1.4;
  margin-bottom: 10px; position: relative; z-index: 1;
}
.hero__subtitle {
  font-size: 14px; opacity: .88;
  margin-bottom: 28px; position: relative; z-index: 1;
}

/* Search Bar */
.search-bar {
  position: relative; max-width: 580px; margin: 0 auto;
  z-index: 1; display: flex;
  background: #fff; border-radius: var(--radius-full);
  overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.18);
}
.search-bar__icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--text-light); font-size: 16px; z-index: 2; pointer-events: none;
}
.search-bar__input {
  flex: 1; border: none; outline: none;
  padding: 15px 16px 15px 48px;
  font-size: 15px; font-family: inherit; color: var(--text-primary);
  background: transparent;
}
.search-bar__input::placeholder { color: var(--text-light); }
.search-bar__btn {
  padding: 0 28px; background: var(--primary); color: #fff;
  border: none; font-size: 14px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: background var(--transition); flex-shrink: 0;
  letter-spacing: .04em;
}
.search-bar__btn:hover { background: var(--primary-dark); }

/* =============================================
   SECTION COMMON
   ============================================= */
.section       { padding: 44px 0; }
.section--alt  { background: var(--primary-xlight); }
.section--gray { background: var(--bg-main); }

.section__header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.section__icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.section__icon--medicine  { background: var(--teal-light);   color: var(--teal);   }
.section__icon--supplement{ background: var(--green-light);  color: var(--green);  }
.section__icon--column    { background: var(--orange-light); color: var(--orange); }
.section__icon--note      { background: var(--purple-light); color: var(--purple); }

.section__title { font-size: 20px; font-weight: 700; color: var(--text-primary); flex: 1; }
.section__more {
  font-size: 13px; color: var(--primary); font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  transition: gap var(--transition);
}
.section__more:hover { gap: 8px; }

/* =============================================
   CATEGORY GRID (medicine)
   ============================================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.category-card {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
  transition: all var(--transition); cursor: pointer;
}
.category-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.category-card__icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.category-card__label {
  flex: 1; font-size: 13px; font-weight: 600;
  color: var(--text-primary); line-height: 1.4;
}
.category-card__arrow { color: var(--text-light); font-size: 11px; flex-shrink: 0; }

/* Color helpers */
.bg-teal   { background: var(--teal-light);   color: var(--teal);   }
.bg-blue   { background: var(--blue-light);   color: var(--blue);   }
.bg-green  { background: var(--green-light);  color: var(--green);  }
.bg-orange { background: var(--orange-light); color: var(--orange); }
.bg-purple { background: var(--purple-light); color: var(--purple); }
.bg-pink   { background: var(--pink-light);   color: var(--pink);   }
.bg-red    { background: var(--red-light);    color: var(--red);    }
.bg-yellow { background: var(--yellow-light); color: var(--yellow); }

/* =============================================
   SHORTCUT TAGS
   ============================================= */
.shortcut {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.shortcut__title {
  font-size: 15px; font-weight: 700; color: var(--text-primary);
  display: flex; align-items: center; gap: 7px; margin-bottom: 6px;
}
.shortcut__title i { color: var(--accent); }
.shortcut__desc  { font-size: 12px; color: var(--text-secondary); margin-bottom: 14px; }
.shortcut__tags  { display: flex; flex-wrap: wrap; gap: 8px; }
.shortcut-tag {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--primary-light); color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600;
  border: 1.5px solid transparent;
  transition: all var(--transition);
}
.shortcut-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* =============================================
   SUPPLEMENT CARDS
   ============================================= */
.supp-grid { display: flex; flex-direction: column; gap: 12px; }
.supp-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
  transition: all var(--transition);
}
.supp-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.supp-card__icon {
  width: 52px; height: 52px;
  background: var(--primary-light); color: var(--primary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.supp-card__content { flex: 1; }
.supp-card__title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.supp-card__desc  { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.supp-card__arrow { color: var(--text-light); font-size: 14px; flex-shrink: 0; }

/* =============================================
   ARTICLE GRID
   ============================================= */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.article-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.article-card__img { aspect-ratio: 16/9; overflow: hidden; }
.article-card__img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; font-size: 38px;
}
.article-card__body { padding: 16px; flex: 1; }
.article-card__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.article-card__date { font-size: 11px; color: var(--text-light); margin-left: auto; }
.article-card__title {
  font-size: 13px; font-weight: 600; color: var(--text-primary);
  line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Tags */
.tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.tag--supplement { background: var(--green-light);  color: var(--green);  }
.tag--medicine   { background: var(--teal-light);   color: var(--teal);   }
.tag--kampo      { background: var(--green-light);  color: #2E7D32;       }
.tag--column     { background: var(--orange-light); color: var(--orange); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--text-primary);
  color: rgba(255,255,255,.7);
  padding: 44px 0 24px;
  margin-top: 16px;
}
.footer__top {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; margin-bottom: 28px;
}
.footer__logo { display: flex; align-items: center; gap: 8px; }
.footer__logo .logo-text { font-size: 18px; font-weight: 700; color: #fff; }
.footer__tagline { font-size: 13px; text-align: center; }
.footer__sns { display: flex; gap: 10px; }
.sns-btn {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff; transition: opacity var(--transition);
}
.sns-btn:hover { opacity: .78; }
.sns-btn--instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.sns-btn--facebook  { background: #1877F2; }
.sns-btn--x         { background: #000; }
.sns-btn--line      { background: #06C755; }

.footer__nav {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px 24px; margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__nav a { font-size: 13px; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer__nav a:hover { color: #fff; }
.footer__copy { text-align: center; font-size: 12px; color: rgba(255,255,255,.35); }

/* =============================================
   SEARCH PAGE
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #239E88 100%);
  padding: 32px var(--container-pad) 28px;
  color: #fff;
}
.page-hero__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,.8);
  margin-bottom: 14px; transition: color var(--transition);
}
.page-hero__back:hover { color: #fff; }
.page-hero__title { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.page-hero .search-bar { max-width: 100%; }

/* Filters */
.filters-bar {
  background: var(--bg-white); border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky; top: var(--header-height); z-index: 100;
}
.filters-bar__inner {
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.filters-bar__inner::-webkit-scrollbar { display: none; }
.filter-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; white-space: nowrap;
  border-radius: var(--radius-full);
  font-size: 13px; font-weight: 500;
  background: var(--bg-main); color: var(--text-secondary);
  border: 1.5px solid var(--border);
  cursor: pointer; transition: all var(--transition);
}
.filter-chip:hover  { border-color: var(--primary); color: var(--primary); }
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Results */
.results { padding: 24px 0 48px; }
.results__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.results__count { font-size: 13px; color: var(--text-secondary); }
.results__count strong { color: var(--primary); font-size: 16px; }
.results__sort {
  font-size: 13px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 6px;
}
.results__sort select {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px 10px; font-size: 13px; font-family: inherit;
  color: var(--text-primary); background: var(--bg-white); outline: none;
}

/* Medicine Result Card */
.medicine-list  { display: flex; flex-direction: column; gap: 12px; }
.medicine-card {
  background: var(--bg-white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
  display: flex; gap: 16px; padding: 18px;
  transition: all var(--transition);
}
.medicine-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.medicine-card__img {
  width: 72px; height: 72px; border-radius: var(--radius-sm);
  flex-shrink: 0; overflow: hidden;
  background: var(--bg-main);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
}
.medicine-card__img--svg {
  padding: 6px;
  background: var(--bg-main) !important;
}
.medicine-card__img--svg img {
  width: 100%; height: 100%; object-fit: contain;
}
.medicine-card__body   { flex: 1; min-width: 0; }
.medicine-card__tags   { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.medicine-card__name   { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.medicine-card__maker  { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.medicine-card__desc   { font-size: 13px; color: var(--text-secondary); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.medicine-card__meta   { display: flex; gap: 16px; margin-top: 8px; }
.medicine-card__meta-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-light);
}
.medicine-card__meta-item i { font-size: 11px; }
.medicine-card__arrow {
  color: var(--text-light); font-size: 13px; flex-shrink: 0; align-self: center;
}

/* =============================================
   MEDICINE DETAIL PAGE
   ============================================= */
.detail-header {
  background: var(--bg-white);
  padding: 28px var(--container-pad);
  border-bottom: 1px solid var(--border);
}
.detail-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-light); margin-bottom: 16px;
}
.detail-breadcrumb a { color: var(--primary); }
.detail-breadcrumb i { font-size: 10px; }

.detail-hero {
  display: flex; gap: 24px; align-items: flex-start;
}
.detail-hero__img {
  width: 100px; height: 100px; border-radius: var(--radius-md);
  background: var(--primary-xlight);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; flex-shrink: 0;
}
.detail-hero__body { flex: 1; }
.detail-hero__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.detail-hero__name { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.detail-hero__maker{ font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.detail-hero__desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

.detail-actions {
  display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap;
}
.btn-primary, .btn-outline {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all var(--transition); border: 2px solid var(--primary);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }

/* Detail Sections */
.detail-content { padding: 32px 0 48px; }
.detail-section  { margin-bottom: 32px; }
.detail-section__title {
  font-size: 16px; font-weight: 700; color: var(--text-primary);
  padding-bottom: 10px; border-bottom: 2px solid var(--primary);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.detail-section__title i { color: var(--primary); }

/* Ingredient Table */
.ingredient-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ingredient-table th,
.ingredient-table td {
  padding: 10px 14px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.ingredient-table th {
  background: var(--primary-light); color: var(--primary);
  font-weight: 700; white-space: nowrap;
}
.ingredient-table tr:hover td { background: var(--bg-main); }

/* Caution Box */
.caution-box {
  background: var(--red-light); border: 1.5px solid #FECACA;
  border-radius: var(--radius-md); padding: 16px 20px;
  margin-bottom: 12px;
}
.caution-box__title {
  font-size: 13px; font-weight: 700; color: var(--red);
  display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
}
.caution-box ul { padding-left: 16px; font-size: 13px; color: var(--text-secondary); }
.caution-box ul li { margin-bottom: 4px; list-style: disc; }

.info-box {
  background: var(--primary-light); border-radius: var(--radius-md);
  padding: 16px 20px;
}
.info-box__title {
  font-size: 13px; font-weight: 700; color: var(--primary);
  display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
}
.info-box p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* Usage Steps */
.usage-steps { display: flex; flex-direction: column; gap: 10px; }
.usage-step {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-white); border-radius: var(--radius-md);
  padding: 16px; box-shadow: var(--shadow-sm);
}
.usage-step__num {
  width: 28px; height: 28px;
  background: var(--primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0; margin-top: 2px;
}
.usage-step__text { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.usage-step__text strong { color: var(--text-primary); display: block; margin-bottom: 2px; font-size: 14px; }

/* =============================================
   COLUMN PAGE
   ============================================= */
.column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.column-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: all var(--transition); display: flex; flex-direction: column;
}
.column-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.column-card__img { aspect-ratio: 16/9; overflow: hidden; }
.column-card__img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; font-size: 40px;
}
.column-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.column-card__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.column-card__date { font-size: 11px; color: var(--text-light); margin-left: auto; }
.column-card__title {
  font-size: 14px; font-weight: 700; color: var(--text-primary);
  line-height: 1.6; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.column-card__excerpt {
  font-size: 12px; color: var(--text-secondary); line-height: 1.65; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Category Tabs */
.cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.cat-tab {
  padding: 8px 16px;
  border-radius: var(--radius-full); border: 1.5px solid var(--border);
  font-size: 13px; font-weight: 500; cursor: pointer;
  color: var(--text-secondary); background: var(--bg-white);
  transition: all var(--transition);
}
.cat-tab:hover  { border-color: var(--primary); color: var(--primary); }
.cat-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Pagination */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; margin-top: 40px;
}
.page-btn {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); background: var(--bg-white);
  font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-secondary);
  transition: all var(--transition);
}
.page-btn:hover   { border-color: var(--primary); color: var(--primary); }
.page-btn.active  { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn.dots    { border: none; background: none; cursor: default; }

/* =============================================
   ARTICLE DETAIL
   ============================================= */
.article-layout  { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding: 36px 0 56px; }
.article-main    {}
.article-sidebar { }

.article-head    { margin-bottom: 24px; }
.article-head__tags { display: flex; gap: 8px; margin-bottom: 10px; }
.article-head__title {
  font-size: 24px; font-weight: 700; line-height: 1.5;
  color: var(--text-primary); margin-bottom: 12px;
}
.article-head__meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; color: var(--text-light); margin-bottom: 16px;
}
.article-head__meta i { margin-right: 4px; }
.article-head__img {
  width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 24px;
}
.article-head__img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; font-size: 80px;
}

/* Article Body */
.article-body h2 {
  font-size: 18px; font-weight: 700; color: var(--text-primary);
  margin: 28px 0 12px;
  padding-left: 12px; border-left: 4px solid var(--primary);
}
.article-body h3 {
  font-size: 15px; font-weight: 700; color: var(--text-primary);
  margin: 20px 0 8px; display: flex; align-items: center; gap: 6px;
}
.article-body h3::before {
  content: ''; display: block; width: 6px; height: 6px;
  background: var(--primary); border-radius: 50%;
}
.article-body p  { font-size: 14px; color: var(--text-secondary); line-height: 1.85; margin-bottom: 14px; }
.article-body ul { padding-left: 20px; margin-bottom: 14px; }
.article-body ul li {
  list-style: disc; font-size: 14px; color: var(--text-secondary);
  line-height: 1.75; margin-bottom: 4px;
}
.article-body .highlight-box {
  background: var(--primary-light); border-radius: var(--radius-md);
  padding: 18px 20px; margin: 20px 0;
}
.article-body .highlight-box p { margin-bottom: 0; }
.article-body .warn-box {
  background: var(--yellow-light); border: 1.5px solid #F6E05E;
  border-radius: var(--radius-md); padding: 16px 20px; margin: 20px 0;
}

/* Sidebar */
.sidebar-card {
  background: var(--bg-white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 20px;
}
.sidebar-card__header {
  background: var(--primary-light); padding: 14px 16px;
  font-size: 14px; font-weight: 700; color: var(--primary);
  display: flex; align-items: center; gap: 6px;
}
.sidebar-card__body { padding: 12px 0; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: 13px; color: var(--text-primary);
  border-bottom: 1px solid var(--border); transition: all var(--transition);
}
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { background: var(--primary-light); color: var(--primary); }
.sidebar-link__img {
  width: 48px; height: 36px; border-radius: var(--radius-sm);
  flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.sidebar-link__text {
  flex: 1; font-size: 13px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* =============================================
   MY PAGE
   ============================================= */
.mypage-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 28px; }
.mypage-tab {
  padding: 12px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
  color: var(--text-secondary); border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--transition);
}
.mypage-tab.active  { color: var(--primary); border-bottom-color: var(--primary); }
.mypage-tab:hover   { color: var(--primary); }

.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--text-secondary);
}
.empty-state i    { font-size: 56px; color: var(--border); margin-bottom: 16px; display: block; }
.empty-state h3   { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.empty-state p    { font-size: 14px; }
.empty-state .btn-primary { margin: 20px auto 0; display: inline-flex; }

/* =============================================
   SIMPLE INFO PAGES (privacy, terms, etc.)
   ============================================= */
.info-page { padding: 40px 0 60px; }
.info-page__title {
  font-size: 26px; font-weight: 700; margin-bottom: 28px;
  padding-bottom: 14px; border-bottom: 2px solid var(--primary);
}
.info-page__updated { font-size: 13px; color: var(--text-light); margin-bottom: 28px; }
.info-page h2 {
  font-size: 17px; font-weight: 700; color: var(--text-primary);
  margin: 28px 0 10px;
}
.info-page p  { font-size: 14px; color: var(--text-secondary); line-height: 1.85; margin-bottom: 12px; }
.info-page ul { padding-left: 20px; margin-bottom: 12px; }
.info-page ul li { list-style: disc; font-size: 14px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 4px; }

/* Contact Form */
.contact-form { max-width: 640px; }
.form-group    { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 6px;
}
.form-group .required {
  display: inline-block; padding: 2px 6px; background: var(--red); color: #fff;
  border-radius: 4px; font-size: 10px; font-weight: 700; margin-left: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; color: var(--text-primary);
  background: var(--bg-white); outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-submit {
  padding: 13px 32px; background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius-full);
  font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: background var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.form-submit:hover { background: var(--primary-dark); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .column-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-height: 56px; }
  .header__nav    { display: none; }
  .btn-mynote span{ display: none; }
  .hamburger      { display: flex; }
  .hero           { padding: 36px var(--container-pad); }
  .hero__title    { font-size: 22px; }
  .category-grid  { grid-template-columns: repeat(2, 1fr); }
  .article-grid   { grid-template-columns: 1fr; }
  .column-grid    { grid-template-columns: 1fr 1fr; }
  .detail-hero    { flex-direction: column; }
  .detail-hero__img { width: 80px; height: 80px; font-size: 36px; }
}

@media (max-width: 520px) {
  .category-grid  { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .category-card  { padding: 12px 10px; flex-direction: column; text-align: center; gap: 8px; }
  .category-card__arrow { display: none; }
  .column-grid    { grid-template-columns: 1fr; }
  .article-head__title { font-size: 20px; }
}

/* =============================================
   DETAIL PAGE (OTC) + SHOPPING SECTION
   ============================================= */

/* ── レイアウト ── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}
.detail-tabs-wrap {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.detail-tab-panel { animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } }

/* ── サイドバー ── */
.sidebar-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.sidebar-card__title {
  font-size: 14px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.info-list { display: flex; flex-direction: column; gap: 10px; }
.info-row  { display: flex; gap: 10px; font-size: 13px; }
.info-row dt { color: var(--text-secondary); min-width: 80px; flex-shrink: 0; }
.info-row dd { color: var(--text-primary); font-weight: 500; word-break: break-all; }

/* ── テキスト placeholder ── */
.text-placeholder {
  font-size: 13px; color: var(--text-light);
  padding: 20px; text-align: center;
  background: var(--bg-main); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* ── 価格バッジ ── */
.price-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #FEF3C7; color: #92400E;
  border: 1px solid #FCD34D; border-radius: 6px;
  padding: 6px 14px; font-size: 16px; font-weight: 700;
}
.price-badge small { font-size: 11px; font-weight: 400; color: #B45309; }

/* ── ショッピングセクション ── */
.shopping-section { margin-top: 0; }
.shopping-btns {
  display: flex; flex-direction: column; gap: 10px;
  margin: 20px 0 14px;
}
.shopping-btn {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; color: #fff;
  text-decoration: none; transition: opacity .15s, transform .15s;
}
.shopping-btn:hover { opacity: .88; transform: translateX(2px); }
.shopping-btn--amazon  { background: #FF9900; }
.shopping-btn--rakuten { background: #BF0000; }
.shopping-btn--yahoo   { background: #FF0033; }
.shopping-btn__logo { height: 18px; object-fit: contain; }
.shopping-note {
  font-size: 11px; color: var(--text-light); line-height: 1.7;
  display: flex; align-items: flex-start; gap: 6px;
}

/* ── 楽天商品カード ── */
.rakuten-product {
  border: 1.5px solid #E0E0E0;
  border-radius: var(--radius-md);
  overflow: hidden; margin-bottom: 16px;
  background: var(--bg-white);
}
.rakuten-product__inner {
  display: flex; gap: 14px; padding: 16px;
  text-decoration: none; color: inherit;
  transition: background .15s;
}
.rakuten-product__inner:hover { background: var(--bg-main); }
.rakuten-product__img-wrap {
  width: 100px; height: 100px; flex-shrink: 0;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg-main); display: flex; align-items: center; justify-content: center;
}
.rakuten-product__img { width: 100%; height: 100%; object-fit: contain; }
.rakuten-product__img-placeholder { font-size: 36px; color: var(--text-light); }
.rakuten-product__body   { flex: 1; min-width: 0; }
.rakuten-product__shop   { font-size: 11px; color: var(--text-secondary); margin-bottom: 4px; }
.rakuten-product__name   { font-size: 13px; font-weight: 600; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rakuten-product__copy   { font-size: 11px; color: var(--text-secondary); margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.rakuten-product__meta   { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; align-items: center; }
.rakuten-product__price  { font-size: 18px; font-weight: 700; color: #BF0000; }
.rakuten-product__price small { font-size: 11px; font-weight: 400; color: var(--text-secondary); }
.rakuten-product__stars  { font-size: 13px; color: #F59E0B; display: flex; align-items: center; gap: 4px; }
.rakuten-product__btn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  background: #BF0000; color: #fff; padding: 6px 14px;
  border-radius: 4px; font-size: 12px; font-weight: 600;
}
.rakuten-product__note {
  font-size: 11px; color: var(--text-light); padding: 8px 16px;
  border-top: 1px solid var(--border); background: var(--bg-main);
}
.rakuten-product--loading {
  padding: 24px; text-align: center;
  color: var(--text-secondary); font-size: 13px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.rakuten-product--none {
  padding: 16px; font-size: 12px; color: var(--text-secondary);
  background: var(--bg-main); border-radius: var(--radius-sm);
  line-height: 1.8;
}

/* ── 星評価 ── */
.stars { color: #F59E0B; }

/* ── レスポンシブ ── */
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { order: -1; }
}
@media (max-width: 520px) {
  .shopping-btn { font-size: 14px; padding: 12px 16px; }
  .rakuten-product__img-wrap { width: 80px; height: 80px; }
}
