@charset "UTF-8";

body {
  font-size: 18px;
  font-family: "Sawarabi Mincho", serif;
  color: #121212;
}
.ffJosefin {
  font-family: "Josefin Sans", sans-serif;
}
.innerWrap {
  width: 1240px;
  margin: 0 auto;
  padding: 80px 20px 0;
}
header {
  background: url(../img/hero.jpg) no-repeat right center/cover;
}
h1 {
  padding-top: 120px;
  margin: 0;
}
header .innerWrap {
  height: 720px;
  position: relative;
}
header nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
}
header nav ul {
  display: flex;
  justify-content: space-around;
  width: 1240px;
  margin: 0 auto;
  padding: 10px 20px;
  list-style: none;
}
header nav ul:hover {
  text-decoration: underline;
}
.scroll {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 16px;
}
.scroll img {
  margin-top: 8px;
}

/* main */
h2 {
  text-align: center;
  font-size: 60px;
  margin-bottom: 80px;
  letter-spacing: .05em;
}
.msgSec {
  background-color: #fbfaf7;
  letter-spacing: .05em;
}
.msgSec p {
  text-align: center;
  line-height: 1.75;
  margin-bottom: 40px;
}
.msgSec .illust {
  margin-top: 80px;
  margin-bottom: 0;
  position: relative;
}
.msgSec .illust::before {
  content: url(../img/deco_left.png);
  position: absolute;
  bottom: -30px;
  left: 320px;
}
.msgSec .illust::after {
  content: url(../img/deco_right.png);
  position: absolute;
  bottom: -30px;
  right: 320px;
}
.dateSec{
background-color: #fff;
padding-bottom: 120px;

}
.dateSec .layoutWrap{
    display: flex;
}
.dateSec .layoutWrap > p {
    width: 735px;
    }
    .dateSec .layoutWrap >div{
        width: 465px;
        padding-top: 100px;
    }
    h3{
        font-size: 55px;
        letter-spacing: .05em;
        margin-bottom: 8px;
        color: #cfafa3;
    }
.accessSec{
    margin-left: 48px;
}
.accessSec p{
    line-height: 1.6;
}
.dateDetailSec{
    font-size: 72px;
    background-color: #fff;
    padding: 40px 64px;
    line-height: 1.2;
    margin: 0 0 170px -100px;
}
.dateDetailSec span:first-child{
    font-size: 50px;
}
.dateDetailSec span:nth-child{
    font-size: 40px;
    }
.dateDetailSec span:last-child{
    font-size: 60px;
    }
.formSec{
    background: #efe8d9;
    padding-bottom: 60px;
    height: 100vh;
}   

/* パララックス効果 */
.dateSec{
    margin-bottom: 480px;
}
.dateSec::after{
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(../img/bg.jpg) no-repeat center/cover;
    z-index: -1;
}
/* ================================================= 
   スマートフォン・タブレット対応 (1240px以下)
   ================================================== */
@media screen and (max-width: 1240px) {
  /* 全体の幅調整 */
  .innerWrap {
    width: 100%;
    padding: 60px 5% 0; /* 左右に余白を持たせる */
    box-sizing: border-box;
  }

  /* ヘッダー・ナビゲーション */
  header nav ul {
    width: 100%;
    flex-wrap: wrap; /* 項目が多い場合に折り返す */
    padding: 10px 0;
  }
  
  header .innerWrap {
    height: 500px; /* スマホでは高さを少し抑える */
  }

  h1 {
    padding-top: 80px;
  }

  /* セクション見出し */
  h2 {
    font-size: 32px; /* サイズを縮小 */
    margin-bottom: 40px;
  }

  /* 日付・アクセスセクション（フレックスの解除） */
  .dateSec .layoutWrap {
    display: block; /* 横並びを解除 */
  }

  .dateSec .layoutWrap > p,
  .dateSec .layoutWrap > div {
    width: 100%; /* 全幅に広げる */
    padding-top: 20px;
  }

  .accessSec {
    margin-left: 0;
    margin-top: 40px;
  }

  h3 {
    font-size: 36px;
  }

  /* 日付詳細セクションの調整 */
  .dateDetailSec {
    margin: 0 0 80px 0; /* ネガティブマージン（-100px）を解除 */
    padding: 30px 20px;
    font-size: 40px; /* 全体的にサイズダウン */
  }

  /* 装飾画像の調整 */
  .msgSec .illust::before,
  .msgSec .illust::after {
    display: none; /* スマホでは画面外にはみ出しやすいため非表示、または調整 */
  }

  /* パララックス背景の調整 */
  .dateSec {
    margin-bottom: 100px; /* 余白を調整 */
  }
}

/* さらに小さい画面用 (768px以下) */
@media screen and (max-width: 768px) {
  body {
    font-size: 16px;
  }
  
  header nav ul {
    font-size: 14px;
  }

  .dateDetailSec span:first-child { font-size: 30px; }
  .dateDetailSec span:nth-child(2) { font-size: 24px; }
  .dateDetailSec span:last-child { font-size: 36px; }
}
/* 1240px以下のデバイス（スマホ・タブレット）向けの調整 */
@media screen and (max-width: 1240px) {

  /* 1. 横幅を固定せず、画面に合わせる */
  .innerWrap {
    width: 100%;
    padding: 40px 20px 0; /* 左右に20pxの余白を作る */
    box-sizing: border-box; /* パディングを含めて100%にする */
  }

  /* 2. ヘッダーの高さを自動調整（または少し小さく） */
  header .innerWrap {
    height: auto;
    min-height: 500px; /* PCより少し低く設定 */
  }

  /* 3. タイトル（h1）の文字がはみ出さないように調整 */
  h1 {
    padding-top: 100px;
    font-size: 8vw; /* 画面幅に合わせて文字サイズが変わる設定 */
    word-wrap: break-word; /* 長い単語があれば改行する */
  }
  
  /* 画像などがはみ出さないように保険をかける */
  img {
    max-width: 100%;
    height: auto;
  }

  /* ナビゲーションをスマホで見やすく（必要に応じて） */
  header nav ul {
    width: 100%;
    flex-wrap: wrap; /* 項目が多い場合に折り返す */
    justify-content: center;
    gap: 10px;
  }
}