:root {
  --brand: #ea7658;
  --dark: #d65f42;
  --soft: #fff2ed;
  --ink: #272421;
  --muted: #746e69;
  --line: #eee6e0;
  --shadow: 0 12px 35px rgba(117, 78, 58, .08);
}

* { box-sizing: border-box; }

/* [hidden]はCSSの詳細度によって他のクラスのdisplay指定に負けることがあるため、常に最優先で隠す */
[hidden] { display: none !important; }

/* 実サイト側にもbody/headerセレクタがあり、あとから読み込まれるうちの方が上書きしてしまうため、
   スタンドアロン表示(groupage_faq_public)専用のクラス名にスコープしている */
.faq-page {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.8;
}

.faq-page a { color: inherit; }
.faq-page button, .faq-page input { font: inherit; }

.faq-header {
  border-top: 8px solid var(--brand);
  background: #fff;
}

.head {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 35px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .14em;
}

.logo b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid;
  border-radius: 50%;
  font-size: 12px;
}

.head nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
}

.head nav a {
  text-decoration: none;
  font-size: 12px;
}

.hero {
  min-height: 350px;
  position: relative;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(80, 49, 30, .15), rgba(80, 49, 30, .15)),
    linear-gradient(110deg, #d8b58b, #8f6d50 35%, #cda46f 70%, #5d4738);
  overflow: hidden;
}

.hero.small { min-height: 260px; }

.hero-box {
  position: relative;
  z-index: 2;
  width: min(520px, calc(100% - 40px));
  padding: 28px 42px;
  text-align: center;
  color: white;
  background: rgba(226, 106, 76, .86);
}

.hero-box i {
  font-family: cursive;
  font-size: 42px;
}

.hero-box hr {
  border: 0;
  border-top: 2px solid rgba(255, 255, 255, .85);
}

.wave {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -76px;
  height: 150px;
  background: white;
  border-radius: 50% 48% 0 0;
  transform: rotate(-1deg);
}

.wrap {
  width: min(980px, calc(100% - 40px));
  margin: auto;
}

.intro {
  padding: 72px 0 36px;
  text-align: center;
}

.rays {
  width: 78px;
  height: 34px;
  margin: 0 auto;
  background: repeating-conic-gradient(from 248deg at 50% 100%, var(--brand) 0 2deg, transparent 2deg 8deg);
  clip-path: inset(0 0 50% 0);
}

.intro h1 { font-size: 22px; }
.intro h1 span { font-size: 27px; margin-right: 10px; }
.intro p { font-weight: 600; }

.controls { padding: 60px 0; }

.search-row {
  max-width: 900px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search {
  flex: 1;
  min-height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #ded6d0;
  border-radius: 10px;
  background:#fff;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  /* iOSは16px未満のinput/selectにフォーカスすると画面を自動ズームするため、それを防ぐ */
  font-size: 16px;
}

/* iOS/AndroidのネイティブUIだとmin-heightが無視されて薄く表示されるため、
   appearanceをリセットして矢印も自前で描画し、どの端末でも同じ見た目にする */
.shop-filter,
.cat-filter {
  -webkit-appearance: none;
  appearance: none;
  line-height: 58px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23272421' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 38px;
}

.shop-filter {
  min-height: 58px;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 16px;
  border: 1px solid #ded6d0;
  border-radius: 10px;
  background-color: #fff;
  color: var(--ink);
  /* iOSは16px未満のinput/selectにフォーカスすると画面を自動ズームするため、それを防ぐ */
  font-size: 16px;
  cursor: pointer;
}

.search-button {
  flex: 0 0 auto;
  min-height: 58px;
  padding: 0 32px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.search-button:hover { background: var(--dark); }

/* スマホ幅専用のカテゴリプルダウン。PC幅ではタブを使うのでここでは隠す */
.cat-filter {
  display: none;
  min-height: 58px;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 16px;
  border: 1px solid #ded6d0;
  border-radius: 10px;
  background-color: #fff;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
}

.cats-label {
  margin: 32px 0 14px;
  color: var(--dark);
  font-weight: 700;
  font-size: 19px;
}

.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.cats button {
  min-height: 68px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 7px 20px rgba(92, 63, 46, .04);
}

.cats button i {
  margin-right: 6px;
}

.cats button:hover,
.cats button.active {
  color: white;
  border-color: var(--brand);
  background: var(--brand);
}

.heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
}

.heading span {
  width: 150px;
  height: 2px;
  background: #222;
}

.heading h2 { font-size: 20px; }

.related-results-heading {
  margin-top: 36px;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.related-results-heading span { display: none; }

.related-results-heading h2 {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.faq-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 60px 0;
  color: var(--muted);
  font-size: 14px;
}

.faq-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: faq-spin 0.8s linear infinite;
}

@keyframes faq-spin {
  to { transform: rotate(360deg); }
}

.list {
  display: grid;
  gap: 12px;
}

.list-more {
  width: fit-content;
  margin: 4px auto 0;
  padding: 12px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--dark);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.list-more:hover { background: var(--soft); }

/* 実サイトのstyle.cssに.itemという別定義(position:absoluteなど)があり衝突するため、faq-item名にしている */
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.row {
  min-height: 68px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 16px;
}

.q, .amark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--brand);
  background: var(--soft);
  font-weight: 700;
}

.title {
  text-decoration: none;
  font-weight: 700;
}

.title:hover { color: var(--dark); }

.meta {
  font-size: 12px;
  color: var(--muted);
}

.plus {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #d8d0ca;
  border-radius: 50%;
  text-decoration: none;
  font-size: 19px;
}

.empty {
  text-align: center;
  padding: 40px;
}

.fallback-note {
  margin: -8px 0 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.contact {
  margin-top: 70px;
  margin-bottom: 74px;
  padding: 38px 50px;
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 36px;
  border-radius: 18px;
  background: linear-gradient(100deg, #fff4ef, #fffaf7);
}

.face {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--brand);
  font-size: 48px;
}

.contact h2 { font-size: 18px; }

.actions {
  display: flex;
  gap: 16px;
}

.actions a {
  min-width: 220px;
  padding: 14px 24px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}

.primary {
  color: white;
  background: var(--brand);
}

.outline {
  color: var(--brand);
  border: 1px solid var(--brand);
  background: white;
}

/* 実サイトのstyle.cssにも(空だが)footerセレクタがあり、本物のfooter要素にも効いてしまうためfaq-footer名にしている */
.faq-footer {
  padding: 28px;
  text-align: center;
  color: white;
  background: #4a443f;
}

.crumb {
  padding: 42px 0 20px;
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.crumb a { color: var(--dark); }

.detail {
  max-width: 860px;
  padding: 26px 0 68px;
}

.tag {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--dark);
  background: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

.detail h1 {
  margin: 18px 0 34px;
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.45;
}

.answer {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf7;
}

.answer p { margin: 0 0 18px; }

/* 回答欄に管理画面から挿入されるカード型リンク(背景色付きの回答エリアでも見分けやすいよう白背景にする) */
.answer-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: .15s ease;
  cursor: pointer;
}
.answer-link-card:hover { border-color: var(--brand); }
.answer-link-card-thumb { flex: 0 0 auto; width: 180px; height: 150px; border-radius: 10px; object-fit: cover; }
.answer-link-card-body { flex: 1; min-width: 0; }
.answer-link-card-title { display: block; color: var(--dark); font-weight: 700; margin-bottom: 6px; }
.answer-link-card-desc { display: block; color: var(--muted); font-size: 13px; }

.detailnav {
  margin-top: 34px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.detailnav a {
  color: var(--dark);
  font-weight: 700;
}

.related { padding-bottom: 70px; }

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cards a {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.cards small {
  display: block;
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .head nav { display: none; }
  .head { justify-content: center; }
  .cats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .logo { font-size: 11px; }
  .hero { min-height: 250px; }
  .intro { padding-top: 58px; }
  .intro p br { display: none; }
  .controls { padding: 40px 0; }
  .search-row { flex-direction: column; align-items: stretch; }
  .shop-filter { width: 100%; }
  .search-button { width: 100%; }
  .heading span { width: 55px; }
  /* タブ数が多く横スクロールも見づらいので、スマホ幅ではタブを隠してプルダウンに切り替える */
  .cats { display: none; }
  .cat-filter { display: block; width: 100%; }
  .contact {
    grid-template-columns: 1fr;
    padding: 30px 22px;
    text-align: center;
  }
  .face { margin: auto; }
  .actions { flex-direction: column; }
  .actions a { min-width: 0; }
  .answer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px;
  }
  .answer-link-card { gap: 12px; padding: 10px 12px; }
  .answer-link-card-thumb { width: 100px; height: 100px; }
  .detailnav { flex-direction: column; }
  .cards { grid-template-columns: 1fr; }
}
