.pera1 {
  border-radius: 50%;
}

:root {
  --greige-light: #f6f5f4;
  --greige: #e8e6e3;
  --greige-dark: #b0afa9;
  --text-dark: #222;
  --text-light: #666;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-dark);
  background: var(--greige-light);
  line-height: 1.6;
}

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

/* Header */
header {
  background: transparent !important;
  position: relative;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.logo img {
  height: 42px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

nav {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: transparent !important;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav li {
  white-space: nowrap;
  margin: 0 0.25rem;
}

nav a {
  padding: 0.4rem 0.9rem;
  background: white;
  border: 1px solid var(--greige-dark);
  border-radius: 9999px;
  display: inline-block;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

nav a:hover {
  background: var(--greige-dark);
  color: white;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: -90px;
  padding-top: 90px;
  padding: 0;
  max-width: none;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
}

.hero h1 {
  position: relative;
  color: #fff;
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin: 0;
  font-weight: 700;
}

.hero p {
  position: relative;
  color: #fff;
  margin-top: .5rem;
  font-size: 1rem;
}

/* Icon grid */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  padding: 3rem 1rem;
  background: var(--greige);
}

.icon-card {
  background: #fff;
  border: 1px solid var(--greige-dark);
  padding: 1.25rem .5rem;
  text-align: center;
  transition: background .3s, border-color .3s, color .3s;
}

.icon-card:hover {
  background: var(--greige-dark);
  border-color: var(--text-dark);
  color: #fff;
}

.icon-card svg {
  width: 28px;
  height: 28px;
  margin-bottom: .4rem;
  fill: currentColor;
}

/* Sections */
section {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

/* Shampoo */
.shampoo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1.5fr;
}

.shampoo img {
  width: 100%;
  border-radius: 8px;
}

.button {
  background: #000;
  color: #fff;
  border: none;
  padding: .75rem 1.75rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background .3s;
  display: inline-block;
}

.button:hover {
   background: var(--greige-dark);
  color: white;
}
/* Blog */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.blog-card img {
  width: 100%;
  border-radius: 4px;
}

.blog-card time {
  font-size: .8rem;
  color: var(--text-light);
}

/* Footer */
footer {
  background: var(--greige);
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

footer .brand {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer li + li {
  margin-top: .4rem;
}

.social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 1.25rem;
}

/* brand-place を細字にする */
.brand-place {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 400;
}
/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 1rem;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  nav ul {
    gap: .75rem;
  }

   /* --- ハンバーガー共通スタイル --- */
.hamburger {
  display: none;
  position: absolute;
  top: 1.25rem;   /* 適宜調整 */
  right: 1.5rem; /* 右端に寄せる */
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 24px;
  z-index: 2000;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- ハンバーガー開閉時の変化（×） --- */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* --- スマホ表示時のみ表示 --- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav {
    position: absolute;
    top: 64px;
    right: 1rem;
    width: auto;
    min-width: 200px;
    background: var(--greige-light);
    z-index: 1000;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    align-items: flex-end; /* ← 追加！左寄せ */
  }

  nav ul.open {
    display: flex;
  }
}
}

  .icon-card {
    padding: 1rem .5rem;
  }


@media (max-width: 480px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
  }

  nav li {
    flex: 1 0 100%;
  }

  .hero {
    min-height: 40vh;
  }

  section {
    padding: 3rem 1rem;
  }

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

  .blog-list {
    grid-template-columns: 1fr;
  }

  footer {
    grid-template-columns: 1fr;
  }
}

/* Blog + SNS 横並び */
.post-sns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 4rem;
}

.post-sns-grid a {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform .3s;
}

.post-sns-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.post-sns-grid h3 {
  margin-top: .75rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.post-sns-grid a:hover {
  transform: translateY(-4px);
}

@media (max-width: 600px) {
  .post-sns-grid {
    grid-template-columns: 1fr;
  }
}
/* 汎用カードグリッド */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto 4rem;
}

.card-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

/* News 専用グリッド（3→2→1列） */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto 4rem;
}

.news-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 画像下のタイトルを中央寄せにする */
.card-grid a,
.news-grid a {
  text-align: center;
}
