:root {
  --bg-main: #fcf9ee;
  --bg-grid: #f3f0e3;
  --text-dark: #3a3229;
  --text-light: #7c7062;
  --accent-red: #ff5e5e;
  --accent-blue: #4da6ff;
  --accent-yellow: #ffcf33;
  --accent-green: #38d9a9;
  --card-bg: #ffffff;
  --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.04);
  --shadow-pop: 0 8px 15px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.05);

  /* Notebook Background Pattern */
  --notebook-pattern:
    linear-gradient(90deg, rgba(200, 200, 200, 0) 0%, rgba(200, 200, 200, 0) 5%, transparent 5%),
    linear-gradient(rgba(200, 200, 200, 0.2) 1px, transparent 1px);
  --notebook-size: 100% 30px;
}

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

html {
  overflow-x: hidden;
}

body {
  font-family: 'Zen Maru Gothic', sans-serif;
  background-color: var(--bg-main);
  background-image: var(--notebook-pattern);
  background-size: var(--notebook-size);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  font-weight: 500;
  /* Add a binder ring effect column on the left */
  border-left: 20px solid #e1d8c1;
  box-shadow: inset 10px 0 15px rgba(0, 0, 0, 0.05);
}

.notebook-wrapper {
  max-width: 650px;
  margin: 0 auto;
  padding: 20px 25px 60px;
  position: relative;
  background-image:
    linear-gradient(90deg, rgba(255, 100, 100, 0.5) 1px, transparent 1px);
  background-size: 100% 100%;
  background-position: 40px 0;
  background-repeat: no-repeat;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(-2deg);
  }

  50% {
    transform: translateY(-8px) rotate(2deg);
  }

  100% {
    transform: translateY(0px) rotate(-2deg);
  }
}

@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-5deg);
  }

  50% {
    transform: rotate(0deg);
  }

  75% {
    transform: rotate(5deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes popIn {
  0% {
    transform: scale(0.8) translateY(20px);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.wiggling {
  animation: wiggle 3s infinite ease-in-out;
}

.floating {
  animation: float 4s infinite ease-in-out;
}

.reveal {
  animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
}

a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-decoration-style: dashed;
  font-weight: 700;
  transition: all 0.2s;
}

a:hover {
  color: var(--accent-red);
  text-decoration-style: solid;
}

/* Polaroids */
.polaroid {
  background: white;
  padding: 10px 10px 30px 10px;
  box-shadow: var(--shadow-pop);
  transform: rotate(-2deg);
  display: inline-block;
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.3s;
}

.polaroid:hover {
  transform: rotate(1deg) scale(1.02);
  z-index: 10;
}

.polaroid img {
  width: 100%;
  height: auto;
  display: block;
}

.polaroid::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: 'Zen Maru Gothic', cursive;
  color: #555;
  font-size: 0.9rem;
  font-weight: bold;
}

/* Washi Tape */
.tape {
  position: absolute;
  width: 120px;
  height: 35px;
  background-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  opacity: 0.85;
  z-index: 10;
}

.tape::after,
.tape::before {
  content: '';
  position: absolute;
  top: 0;
  width: 8px;
  height: 100%;
  background: inherit;
}

.tape::before {
  left: -4px;
  border-left: 1px dashed rgba(0, 0, 0, 0.1);
}

.tape::after {
  right: -4px;
  border-right: 1px dashed rgba(0, 0, 0, 0.1);
}

.tape-1 {
  top: -15px;
  right: -30px;
  transform: rotate(15deg);
  background: rgba(255, 207, 51, 0.6);
}

.tape-2 {
  bottom: -15px;
  left: -20px;
  transform: rotate(-10deg);
  background: rgba(77, 166, 255, 0.6);
}

.tape-3 {
  top: -15px;
  left: -20px;
  transform: rotate(-15deg);
  background: rgba(255, 94, 94, 0.6);
}

.tape-4 {
  top: 50%;
  right: -25px;
  transform: rotate(8deg);
  background: rgba(56, 217, 169, 0.6);
  width: 80px;
}

/* Sections */
.section {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 40px;
  margin-bottom: 50px;
  box-shadow: var(--shadow-pop);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Marker Highlights */
.marker-highlight {
  position: relative;
  display: inline;
  z-index: 1;
}

.marker-highlight::before {
  content: '';
  position: absolute;
  bottom: 0px;
  left: -2px;
  right: -2px;
  height: 40%;
  background: rgba(255, 207, 51, 0.5);
  /* Yellow marker */
  z-index: -1;
  transform: rotate(-1deg);
}

.marker-red::before {
  background: rgba(255, 94, 94, 0.3);
}

.marker-blue::before {
  background: rgba(77, 166, 255, 0.3);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 15px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 3px dashed #eee;
  padding-bottom: 10px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 25px;
  font-weight: bold;
}

.icon {
  font-size: 2rem;
}

/* Cover / Header */
.cover {
  text-align: center;
  margin-top: 20px;
  background: #fff;
  border: none;
  border-radius: 20px;
}

.badge {
  display: inline-block;
  background: var(--text-dark);
  color: white;
  padding: 5px 20px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 20px;
  transform: rotate(-3deg);
  box-shadow: 2px 2px 0px var(--accent-red);
}

.main-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 30px;
}

.title-sub {
  font-size: 1.2rem;
  color: var(--accent-red);
}

.title-place {
  font-size: 2rem;
  color: var(--accent-blue);
  display: inline-block;
  margin-top: 10px;
}

.hero-character {
  position: relative;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bear-illustration {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.bear-illustration img {
  width: 100%;
  mix-blend-mode: multiply;
  /* Removes white background */
  transform-origin: bottom center;
}

.intro-speech {
  background: #fff;
  border: 3px solid var(--text-dark);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
  position: relative;
  font-size: 1.05rem;
  text-align: left;
  max-width: 90%;
  margin: -10px auto 0;
  z-index: 3;
}

.intro-speech::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 15px 15px 15px;
  border-style: solid;
  border-color: transparent transparent var(--text-dark) transparent;
}

.intro-speech::after {
  content: '';
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 12px 12px 12px;
  border-style: solid;
  border-color: transparent transparent #fff transparent;
}

.small-text {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 15px;
  font-weight: normal;
}

/* Sticky Bear */
.floating-bear {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-bear.hide {
  right: -150px;
}

.bear-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  background: #fff0f0;
  border: 3px solid var(--text-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.speech-bubble {
  background: white;
  border: 2px solid var(--text-dark);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  white-space: nowrap;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 25px;
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: var(--text-dark) transparent transparent transparent;
}

/* Info Cards */
.card {
  background: white;
  border: 2px solid #eaeaea;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-pop);
  border-color: #ddd;
}

.highlight-card {
  border: 3px solid var(--accent-yellow);
  background: #fffcf0;
  box-shadow: 4px 4px 0px var(--accent-yellow);
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.gap-15 {
  gap: 15px;
}

.info-box {
  background: white;
  padding: 15px;
  border-radius: 10px;
  border: 1px dashed #ccc;
}

.time-stamp {
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--accent-red);
  margin: 5px 0;
  display: inline-block;
  background: rgba(255, 94, 94, 0.1);
  padding: 0 10px;
  border-radius: 5px;
}

.warning {
  font-size: 0.9rem;
  color: #fa5252;
  background: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 900;
  margin-top: 10px;
  cursor: pointer;
  border: 2px solid var(--text-dark);
  transition: all 0.2s;
  text-decoration: none !important;
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background: white;
  color: var(--text-dark);
}

.btn-primary {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2)
}

/* Accordions */
.accordion-group {
  margin-top: 20px;
}

.custom-accordion {
  background: white;
  border: 2px solid var(--text-dark);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.custom-accordion[open] {
  box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.1);
}

.custom-accordion summary {
  padding: 18px 20px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
  background: #fafafa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
}

.custom-accordion summary::-webkit-details-marker {
  display: none;
}

.custom-accordion summary::after {
  content: '＋';
  color: var(--accent-blue);
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.custom-accordion[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.accordion-content {
  padding: 20px;
  border-top: 2px dashed #eee;
  background: white;
  animation: slideDown 0.3s ease-out;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.emergency {
  background: #fff0f0;
  border-top: 2px dashed var(--accent-red);
}

.fake-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-red);
  letter-spacing: 2px;
  margin-top: 10px;
  text-align: center;
  background: white;
  padding: 10px;
  border: 2px solid var(--accent-red);
  border-radius: 10px;
  transform: rotate(-1deg);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 900;
  color: white;
  box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.1);
}

.tag-red {
  background: var(--accent-red);
}

.type-all {
  background: var(--accent-green);
}

.type-opt {
  background: var(--accent-yellow);
  color: var(--text-dark);
}

.checklist {
  list-style: none;
}

.checklist li {
  margin-bottom: 10px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #eee;
}

.checklist input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-blue);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  background: #eee;
  padding: 5px;
  border-radius: 30px;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  border-radius: 25px;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
  color: var(--text-light);
  font-size: 1.1rem;
}

.tab-btn.active {
  background: var(--text-dark);
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 20px;
  margin-left: 5px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background-image: linear-gradient(to bottom, #ccc 50%, transparent 50%);
  background-size: 3px 12px;
  background-repeat: repeat-y;
}

.timeline.hidden {
  display: none;
}

.timeline-item {
  position: relative;
  margin-bottom: 35px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -23px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  border: 3px solid var(--accent-blue);
  box-shadow: 0 0 0 3px white;
  z-index: 2;
}

.time {
  font-weight: 900;
  color: var(--accent-blue);
  margin-bottom: 8px;
  font-size: 1.2rem;
  display: inline-block;
  padding-bottom: 2px;
  position: relative;
}

.time::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(77, 166, 255, 0.3);
}

.timeline-item .content {
  border-left: 5px solid #eaeaea;
  /* Default left line */
}

.event-meal .content {
  border-left-color: var(--accent-yellow);
}

.event-hotel .content {
  border-left-color: var(--accent-red);
}

.options-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 15px;
}

@media (min-width: 500px) {
  .options-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .notebook-wrapper {
    padding: 15px 15px 60px;
    background-position: 15px 0;
  }

  body {
    border-left: 10px solid #e1d8c1;
  }

  .section {
    padding: 25px 15px;
  }

  .main-title {
    font-size: 2rem;
  }

  .title-place {
    font-size: 1.6rem;
  }

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

  .icon {
    font-size: 1.6rem;
  }

  .fake-number {
    font-size: 1.4rem;
    letter-spacing: 1px;
  }

  .bear-illustration {
    width: 150px;
    height: 150px;
  }

  .intro-speech {
    max-width: 100%;
    font-size: 0.95rem;
  }

  .note-from-bear {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .polaroid {
    max-width: 200px !important;
  }

  .spot-links {
    gap: 10px;
  }

  .spot-btn {
    font-size: 0.85rem;
    padding: 10px 15px;
  }

  .floating-bear {
    bottom: 10px;
    right: 10px;
  }

  .bear-img {
    width: 50px;
    height: 50px;
  }

  .speech-bubble {
    font-size: 0.7rem;
    padding: 5px 8px;
  }

  .tabs {
    gap: 5px;
  }

  .tab-btn {
    font-size: 0.95rem;
    padding: 10px 8px;
  }

  .time {
    font-size: 1rem;
  }

  .card {
    padding: 15px;
  }

  .highlight-card {
    box-shadow: 3px 3px 0px var(--accent-yellow);
  }

  .info-box {
    padding: 12px;
  }

  .time-stamp {
    font-size: 1.2rem;
  }

  .spots-list {
    padding: 20px 15px;
  }
}

@media (max-width: 370px) {
  .main-title {
    font-size: 1.7rem;
  }

  .title-place {
    font-size: 1.3rem;
  }

  body {
    border-left: 6px solid #e1d8c1;
  }
}

.option-box {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  border: 2px dashed #999;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.option-box:hover {
  border-style: solid;
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  background: #f0f7ff;
}

/* Appendix Cards */
.appendix-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.app-card {
  background: white;
  border-radius: 20px;
  padding: 25px 20px;
  box-shadow: var(--shadow-pop);
  text-align: center;
  border-bottom: 4px solid #eee;
  transition: all 0.3s;
}

.app-card:hover {
  transform: translateY(-5px);
  border-bottom-color: var(--accent-blue);
}

.card-emoji {
  font-size: 3rem;
  margin-bottom: 15px;
  display: inline-block;
  animation: float 6s infinite;
}

.app-card h3 {
  margin-bottom: 10px;
  font-weight: 900;
  color: var(--text-dark);
}

.spots-list {
  background: white;
  border-radius: 20px;
  border: 2px dashed #ccc;
  padding: 30px;
  text-align: center;
}

.spot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

.spot-btn {
  background: white;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 900;
  padding: 12px 20px;
  border-radius: 30px;
  border: 2px solid var(--text-dark);
  transition: all 0.2s;
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
  text-decoration: none !important;
}

.spot-btn:hover {
  background: var(--text-dark);
  color: white;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px var(--accent-blue);
}

/* Footer / Bear Note */
.note-from-bear {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  padding: 20px;
  border-radius: 20px;
  margin-top: 30px;
  border: 3px solid #ffe3e3;
  box-shadow: 0 5px 15px rgba(255, 94, 94, 0.1);
  position: relative;
}

.note-from-bear::before {
  content: '📝 くまさんメモ';
  position: absolute;
  top: -12px;
  left: 20px;
  background: #ffe3e3;
  color: var(--accent-red);
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 0.8rem;
}

.bear-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff0f0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border: 3px solid white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.bear-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.site-footer {
  text-align: center;
  padding: 40px 10px;
  font-weight: 900;
  color: var(--text-light);
}

.footer-credit {
  font-size: 0.8rem;
  margin-top: 15px;
  opacity: 0.6;
}