/* 共通 */

:root {
  --color-background: #f7f3ea;
  --color-border: #e0d9c7a3;
  --color-sectiontitle: #3f5c4e;
  --color-sectionsubtitle: #c97a3d;
  --color-menu: #57351b;
  --color-footer: #22384a;
  --color-spmenu-background: #eae3d6;
  --color-text: #302f2a;
  --color-cta-normal: #c97a3d;
  --color-cta-hover: #955829;
  --color-saturday: #2b7bb2;
  --color-white: #ffffff;
  --color-spnav-divider: #b8aa95;
  --color-card-border: #e5ded0;
  --header-height: 80px;
  --fv-photo-height: 320px;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--color-text);
  line-height: 1.7;
}

h1 {
  font-size: 72px;
}

h2 {
  font-size: 24px;
  color: var(--color-sectiontitle);
}

h3 {
  font-size: 16px;
}

p {
  font-size: 16px;
  color: var(--color-text);
}

h1,
h2,
h3,
h4,
h5,
h6,
.header-logo,
.header-navi-item {
  font-family: "Shippori Mincho", serif;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, calc(100% - 140px));
  margin: 0 auto;
}

section {
  padding: 60px 0;
}

section:not(#fv) {
  scroll-margin-top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
}

.saturday {
  color: var(--color-saturday);
}

/* セクションのフェードイン */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* セクション見出し */
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-subtitle {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-sectionsubtitle);
}

.section-title {
  margin-top: 8px;
}

.divider-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.divider {
  display: block;
  width: 66px;
  height: 22px;
  margin-top: 10px;
}

.divider-line {
  width: 100px;
  height: 2px;
  background-image: radial-gradient(
    circle,
    var(--color-cta-normal) 1px,
    transparent 1.5px
  );
  background-size: 8px 2px;
  background-repeat: repeat-x;
}

.section-color {
  background-color: var(--color-background);
}

/* ヘッダ */
.header-area {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  background-color: color-mix(
    in srgb,
    var(--color-background) 80%,
    transparent
  );
  padding: 0 80px;
  padding-top: env(safe-area-inset-top, 0px);
}

.header-menu {
  display: flex;
  align-items: center;
  gap: 48px;
}

.header-logo {
  color: var(--color-sectiontitle);
  width: 150px;
}

.header-logo:hover {
  text-decoration: none;
}

.header-logo img {
  display: block;
  width: 100%;
}

#header-navigation ul {
  display: flex;
  gap: 40px;
  list-style: none;
}

#header-navigation li {
  font-size: clamp(12px, 1.4vw, 16px);
}

#header-navigation a {
  color: var(--color-menu);
}

.header-contact {
  display: flex;
  white-space: nowrap;
  flex-shrink: 0;
  align-items: center;
  gap: 24px;
}

.cta-button {
  display: inline-block;
  background-color: var(--color-cta-normal);
  padding: 12px 28px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-white);
  border: 1px solid var(--color-white);
}

.cta-button:hover {
  background-color: var(--color-cta-hover);
}

#hamburger-button {
  display: none;
}

.header-contact-sp {
  display: none;
}

.header-warning {
  position: fixed;
  bottom: calc(5% + env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  background-color: color-mix(
    in srgb,
    var(--color-cta-normal) 80%,
    transparent
  );
}

/* SPメニュー */
.sp-navigation {
  position: fixed;
  top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  right: 0px;
  width: 60%;
  height: 100%;
  background-color: var(--color-spmenu-background);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.sp-navigation.is-opened {
  transform: translateX(0);
  z-index: 1000;
}

.sp-navigation ul {
  padding-top: 40px;
}

.sp-navigation li {
  position: relative;
}

.sp-navigation li::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 90%;
  height: 1px;
  background-color: var(--color-spnav-divider);
  transform: translateX(-50%);
}

.sp-navigation a {
  display: block;
  width: 100%;
  padding: 40px 0;
  text-align: center;
}

/* フッター */
.footer {
  background-color: var(--color-footer);
  padding: 48px 0;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  margin-bottom: 20px;
}

.footer-organizer {
  color: color-mix(in srgb, var(--color-white) 80%, transparent);
  font-weight: 700;
  font-size: 15px;
}

.footer-contact {
  color: color-mix(in srgb, var(--color-white) 80%, transparent);
  font-size: 14px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.footer-links a {
  color: var(--color-white);
}

.footer-links-divider {
  color: color-mix(in srgb, var(--color-white) 50%, transparent);
}

.footer-disclaimer {
  text-align: center;
  color: color-mix(in srgb, var(--color-white) 55%, transparent);
  font-size: 12px;
  margin-bottom: 24px;
}

.footer-copyright {
  display: flex;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--color-white) 15%, transparent);
}

.footer small {
  color: color-mix(in srgb, var(--color-white) 70%, transparent);
}

/* ========================================
   トップページ
======================================== */

/* First view */
.fv-top {
  padding: 0;
}

.fv-area {
  position: relative;
}

.fv-image {
  display: block;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center center;
}

.fv-contents {
  position: absolute;
  top: 53%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.fv-frame {
  position: relative;
  width: 70%;
}

.fv-frame img {
  display: block;
  width: 100%;
}

.fv-copy {
  position: absolute;
  top: 0px;
  left: 50%;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  transform: translateX(-50%);
  text-align: center;
  font-weight: 500;
  padding: 32px 32px;
  color: var(--color-menu);
}

.fv-subtitle {
  margin-top: 48px;
  margin-bottom: 12px;
  font-size: 20px;
  color: var(--color-menu);
}

.fv-title-line {
  display: block;
  font-size: 56px;
  line-height: 1.2;
}

.fv-event-info {
  background-color: var(--color-background);
  padding: 10px 40px;
  border-radius: 10px;
  font-size: 20px;
}

.fv-event-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  border-bottom: 1px dashed var(--color-border);
  padding: 10px 0;
  align-items: center;
}

.fv-event-info-label {
  grid-column: 1;
  font-size: 16px;
  color: var(--color-sectionsubtitle);
}

.fv-event-info-content {
  grid-column: 2;
}

.fv-event-row:last-child {
  border-bottom: none;
}

/* ========================================
   About the tour
======================================== */
.about-content {
  display: grid;
  grid-template-columns: minmax(0, 460px) 1fr;
  gap: 80px;
  align-items: center;
}

.about-image img {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 16px;
}

.about-heading {
  margin-bottom: 24px;
}

.about-title {
  margin-top: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.about-quote {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 24px;
}

.about-body p {
  margin-bottom: 24px;
}

.about-body p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Course
======================================== */
.section-description {
  margin-top: 16px;
}

.course-map {
  margin-bottom: 40px;
}

.course-map img {
  display: block;
  margin: 0 auto;
  width: 70%;
  border-radius: 16px;
}

.course-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 24px;
  list-style: none;
  background-color: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: 16px;
  padding: 32px 40px;
}

.course-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  background-color: var(--color-background);
  border-radius: 20px;
  width: 250px;
  padding: 10px;
}

.course-number {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-cta-normal);
  color: var(--color-white);
  font-size: 14px;
}

/* ========================================
   FAQ
======================================== */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  font-weight: 700;
  font-size: 18px;
  color: var(--color-sectionsubtitle);
  margin-bottom: 12px;
}

.faq-answer {
  font-size: 16px;
}

/* ========================================
   Contact
======================================== */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}

.required-badge {
  display: inline-block;
  background-color: var(--color-cta-normal);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--color-text);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: color-mix(in srgb, var(--color-text) 45%, transparent);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-cta-normal);
}

.form-submit {
  text-align: center;
  margin-top: 40px;
}

.submit-button {
  display: inline-block;
  background-color: var(--color-sectiontitle);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 56px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
}

.submit-button:hover {
  background-color: color-mix(in srgb, var(--color-sectiontitle) 85%, black);
}

/* ========================================
   Closing CTA
======================================== */
.closing-section {
  background-image: url("../img/asanoha.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0;
}

.closing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.closing-message {
  color: var(--color-white);
  font-family: "Shippori Mincho", serif;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

.closing-notice {
  background-color: color-mix(in srgb, var(--color-white) 30%, transparent);
  border-radius: 8px;
  padding: 20px 40px;
  margin-bottom: 40px;
}

.closing-deadline {
  color: var(--color-menu);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}

.closing-note {
  color: var(--color-white);
  font-size: 13px;
  line-height: 1.7;
}

/* ========================================
   Tour Highlights
======================================== */
.highlight-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.highlight-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: 16px;
  padding: 24px;
}

.highlight-image-wrap {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}

.highlight-image {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.highlight-catch {
  text-align: center;
  color: var(--color-sectiontitle);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.highlight-name {
  text-align: center;
  font-size: 16px;
  margin-bottom: 16px;
}

.highlight-text {
  padding: 0 32px;
}

.highlight-text p {
  text-align: left;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 4px;
}

.highlight-text p:last-child {
  margin-bottom: 0;
}

/* ========================================
   タブレット/SPサイト ~1050px
======================================== */

@media (max-width: 1050px) {
  .container {
    width: min(600px, calc(100% - 80px));
  }

  /* ヘッダ */
  .header-area {
    padding: 0 20px;
  }

  #header-navigation {
    display: none;
  }

  .header-contact {
    display: none;
  }

  .header-logo {
    font-size: clamp(16px, 3vw, 24px);
  }

  .header-contact-sp {
    position: fixed;
    bottom: 50%;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 80px;
    writing-mode: vertical-rl;
    border-radius: 8px 0 0 8px;
    text-align: center;
    font-size: 16px;
    background-color: color-mix(
      in srgb,
      var(--color-cta-normal) 80%,
      transparent
    );
  }

  .header-contact-sp:hover {
    background-color: var(--color-cta-hover);
  }

  .sp-cta-button {
    color: var(--color-white);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #hamburger-button {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    border: none;
    background-color: transparent;
    cursor: pointer;
  }

  #hamburger-button span {
    width: 48px;
    height: 5px;
    background-color: var(--color-menu);
    transition: 0.3s;
  }

  #hamburger-button.is-opened span:nth-of-type(1) {
    transform: translateY(15px) rotate(45deg);
  }

  #hamburger-button.is-opened span:nth-of-type(2) {
    opacity: 0;
  }

  #hamburger-button.is-opened span:nth-of-type(3) {
    transform: translateY(-15px) rotate(-45deg);
  }

  /* フッター */
  .footer {
    /* 既存のpadding-bottom(48px) + 固定予約バーの高さ分を確保 */
    padding-bottom: 128px;
  }

  .footer-organizer,
  .footer-contact,
  .footer-links {
    font-size: 13px;
  }

  .footer-disclaimer {
    font-size: 11px;
  }

  /* First view */
  .fv-area {
    background-image: url("../img/asanoha.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  #fv picture {
    width: 100%;
  }

  .fv-image {
    height: var(--fv-photo-height);
    margin-top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  }

  /* PCでは画像全体に絶対配置で中央寄せしていたが、
     SPでは通常の流し込みに戻し、イベント情報を画像の下に配置する */
  .fv-contents {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: calc(100% - 40px);
    margin: 0 auto;
    gap: 24px;
  }

  /* タイトル部分だけ画像の上に重なるように引き上げる。
     absoluteでflowから外すことで、下に続くfv-event-infoが
     一緒に引き上げられないようにする */
  .fv-frame {
    position: absolute;
    top: calc(var(--fv-photo-height) * -0.9);
    left: 0;
    width: 100%;
  }

  .fv-frame img {
    height: calc(var(--fv-photo-height) * 0.8);
    width: auto;
    margin: 0 auto;
  }

  .fv-title-line {
    margin-top: 20px;
    font-size: 32px;
    line-height: 1.1;
  }

  .fv-subtitle {
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 16px;
  }

  .fv-event-info {
    margin: 40px 0;
    padding: 10px 24px;
    font-size: 24px;
  }

  .fv-event-row {
    grid-template-columns: 100px 1fr;
  }

  /* About the tour */
  .about-content {
    display: flex;
    flex-direction: column-reverse;
    gap: 32px;
  }

  .about-image img {
    height: 260px;
  }

  .about-heading {
    text-align: center;
  }

  .about-title {
    font-size: 24px;
  }

  /* Course */
  .course-map {
    margin-bottom: 24px;
  }
  /* Course */
  .course-map img {
    width: 80%;
  }

  .course-list {
    gap: 10px;
    padding: 8px 24px;
  }

  /* Tour Highlights */
  .highlight-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .highlight-card {
    padding: 16px;
  }

  .highlight-image {
    height: 240px;
  }

  /* FAQ */
  .faq-item {
    padding: 16px 0;
  }

  .faq-question {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .faq-answer {
    font-size: 14px;
  }

  /* Contact */
  .form-group {
    margin-bottom: 20px;
  }

  .form-group label {
    font-size: 14px;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form textarea {
    padding: 12px 14px;
    font-size: 14px;
  }

  .form-submit {
    margin-top: 32px;
  }

  /* Closing CTA */
  .closing-section {
    padding: 64px 0;
  }

  .closing-message {
    margin-bottom: 24px;
  }

  .closing-notice {
    padding: 16px 20px;
    margin-bottom: 32px;
  }

  .closing-deadline {
    font-size: 14px;
  }

  .closing-note {
    font-size: 12px;
  }
}

/* ========================================
   SPサイト ~400px
======================================== */

@media (max-width: 400px) {
  /* First view */
  .fv-frame img {
    height: calc(var(--fv-photo-height) * 0.55);
  }

  .fv-frame {
    top: calc(var(--fv-photo-height) * -0.8);
  }

  .fv-subtitle {
    margin: 0;
    font-size: 13px;
  }

  .fv-title-line {
    margin-top: 8px;
    font-size: 24px;
  }

  .fv-event-info {
    font-size: 16px;
  }
}
