@charset 'utf-8';

/*///////////////////// 共通パーツ /////////////////////*/
body {
  color: #222;
  font-size: 16px;
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  /* font-family: sans-serif; */
  line-height: 1.5;
}

/* クラスではなくすべての画像に対してかける */
/* 画像のサイズを親要素に合わせて調整するには、画像自体の幅を調整する必要がある */
img {
  max-width: 100%;
  height: auto; /* imageは必ず上下はautoかけといたほうがいい*/
}

a {
  transition: 1s;
}

a:hover {
  opacity: 0.2;
}

/* コンテンツ幅 */
.wrapper {
  /*左右中央に配置する処理*/
  /*margin: auto;としてしまうと上と下にも効いてしまう  */
  margin-right: auto;
  margin-left: auto;
  max-width: 1040px;
  /* 100%では画面サイズをちぢめたときに横の余白が全くないので少し余白を入れるために90％くらいにする */
  width: 90%;
}

/* セクションタイトル */
.section_title {
  margin-bottom: 30px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.6;
}

.section_title span {
  margin-left: 26px;
  font-size: 16px;
}

/* section_titleとcenterをダブルで持っているところだけに効く */
/* 中央揃えの見出し */
.section_title.center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section_title.center span {
  margin-left: 0; /* 他のセクションタイトルで効いていたmargin-leftを打ち消す */
}

/* ボタン */
.button {
  display: inline-block;
  padding: 16px 120px 16px;
  border: 1px solid #222222;
  background-color: #fff;
}

.button_area {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

/* 大きいボタン */
.button.large {
  display: flex;
  align-items: center;
  width: 48.8%;
  font-size: 18px;
  font-weight: 700;
  border: 0;
  padding: 38px 0 38px 50px;

  position: relative; /* 基準にしたい要素に書く（今回動かしたい疑似要素の親） */
}

.button.large::after {
  /* 疑似要素描くときは上の４つ必須！ */
  content: "";
  display: block;
  width: 0.5em; /* 矢印を作るときはemつかうとはまる */
  height: 0.5em;
  border: 1px solid; /* 色を指定しないと線の色は文字の色と同じになる！ */
  border-top: 0;
  border-left: 0;

  position: absolute; /* 動かしたい子（基準の上を空飛んでる状態） */
  right: 6%;
  top: 50%;

  transform: translateY(-50%) rotate(-45deg);
  /* 自分の要素の高さの半分上に + 斜め45度かたむけ*/
  /* translateが先、順番で異なるので注意 */
  /* そもそも上下方向はalignitemsかかってるからtranslateで調整しなくていい（教材参照） */
}

/* アイコン（ほんとはstyle.css） */
.search_icon {
  width: auto;
  height: 55px; /* アイコンは高さがまちまちなので固定させる・その代わり横幅は自由に*/
  margin-right: 55px;
}

/*///////////////////// 下層共通パーツ /////////////////////*/
.page_mv {
  display: flex;
  align-items: center; /* 上下中央 */
  background-color: #eee; /* 画像がもし表示されなかったとしても */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: 200px;
}

.page_mv_title {
  display: flex;
  flex-direction: column;
}

.page_mv_title span {
  margin-left: 0;
}

/*///////////////////// ヘッダー /////////////////////*/
.header {
  display: flex;
  /* 横方向の位置調整はjustify-content*/
  justify-content: space-between;
  /* 縦方向の位置調整はalign-items*/
  align-items: center;
  padding: 14px 0;
}

.header_logo {
  width: 67px;
  height: auto;
}

.header_nav ul {
  display: flex;
}

.header_nav li {
  margin-left: 50px;
}

.nav_button {
  display: none;
}

/*/////////////////////ぱんくずリスト/////////////////////////*/

.breadcrumb {
  margin-top: 28px;
  font-size: 14px;
  font-weight: 600;
}

.breadcrumb ul {
  display: flex;
}

.breadcrumb li {
  margin-right: 20px;
  display: flex;
  align-items: center;
}

/* ○○+△△ は○○のあとに△△があるときだけ効く */
.breadcrumb li + li::before {
  content: "";
  display: block;
  width: 0.4em;
  height: 0.4em;
  border: 1px solid;
  border-top: 0;
  border-left: 0;
  transform: rotate(-45deg);
  margin-right: 20px;
}

/*/////////////////////メイン/////////////////////////*/
.main {
  margin-top: 100px;
}

/*/////////////////////フッター/////////////////////////*/
.footer {
  margin-top: 160px;
  padding: 60px 0 20px;
  /* 背景に画像を敷きたいときは下の４つを記述 */
  background-image: url(../image/footer_image.jpg); /* 画像読み込み（urlが必須） */
  background-repeat: no-repeat; /* 画像の繰り返し（パターンを敷きたいとき以外はno-repeatでOK）*/
  background-position: center; /* 背景画像を配置する基準の位置を指定 */
  background-size: cover; /* 背画像の大きさを指定。要素全体に画像を敷きたい(画像が切り取られて表示)ときはcover、画像が切れないように配置したいときはcontain、%を入れると幅に対しての比率に。*/
}

.footer_inner {
  display: flex;
  gap: 20px;
}

.footer_box {
  width: 25%;
}

.footer_title {
  font-weight: 700;
  border-bottom: 1px solid #222;
  padding-bottom: 8px; /* フォントサイズ16pxの 1/2 */
}

.footer_list li {
  margin-top: 16px; /* フォントサイズ16pxと同じ */
}

.footer_copyright {
  display: flex;
  justify-content: center;
  margin-top: 90px;
}

/* もしくは（smallタグはインラインになってるのでblockにしてから調整） */
/* .footer_copyright {
    display: block;
    text-align: center;
    margin-top: 90px;
} */

/*/////////////////////レスポンシブ対応/////////////////////////*/

/* 一般的によく使用されている「768px」ですすめていきます。
（標準的なサイズのiPadを縦向きにしたときの画面幅になります。縦向きiPadではスマホになります） */
@media (max-width: 768px) {
  /* ひたすらデベロッパーツールでどのcssが邪魔しているかを探し上書きしていく */

  .header {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: #fff;
    width: 100%;
    padding-left: 5%;
    padding-right: 5%;
  }

  .nav_button {
    display: block;
    width: 30px;
    height: 30px;
    background-image: url(../image/nav-open.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    position: relative;
    z-index: 12;
  }

  .header_nav ul {
    position: fixed;
    z-index: 11;
    top: 0;
    left: 0;

    background-color: #222222;
    color: #fff;

    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 50px;

    /* ナビを画面から右側に移動させて消す */
    transform: translateX(100%);
    transition: 0.4s;
  }

  /* もし親にnav_openというクラスがあった場合 */
  .nav_open .header_nav ul {
    transform: translateX(0);
  }

  .nav_open .nav_button {
    background-image: url(../image/nav-close.svg);
  }

  .header_nav li {
    margin-left: 0;
    font-size: 20px;
    font-weight: 500;
  }

  .footer {
    background-image: url(../image/footer_image_sp.png);
  }

  .footer_inner {
    flex-direction: column;
  }

  .footer_box {
    width: 100%;
  }
}
