:root {
  color-scheme: light;
  --bg: #faf7f5;
  --fg: #2b2422;
  --accent: #c2185b;
  --border: #e6dcd8;
  --card-bg: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}

.site-header .site-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
}
.site-header a { color: var(--fg); text-decoration: none; }
.site-header nav a {
  margin-left: 1rem;
  color: var(--accent);
  font-weight: bold;
}

.pr-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: var(--accent);
  background: #fbe4ec;
  border: 1px solid #f3c6d6;
  border-radius: 999px;
}

.affiliate-disclosure {
  font-size: 0.78rem;
  color: #888888;
  text-align: center;
  margin: 0.75rem 0 6px;
}

.site-footer {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-nav a {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-nav a:hover { color: var(--accent); }

.footer-copyright {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: #8a7d78;
}

main { padding: 1.5rem; max-width: 960px; margin: 0 auto; }

.hero-section {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2rem;
  padding-top: 0.5rem;
}

.hero-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hero-tag {
  display: inline-block;
  background: linear-gradient(135deg, #b3184e, #ff6fa5 85%);
  color: #fff;
  font-weight: bold;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(179, 24, 78, 0.35);
}

.hero-section h1 {
  font-size: clamp(1.05rem, 5.5vw, 1.3rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 0 0 1.1rem;
  color: var(--fg);
}

.hero-title-part {
  display: inline-block;
}

@media (min-width: 768px) {
  .hero-section h1 {
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .hero-title-part {
    display: inline;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .hero-section h1 {
    font-size: clamp(1rem, 6vw, 1.2rem);
  }
}

.hero-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.hero-feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff0f3;
  border: 1px solid #f3c6d6;
  color: var(--accent);
  font-weight: bold;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.area-page-intro {
  color: var(--fg);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.area-switch-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.area-switch-links a {
  display: inline-block;
  background: #fff0f3;
  border: 1px solid #f3c6d6;
  color: var(--accent);
  font-weight: bold;
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
}

.area-switch-links a.area-switch-link-current {
  background: linear-gradient(135deg, #b3184e, #ff6fa5 85%);
  color: #fff;
}

.portal-hero {
  max-width: 720px;
}

.portal-area-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .portal-area-links {
    grid-template-columns: 1fr 1fr;
  }
}

.portal-area-card {
  display: block;
  background: #fff;
  border: 1px solid #f3c6d6;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--fg);
  box-shadow: 0 2px 8px rgba(179, 24, 78, 0.1);
}

.portal-area-card h2 {
  color: var(--accent);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.portal-area-card p {
  font-size: 0.85rem;
  margin: 0;
}

.portal-cta-link {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.portal-cta-link a {
  color: var(--accent);
  font-weight: bold;
}

.filters {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.filters label { font-size: 0.9rem; display: flex; flex-direction: column; gap: 0.25rem; }

#chat-result { margin-top: 1.5rem; }

.quiz-progress {
  color: var(--accent);
  font-weight: bold;
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}

.quiz-question-text {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 1rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
}

.quiz-option {
  font: inherit;
  font-size: 1rem;
  text-align: left;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.quiz-option:hover {
  border-color: var(--accent);
  transform: translateX(2px);
}

.quiz-restart {
  display: block;
  margin: 1.5rem auto 0;
  font: inherit;
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: bold;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
}

.message { font-size: 0.95rem; line-height: 1.6; }

.quiz-top-wrapper {
  margin: 1.5rem 0 2rem;
}

.quiz-reasons-box {
  background: #fff5f7;
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin: 0 0 1rem;
}

.quiz-reasons-title {
  margin: 0 0 0.75rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--fg);
}

.quiz-reasons-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.quiz-reason-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.quiz-reason-check {
  flex-shrink: 0;
  color: #e91e63;
  font-weight: 800;
}

.quiz-top-badge {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #ff6fa5, #ffd27a);
  color: #7a3b00;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(230, 126, 34, 0.3);
}

.quiz-top-card {
  border: 2px solid #e91e63;
  box-shadow: 0 10px 28px rgba(233, 30, 99, 0.22);
}

.school-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 0.75rem 0 1.5rem;
}

@media (min-width: 640px) {
  .school-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .school-grid { grid-template-columns: repeat(3, 1fr); }
}

/* スクール一覧ページ(トップページ)専用: 常に1列のリスト形式で表示する。
   チャット診断結果の「他の選択肢」グリッド(.school-gridのみ)は対象外。
   !importantは、万一他のルールと競合しても確実に1列になるようにするため。 */
.school-grid.school-list {
  grid-template-columns: 1fr !important;
  gap: 24px;
}

@media (min-width: 768px) {
  .school-list .school-card-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    gap: 20px;
  }

  .school-list .school-card-image,
  .school-list .school-card-image-placeholder {
    width: 38%;
    height: auto;
    align-self: stretch;
    flex-shrink: 0;
  }

  .school-list .school-card-body {
    width: 62%;
  }
}

@media (max-width: 767px) {
  .school-list .school-card-row {
    flex-direction: column !important;
  }
}

.school-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(43, 36, 34, 0.07);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.school-card:hover {
  box-shadow: 0 6px 16px rgba(43, 36, 34, 0.12);
  transform: translateY(-2px);
}

/* Nailx(is_featured)のみ、視線を一極集中させるためのリッチな強調デザイン。
   それ以外のライバル校は.school-card側の標準デザイン(背景白・枠線グレー)
   のまま、あえて何も加えず控えめな表示を保つ。 */
.school-card-featured {
  background: linear-gradient(135deg, #fff0f5 0%, #ffe3ee 50%, #fff7ec 100%);
  border: 3px solid var(--accent);
  box-shadow: 0 14px 34px rgba(194, 24, 91, 0.25);
}

.school-card-featured:hover {
  box-shadow: 0 18px 42px rgba(194, 24, 91, 0.32);
  transform: translateY(-3px);
}

.school-card-badge {
  margin: 0;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(90deg, #e91e63, #ad1457);
  color: #ffffff;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.school-card-row {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.school-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: #f0e6e2;
  flex-shrink: 0;
}

.school-card-image-contain {
  object-fit: contain;
  background: #ffffff;
}

.school-card-image-placeholder {
  background: linear-gradient(135deg, #f3e6ea, #f7ecef);
  display: flex;
  align-items: center;
  justify-content: center;
}

.school-card-image-placeholder::after {
  content: "NAIL SCHOOL";
  color: #c9a8b4;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.1em;
}

.school-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.school-card-body h3 { margin: 0.1rem 0 0.2rem; font-size: 1.05rem; line-height: 1.4; }
.school-card-body p { margin: 0; font-size: 0.85rem; line-height: 1.5; }

.btn-primary {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-top: auto;
  padding-top: 0.75rem;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.catchphrase {
  display: block;
  color: var(--accent);
  font-weight: bold;
  font-size: 0.8rem;
  margin: 0 0 0.3rem;
}

.follow-up {
  background: #fdeef3;
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1rem;
}

.chat-error {
  background: #fdecea;
  color: #7a2e26;
  border-left: 4px solid #d9534f;
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

.breadcrumb { font-size: 0.85rem; margin-bottom: 1rem; }
.breadcrumb a { color: var(--accent); text-decoration: none; }

.school-detail {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  padding-bottom: 1.5rem;
}

.school-detail-image {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  display: block;
  background: #f0e6e2;
}

.school-detail-image-contain {
  object-fit: contain;
  background: #ffffff;
}

.school-detail h1 {
  font-size: 1.5rem;
  margin: 1.25rem 1.5rem 0.3rem;
}

.school-detail > .catchphrase {
  font-size: 1rem;
  margin: 0 1.5rem 1rem;
}

.school-detail section, .school-detail .school-facts {
  margin: 1.25rem 1.5rem;
}

.school-detail h2 {
  font-size: 1.15rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.6rem;
  margin: 0 0 0.6rem;
}

.school-detail h3 {
  font-size: 0.95rem;
  margin: 0.8rem 0 0.3rem;
}

.school-detail p { line-height: 1.7; margin: 0.2rem 0; }

.school-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem 1.5rem;
  background: #faf5f3;
  border-radius: 6px;
  padding: 1rem 1.25rem;
}

.school-facts > div { display: flex; gap: 0.5rem; font-size: 0.9rem; }
.school-facts dt { font-weight: bold; white-space: nowrap; }
.school-facts dd { margin: 0; }

.fee-summary { display: flex; flex-direction: column; gap: 0.15rem; }
.fee-summary-line { display: block; }

.course-price-list {
  list-style: none;
  margin: 0.4rem 0 0.8rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.course-price-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  background: #faf5f3;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
}

.course-price-item--lowest { border-left-color: #7fb3a0; }

.course-price-label {
  font-weight: bold;
  font-size: 0.85rem;
  color: var(--accent);
  white-space: nowrap;
}

.course-price-item--lowest .course-price-label { color: #4c8a72; }

.course-price-value {
  font-weight: bold;
  font-size: 1.05rem;
}

.course-price-name {
  font-size: 0.85rem;
  color: #666;
}

.course-price-mini {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.15rem 0;
}

.course-price-mini-line {
  font-weight: bold;
  font-size: 0.85rem;
  line-height: 1.5;
}

.course-price-mini-line--recommended { color: var(--accent); }
.course-price-mini-line--lowest { color: #4c8a72; }

.detail-cta {
  margin: 1.5rem;
  text-align: center;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #ff6fa5, var(--accent) 70%);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-size: 1.05rem;
  box-shadow: 0 6px 18px rgba(194, 24, 91, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(194, 24, 91, 0.45);
}

.column-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1rem 0 1.5rem;
}

@media (min-width: 640px) {
  .column-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .column-grid { grid-template-columns: repeat(3, 1fr); }
}

.column-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(43, 36, 34, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.column-card:hover,
.column-card:focus-visible {
  box-shadow: 0 10px 24px rgba(43, 36, 34, 0.16);
  transform: translateY(-4px);
}

.column-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #f0e6e2;
  flex-shrink: 0;
}

.column-card-image.column-card-image-placeholder {
  background: linear-gradient(135deg, #ffd7e8 0%, #ffeef5 55%, #fff3cd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.column-card-image-placeholder::after {
  content: "";
  width: 56px;
  height: 56px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23c2185b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='17' y='5' width='14' height='6' rx='1.5'/%3E%3Crect x='19' y='11' width='10' height='6'/%3E%3Crect x='13' y='17' width='22' height='24' rx='5'/%3E%3Cpath d='M18 27c2.5 2 5 2 7.5 0s5-2 7.5 0'/%3E%3Cpath d='M18 33c2.5 2 5 2 7.5 0s5-2 7.5 0'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.6;
}

.column-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.column-card-body h3 {
  margin: 0.1rem 0 0.2rem;
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.45;
  color: var(--fg);
}

.column-date { color: #8a7a76; font-size: 0.8rem; margin: 0; }

.column-summary {
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.column-read-more {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.6rem 1.2rem;
}

.column-detail {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.column-detail-image {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  display: block;
  background: #f0e6e2;
}

.column-detail-body { padding: 1.5rem; }

.column-detail-body h1 { font-size: 1.5rem; margin: 0 0 0.4rem; }

.column-content { margin-top: 1.5rem; line-height: 1.8; }
.column-content h2 {
  font-size: 1.2rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.6rem;
  margin: 1.75rem 0 0.75rem;
}
.column-content h3 { font-size: 1rem; margin: 1.25rem 0 0.5rem; }
.column-content p { margin: 0 0 1rem; }

.column-content a:not(.btn-primary) {
  color: var(--accent);
  font-weight: bold;
}

.column-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1.5rem;
  font-size: 0.9rem;
  border: 1px solid #ddd;
}

.column-content th,
.column-content td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.column-content thead th {
  background: #f5f5f5;
  color: var(--fg);
  font-weight: bold;
}

.column-content tbody tr:nth-child(even) {
  background: #faf5f3;
}

/* 「JNA本部認定校」列(2列目、項目の直後)だけ特別扱いし、他ランクとの
   優位性を一目でわかるよう強調する。スマホで横スクロールせずとも
   ファーストビューで視認できるよう、最も訴求したいこの列を一覧の
   左側に配置している。ヘッダーはピンクのグラデーションでワンポイント、
   データセルは白背景+淡い影+ピンク枠線で「カードが浮き上がった」ような
   上品な立体感を出す(ベタ塗りで見づらくなるのを避ける)。 */
.column-content th:nth-child(2) {
  background: linear-gradient(135deg, #e91e63, #f48fb1);
  color: #ffffff;
  font-weight: bold;
}

.column-content td:nth-child(2) {
  background: #ffffff;
  border: 2px solid #f8bbd0;
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.15);
  font-weight: bold;
}

@media (max-width: 640px) {
  .column-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

.column-nailx-cta {
  margin: 2rem 0 0.5rem;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(135deg, #fdeef3, #fff3cd);
  border: 2px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(194, 24, 91, 0.14);
  text-align: center;
}

.column-nailx-cta-label {
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 1rem;
  color: var(--fg);
}

.column-nailx-cta-button {
  display: inline-block;
  box-sizing: border-box;
  margin-top: 0;
  min-width: 260px;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(194, 24, 91, 0.3);
}

@media (max-width: 767px) {
  .column-nailx-cta-button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 12px auto 0;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }
}

.cta-banner {
  margin-top: 2.5rem;
  padding: 2rem 1.75rem;
  background: linear-gradient(135deg, #fdeef3, #fff3cd);
  border: 2px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(194, 24, 91, 0.14);
  text-align: center;
}

.cta-banner-title {
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.cta-banner-text {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

.cta-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.cta-banner-buttons .btn-primary,
.cta-banner-buttons .btn-secondary {
  display: inline-block;
  margin-top: 0;
  min-width: 260px;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
}

.cta-banner-buttons .btn-primary {
  box-shadow: 0 4px 12px rgba(194, 24, 91, 0.3);
}

@media (max-width: 640px) {
  .cta-banner-buttons {
    flex-direction: column;
  }

  .cta-banner-buttons .btn-primary,
  .cta-banner-buttons .btn-secondary {
    width: 100%;
    min-width: 0;
  }
}

.btn-secondary {
  background: #fff;
  color: var(--accent);
  border: 2px solid var(--accent);
  font-weight: bold;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-secondary:hover { opacity: 0.85; transform: translateY(-1px); }

.about-page {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 1.5rem 1.5rem;
}

.about-page section { margin: 1.25rem 0; }

.about-page h2 {
  font-size: 1.1rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.6rem;
  margin: 0 0 0.6rem;
}

.about-page p { line-height: 1.7; margin: 0.2rem 0; }
.about-page a { color: var(--accent); }

.about-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem 1.5rem;
  background: #faf5f3;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 0;
}

.about-facts > div { display: flex; gap: 0.5rem; font-size: 0.9rem; }
.about-facts dt { font-weight: bold; white-space: nowrap; }
.about-facts dd { margin: 0; }

.star-icon { color: #f5a623; }

.google-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.3rem 0 0;
  padding: 0.25rem 0.65rem;
  background: #fff4d6;
  border: 1px solid #f0c14b;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.85rem;
  color: #7a5b00;
  line-height: 1.3;
}

.google-rating-badge .star-icon { font-size: 1rem; }
.google-rating-badge-label { font-weight: bold; }
.google-rating-badge-score { font-weight: bold; }

.google-rating-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  margin: 0.4rem 0 1rem;
  padding: 0.9rem 1.1rem;
  background: #fff4d6;
  border: 1px solid #f0c14b;
  border-radius: 10px;
}

.google-rating-card-label {
  font-weight: bold;
  font-size: 0.95rem;
  color: #7a5b00;
}

.google-rating-card-score {
  font-weight: bold;
  font-size: 1.8rem;
  color: var(--fg);
  line-height: 1;
}

.google-rating-card-stars {
  font-size: 1.3rem;
  color: #f5a623;
  letter-spacing: 0.1em;
  line-height: 1;
}

.reviews-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reviews-summary-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  background: #faf5f3;
  border-left: 4px solid #f5a623;
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.reviews-summary-item .check-icon {
  color: #3f9142;
  font-weight: bold;
  flex-shrink: 0;
}

.seo-content {
  margin-top: 2rem;
}

.seo-content h2 {
  font-size: 1.3rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.6rem;
  margin: 0 0 1.25rem;
}

.seo-content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .seo-content-grid { grid-template-columns: 1fr; }
}

.seo-content-card {
  background: #fdf8f9;
  border: 1px solid #f2d6dc;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.seo-content-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.seo-content-card-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.seo-content-card p { line-height: 1.9; margin: 0.4rem 0; }

.seo-content-list {
  margin: 0.6rem 0 0;
  padding-left: 1.4rem;
  line-height: 1.9;
}

.seo-content-list li { margin: 0.55rem 0; }

.data-disclaimer {
  margin: 24px 0 12px 0;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.7;
  color: #888888;
}

.faq-section {
  margin-top: 2.5rem;
}

.faq-section h2 {
  font-size: 1.3rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.6rem;
  margin: 0 0 1.25rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #fce4ec;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item[open] {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: bold;
  line-height: 1.6;
  color: var(--fg);
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: ""; }

.faq-question-text { flex: 1; }

.faq-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: bold;
  font-size: 0.85rem;
  line-height: 1;
}

.faq-badge-q { background: #e91e63; }
.faq-badge-a { background: #f48fb1; }

.faq-chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq-answer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: #fff8fa;
  border-top: 1px dashed #fce4ec;
  animation: faq-answer-fade-in 0.2s ease;
}

.faq-answer-text {
  flex: 1;
  margin: 0;
  line-height: 1.9;
  color: var(--fg);
}

@keyframes faq-answer-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 640px) {
  .faq-question { padding: 14px 16px; font-size: 0.95rem; gap: 10px; }
  .faq-answer { padding: 14px 16px; }
  .faq-badge { width: 24px; height: 24px; font-size: 0.8rem; }
}

/* スマホ専用の追従CTA(フローティングボタン)。CVR向上のため、総合
   おすすめNo.1のNailx詳細ページへの導線を常時表示する。PC幅では
   コンテンツの邪魔にならないよう非表示にする。 */
.floating-cta {
  display: none;
}

@media (max-width: 768px) {
  .floating-cta {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1000;
    background: var(--accent);
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(194, 24, 91, 0.35);
  }

  .floating-cta:active {
    opacity: 0.9;
  }

  body {
    padding-bottom: 64px;
  }
}
