@charset "utf-8";

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family:
    "Noto Sans JP",
    "Hiragino Sans",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  color: #333;
  font-weight: 400;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.font-mincho {
  font-family:
    "A1 Mincho",
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    "Yu Mincho",
    "YuMincho",
    "MS Mincho",
    "Noto Serif JP",
    serif;
}
ul,ol {
  list-style: none;
}
.pc {
  display: block;
}
.sp {
  display: none;
}

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #3B1E87;
  --primary-light: #F3F1F8;
  --primary-dark: #2e1768;
  --primary-midium: #9da2da;
  --text: #333;
  --text-light: #707070;
  --border: #BABABA;
  --bg-light: #F2F2F2;
  --max-w: 1920px;
  --medium-w: 1024px;
  --cat-hair: #d886b5;
  --cat-scalp: #849acd;
  --cat-styling: #c6ab35;
  --cat-skincare: #66b3cc;
  --cat-color: #DC928D;
}

/*
HEADER
================================================ */
.sp-header {
  display: none;
}
.site-header,
.sp-header {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled + .gnav nav{
  background: rgba(255, 255, 255, .9);
}
.sp-header.is-scrolled {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  box-shadow: 0px 0px 11px -4px #777777;
}
.sp-header .header-tagline {
  opacity: 1;
  max-height: 100px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.sp-header.is-scrolled .header-tagline {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pc-header .header-tagline {
  margin-bottom: 15px;
  font-size: 0.8125rem;
}
.site-logo {
  display: block;
  margin: 0 auto;
  width: fit-content;
}
.site-logo img{
  width: 260px;
}
.link-ec {
  padding: 12px 22px;
  background: #fff;
  border: 1px solid var(--border);
}
.link-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.750rem;
}
.link-title::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  background-image: url("../img/icon_window.svg");
  background-size: 12px 12px;
}
.link-ec img {
  width: 200px;
  display: block;
  margin: 0 auto;
}

/* ===== search ===== */
.header-search {
  position: relative;
  width: 250px;
}
.search-input {
  width: 100%;
  padding: 15px 30px 13px 20px;
  border: none;
  outline: none;
  border-radius: 30px;
  background: #f5f5f5;
  font-size: 1rem;
  font-weight: 400;
  box-sizing: border-box;
}
.search-input::placeholder {
  color: #B7B7B7;
}
.search-button {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

/* ===== gnav ===== */
.gnav {
  position: sticky;
  top: 0;
  z-index: 100;
}
.gnav nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 14px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .3);
  backdrop-filter: blur(12px);
}
.gnav ul {
  list-style: none;
}
.header-nav {
  display: flex;
  gap: 30px;
  font-size: 1rem;
}
.gnav a {
  position: relative;
}
.gnav a:hover {
  position: relative;
  color: var(--primary-midium);
}
.header-sub-nav {
  font-size: 0.875rem;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 20px;
  color: #999;
}
.gnav a::before {
  content: attr(data-item);
  position: absolute;
  top: 0;
  height: 100%;
  width: 0%;
  display: flex;
  align-items: center;
  background:var(--primary-midium);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: .3s;
  white-space: nowrap;
}

.gnav a::after {
  content: '';
  width: 0%;
  position: absolute;
  background: var(--primary-midium);
  bottom: -14px;
  left: 0%;
  height: 2px;
  display: block;
  transition: .3s;
}
.gnav .cat-hair a:hover {
  color: var(--cat-hair);
}
.gnav .cat-hair a::after {
  background: var(--cat-hair);
}
.gnav .cat-scalp a:hover {
  color: var(--cat-scalp);
}
.gnav .cat-scalp a::after {
  background: var(--cat-scalp);
}
.gnav .cat-skin a:hover {
  color: var(--cat-skincare);
}
.gnav .cat-skin a::after {
  background: var(--cat-skincare);
}
.gnav .cat-styling a:hover {
  color: var(--cat-styling);
}
.gnav .cat-styling a::after {
  background: var(--cat-styling);
}
.gnav .cat-color a:hover {
  color: var(--cat-color);
}
.gnav .cat-color a::after {
  background: var(--cat-color);
}

.gnav a:hover::before {
  width: 100%;
}

.gnav a:hover::after {
  width: 100%;
}
/* =========================
  header
========================= */
.sp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 1.75vw 2.313vw 2.313vw;
}
.sp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sp-header .header-ec {
  width: 10vw;
}
.sp-header .header-tagline {
  margin-bottom: 2.125vw;
  font-size: 2.813vw;
  text-align: center;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5vw;
  background: transparent;
  border: none;
}
.menu-toggle__bars {
  position: relative;
  width: 6.875vw;
  height: 5vw;
}
.menu-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: #707070;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}
.menu-toggle__bars span:nth-child(1) {
  top: 0;
}
.menu-toggle__bars span:nth-child(2) {
  top: 2.188vw;
}
.menu-toggle__bars span:nth-child(3) {
  bottom: 1px;
}
.menu-toggle__label {
  font-size: 2.813vw;
  line-height: 1;
	color: #707070;
}

/* open時は×表示 */
.menu-toggle.is-open .menu-toggle__bars span:nth-child(1) {
  top: 2.5vw;
  transform: rotate(45deg);
}
.menu-toggle.is-open .menu-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open .menu-toggle__bars span:nth-child(3) {
  top: 2.5vw;
  transform: rotate(-45deg);
}

/* =========================
  drawer / overlay
========================= */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #f4f2f8;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.drawer__inner {
  min-height: 100%;
}

/* =========================
  search area
========================= */
.drawer-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.75vw;
  padding: 1.5vw 2.313vw;
  background: #fff;
}
.drawer .header-search {
  width: 72.656vw;
}
.drawer .search-input {
  padding: 2.438vw 12.5vw 2.125vw 7.031vw;
  font-size: 3.125vw;
  border-radius: 5.469vw;
}
.drawer .search-button {
  right: 4.375vw;
  width: 5.313vw;
  height: 5.313vw;
}
.drawer-close {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25vw;
  border: none;
  background: transparent;
}
.drawer-close__icon {
  position: relative;
  width: 5vw;
  height: 5vw;
}
.drawer-close__icon::before,
.drawer-close__icon::after {
  content: "";
  position: absolute;
  top: 2.5vw;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: #707070;
}
.drawer-close__icon::before {
  transform: rotate(45deg);
}
.drawer-close__icon::after {
  transform: rotate(-45deg);
}
.drawer-close__text {
  font-size: 2.813vw;
  line-height: 1;
  margin-top:1vw;
}
.drawer-section-title {
  background: var(--primary);
  color: #fff;
  font-size: 5vw;
  font-weight: 400;
  padding: 2.5vw 6.875vw;
}

/* =========================
  trouble area
========================= */
.drawer-category {
  padding: 4.375vw 4.688vw 3.125vw;
}
.drawer-category:not(:last-of-type) {
  border-bottom: 1px solid var(--border);
}
.drawer-category__title {
  position: relative;
  margin-bottom: 3.125vw;
  padding-left: 9.375vw;
  font-size: 3.75vw;
  font-weight: 400;
}
.drawer-category__title::before {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  content: "";
  display: block;
}
.drawer-category.hairtype .drawer-category__title::before {
  width: 7.656vw;
  height: 8.594vw;
  background-size: 7.656vw 8.594vw;
  background-image: url("../img/icon_hairtype.svg");
}
.drawer-category.scalp .drawer-category__title::before {
  width: 8.125vw;
  height: 8.75vw;
  background-size: 8.125vw 8.75vw;
  background-image: url("../img/icon_scalp.svg");
}
.drawer-category.damage .drawer-category__title::before {
  width: 7.656vw;
  height: 9.375vw;
  background-size: 7.656vw 9.375vw;
  background-image: url("../img/icon_damage.svg");
}
.drawer-category.aging .drawer-category__title::before {
  width: 7.5vw;
  height: 9.063vw;
  background-size: 7.5vw 9.063vw;
  background-image: url("../img/icon_aging.svg");
}

.drawer .other-links {
  padding-bottom: 9.375vw;
  background: #fff;
}

.drawer .link-ec {
  display: block;
  margin: 0 auto;
  padding: 1.875vw 0 2.5vw;
  max-width: 55.25vw;
}
.drawer .link-ec img {
  width: 42.656vw;
}
.drawer .link-title {
  justify-content: center;
  gap: 2.5vw;
  margin-bottom: 2.5vw;
  font-size: 3.125vw;
}
.drawer .link-title::after {
  width: 2.344vw;
  height: 2.344vw;
  background-size: 2.344vw 2.344vw;
}

.drawer .sns {
  margin: 8.75vw 0 0;
}

.chip-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25vw;
}
.chip-list--single {
  grid-template-columns: 1fr;
}
.chip {
  padding: 2.188vw 4.063vw;
  line-height: 1;
  font-size: 3.125vw;
  border: 1px solid var(--border);
  border-radius: 1.875vw;
  background: #fff;
}

/* =========================
  genre list
========================= */
.genre-list {
  background: #fff;
}
.genre-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.125vw;
  margin: 0 4.688vw;
  padding: 2.5vw 1.875vw;
  border-bottom: 1px solid var(--border);
  font-size: 3.75vw;
}
.genre-item__en {
  font-size: 3.125vw;
  white-space: nowrap;
}
.cat-haircare .genre-item__en {
  color: var(--cat-hair);
}
.cat-scalp .genre-item__en {
  color: var(--cat-scalp);
}
.cat-skincare .genre-item__en {
  color: var(--cat-skincare);
}
.cat-styling .genre-item__en {
  color: var(--cat-styling);
}
.cat-color .genre-item__en {
  color: var(--cat-color);
}
.genre-sub-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  padding-bottom:5vw;
}
.genre-sub-links a {
  padding: 3.375vw 3.688vw 3.25vw;
  display: flex;
  align-items: center;
  gap: 2.5vw;
  font-size: 3.594vw;
    border-bottom: 1px solid var(--border);
}
.genre-sub-links .link-product::before,
.genre-sub-links .link-lab::before,
.genre-sub-links .link-interview::before,
.genre-sub-links .link-report::before {
  content: "";
  display: block;
}
.genre-sub-links .link-product::before {
  width: 4.688vw;
  height: 5.781vw;
  background-size: 4.688vw 5.781vw;
  background-image: url("../img/icon_product.png");
}
.genre-sub-links .link-lab::before {
  width: 4.844vw;
  height: 5.625vw;
  background-size: 4.844vw 5.625vw;
  background-image: url("../img/icon_lab.png");
}
.genre-sub-links .link-interview::before {
  width: 4.688vw;
  height: 5.781vw;
  background-size: 4.688vw 5.781vw;
  background-image: url("../img/icon_interview.png");
}
.genre-sub-links .link-report::before {
  width: 4.844vw;
  height: 5.625vw;
  background-size: 4.844vw 5.625vw;
  background-image: url("../img/icon_report.png");
}
.others-links{
  font-size: 3.594vw;
  padding-bottom:2.375vw;
	background: #FFF;
}
.others-links .link-about{
	margin: 0 auto;
  display: block;
    padding: 1.875vw 0 2.5vw;
    max-width: 55.25vw;
    border: 1px solid var(--border);
  text-align: center;
}

/* body固定 */
body.is-locked {
  overflow: hidden;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--bg-light);
  padding: 10px 40px;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  -webkit-align-items: flex-start;
  align-items: center;
}
.breadcrumb-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.breadcrumb a{
	font-weight: 400;
}
.breadcrumb a:hover{
	text-decoration: underline;
}
.breadcrumb-sep {
  font-weight: 400;
  margin: 0 10px;
}
#more-breadcrumbs .breadcrumb{
  padding: 5px 40px;
}
#more-breadcrumbs .breadcrumb:last-child{
  padding: 5px 40px 10px 40px;
}
nav:has(#toggle-btn) {
  position: relative;
}
#toggle-btn{
	background: #FFF;
	border-radius: 15px;
	padding: 3px 10px;
	font-size:0.72rem;
	cursor: pointer;
	position: absolute;
	top:0.4rem;
	right:20px;
	z-index: 1;
}
/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
}
.footer-tagline {
  margin-bottom: 20px;
  font-size: 1rem;
}
.footer-logo {
  margin-bottom: 30px;
}
.footer-logo img {
  margin: 0 auto;
}
.footer-nav {
  padding-top: 30px;
  font-size: 1rem;
  background: var(--bg-light);
}
.footer-nav a {
  transition: color 0.2s;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
}
.footer-nav li {
  display: flex;
  align-items: center;
}
.footer-nav li.external a::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  background-image: url("../img/icon_window.svg");
  background-size: 12px 12px;
}
.footer-nav li:not(:last-of-type)::after {
  content: "｜";
  margin: 0 5px;
}
.footer-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-nav a:hover { color: var(--primary); }
.footer-copy {
  padding: 30px 20px;
  background: var(--bg-light);
}

/* ===== SNS ===== */
.sns {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 50px 0 30px;
}
.sns-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.sns-icon img {
  width: 36px;
  height: 36px;
}
.sns-icon.sns-x img {
  width: 30px;
  height: 30px;
}
/*
RESPONSIVE
================================================ */
@media (width < 1281px) {
  .header-search {
    width: 260px;
  }
  .search-input {
    padding: 16px 40px 14px 20px;
    font-size: 1rem;
  }
  .pc-header .header-tagline {
    margin-bottom: 20px;
    font-size: 1rem;
  }
  .site-logo {
    width: 280px;
  }
  .search-button {
    right: 14px;
    width: 20px;
    height: 20px;
  }
  .link-title {
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.875rem;
  }
  .link-ec {
    padding: 12px 20px;
  }
  .link-ec img {
    width: 180px;
  }
  .gnav nav {
    gap: 20px;
  }
  .header-nav {
    gap: 20px;
    font-size: 1rem;
  }
  .header-sub-nav {
    gap: 10px;
    font-size: 0.75rem;
  }
}

@media (width < 1025px) {
  .header-search {
    width: 200px;
  }
  .search-input {
    padding: 12px 30px 10px 14px;
    font-size: 0.875rem;
  }
  .pc-header .header-tagline {
    margin-bottom: 10px;
    font-size: 0.875rem;
  }
  .site-logo {
    width: 230px;
  }
  .search-button {
    right: 10px;
    width: 16px;
    height: 16px;
  }
  .link-title {
    font-size: 0.625rem;
  }
  .link-ec {
    padding: 10px 16px 12px;
  }
  .link-ec img {
    width: 160px;
  }
  .gnav nav {
    gap: 15px;
  }
  .header-nav {
    gap: 15px;
    font-size: 0.875rem;
  }
  .header-sub-nav {
    font-size: 0.75rem;
  }
}

@media (width < 901px) {
  .header-search {
    display: none;
  }
  .site-logo {
    margin: 0;
  }
  .gnav nav {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}

@media (width < 769px) {
  .pc {
    display: none;
  }
  .sp {
    display: block;
  }

  .pc-header,.gnav nav {
    display: none;
  }
  .sp-header {
    display: block;
  }
  .sp-site-logo img {
    width: 42vw;
  }
  .header-search {
    display: block;
  }

  /* ===== BREADCRUMB ===== */
  .breadcrumb {
    padding: 3.125vw 20vw 3.125vw 1.688vw;
    font-size: 2.5vw;
	white-space: nowrap;
	overflow: hidden;
	width: 100%;
  }
	.breadcrumb li:last-child {
	  overflow: hidden;
	  text-overflow: ellipsis;
	  white-space: nowrap;
	  flex-shrink: 1;
	  min-width: 0;
	}
	#more-breadcrumbs .breadcrumb {
    padding: 1.125vw 1.688vw;
	}
	#more-breadcrumbs .breadcrumb:last-child{
	  padding: 1.125vw 1.688vw 3.125vw ;
	}
  .breadcrumb-inner {
    gap: 1.25vw;
  }
  .breadcrumb-sep {
    margin: 0 1.25vw;
  }

	#toggle-btn{
		font-size:2.5vw;
		top:2.3vw;
		right:1vw;
	}
  /* ===== FOOTER ===== */
  .footer-sns {
    gap: 4.688vw;
    margin: 9.375vw 4.688vw 4.688vw;
  }
  .sns-icon img {
    width: 6.563vw;
    height:6.563vw;
  }
  .sns-icon.sns-x img {
    width: 5.625vw;
    height: 5.625vw;
  }
  .footer-tagline {
    margin-bottom: 4.688vw;
    font-size: 3.125vw;
  }
  .footer-logo {
    margin-bottom: 6.25vw;
  }
  .footer-logo img {
    width: 38.281vw;
  }
  .footer-nav {
    padding-top: 0;
    font-size: 3.125vw;
  }
  .footer-nav a {
    gap: 1.25vw;
    padding: 3.125vw 4.688vw;
    width: 100%;
  }
  .footer-nav ul {
    gap: 0;
  }
  .footer-nav li {
    width: 50%;
    border-bottom: 1px solid var(--border);
  }
  .footer-nav li.external a::after {
    width: 1.875vw;
    height: 1.875vw;
    background-size: 1.875vw 1.875vw;
  }
  .footer-nav li:nth-of-type(odd) {
    border-right: 1px solid var(--border);
  }
  .footer-nav li:not(:last-of-type)::after {
    content: none;
  }
  .footer-copy {
    padding: 4.688vw;
    font-size: 2.5vw;
  }

  /* ===== SNS ===== */
  .sns {
    gap: 4.375vw;
    margin: 8.75vw 0 5.313vw;
  }
  .sns-icon svg {
    width: 6.563vw;
    height: 6.563vw;
  }
  .sns-icon.sns-x svg {
    width: 5.625vw;
    height: 6.406vw;
  }
}
/* ============================================================
   カテゴリーバッジの色分け設定（CSS変数連動）
   ============================================================ */
.article-card__category {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.6875rem;
  font-weight: bold;
  color: #fff;
  background-color: var(--primary-midium);
}
.article-card__category.is-cat-hair {
  background-color: var(--cat-hair);
}
.article-card__category.is-cat-scalp {
  background-color: var(--cat-scalp);
}
.article-card__category.is-cat-skincare {
  background-color: var(--cat-skincare);
}
.article-card__category.is-cat-styling {
  background-color: var(--cat-styling);
}
.article-card__category.is-cat-color {
  background-color: var(--cat-color);
}