:root {
  --primary-color: #2d4059;
  --accent-color: #d4af37;
  --bg-color: #faf9f6;
  --text-color: #333333;
  --light-gray: #f0f0f0;
  --white: #ffffff;
  --font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  --font-serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-base);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}
a:hover {
  opacity: 0.7;
}
ul {
  list-style: none;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.site-header {
  background-color: rgba(45, 64, 89, 0.8);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border-bottom: none;
  box-shadow: none;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--white);
  letter-spacing: 0.05em;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  position: relative;
}

.nav-highlight {
  color: var(--accent-color) !important;
  font-weight: bold !important;
}

.mobile-menu-btn {
  display: none;
}

.hero-section {
  background: linear-gradient(135deg, #2d4059 0%, #4b6e96 100%);
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-highlight {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--accent-color);
  padding: 1rem 2rem;
  border-radius: 50px;
  color: var(--white);
  font-weight: bold;
  margin-top: 1rem;
  display: inline-block;
  opacity: 0.95;
}

.hero-highlight .tag-tensha,
.hero-highlight .tag-manbai,
.hero-highlight .tag-tora,
.hero-highlight .tag-taian {
  background: none;
  padding: 0 0.1em;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}
.hero-highlight .tag-tensha {
  color: #ffd700;
}
.hero-highlight .tag-manbai {
  color: #b4e8a0;
}
.hero-highlight .tag-tora {
  color: #ffc857;
}
.hero-highlight .tag-taian {
  color: #ff9b9b;
}

.hero-sp-break {
  display: none;
}

.section-quick-start {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.section-title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 3rem;
}

.section-title span {
  display: block;
  font-size: 1rem;
  color: #888;
  margin-top: 0.5rem;
  font-family: var(--font-base);
}

.accordion-container {
  margin-bottom: 4rem;
}

.accordion-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.accordion-header {
  padding: 1.2rem 1.5rem;
  background: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.2s;
}

.accordion-header:hover {
  background-color: #f9f9f9;
}

.accordion-header::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform 0.3s;
}

.accordion-item.active .accordion-header::after {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #fafafa;
  border-top: 1px solid transparent;
}

.accordion-item.active .accordion-content {
  border-top-color: #eee;
}

.content-inner {
  padding: 1.5rem;
}

.kaiun-list dt {
  font-weight: bold;
  color: var(--primary-color);
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
}
.kaiun-list dt::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
  margin-right: 8px;
}
.kaiun-list dd {
  margin-left: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.scene-guide-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.scene-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 2rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.scene-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.scene-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.scene-desc {
  font-size: 0.85rem;
  color: #666;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
    font-size: 1.5rem;
  }
  .mobile-menu-btn {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    color: var(--white);
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(45, 64, 89, 0.98);
    z-index: 1001;
    justify-content: center;
    align-items: center;
  }

  .main-nav.nav-open {
    display: flex;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }
  .main-nav a {
    font-size: 1.2rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }
  .scene-guide-nav {
    grid-template-columns: 1fr;
  }
  .hero-sp-break {
    display: block;
  }
}

.section-calendar {
  background-color: var(--white);
  padding: 5rem 1.5rem;
  border-top: 1px solid #f0f0f0;
}

.sub-heading {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin: 4rem 0 1.5rem;
  border-left: 5px solid var(--accent-color);
  padding-left: 1rem;
  font-family: var(--font-serif);
}

.king-tags span,
.tensha-meta span {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.tag-tensha {
  background-color: var(--accent-color);
  color: #fff;
}
.tag-manbai {
  background-color: #6b8c42;
  color: #fff;
}
.tag-tora {
  background-color: #e6b422;
  color: #fff;
  background: linear-gradient(45deg, #ffd700, #fdb931);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.tag-taian {
  background-color: #e57373;
  color: #fff;
}

.king-day-card {
  background: linear-gradient(135deg, #fffbf0 0%, #fff 100%);
  border: 2px solid var(--accent-color);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
  position: relative;
  margin-bottom: 3rem;
  overflow: hidden;
}

.king-day-card::before {
  content: "★";
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 10rem;
  color: var(--accent-color);
  opacity: 0.05;
  transform: rotate(15deg);
}

.king-badge {
  background-color: var(--accent-color);
  color: #fff;
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.king-date {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: bold;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 1rem;
}

.king-day-of-week {
  font-size: 1.5rem;
  margin-left: 0.5rem;
  color: #888;
}

.king-desc {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
}

.tensha-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.tensha-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.5rem;
  background-color: #fff;
  transition: transform 0.3s;
}

.tensha-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tensha-card.attention {
  border-color: #ddd;
  background-color: #fcfcfc;
}

.tensha-date {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.tensha-date .dow {
  font-size: 1rem;
  margin-left: 0.5rem;
  color: #888;
}

.tensha-note {
  font-size: 0.9rem;
  color: #666;
  margin-top: 1rem;
  line-height: 1.6;
}

.note-small {
  display: block;
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.5rem;
}

.manbai-list-container {
  background-color: #fafafa;
  border-radius: 12px;
  padding: 2rem;
}

.month-row {
  display: flex;
  border-bottom: 1px solid #eee;
  padding: 0.8rem 0;
}

.month-row:last-child {
  border-bottom: none;
}

.month-label {
  width: 60px;
  font-weight: bold;
  color: var(--primary-color);
  font-family: var(--font-serif);
}

.days-list {
  flex: 1;
  font-family: var(--font-base);
  color: #444;
  letter-spacing: 0.05em;
}

.highlight-day {
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.1em;
}

.disclaimer {
  text-align: right;
  font-size: 0.8rem;
  color: #999;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .king-date {
    font-size: 3rem;
  }
  .tensha-grid {
    grid-template-columns: 1fr;
  }
}

.section-dictionary {
  padding: 5rem 1.5rem;
  background-color: #fcfcfc;
  background-color: #f5f7fa;
}

.dict-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: 1px solid #ddd;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  color: #666;
  font-family: var(--font-base);
}

.tab-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.tab-btn.active {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(45, 64, 89, 0.2);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-panel.active {
  display: block;
}

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

.panel-intro {
  text-align: center;
  margin-bottom: 2rem;
  color: #666;
}

.rokuyo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.term-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #eee;
  border-left: 5px solid #ccc;
}

.term-card.daian {
  border-left-color: #e57373;
}
.term-card.tomobiki {
  border-left-color: #f06292;
}
.term-card.sensho {
  border-left-color: #64b5f6;
}
.term-card.senbu {
  border-left-color: #4db6ac;
}
.term-card.shakko {
  border-left-color: #ff8a65;
}
.term-card.butsumetsu {
  border-left-color: #90a4ae;
}

.term-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 0.5rem;
}

.term-header h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 0 0.5rem;
  flex-grow: 1;
}

.term-yomi {
  font-size: 0.7rem;
  color: #999;
}

.luck-level {
  font-size: 0.8rem;
  color: var(--accent-color);
  font-weight: bold;
}

.term-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

.dict-list {
  max-width: 800px;
  margin: 0 auto;
}

.dict-item {
  background: #fff;
  margin-bottom: 1rem;
  padding: 1.5rem;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  border: 1px solid #eee;
}

.dict-item dt {
  flex: 0 0 160px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dict-term {
  font-family: var(--font-serif);
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.dict-term.term-manbai {
  color: #5d8233;
}
.dict-term.term-tensha {
  color: #b8860b;
}
.dict-term.term-tora {
  color: #d4a017;
}
.dict-term.term-mi {
  color: #00796b;
}
.dict-term.term-bad {
  color: #c62828;
}

.dict-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 5px;
  background-color: #e8f5e9;
  color: #2e7d32;
}

.dict-badge.bad {
  background-color: #ffebee;
  color: #c62828;
}

.dict-item dd {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.mini-card {
  background: #fff;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 8px;
}

.mini-card h5 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
}

.mini-card p {
  font-size: 0.85rem;
  color: #666;
}

.sub-topic {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-family: var(--font-serif);
}

.text-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
}

@media (max-width: 600px) {
  .dict-item {
    flex-direction: column;
  }
  .dict-item dt {
    margin-bottom: 0.5rem;
  }
}

.section-scenes {
  padding: 5rem 1.5rem;
  background-color: var(--white);
  border-top: 1px solid #f0f0f0;
  background-color: #eaeef2;
  border-top: none;
}

.scroll-hint {
  text-align: right;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  animation: floatArrow 1.5s infinite ease-in-out;
  cursor: pointer;
}
@keyframes floatArrow {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

.scenes-grid {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding-bottom: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  scroll-snap-type: x mandatory;
  cursor: grab;
}

.scenes-grid.active {
  cursor: grabbing;
  cursor: -webkit-grabbing;
  scroll-snap-type: none;
}

.scenes-grid::-webkit-scrollbar {
  height: 10px;
}
.scenes-grid::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 5px;
}
.scenes-grid::-webkit-scrollbar-thumb {
  background: #ccc;
  background: var(--accent-color);
  border-radius: 5px;
}

.scene-detail-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  min-width: min(340px, 85vw);
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.scene-detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  border-color: #ddd;
}

.card-icon-area {
  background-color: #fafafa;
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.card-icon-area .icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.card-icon-area h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.card-icon-area .sub {
  font-size: 0.85rem;
  color: #888;
}

.card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.rules-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rule-box {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 0.8rem;
  font-size: 0.9rem;
}

.rule-box.good {
  background-color: #f1f8e9;
  border: 1px solid #c5e1a5;
}

.rule-box.bad {
  background-color: #ffebee;
  border: 1px solid #ef9a9a;
}

.rule-label {
  display: block;
  font-weight: bold;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rule-box.good .rule-label {
  color: #558b2f;
}
.rule-box.bad .rule-label {
  color: #c62828;
}

.rule-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rule-box li {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  line-height: 1.4;
  color: #444;
}

.rule-box li strong {
  display: block;
  color: #333;
}

.advice-text {
  margin-top: auto;
  font-size: 0.9rem;
  color: #555;
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  line-height: 1.6;
  position: relative;
}

.advice-badge {
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 5px;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .rules-container {
    flex-direction: column;
  }
  .scenes-grid {
    gap: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    overflow-x: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
    gap: 1.5rem;
  }
  .scene-detail-card {
    min-width: 100%;
    scroll-snap-align: center;
    min-width: auto;
    scroll-snap-align: none;
  }
  .scroll-hint {
    display: none;
  }
}

.section-faq {
  padding: 5rem 1.5rem;
  background-color: #fafafa;
  background-color: #f5f7fa;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-category {
  margin-bottom: 3rem;
}

.faq-cat-title {
  font-size: 1.1rem;
  color: #888;
  margin-bottom: 1rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
  font-family: var(--font-base);
}

.faq-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.faq-item[open] {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: #e0e0e0;
}

.faq-question {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
  align-items: flex-start;
  line-height: 1.5;
  list-style: none;
}

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

.faq-question::after {
  content: "+";
  margin-left: auto;
  font-size: 1.5rem;
  font-weight: normal;
  color: #ccc;
  transition: transform 0.2s;
  padding-left: 1rem;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
  color: var(--primary-color);
}

.q-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.9rem;
  margin-right: 1rem;
  flex-shrink: 0;
  font-family: sans-serif;
}

.faq-answer {
  border-top: 1px solid #f0f0f0;
  background-color: #fcfcfc;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.a-inner {
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
}

.a-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: var(--accent-color);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.9rem;
  margin-right: 1rem;
  flex-shrink: 0;
  font-family: sans-serif;
}

.a-text {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
}

.a-text strong {
  display: block;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-decoration: underline;
  text-decoration-color: rgba(
    212,
    175,
    55,
    0.4
  );
  text-underline-offset: 3px;
}

.a-text p {
  margin-bottom: 0.5rem;
}
.a-text p:last-child {
  margin-bottom: 0;
}