:root {
  --primary-color: #8A5A4A;      /* 古い木箱を思わせる茶 */
  --secondary-color: #5F3B2F;    /* 深い栗茶 */
  --accent-color: #DFA6A8;       /* 柔らかな桃色 */
  --rose-color: #C97886;         /* 人形の頬のような紅 */
  --gold-color: #C7A15A;         /* 古道具の金彩 */
  --text-primary: #34241F;
  --text-secondary: #654F46;
  --bg-primary: #F8EDE5;         /* 淡い生成り */
  --bg-secondary: #EFD8D3;       /* 柔らかな桃鼠 */
  --paper-color: #FFF9EF;        /* 和紙の白 */
  --border-light: rgba(138,90,74,0.22);
  --shadow-medium: 0 14px 38px rgba(83,49,38,0.18);
}

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

body.ukiyoneko-theme,
body.kingyo-theme,
body.ningyo-theme {
  font-family: 'Zen Kaku Gothic New','Hiragino Kaku Gothic ProN','Yu Gothic',sans-serif;
  background:
    radial-gradient(900px 560px at 12% 10%, rgba(255,249,239,0.82), transparent 58%),
    radial-gradient(760px 480px at 92% 18%, rgba(223,166,168,0.26), transparent 60%),
    radial-gradient(900px 620px at 50% 100%, rgba(138,90,74,0.15), transparent 64%),
    repeating-linear-gradient(
      90deg,
      rgba(95,59,47,0.045) 0px,
      rgba(95,59,47,0.045) 1px,
      transparent 1px,
      transparent 18px
    ),
    linear-gradient(to bottom, var(--bg-primary) 0%, #FFF9EF 44%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  padding: 20px;
}

/* ===== コンテナ ===== */

.container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255,249,239,0.97);
  border-radius: 24px;
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

/* ===== ヘッダー ===== */

.header {
  position: relative;
  background:
    radial-gradient(520px 260px at 18% 22%, rgba(255,249,239,0.26), transparent 56%),
    radial-gradient(480px 280px at 82% 70%, rgba(223,166,168,0.30), transparent 58%),
    repeating-linear-gradient(
      45deg,
      rgba(255,249,239,0.08) 0px,
      rgba(255,249,239,0.08) 2px,
      transparent 2px,
      transparent 14px
    ),
    linear-gradient(150deg, #A87561 0%, #8A5A4A 46%, #5F3B2F 100%);
  color: #FFF9EF;
  padding: 66px 40px 62px;
  text-align: center;
  overflow: hidden;
}

/* 古い畳縁・和紙風の飾り */
.header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 18px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,249,239,0.92) 0px,
      rgba(255,249,239,0.92) 16px,
      rgba(223,166,168,0.88) 16px,
      rgba(223,166,168,0.88) 28px,
      rgba(199,161,90,0.72) 28px,
      rgba(199,161,90,0.72) 34px
    );
  opacity: 0.9;
}

.header::after {
  content: "人形";
  position: absolute;
  right: 28px;
  bottom: 22px;
  font-family: 'Shippori Mincho','Yu Mincho',serif;
  font-size: 4.6rem;
  line-height: 1;
  letter-spacing: 0.08em;
  color: rgba(255,249,239,0.14);
  pointer-events: none;
  writing-mode: vertical-rl;
}

.app-title {
  font-family: 'Shippori Mincho','Yu Mincho',serif;
  font-size: clamp(1.85rem, 4.6vw, 2.8rem);
  letter-spacing: 0.10em;
  text-shadow: 0 2px 14px rgba(54,31,24,0.28);
  position: relative;
}

.app-subtitle {
  margin-top: 18px;
  font-size: 1rem;
  letter-spacing: 0.22em;
  opacity: 0.94;
  position: relative;
}

.app-lead {
  display: inline-block;
  margin-top: 18px;
  padding: 7px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,249,239,0.46);
  background: rgba(95,59,47,0.28);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  position: relative;
}

/* ===== コンテンツ ===== */

.content {
  padding: 50px;
}

.section {
  margin-bottom: 50px;
}

/* 見出し */

.section-title {
  font-family: 'Shippori Mincho','Yu Mincho',serif;
  font-size: 1.6rem;
  margin-bottom: 25px;
  padding-left: 18px;
  border-left: 5px solid var(--primary-color);
  color: var(--secondary-color);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 120px;
  height: 8px;
  margin-top: 10px;
  background:
    radial-gradient(18px 7px at 9px 7px, transparent 56%, rgba(223,166,168,0.52) 58%, rgba(223,166,168,0.52) 68%, transparent 70%) 0 0 / 36px 8px repeat-x;
}

/* ===== アプリ説明ブロック ===== */

.app-info {
  background:
    radial-gradient(520px 220px at 85% 8%, rgba(223,166,168,0.18), transparent 58%),
    radial-gradient(260px 180px at 8% 92%, rgba(199,161,90,0.12), transparent 60%),
    linear-gradient(to bottom, rgba(255,249,239,0.98), rgba(248,237,229,0.86));
  padding: 35px;
  border-radius: 18px;
  border: 1px solid rgba(138,90,74,0.18);
  border-top: 3px solid var(--primary-color);
  position: relative;
  overflow: hidden;
}

.app-info::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 1px solid rgba(138,90,74,0.16);
  box-shadow:
    0 0 0 14px rgba(223,166,168,0.08),
    0 0 0 28px rgba(199,161,90,0.045);
  pointer-events: none;
}

.app-info::after {
  content: "✿";
  position: absolute;
  right: 49px;
  top: 54px;
  color: rgba(201,120,134,0.22);
  font-size: 2.2rem;
  pointer-events: none;
}

.app-info p {
  line-height: 2.0;
  margin-bottom: 16px;
  color: var(--text-secondary);
  position: relative;
}

.description-content {
  margin-top: 28px;
  padding-top: 8px;
}

.description-content h4 {
  font-family: 'Shippori Mincho','Yu Mincho',serif;
  color: var(--secondary-color);
  margin-top: 24px;
  margin-bottom: 10px;
  padding-left: 16px;
  border-left: 3px solid var(--accent-color);
}

.description-content h4::before {
  content: "◇";
  color: var(--rose-color);
  margin-right: 8px;
  font-size: 0.82em;
}

.description-content p {
  margin-bottom: 0;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ===== 特徴リスト ===== */

.features-list {
  list-style: none;
  margin-top: 25px;
}

.features-list li {
  position: relative;
  padding-left: 42px;
  margin: 12px 0;
  color: var(--text-secondary);
  line-height: 1.75;
}

.features-list li::before {
  content: "✿";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--rose-color);
  font-weight: 700;
}

/* ===== キーワード ===== */

.keyword-box {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid rgba(138,90,74,0.18);
  background:
    radial-gradient(420px 160px at 100% 0%, rgba(223,166,168,0.16), transparent 58%),
    linear-gradient(to bottom, rgba(248,237,229,0.84), rgba(255,249,239,0.94));
}

.keyword-box h3 {
  font-family: 'Shippori Mincho','Yu Mincho',serif;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.keywords {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ===== 運営情報 ===== */

.company-info,
.contact-info {
  background:
    linear-gradient(to bottom, rgba(255,249,239,0.98), rgba(248,237,229,0.86));
  padding: 35px;
  border-radius: 18px;
  border: 1px solid rgba(138,90,74,0.18);
  border-top: 3px solid var(--primary-color);
}

.company-info h3,
.contact-info h3 {
  font-family: 'Shippori Mincho','Yu Mincho',serif;
  color: var(--secondary-color);
  margin-bottom: 18px;
}

.company-details p {
  line-height: 2.0;
  color: var(--text-secondary);
}

/* ===== 日付 ===== */

.date-info {
  margin-top: 40px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===== フェードイン ===== */

.fade-in {
  animation: fadeIn 0.6s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== プライバシーポリシー専用 ===== */

.policy-title {
  margin-top: 16px;
  font-family: 'Zen Kaku Gothic New','Hiragino Kaku Gothic ProN','Yu Gothic',sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  opacity: 0.88;
  border: 1px solid rgba(255,255,255,0.38);
  display: inline-block;
  padding: 6px 20px;
  border-radius: 999px;
  background: rgba(95,59,47,0.22);
  position: relative;
}

.section-content {
  background: rgba(248,237,229,0.72);
  padding: 25px;
  border-radius: 10px;
  border-left: 3px solid var(--primary-color);
}

.section-content p {
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

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

.section-content ul {
  margin-top: 10px;
  padding-left: 22px;
  color: var(--text-secondary);
  line-height: 2.0;
}

/* ===== モバイル対応 ===== */

@media (max-width: 768px) {
  body.ukiyoneko-theme,
  body.kingyo-theme,
  body.ningyo-theme {
    padding: 12px;
  }

  .content {
    padding: 28px 22px;
  }

  .header {
    padding: 48px 22px 50px;
  }

  .header::after {
    right: 14px;
    bottom: 20px;
    font-size: 3.4rem;
  }

  .app-title {
    letter-spacing: 0.06em;
  }

  .app-subtitle {
    letter-spacing: 0.12em;
  }

  .app-lead {
    letter-spacing: 0.06em;
  }

  .app-info,
  .company-info,
  .contact-info {
    padding: 24px 20px;
  }
}
