/* ===== CONTENT AREA ===== */
.content-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding: 75px 0 80px;
}
.page-senryu .content-area {
  padding-bottom: 30px;
}

/* ===== HAIKU HERO (Black Box) ===== */
.haiku-hero {
  position: relative;
  width: 1200px;
  min-height: 763px;
  background: var(--ink);
  flex-shrink: 0;
  padding: 44px 72px 44px 63px;
}
/* Corner cutouts (30×30) */
.haiku-hero::before,
.haiku-hero::after,
.c-bl,
.c-br {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  background: var(--bg);
  z-index: 2;
}
.haiku-hero::before {
  top: 0;
  left: 0;
}
.haiku-hero::after {
  top: 0;
  right: 0;
}
.c-bl {
  bottom: 0;
  left: 0;
}
.c-br {
  bottom: 0;
  right: 0;
}

/* Inner layout (left: haiku columns, right: info) */
.haiku-inner {
  position: relative;
  width: 100%;
  min-height: 629px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 128px;
}

/* Columns + bird wrapper */
.haiku-col-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

/* Haiku vertical columns */
.haiku-columns {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 290px;
  min-height: 600px;
  flex-shrink: 0;
}
.haiku-col {
  display: flex;
  flex-direction: column;
  width: 90px;
  min-height: 600px;
  flex-shrink: 0;
}
/* Column order (left→right): line3 / line2 / line1 (right-to-left reading order) */
.haiku-col:nth-child(1) {
  justify-content: flex-end;
}
.haiku-col:nth-child(2) {
  justify-content: center;
}
.haiku-col:nth-child(3) {
  justify-content: flex-start;
}

.haiku-vbox {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 15px;
  width: 90px;
  background: #fff;
  border: 1px solid var(--ink);
  flex-shrink: 0;
}
/* Heights match mora counts: 5=290px, 7=430px */
.haiku-col:nth-child(1) .haiku-vbox {
  min-height: 290px;
}
.haiku-col:nth-child(2) .haiku-vbox {
  min-height: 430px;
}
.haiku-col:nth-child(3) .haiku-vbox {
  min-height: 290px;
}

.haiku-vbox span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'Zen Old Mincho', serif;
  font-weight: 700;
  font-size: 60px;
  line-height: 70px;
  color: var(--ink);
  white-space: nowrap;
}
/* Bird (千鳥) decoration at bottom of column 3 (line1) */
.haiku-bird {
  margin-top: auto;
  align-self: center;
}
.haiku-bird img,
.haiku-bird svg {
  width: 80px;
  height: 72px;
}

/* Right side: date + theme + commentary */
.haiku-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 604px;
  color: #fff;
  flex-shrink: 0;
}
.haiku-date-block {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 560px;
}
.haiku-date-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: #fff;
  font-family: 'Zen Old Mincho', serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 30px;
  color: var(--ink);
  align-self: flex-start;
  white-space: nowrap;
}
.haiku-theme {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 700;
  font-size: 35px;
  line-height: 60px;
  color: #fff;
  width: 560px;
}
.haiku-commentary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 604px;
}
.commentary-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}
.sennin-icon {
  width: 43px;
  height: 55px;
  flex-shrink: 0;
}
.commentary-heading-text {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 30px;
  color: #fff;
}
.commentary-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 46px;
  color: #fff;
  width: 604px;
}

/* ===== KEYWORDS + CALENDAR ROW ===== */
.bottom-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 70px;
  width: 1200px;
}

/* Keywords section */
.keywords-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 530px;
  flex-shrink: 0;
}
.keyword-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 288px;
  height: 288px;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 50%;
  flex-shrink: 0;
}
.keyword-date-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  background: var(--accent);
  font-family: 'Forum', serif;
  font-weight: 400;
  font-size: 25px;
  line-height: 20px;
  color: var(--ink);
}
.keyword-circle-label {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 50px;
  text-align: center;
  color: var(--ink);
}
.keyword-circle-en {
  font-family: 'Forum', serif;
  font-weight: 400;
  font-size: 60px;
  line-height: 40px;
  text-align: center;
  color: var(--ink);
}
.keyword-tags {
  display: flex;
  flex-direction: row;
  gap: 30px;
  width: 530px;
}
.keyword-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex: 1;
}
.keyword-tag {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  width: 250px;
  height: 40px;
  background: #fff;
  box-shadow: 8px 9px 12.3px rgba(0, 0, 0, 0.1);
  font-family: 'Zen Old Mincho', serif;
  font-weight: 700;
  font-size: clamp(12px, 1.6vw, 20px);
  line-height: 1.2;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.keyword-tag:hover {
  background: #f5f5f5;
}

/* Calendar section */
.calendar-section {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  padding: 67px 113px;
  width: 600px;
  height: 589px;
  background: #fff;
  flex-shrink: 0;
}
.calendar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 373px;
}
.calendar-title {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 50px;
  text-align: center;
  color: var(--ink);
  width: 100%;
}
.calendar-grid-wrap {
  width: 373px;
  height: 356px;
  background: #414141;
  padding: 16px 12px 28px;
  overflow: hidden;
}
.cal-month {
  color: var(--accent);
  font-family: 'Zen Old Mincho', serif;
  font-size: 18px;
  padding: 0 16px 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cal-month a {
  color: var(--accent);
  cursor: pointer;
}
.cal-month span {
  text-align: center;
  flex: 1;
}
.cal-table {
  width: 100%;
  border-collapse: collapse;
}
.cal-table th {
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Zen Old Mincho', serif;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  padding: 6px 2px;
}
.cal-table td {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Zen Old Mincho', serif;
  font-size: 18px;
  text-align: center;
  padding: 8px 2px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s;
}
.cal-table td:hover {
  background: rgba(255, 255, 255, 0.15);
}
.cal-table td.today {
  position: relative;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}
.cal-table td.today::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25px;
  height: 25px;
  background: var(--accent);
  border-radius: 50%;
  z-index: 0;
}
.cal-table td.today > *,
.cal-table td.today a {
  position: relative;
  z-index: 1;
}
.cal-table td.empty {
  pointer-events: none;
}
.cal-table td.has-haiku {
  padding: 0;
}
.cal-table td.has-haiku a {
  display: block;
  width: 100%;
  padding: 8px 2px;
  text-align: center;
  color: var(--accent);
  font-weight: 700;
}
.cal-table td.today a {
  color: var(--ink);
}

/* ===== SECTION TITLE BLOCK ===== */
.section-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 50px;
  width: 1200px;
}
.section-banner {
  display: inline-flex;
  align-items: center;
  padding: 5px 20px;
  gap: 19px;
  background: var(--accent);
  height: 50px;
  align-self: flex-start;
}
.section-banner-ja {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 40px;
  color: var(--ink);
  white-space: nowrap;
}
.section-banner-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 30px;
  color: var(--ink);
  white-space: nowrap;
}
/* Headline + image row */
.headline-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 50px;
  width: 1112px;
  height: 328px;
  overflow: hidden;
}
.headline-text {
  display: flex;
  flex-direction: column;
  width: 739px;
  flex-shrink: 0;
}
.headline-en {
  font-family: 'Forum', serif;
  font-weight: 400;
  font-size: 180px;
  line-height: 159px;
  color: var(--ink);
}
.headline-in575 {
  font-family: 'Forum', serif;
  font-weight: 400;
  font-size: 200px;
  line-height: 159px;
  color: var(--ink);
  padding-left: 100px;
}
.headline-img {
  width: 323px;
  height: 323px;
  background: #414141;
  flex-shrink: 0;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.headline-img img,
.headline-img svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== DATE NAVIGATION ===== */
.date-nav-wrap {
  width: 100%;
  border-top: 1px solid var(--ink);
}
.date-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 605px;
  height: 34px;
  margin: 26px auto 0;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Zen Old Mincho', serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 20px;
  color: var(--ink);
  cursor: pointer;
}
.nav-link:hover {
  opacity: 0.6;
}
.nav-arrow {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== NO HAIKU / ERROR ===== */
.no-haiku {
  padding: 80px 20px;
  text-align: center;
  color: var(--ink);
  font-family: 'Zen Old Mincho', serif;
  font-size: 24px;
}
.no-haiku a {
  text-decoration: underline;
}

/* ===== TABLET ===== */
@media (max-width: 1240px) {
  .haiku-inner {
    position: relative;
    gap: calc(15% - 120px);
  }
  .haiku-hero {
    width: calc(100% - 52px);
    margin: 0 26px;
    height: auto;
    padding: 40px;
  }
  .haiku-columns {
    width: 35%;
  }
  .haiku-info {
    width: 60%;
    gap: 24px;
    color: #fff;
  }
  .haiku-commentary {
    width: 100%;
  }
  .commentary-body {
    width: 100%;
  }
  .bottom-row {
    width: 100%;
    gap: 30px;
  }
  .keywords-section {
    width: 50%;
  }
  .calendar-section {
    width: 45%;
  }
  .section-block {
    width: 100%;
    padding: 0 26px;
  }
  .headline-row {
    width: 100%;
  }

  .headline-text {
    width: 56%;
  }
  .headline-en {
    font-size: 130px;
  }
  .headline-in575 {
    font-size: 150px;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 1000px) {
  .content-area {
    padding: 27px 0 60px;
    gap: 50px;
  }

  /* ── ヒーロー：左右26px余白 ── */
  .haiku-hero {
    width: calc(100% - 52px);
    margin: 0 26px;
    height: auto;
    padding: 0;
  }
  .haiku-hero::before {
    display: block;
    width: 22px;
    height: 20px;
    top: 0;
    left: 0;
  }
  .haiku-hero::after {
    display: block;
    width: 22px;
    height: 20px;
    top: 0;
    right: 0;
  }
  .c-bl {
    display: block;
    width: 22px;
    height: 20px;
    bottom: 0;
    left: 0;
  }
  .c-br {
    display: block;
    width: 22px;
    height: 20px;
    bottom: 0;
    right: 0;
  }

  /* haiku-inner：縦積み */
  .haiku-inner {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px 20px 30px;
  }

  /* ── 縦書き3列：最小高さ600px ── */
  .haiku-columns {
    width: 100%;
    min-height: 600px;
    justify-content: center;
    align-items: stretch;
  }
  .haiku-col {
    min-height: 600px;
    width: 80px;
  }
  .haiku-col:nth-child(1) .haiku-vbox {
    min-height: 259px;
    padding: 20px 15px;
  }
  .haiku-col:nth-child(2) .haiku-vbox {
    min-height: 379px;
    padding: 20px 15px;
  }
  .haiku-col:nth-child(3) {
    padding-top: 30px;
  }
  .haiku-col:nth-child(3) .haiku-vbox {
    min-height: 259px;
    padding: 20px 15px;
  }
  .haiku-vbox span {
    font-size: 44px;
    line-height: 56px;
  }
  .haiku-bird {
    margin-top: auto;
  }
  .haiku-bird img,
  .haiku-bird svg {
    width: 70px;
    height: 63px;
  }

  /* 解説情報 */
  .haiku-info {
    width: 100%;
    gap: 24px;
    color: #fff;
  }
  .haiku-date-block {
    width: 100%;
    gap: 20px;
  }
  .haiku-date-pill {
    font-size: 22px;
  }
  .haiku-theme {
    width: 100%;
    font-size: 24px;
    line-height: 44px;
  }
  .haiku-commentary {
    width: 100%;
  }
  .commentary-body {
    width: 100%;
    font-size: 16px;
    line-height: 34px;
    padding-bottom: 30px;
  }

  /* ── キーワード＋カレンダー：縦積み、左右26px余白 ── */
  .bottom-row {
    flex-direction: column;
    width: calc(100% - 52px);
    margin: 0 26px;
    padding: 0;
    gap: 50px;
  }
  .keywords-section {
    width: 100%;
    align-items: flex-start;
  }

  .keyword-circle {
    width: 220px;
    height: 220px;
    align-self: center;
  }
  .keyword-circle-label {
    font-size: 30px;
    line-height: 1.35;
  }
  .keyword-circle-en {
    font-size: 48px;
  }

  .keyword-tags {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .keyword-col {
    gap: 15px;
    width: 100%;
    align-items: center;
  }
  .keyword-tag {
    width: 250px;
    height: 30px;
    padding: 5px 20px;
    font-size: 18px;
  }

  /* カレンダー */
  .calendar-section {
    width: 100%;
    height: auto;
    padding: 30px 20px;
  }
  .calendar-inner {
    width: 100%;
  }
  .calendar-title {
    font-size: 32px;
  }
  .calendar-grid-wrap {
    width: 100%;
    height: auto;
    min-height: 240px;
  }

  /* ── セクション＋Headline：左右26px余白 ── */
  .section-block {
    width: calc(100% - 52px);
    margin: 0 26px;
    padding: 0;
    gap: 24px;
  }
  .section-banner {
    height: auto;
    padding: 5px;
    gap: 10px;
    align-self: center;
  }
  .section-banner-ja {
    font-size: 28px;
    line-height: 1.2;
  }
  .section-banner-sub {
    font-size: 20px;
    line-height: 1.2;
  }

  .headline-row {
    width: 100%;
    height: auto;
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .headline-text {
    width: 100%;
    text-align: center;
  }
  .headline-en {
    font-size: 72px;
    line-height: 1;
  }
  .headline-in575 {
    font-size: 80px;
    line-height: 1;
    padding-left: 50px;
  }
  .headline-img {
    width: 164px;
    height: 164px;
    align-self: center;
  }

  /* ── 日付ナビ ── */
  .date-nav-wrap {
    width: 100%;
    margin: 0;
  }
  .date-nav {
    width: 100%;
    margin: 20px 0 0;
  }
}
