@charset "utf-8";

/**
 * ページ全体
 */
html {
  /* スムーススクロール */
  scroll-behavior: smooth;
}

body {
  /* 文字関係 */
  color: #121212;
  font-family: serif;
  font-size: 18px;
  /* 最小幅 */
  min-width: 1000px;
}

/* 表示領域 */
.innerWrap {
  width: 960px;
  margin: 0 auto;
}

/* 画像 */
img {
  max-width: 100%;
  height: auto;
}

/**
 * ヘッダー
 */
header {
  background: url(../images/hero.png) no-repeat center/cover;
  /* 基準枠 */
  position: relative;
}

header nav {
  /* 上部固定 */
  position: fixed;
  top: 0;
  left: 0;
  /* 重ね順：前面 */
  z-index: 100;
  /* 背景色：#ffffff78 */
  background-color: #ffffffc5;
  /* 幅 */
  width: 100%;
}

header nav ul {
  /* リスト項目横並び */
  display: flex;
  /* 横方向調整：均等配置 */
  justify-content: space-around;
  /* 幅：960px */
  width: 960px;
  /* ブロック：中央表示 */
  margin: 0 auto;
  /* 余白：上下0.6em、左右1em */
  padding: 0.6em 1em;
}

header nav a:hover {
  text-decoration: underline;
}

header .innerWrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1em;
  height: 90vh;
}

header .hero_text {
  background-color: #00000063;
  border-radius: 0.6em;
  color: #ffffff;
  font-size: 2em;
  line-height: 1.4;
  text-align: center;
  text-shadow: 0.06em 0.06em 0em #000;
  padding: 1em;
}

header .scroll {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
  font-size: 0.8em;
}

/* 矢印のアニメーション部分 */
.scroll::before {
  content: url(../images/arrow03.png);
  display: block;
  margin: 0 auto;
  width: 100px;
  height: auto;
  animation: scroll 6s infinite;
}

/* アニメーション */
@keyframes scroll {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(40px);
  }

  100% {
    transform: translateY(0);
  }
}

/**
 * セクション
 */
section {
  padding: 6em 1em;
}

section h2 {
  text-align: center;
  font-size: 2.4em;
  letter-spacing: 0.05em;
  margin-bottom: 1.4em;
}

/**
 * メッセージ
 */
.msgSec {
  background-color: #fff;
}

.msgSec p {
  text-align: center;
  line-height: 1.75;
  margin-bottom: 1em;
}

.msgSec .illust {
  text-align: center;
  margin-top: 4em;
  padding-bottom: 2em;
  /* 問10解答：基準枠 */
  position: relative;
}

.msgSec .illust::before {
  content: url(../images/deco_left.png);
  position: absolute;
  left: 200px;
  bottom: 30px;
}

.msgSec .illust::after {
  content: url(../images/deco_right.png);
  position: absolute;
  right: 230px;
  bottom: 30px;
}

/**
 * 期日
 */
.dateSec {
  background-color: #eee8d8;
  margin-bottom: 240px;
}

.dateSec::after {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url(../images/bg.jpg) no-repeat center/cover;
  z-index: -1;
}

.dateSec .layoutWrap {
  display: flex;
  align-items: center;
}

.dateSec figure {
  flex-basis: 500px;
}

.dateSec .dateDetailSec {
  background-color: #fff;
  font-size: 2em;
  line-height: 1.2;
  margin-left: -1em;
  padding: 1.2em;
  flex-basis: 460px;
}

.dateSec .word1 {
  font-size: 1.2em;
}

/**
 * フォーム
 */
/* 基本タグ */
input[type="text"],
input[type="email"],
select,
textarea {
  border: 1px solid #cccccc;
  border-radius: 0.2em;
  background-color: #ffffff;
  width: 100%;
  margin-top: 5px;
  padding: 4px 8px;
}

input[type="radio"],
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  vertical-align: baseline;
  margin-right: 0.4em;
}

select {
  background: #ffffff url(../images/arrow.png) no-repeat 98% 50%/17px 10px;
}

textarea {
  height: 4em;
  margin-bottom: 3em;
}

input[type="submit"] {
  background-color: #121212;
  color: #ffffff;
  padding: 18px 80px;
  transition: all 0.3s;
}

input[type="submit"]:hover {
  background-color: #c7887f;
  transform: scale(1.1);
}

.formSec {
  background-color: #ebe2b3;
}

.formSec form {
  width: 600px;
  margin: 0 auto;
}

.formSec .mainRadio {
  text-align: center;
  margin-bottom: 2em;
}

.formSec .mainRadio label {
  margin: 0 20px;
  font-size: 1.2em;
}

.formSec form dl {
  line-height: 1.4;
}

.formSec dl label {
  margin-right: 1em;
}

.formSec dt {
  color: #5f1105;
  font-weight: 400;
}

.formSec dd {
  margin: 0.4em 0 1em;
}

.formSec .submitBtn {
  text-align: center;
}


/**
 * フッター
 */
footer {
  background-color: #9b4c3f;
  color: #f3e9e5;
  padding: 14px 10px 20px;
  text-align: center;
}


/*
問題
モバイル用のCSSを記述してください。

問１
画面幅が640px以下の場合に適用されるメディアクエリを記述してください。

問２
固定幅を指定している箇所を画面幅に合わせて可変（100%）にしてください。
その際、セレクタのポイント数を合わせて上書きしてください。

問３
ヘッダーの背景画像を「hero_sp.png」に変更してください。

問４
ヘッダーのヒーローテキストの文字サイズを1.6emに変更してください。

問５
セクション見出しの文字サイズを2emに変更してください。

問６
メッセージセクションの段落テキストを左寄せに変更してください。

問７
メッセージセクションのイラストの位置を完成サイトを確認しながら調整してください。

問８
期日セクションのレイアウトを完成サイトを確認しながら調整してください。

問９
ラジオボタンのラベルをブロック表示に変更し、左寄せに変更してください。
*/
@media screen and (max-width: 640px) {

  /*
   * 基本デザインの上書き
  */
  body {
    /* モバイル用文字サイズ */
    font-size: 4vw;
    /* モバイル時は最小幅指定をなくす */
    min-width: 0;
  }

  .innerWrap {
    width: 100%;
  }

  header {
    background: url(../images/hero_sp.png) no-repeat center/cover;
  }

  header nav ul {
    width: 100%;
  }

  header .hero_text {
    font-size: 1.6em;
  }

  section h2 {
    font-size: 2em;
  }

  .msgSec p {
    text-align: left;
  }

  .msgSec .illust::before {
    left: 0px;
    bottom: -60px;
  }

  .msgSec .illust::after {
    right: 0px;
    bottom: -60px;
  }

  .msgSec .illust img {
    width: 70%;
  }

  .dateSec .layoutWrap {
    display: block;
  }

  .dateSec .dateDetailSec {
    text-align: center;
    margin-left: 0;
  }

  .formSec form {
    width: 100%;
  }

  .formSec .mainRadio label {
    display: block;
    text-align: left;
    margin-bottom: 1em;
  }

  .formSec dl label {
    display: block;
    margin-bottom: 1em;
  }
}
