:root {
  --vermilion: #9f2f24;
  --vermilion-dark: #672019;
  --forest: #173f32;
  --forest-deep: #0f2d25;
  --moss: #6f8466;
  --gold: #c6a457;
  --gold-light: #e1cb8b;
  --ink: #252c28;
  --text-secondary: #58625c;
  --paper: #fbf8ec;
  --paper-deep: #eee8d5;
  --border: rgba(61, 79, 66, 0.22);
  --shadow: 0 24px 70px rgba(15, 45, 37, 0.22);
}

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

html {
  scroll-behavior: smooth;
}

body.shinshi-theme {
  min-height: 100vh;
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: var(--ink);
  padding: 28px 20px;
  background:
    radial-gradient(circle at 12% 14%, rgba(225, 203, 139, 0.17) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 8%, rgba(225, 203, 139, 0.13) 0 2px, transparent 3px),
    linear-gradient(rgba(9, 35, 28, 0.12), rgba(9, 35, 28, 0.12)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 22px),
    linear-gradient(145deg, #0d2b23 0%, #184536 48%, #0b251e 100%);
  background-size: auto, auto, auto, auto, auto;
}

.container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(225, 203, 139, 0.52);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.container::before,
.container::after {
  content: '';
  position: absolute;
  z-index: 5;
  pointer-events: none;
}

.container::before {
  inset: 10px;
  border: 1px solid rgba(159, 47, 36, 0.18);
}

.container::after {
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--vermilion-dark), var(--vermilion), var(--gold), var(--vermilion), var(--vermilion-dark));
}

.header {
  position: relative;
  isolation: isolate;
  min-height: 330px;
  padding: 82px 40px 76px;
  overflow: hidden;
  text-align: center;
  color: #fffaf0;
  background:
    linear-gradient(rgba(8, 35, 28, 0.16), rgba(8, 35, 28, 0.46)),
    radial-gradient(circle at 50% 6%, rgba(235, 216, 157, 0.28), transparent 34%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 34px),
    linear-gradient(145deg, #245342 0%, #163d31 48%, #0d2d25 100%);
}

.header::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 36px;
  left: 50%;
  width: 250px;
  height: 206px;
  transform: translateX(-50%);
  opacity: 0.92;
  background:
    linear-gradient(var(--vermilion), var(--vermilion)) 27px 26px / 196px 18px no-repeat,
    linear-gradient(var(--vermilion), var(--vermilion)) 48px 45px / 154px 13px no-repeat,
    linear-gradient(90deg, var(--vermilion-dark), var(--vermilion)) 63px 54px / 18px 136px no-repeat,
    linear-gradient(90deg, var(--vermilion), var(--vermilion-dark)) 169px 54px / 18px 136px no-repeat,
    linear-gradient(90deg, transparent 0 11px, var(--gold) 11px 15px, transparent 15px) 58px 92px / 134px 36px no-repeat;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.22));
}

.header::after {
  content: '神使';
  position: absolute;
  right: 30px;
  bottom: 24px;
  color: rgba(255, 250, 240, 0.10);
  font-family: 'Shippori Mincho', 'Yu Mincho', serif;
  font-size: 5.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
}

.app-title,
.app-subtitle,
.app-lead {
  position: relative;
  z-index: 2;
}

.app-title {
  font-family: 'Shippori Mincho', 'Yu Mincho', serif;
  font-size: clamp(2rem, 5.2vw, 3.25rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-shadow: 0 3px 18px rgba(0,0,0,0.42);
}

.app-title::before,
.app-title::after {
  content: '◆';
  display: inline-block;
  margin: 0 0.45em;
  color: var(--gold-light);
  font-size: 0.34em;
  vertical-align: middle;
}

.app-subtitle {
  margin-top: 18px;
  font-family: 'Shippori Mincho', 'Yu Mincho', serif;
  font-size: 1.05rem;
  letter-spacing: 0.28em;
}

.app-lead {
  display: inline-block;
  margin-top: 26px;
  padding: 8px 22px;
  border-top: 1px solid rgba(225, 203, 139, 0.76);
  border-bottom: 1px solid rgba(225, 203, 139, 0.76);
  color: #f7ecd0;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

.content {
  position: relative;
  padding: 58px 54px;
  background:
    linear-gradient(rgba(251,248,236,0.93), rgba(251,248,236,0.93)),
    repeating-linear-gradient(0deg, rgba(70,82,70,0.035) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(159,47,36,0.025) 0 1px, transparent 1px 11px);
}

.section {
  margin-bottom: 56px;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  color: var(--forest-deep);
  font-family: 'Shippori Mincho', 'Yu Mincho', serif;
  font-size: 1.65rem;
  letter-spacing: 0.08em;
}

.section-title::before {
  content: '';
  width: 10px;
  height: 34px;
  background: var(--vermilion);
  box-shadow: 5px 5px 0 rgba(198, 164, 87, 0.34);
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(198,164,87,0.85), transparent);
}

.app-info,
.company-info,
.contact-info {
  position: relative;
  overflow: hidden;
  padding: 38px 40px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.68), transparent 45%),
    linear-gradient(180deg, #fffdf4 0%, #f3eedf 100%);
  box-shadow: 9px 9px 0 rgba(23, 63, 50, 0.07);
}

.app-info::before,
.company-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--vermilion), var(--gold), var(--forest));
}

.app-info::after {
  content: '狐　鹿　牛　猿　鳩';
  position: absolute;
  right: -7px;
  top: 52px;
  color: rgba(23, 63, 50, 0.055);
  font-family: 'Shippori Mincho', 'Yu Mincho', serif;
  font-size: 1.6rem;
  letter-spacing: 0.22em;
  writing-mode: vertical-rl;
  pointer-events: none;
}

.app-info p {
  position: relative;
  z-index: 1;
  max-width: 690px;
  margin-bottom: 17px;
  color: var(--text-secondary);
  line-height: 2;
}

.app-info p:first-child {
  color: var(--forest-deep);
  font-family: 'Shippori Mincho', 'Yu Mincho', serif;
  font-size: 1.12rem;
  font-weight: 600;
}

.description-content {
  position: relative;
  z-index: 1;
  margin-top: 34px;
  padding: 26px 28px 8px;
  border-top: 1px solid rgba(198,164,87,0.52);
  border-bottom: 1px solid rgba(198,164,87,0.34);
  background: rgba(255,255,255,0.4);
}

.description-content h4 {
  margin: 0 0 10px;
  color: var(--vermilion-dark);
  font-family: 'Shippori Mincho', 'Yu Mincho', serif;
  font-size: 1.06rem;
  letter-spacing: 0.05em;
}

.description-content h4:not(:first-child) {
  margin-top: 25px;
}

.description-content h4::before {
  content: '⛩';
  margin-right: 9px;
  color: var(--vermilion);
  font-size: 0.92em;
}

.description-content p {
  margin-bottom: 18px;
}

.section > h3 {
  margin-top: 34px;
  color: var(--forest);
  font-family: 'Shippori Mincho', 'Yu Mincho', serif;
  font-size: 1.22rem;
  letter-spacing: 0.08em;
}

.features-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  list-style: none;
}

.features-list li {
  position: relative;
  padding: 16px 20px 16px 52px;
  border-left: 3px solid var(--vermilion);
  color: var(--text-secondary);
  line-height: 1.75;
  background: rgba(111,132,102,0.08);
}

.features-list li::before {
  content: '神';
  position: absolute;
  left: 15px;
  top: 14px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(159,47,36,0.54);
  color: var(--vermilion);
  font-family: 'Shippori Mincho', 'Yu Mincho', serif;
  font-size: 0.74rem;
  line-height: 22px;
  text-align: center;
  transform: rotate(-4deg);
}

.company-info h3,
.contact-info h3 {
  margin-bottom: 20px;
  color: var(--forest);
  font-family: 'Shippori Mincho', 'Yu Mincho', serif;
  font-size: 1.16rem;
}

.company-details {
  display: grid;
  gap: 10px;
}

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

.company-details strong {
  display: inline-block;
  min-width: 7.4em;
  color: var(--ink);
  font-weight: 700;
}

.keyword-box,
.section-content {
  margin-top: 28px;
  padding: 24px 26px;
  border: 1px solid var(--border);
  background: rgba(111,132,102,0.08);
}

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

.keywords,
.section-content p,
.section-content ul {
  color: var(--text-secondary);
  line-height: 1.9;
}

.section-content ul {
  padding-left: 1.4em;
}

.policy-title {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 18px;
  border: 1px solid rgba(225,203,139,0.58);
  color: #f7ecd0;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.18em;
}

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

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

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

@media (max-width: 768px) {
  body.shinshi-theme {
    padding: 12px;
  }

  .container::before {
    inset: 6px;
  }

  .header {
    min-height: 285px;
    padding: 70px 20px 60px;
  }

  .header::before {
    top: 34px;
    transform: translateX(-50%) scale(0.82);
  }

  .header::after {
    right: 10px;
    bottom: 18px;
    font-size: 3.5rem;
  }

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

  .app-title::before,
  .app-title::after {
    margin: 0 0.22em;
  }

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

  .content {
    padding: 36px 24px;
  }

  .app-info,
  .company-info,
  .contact-info {
    padding: 30px 22px;
    box-shadow: 5px 5px 0 rgba(23, 63, 50, 0.07);
  }

  .app-info::after {
    display: none;
  }

  .description-content {
    padding: 22px 18px 5px;
  }

  .company-details strong {
    display: block;
    min-width: 0;
    margin-bottom: 2px;
  }
}

@media (max-width: 430px) {
  .app-title {
    font-size: 1.8rem;
  }

  .app-title::before,
  .app-title::after {
    display: none;
  }

  .app-subtitle {
    font-size: 0.92rem;
  }

  .app-lead {
    padding-inline: 10px;
    font-size: 0.82rem;
  }

  .content {
    padding-inline: 18px;
  }

  .section-title {
    font-size: 1.4rem;
  }
}
