@charset "UTF-8";

/* ================================
   ベース
================================ */
:root {
    --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --bg: #f5f3ef;
    --card: #ffffff;
    --accent: #502d16;
    --accent-light: #3f7aa8;
    --border: #ddd;
    --text: #333;
}

/* 横スクロール完全防止 */
html, body {
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background: var(--bg);
    margin: 0;
    padding: 0;
    color: var(--text);
    line-height: 1.7;
}

/* ================================
   共通 wrapper（top/detail 両方）
================================ */
.wrapper,
.container,
.detail-wrapper {
    width: 96%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 16px;
    position: relative;
}

h1 {
    margin-left: .5em;
}

/* ================================
   アコーディオン（top）
================================ */
.section-title {
    font-size: 22px;
    cursor: pointer;
    padding: 10px;
    background: #ddd;
    border-radius: 8px;
    margin:20px 5% 0;
}

.sub-title {
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    background: #fafafa;
    border-radius: 6px;
    margin:10px 0 0 3%;
    width: 97%;
}

.content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 5%;
}

.content.open {
    max-height: 2000px;
}

/* ================================
   グリッド（top）
================================ */
.grid-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 10px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.grid-item img {
    width: 100%;
    border-radius: 10px;
}

/* ================================
   detail：画像・情報ブロック
================================ */
.detail-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
    display: block;
}

.detail-info {
    font-size: 14px;
    color: #666;
    line-height: 1.9;
    margin-bottom: 20px;
}

/* ================================
   キャラクターボタン
================================ */
.char-buttons {
    margin: 20px 0 30px;
}

.char-buttons a {
    display: inline-block;
    padding: 6px 14px;
    margin: 4px 8px 12px 0;
    background: #fafafa;
    border: 1px solid #d8cbb8;
    border-radius: 6px;
    font-size: 14px;
    color: #5a4632;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.char-buttons a:hover {
    opacity: 0.6;
}

/* ================================
   メモ（top/detail 共通）
================================ */
.memo-text {
    width: 96%;
    max-width: 900px;
    margin: 40px auto 60px;
    font-size: 14px;
    line-height: 1.9;
    color: #666;
    white-space: pre-line;
}

.ad-label {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-bottom: 4px;
}

/* ================================
   SNS
================================ */
.sns-share {
  text-align: center;
  margin-top: 32px;
  margin-bottom: 24px;
  opacity: 0.9;
}

.sns-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #5a4632;
  font-size: 16px;
}

.sns-title::before,
.sns-title::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #5a4632;
  margin: 0 1em;
}

.sns-title span {
  background: var(--bg);
}

.sns-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.sns-icons img {
  width: 50px;
  height: 50px;
  border: 1px solid #d8cbb8;
  border-radius: 50%;
  padding: 4px;
  transition: opacity 0.25s ease;
}

.sns-icons img:hover {
  opacity: 0.6;
}

/* ================================
   フッター
================================ */
.footer-wrapper {
    text-align: center;
    padding: 10px 0 40px;
    color: #5a4632;
    font-size: 14px;
    opacity: 0.85;
}

.footer-home {
    display: inline-block;
    margin-bottom: 5px;
    font-size: 15px;
    text-decoration: none;
    color: #5a4632;
}

.footer-home:hover {
    opacity: 0.7;
}

.footer-links a {
    color: #5a4632;
    text-decoration: none;
}

.footer-links a:hover {
    opacity: 0.7;
}

.sep {
    margin: 0 6px;
    opacity: 0.6;
}
