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

html {
  font-size: 16px;
}

:root {
  --color-text: #2d2d2d;
  --color-bg: #fafafa;
  --color-primary: #714d41;
  --color-primary-strong: #976d5f;
  --color-accent: #f5e0c8;
  --color-surface: #ffffff;
  --color-surface-soft: #f8f8f8;
  --color-border: rgba(68, 5, 6, 0.1);
  --color-border-muted: #ccc;
  --color-divider: #eee;
  --color-shadow: rgba(68, 5, 6, 0.08);
  --color-shadow-soft: rgba(0, 0, 0, 0.05);
  --color-nav-text: rgb(40, 2, 3);
  --color-nav-strong: rgb(68, 5, 6);
  --color-footer-bg: rgb(40, 2, 3);
  --color-on-dark: #fafafa;
  --beauty-primary: #ffb2ac;
  --beauty-secondary: #821F17;
  --beauty-accent: #ffeecc;
}

.beauty {
  --color-primary: var(--beauty-primary);
  --color-primary-strong: var(--beauty-secondary);
  --color-accent: var(--beauty-accent);
}

body {
  font-family:
    "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "游ゴシック Medium",
    "游ゴシック体", YuGothic, "Yu Gothic", sans-serif;
  line-height: 1.8;
  color: var(--color-text);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #f5f0eb;
}

:focus-visible {
  outline: 3px solid rgba(113, 77, 65, 0.35);
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-primary-strong);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  &:focus { position: static; }
}

/* 12カラムグリッドシステム */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* レスポンシブ地図 */
.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  height: 0;
  overflow: hidden;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ヒーローセクション */
header {
  background: linear-gradient(30deg, var(--color-primary) 0%, var(--color-primary-strong) 100%);
  color: var(--color-on-dark);
  padding: 0px 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

body.beauty header {
  background: var(--beauty-primary);
}

body.beauty form#contactForm {
  & label {
    color: var(--beauty-secondary);
    width: 60%;
  }

  & input {
    width: 60%;
  }

  & textarea {
    width: 100%
  }
}

header h1 {
  font-family:
    "Rounded M+ 1c", "Hiragino Maru Gothic Pro", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro",
    "游ゴシック体", YuGothic, "Yu Gothic", sans-serif;
  font-size: clamp(2rem, 8vw, 3.5rem);
  margin-bottom: 12px;
  font-weight: 400;
  position: relative;
  display: inline-flex;
  align-items: bottom;
  transform: skewX(-5deg);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header h1::before {
  content: "";
  display: inline-block;
  width: 1lh;
  height: 1lh;
  margin-right: .5rem;
  background-image: url('img/logo.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

header h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.35rem;
  transform: translateX(-50%);
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 40%, var(--color-accent) 60%, var(--color-primary) 100%);
}

body.beauty header h1::after {
  background: linear-gradient(90deg, var(--beauty-primary) 0%, var(--color-accent) 40%, var(--color-accent) 60%, var(--beauty-primary) 100%);
}

header p {
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin-bottom: 10px;
  opacity: 0.95;
}

header p.site-tel::before {
  content: "";
  width: 1.2rem;
  height: 1.1rem;
  display: inline-block;
  background-image: url('img/pict/tel.svg');
  background-size: contain;
  background-repeat: no-repeat;
}

header p.site-tel a {
  color: var(--color-on-dark);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}

/* ナビゲーション */
nav {
  background-color: var(--color-bg);
  box-shadow: 0 2px 8px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-bottom: 2px solid var(--color-border);
}

button.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 15px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--color-nav-strong);
  margin: 5px 0;
  transition: 0.3s;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
}

nav,
nav>ul>li {
  padding: 0;
  margin: 0;

  a {
    display: block;
    padding: 15px 10px;
    color: var(--color-nav-text);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition:
      background-color 0.3s,
      color 0.3s;

    &:hover,
    &.active,
    &[aria-current="page"] {
      background-color: rgba(68, 5, 6, 0.05);
      color: var(--color-nav-strong);
    }
  }
}

/* サブメニュートリガー */
nav>ul>li>a[data-submenu]::after {
  content: " ▼";
  font-size: 0.8em;
  margin-left: 5px;
}

/* セクション */
section {
  padding: 40px;
  margin-bottom: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--color-shadow);
}

.container section:last-child {
  margin-bottom: 0;
}


section h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 30px;
  color: var(--color-nav-strong);
  font-weight: 700;
  border-bottom: 3px solid var(--color-nav-strong);
  padding-bottom: 15px;
}

body.beauty h2,
body.beauty h3 {
  color: var(--beauty-secondary);
  border-bottom: 3px solid var(--beauty-secondary);
}

body.beauty section#price td:nth-child(1) {
  width: 400px;
}

body.beauty section#price td:nth-child(2) {
  width: 180px;
  text-align: right;
  color: var(--beauty-secondary)
}

body.beauty  section#price .popular {
  background-color: var(--beauty-accent);
}

body.beauty a {
  text-decoration: none;
  color: var(--beauty-secondary);
}

section h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--color-nav-strong);
  font-weight: 700;
}

section p {
  margin-bottom: 15px;
  line-height: 1.8;
}

section dl dt {
  font-weight: 600;
  margin-top: 20px;
}

section dl dd {
  margin-left: 20px;
  margin-bottom: 15px;
}

section ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 15px;
}

/* フッター */
footer {
  background-color: var(--color-footer-bg);
  color: var(--color-on-dark);
  padding: 30px 15px;
  text-align: center;
  border-top: 3px solid var(--color-nav-strong);
}

.pricing-table {
  border-collapse: collapse;
  margin-top: 20px;

  & td {
    border: 1px solid var(--color-border);
    padding: 4px;
    text-align: right;
  }
}

#home ul {
  list-style: none;
  margin-left: 0;
}

.news-card {
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px var(--color-shadow);
}

.news-card a {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 16px;
  background: var(--color-primary);
  color: var(--color-on-dark);
  border-radius: 100vmax;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.news-card a:hover {
  background: var(--color-primary-strong);
}

.important {
  background: #fff8e6;
  border: 2px solid #e6c300;
  border-radius: 8px;
  padding: 16px;
  font-weight: 600;
}

#treatments > a > img {
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 100vmax;
}

#symptom-filter {
  list-style: none;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#symptom-filter li {
  margin: 0;
}

#symptom-filter button,
#filter-all {
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid var(--color-primary);
  border-radius: 100vmax;
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

#symptom-filter button:hover,
#symptom-filter button.active,
#filter-all.active {
  background: var(--color-primary);
  color: var(--color-on-dark);
}

@media (max-width: 768px) {
  #symptom-filter button,
  #filter-all {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}

/* レスポンシブ調整 */
@media (max-width: 768px) {

  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 0.95rem;
  }

  .hamburger {
    display: flex !important;
  }

  nav ul {
    position: fixed;
    left: -100%;
    top: 60px;
    flex-direction: column;
    background-color: var(--color-surface);
    width: 100%;
    text-align: left;
    transition: left 0.3s;
    box-shadow: 0 10px 27px var(--color-shadow-soft);
    padding: 20px 0;
    max-width: none;
    margin: 0;
    flex: none;
  }

  nav ul.active {
    left: 0;
  }

  nav>ul>li {
    width: 90%;
    border-bottom: 1px solid var(--color-border);
    padding: 0;
  }

  nav>ul>li>a {
    padding: 15px 20px;
    display: block;
  }

  section {
    padding: 24px;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {

  header h1 {
    font-size: 1.5rem;
  }

  nav>ul>li>a {
    padding: 12px 15px;
  }

  section {
    padding: 20px;
    margin-bottom: 16px;
  }

  section h2 {
    font-size: 1.3rem;
  }
}

#access>img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.access-photo-toggle {
  margin: 1rem 0 1.5rem;
}

.access-photo-checkbox {
  position: absolute;
  /* left: -9999px; */
}

.access-photo-toggle label {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border-muted);
}

.access-step-list li {
  margin-bottom: 1rem;
}

.access-step-list li img {
  display: block;
  width: 140px;
  max-width: 100%;
  height: auto;
  margin-top: 0.5rem;
  border-radius: 8px;
  transition: width 0.2s ease;
}

/* 写真を拡大をチェックしたときのスタイル */
.access-photo-checkbox:checked+label+.access-step-list li img {
  width: 100%;
}

@media (max-width: 768px) {
  .access-step-list li img {
    width: 100%;
    margin-bottom: 20px;
  }
}

/* 写真 */
.photo {
  margin: 0 25px 20px 0;
  max-width: 300px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--color-shadow);
  border: 2px solid var(--color-accent);
  float: left;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.photo img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .photo {
    max-width: 250px;
    float: none;
    margin: 25px auto 20px;
  }
}

@media (max-width: 480px) {
  .photo {
    max-width: 100%;
  }
}