/* 共通設定 */
:root {
  --red: #d65352;
  --brown: #694b32;
  --yellow: #fff23f;
  --green: #00c653;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 50px;
}

body {
  margin: 0;
  color: var(--brown);
  background: linear-gradient(#bbd4dea8, #bbd4dea8), url("images/page-background.png") center / cover fixed;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:hover {
  opacity: 0.8;
}

:focus-visible {
  outline: 3px solid #2458af;
  outline-offset: 4px;
}

h2 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

h3 {
  font-size: 16px;
  line-height: 1.5;
}

small {
  font-size: 0.75em;
}

mark {
  color: inherit;
  background: linear-gradient(transparent 55%, var(--yellow) 55%);
}

/* ページとナビゲーション */
.page {
  width: 33%;
  margin: 0 auto;
  border-inline: 10px solid var(--red);
  background: var(--white);
}

.site-header {
  display: none;
}

.side-nav {
  position: fixed;
  right: 10%;
  bottom: 25%;
  display: grid;
  gap: 24px;
  width: 194px;
}

.side-nav a {
  padding: 9px 16px;
  border-radius: 30px;
  background: var(--white);
  box-shadow: 0 0 14px #2a110b26;
  font-weight: 700;
  text-decoration: none;
}

.side-nav a:hover {
  color: var(--white);
  background: var(--red);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 20;
  padding: 12px;
  background: var(--white);
}

.skip-link:focus {
  top: 10px;
}

/* キービジュアル・日時 */
.hero-caption {
  position: relative;
  padding: 8px 10px 20px;
  color: #d78b7c;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
}

.hero-caption strong {
  font-size: 48px;
  line-height: 1.3;
}

.gift-badge {
  position: absolute;
  top: -100px;
  left: 10px;
  width: 25%;
}

.event-date {
  padding: 26px 7%;
  color: var(--white);
  background: var(--red);
  line-height: 1.4;
}

.year {
  font-size: 18px;
  font-weight: 900;
}

.date-row {
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: center;
  gap: 4px;
}

.day {
  font-size: clamp(54px, 5vw, 84px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
}

.day span {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  letter-spacing: 0;
}

.hours {
  white-space: nowrap;
  font-size: clamp(20px, 1.8vw, 30px);
  font-weight: 900;
}

.date-row div p:not(.hours) {
  font-size: 12px;
}

.audience {
  display: flex;
  margin-top: 16px;
  border: 1px solid var(--white);
  font-size: 12px;
  font-weight: 700;
}

.audience b {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  color: var(--red);
  background: var(--white);
}

.audience span {
  padding: 5px 10px;
}

.intro {
  padding: 40px 10px;
  background: linear-gradient(#c0ddef80, #c0ddef80), url("images/intro-background.png") 52% 86% / cover;
  text-align: center;
  font-weight: 500;
  line-height: 2.5;
  letter-spacing: 0.05em;
}

/* プログラム・特徴 */
.check-area h2 {
  display: inline-block;
  padding: 5px 22px;
  border-radius: 0 40px 40px 0;
  background: var(--brown);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.heading-note {
  display: block;
  font-size: 14px;
  text-align: center;
}

.check-area {
  padding: 24px 16px 32px;
  background: var(--red) url("images/check-background.png") center / cover;
}

.signup {
  margin: 0 0 30px;
  text-align: center;
  font-weight: 900;
}

.signup p {
  color: var(--yellow);
  font-size: 22px;
  line-height: 1.3;
}

.signup strong {
  font-size: 46px;
}

.line-button {
  display: block;
  padding: 14px 8px;
  border-radius: 40px;
  color: var(--white);
  background: var(--green);
  font-size: clamp(15px, 1.3vw, 20px);
  font-weight: 900;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

.highlights {
  margin: 0 0 30px;
}

.white-card {
  padding: 24px;
  border-radius: 0 30px 0 0;
  background: var(--white);
  box-shadow: 5px 5px 5px #0000001a;
}

#about {
  margin-bottom: 28px;
}

.program-date {
  margin-bottom: 24px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}

.timeline {
  margin: 0;
  padding: 0 0 0 16px;
  list-style: none;
  border-left: 2px solid #e7e1dc;
}

.timeline li {
  position: relative;
  padding-bottom: 24px;
}

.timeline li::before {
  position: absolute;
  top: 7px;
  left: -22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  content: "";
}

.timeline li:last-child {
  padding-bottom: 0;
}

.time {
  display: block;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.timeline img {
  margin: 12px 0;
}

.timeline p {
  font-size: 13px;
}

.point + .point {
  margin-top: 26px;
}

.point h3 {
  padding: 7px 0;
  border-block: 1.5px solid var(--brown);
  font-size: 17px;
}

.point > div {
  display: grid;
  grid-template-columns: 45% 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.point p {
  font-size: 14px;
}

.gift {
  margin: 28px auto;
  padding: 36px 12px;
  border-radius: 50%;
  color: var(--white);
  background: var(--brown);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  line-height: 1.4;
}

.gift-value {
  color: var(--yellow);
  font-size: 32px;
}

.gift-value strong {
  font-size: 80px;
  line-height: 1.2;
}

/* HTMLの企業一覧 */
.companies {
  margin-bottom: 28px;
}

.companies summary {
  padding: 15px 12px;
  border-radius: 5px;
  background: var(--yellow);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
}

.scroll-hint {
  margin: 12px 0 6px;
  color: var(--white);
  text-align: right;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  background: var(--white);
}

table {
  width: 1050px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

th,
td {
  padding: 14px 10px;
  border: 1px solid var(--brown);
  text-align: left;
}

thead th {
  color: var(--white);
  background: var(--brown);
}

.voices blockquote {
  margin: 16px 0;
  padding: 24px;
  border-radius: 30px;
  background: var(--white);
  font-size: 16px;
  font-weight: 700;
}

.voices cite {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-style: normal;
  text-align: right;
}

/* 開催概要・お問い合わせ */
.overview {
  padding: 32px 24px 12px;
}

.overview h2 {
  color: var(--brown);
  font-size: 22px;
  text-align: center;
}

.overview dl {
  margin: 24px 0;
}

.overview dt {
  padding: 7px;
  color: var(--white);
  background: var(--brown);
  font-size: 16px;
  text-align: center;
  letter-spacing: 0.2em;
}

.overview dd {
  margin: 0;
  padding: 20px 0;
}

.overview dd p + p {
  margin-top: 8px;
}

.notice,
.free {
  color: var(--red);
  font-weight: 700;
}

.free {
  font-size: 26px;
}

iframe {
  width: 100%;
  height: 250px;
  margin-top: 18px;
  border: 0;
}

.apply-steps {
  margin: 0;
  padding-left: 24px;
}

.apply-steps li {
  margin-bottom: 18px;
  font-weight: 700;
}

.apply-steps .line-button {
  margin-top: 10px;
  font-size: 13px;
}

.instagram {
  margin: 10px 0 32px;
  text-align: center;
}

.instagram h2 {
  font-size: 18px;
}

.instagram a {
  display: inline-block;
  padding: 12px;
}

.contact {
  padding: 24px;
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 12px;
}

.footer-logo {
  width: 175px;
  margin: 0 auto 30px;
}

.contact p {
  margin-bottom: 24px;
}

.copyright {
  padding: 22px 12px;
  background: var(--white);
  font-size: 12px;
  text-align: center;
}

.back-top {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  padding: 10px 12px;
  border: 1px solid #694b3240;
  border-radius: 5px;
  background: #fffffff0;
  font-size: 12px;
  text-decoration: none;
}

/* 元サイトの中央カラムを、狭いPCでは読みやすい幅に補正 */
@media (min-width: 960px) and (max-width: 1250px) {
  .page {
    width: 42%;
  }

  .side-nav {
    right: 3%;
    width: 185px;
  }
}

@media (max-width: 959px) {
  .page {
    width: 60%;
  }

  .side-nav {
    display: none;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    min-height: 40px;
    background: var(--red);
  }

  .mobile-menu summary {
    padding: 8px 16px;
    color: var(--white);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
  }

  .mobile-menu nav {
    position: absolute;
    top: 40px;
    right: 0;
    width: min(320px, 100vw);
    padding: 12px 20px;
    background: var(--white);
    box-shadow: 0 8px 16px #0002;
  }

  .mobile-menu nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid #ddd;
    text-decoration: none;
  }

  .day {
    font-size: 66px;
  }

  .hours {
    font-size: 24px;
  }

  .line-button {
    font-size: 18px;
  }
}

@media (max-width: 599px) {
  body {
    background: var(--red);
  }

  .page {
    width: 100%;
  }

  .hero-caption {
    font-size: 19px;
  }

  .intro {
    font-size: 13px;
  }

  .white-card {
    padding: 20px 16px;
  }

  .point h3 {
    font-size: 16px;
  }

  .point p {
    font-size: 13px;
  }

  .overview {
    padding-inline: 20px;
  }
}

@media (max-width: 374px) {
  .hero-caption {
    font-size: 16px;
  }

  .day {
    font-size: 50px;
  }

  .hours {
    font-size: 19px;
  }

  .intro {
    font-size: 11px;
  }

  .check-area {
    padding-inline: 12px;
  }

  .point > div {
    grid-template-columns: 40% 1fr;
  }

  .companies summary {
    font-size: 15px;
  }

  .line-button {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
