/* =========================================================
   Souganji Renewal - annual New Year page
========================================================= */

.sg-shogatsu-page {
  background: #fbfaf6;
}

.sg-shogatsu-container {
  width: min(calc(100% - 48px), 1120px);
  margin: 0 auto;
}

.sg-shogatsu-hero {
  --sg-shogatsu-hero-image-pc: none;
  --sg-shogatsu-hero-image-mobile: var(--sg-shogatsu-hero-image-pc);

  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 16% 30%, rgba(190,156,92,.16), transparent 28%),
    linear-gradient(135deg, #f7f1e5 0%, #fffdf8 54%, #efe5d1 100%);
  border-bottom: 1px solid rgba(187,157,102,.28);
}

.sg-shogatsu-hero__image {
  position: absolute;
  inset: 0;
  background-image: var(--sg-shogatsu-hero-image-pc);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.sg-shogatsu-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(250,247,239,.96) 0%, rgba(250,247,239,.78) 48%, rgba(250,247,239,.28) 100%);
}

.sg-shogatsu-hero.has-image .sg-shogatsu-hero__veil {
  background:
    linear-gradient(90deg, rgba(250,247,239,.96) 0%, rgba(250,247,239,.78) 46%, rgba(250,247,239,.2) 78%, rgba(250,247,239,.06) 100%);
}

.sg-shogatsu-hero__inner {
  position: relative;
  z-index: 2;
  padding: 72px 0;
}

.sg-shogatsu-hero__eyebrow {
  margin: 0 0 12px;
  color: var(--sg-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
}

.sg-shogatsu-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--sg-ink);
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .08em;
}

.sg-shogatsu-hero__lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--sg-text);
  font-size: 15px;
  line-height: 2;
}

.sg-shogatsu-content {
  background:
    linear-gradient(180deg, #fff 0, #fff 30%, #fbfaf6 100%);
}

.sg-shogatsu-section {
  padding: 76px 0;
}

.sg-shogatsu-section + .sg-shogatsu-section {
  border-top: 1px solid rgba(205,187,151,.38);
}

.sg-shogatsu-section-heading {
  margin-bottom: 36px;
  text-align: center;
}

.sg-shogatsu-section-heading > span {
  display: block;
  margin-bottom: 8px;
  color: var(--sg-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
}

.sg-shogatsu-section-heading h2 {
  margin: 0;
  color: var(--sg-ink);
  font-family: var(--font-serif);
  font-size: clamp(27px, 3.5vw, 38px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .1em;
}

.sg-shogatsu-event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.sg-shogatsu-event-card {
  position: relative;
  min-height: 100%;
  padding: 34px 30px 32px;
  background: #fff;
  border: 1px solid #e2d8c5;
  box-shadow: 0 10px 28px rgba(82,68,44,.05);
}

.sg-shogatsu-event-card__mark {
  width: 36px;
  height: 36px;
  margin: 0 0 22px;
  display: grid;
  place-items: center;
  border: 1px solid #c9b17f;
  border-radius: 50%;
  color: var(--sg-gold);
  font-family: var(--font-serif);
  font-size: 14px;
}

.sg-shogatsu-event-card h3 {
  margin: 0 0 14px;
  color: var(--sg-ink);
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.55;
}

.sg-shogatsu-event-card > p {
  margin: 0;
  color: var(--sg-text);
  font-size: 14px;
  line-height: 1.95;
}

.sg-shogatsu-event-card__time {
  margin-bottom: 16px !important;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee6d8;
  color: var(--sg-brown) !important;
  font-weight: 700;
}

.sg-shogatsu-note {
  margin-top: 24px;
  padding: 18px 20px;
  background: #f8f4eb;
  border-left: 3px solid #c5a463;
}

.sg-shogatsu-note h4 {
  margin: 0 0 8px;
  color: var(--sg-ink);
  font-size: 15px;
}

.sg-shogatsu-note p {
  margin: 0;
  color: var(--sg-text);
  font-size: 13px;
  line-height: 1.9;
}

.sg-shogatsu-section--schedule {
  background: #f5f0e7;
}

.sg-shogatsu-schedule {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.35fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8c9aa;
}

.sg-shogatsu-schedule__column {
  min-width: 0;
  border-right: 1px solid #e6dcc8;
}

.sg-shogatsu-schedule__column:last-child {
  border-right: 0;
}

.sg-shogatsu-schedule__column h3 {
  margin: 0;
  padding: 14px 10px;
  background: #6d5436;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.sg-shogatsu-schedule__column ul {
  margin: 0;
  padding: 12px 16px 16px;
  list-style: none;
}

.sg-shogatsu-schedule__column li {
  padding: 8px 0;
  border-bottom: 1px solid #efe8da;
  color: var(--sg-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  text-align: center;
}

.sg-shogatsu-schedule__column li:last-child {
  border-bottom: 0;
}

.sg-shogatsu-schedule__column > p {
  margin: 0;
  padding: 22px 18px;
  color: var(--sg-text);
  font-size: 14px;
  line-height: 1.9;
}

.sg-shogatsu-schedule-note {
  margin: 18px 0 0;
  color: var(--sg-text);
  font-size: 14px;
  line-height: 1.9;
  text-align: right;
}

.sg-shogatsu-application-box,
.sg-shogatsu-panel,
.sg-shogatsu-walkin {
  background: #fff;
  border: 1px solid #e2d8c5;
  box-shadow: 0 8px 24px rgba(82,68,44,.045);
}

.sg-shogatsu-application-box {
  padding: 30px 32px;
}

.sg-shogatsu-application-box + .sg-shogatsu-two-column,
.sg-shogatsu-two-column + .sg-shogatsu-application-box,
.sg-shogatsu-application-box + .sg-shogatsu-walkin {
  margin-top: 28px;
}

.sg-shogatsu-application-box h3,
.sg-shogatsu-panel h3 {
  margin: 0 0 18px;
  color: var(--sg-ink);
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
}

.sg-shogatsu-application-box p,
.sg-shogatsu-panel p {
  color: var(--sg-text);
  font-size: 14px;
  line-height: 1.95;
}

.sg-shogatsu-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.sg-shogatsu-downloads a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 10px 18px;
  border: 1px solid #bda26c;
  background: #fffdfa;
  color: var(--sg-brown);
  text-decoration: none;
}

.sg-shogatsu-downloads a:hover {
  background: var(--sg-brown);
  color: #fff;
}

.sg-shogatsu-two-column {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
}

.sg-shogatsu-panel {
  padding: 30px 32px;
}

.sg-shogatsu-wishes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-shogatsu-wishes li {
  padding: 8px 0 8px 16px;
  border-bottom: 1px solid #efe8da;
  color: var(--sg-text);
  font-size: 14px;
  position: relative;
}

.sg-shogatsu-wishes li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 10px;
  color: #c3a46a;
  font-size: 8px;
}

.sg-shogatsu-ofuda img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: contain;
  margin: 0 auto 20px;
}

.sg-shogatsu-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-shogatsu-prices li {
  padding: 8px 14px;
  background: #f5f0e7;
  border: 1px solid #e0d3bc;
  color: var(--sg-brown);
  font-weight: 700;
}

.sg-shogatsu-cautions {
  margin: 18px 0 0;
  padding: 18px 22px 18px 40px;
  background: #faf5ec;
  border-left: 3px solid #b89254;
}

.sg-shogatsu-cautions li {
  margin: 7px 0;
  color: var(--sg-text);
  font-size: 14px;
  line-height: 1.8;
}

.sg-shogatsu-walkin {
  margin-top: 28px;
  padding: 34px 36px;
  background:
    linear-gradient(135deg, #6a4e32, #866742);
  color: #fff;
}

.sg-shogatsu-walkin__eyebrow {
  margin: 0 0 8px;
  color: #ead7a9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: .2em;
}

.sg-shogatsu-walkin h2 {
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
}

.sg-shogatsu-walkin > p:last-child {
  margin: 0;
  color: rgba(255,255,255,.95);
  font-size: 14px;
  line-height: 2;
}

.sg-shogatsu-section--free {
  padding-top: 0;
}

@media screen and (max-width: 960px) {
  .sg-shogatsu-hero {
    min-height: 360px;
  }

  .sg-shogatsu-hero__inner {
    padding: 64px 0;
  }

  .sg-shogatsu-event-grid {
    grid-template-columns: 1fr;
  }

  .sg-shogatsu-schedule {
    grid-template-columns: repeat(2, 1fr);
  }

  .sg-shogatsu-schedule__column {
    border-bottom: 1px solid #e6dcc8;
  }

  .sg-shogatsu-schedule__column--wide {
    grid-column: 1 / -1;
  }

  .sg-shogatsu-two-column {
    grid-template-columns: 1fr;
  }

  .sg-shogatsu-wishes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 640px) {
  .sg-shogatsu-container {
    width: min(calc(100% - 24px), 1120px);
  }

  .sg-shogatsu-hero {
    min-height: 380px;
  }

  .sg-shogatsu-hero__image {
    background-image: var(--sg-shogatsu-hero-image-mobile);
    background-position: center center;
  }

  .sg-shogatsu-hero__inner {
    padding: 42px 0 40px;
  }

  .sg-shogatsu-hero__veil,
  .sg-shogatsu-hero.has-image .sg-shogatsu-hero__veil {
    background:
      linear-gradient(
        180deg,
        rgba(250,247,239,.88) 0%,
        rgba(250,247,239,.82) 28%,
        rgba(250,247,239,.62) 58%,
        rgba(250,247,239,.34) 100%
      );
  }

  .sg-shogatsu-section {
    padding: 54px 0;
  }

  .sg-shogatsu-event-card,
  .sg-shogatsu-application-box,
  .sg-shogatsu-panel {
    padding: 26px 20px;
  }

  .sg-shogatsu-schedule {
    display: block;
  }

  .sg-shogatsu-schedule__column {
    border-right: 0;
  }

  .sg-shogatsu-schedule-note {
    text-align: left;
  }

  .sg-shogatsu-downloads {
    display: grid;
  }

  .sg-shogatsu-downloads a {
    width: 100%;
  }

  .sg-shogatsu-wishes {
    grid-template-columns: 1fr 1fr;
    gap: 4px 14px;
  }

  .sg-shogatsu-walkin {
    padding: 30px 22px;
  }
}

@media screen and (max-width: 420px) {
  .sg-shogatsu-wishes {
    grid-template-columns: 1fr;
  }
}
