@charset "UTF-8";
/**************************************
 * file: style.css
 * brief: 全体設定用のスタイルファイル
 * author: Y. Kamijima
 * date: 2018/03/08
 * details: 設計方針は OOCSS や BEM や SMACSS を参考にする。また、各プロパティはアルファベット順に記す。
 **************************************/

/* Web フォント */
@import url(https://fonts.googleapis.com/css?family=Noto+Sans);
@import url(https://fonts.googleapis.com/earlyaccess/notosansjapanese.css);

/* 要素型セレクタを使用するのは、特にフォントなど、変更する可能性の低いもののときのみ。
他は基本的に class セレクタで設定する。 */

html {
  box-sizing: border-box;
  font-size: 62.5%;   /* デフォルトを 16px と想定して 10px に設定 */
}

body {
  background-color: #eed;
  font-family: 'Noto Sans', YuGothic, 'Yu Gothic Medium', 'Hiragino Kaku Gothic ProN', Meiryo, 'Noto Sans Japanese', sans-serif;
  font-size: 1.5rem;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/**************** レイアウト ****************/

.l-contents {
  margin: 0 auto;
  max-width: 980px;   /* 想定する最小のモニターサイズ */
}

.l-horizontalList {
  display: flex;
  justify-content: space-around;
  flex-direction: row;
  padding: 0;
}

.l-horizontalList--end {
  display: flex;
  justify-content: flex-end;
  flex-flow: row wrap;
  padding: 0;
}

/* section 要素での使用を想定している。文章の左右に余白を設定する。タイトルは除外。 */
.l-textMargin > *:not(h1):not(h2):not(h3):not(h4) {
  margin-left: 10px;
  margin-right: 10px;
}

/**************** 全ページで使う共通クラス ****************/

.header {
  border-top: solid 15px #563;
}

.header__nav {
  background-color: #e8d6b5;
  font-size: 1.2rem;
}

.header__nav__list {
  margin: 0;
}

.header__nav__list > li {
  list-style-type: none;
  margin: 10px;
  text-align: right;
}

.header__nav__item {
  color: #563;
  text-decoration: none;
}

.header__nav__item:hover {
  text-decoration: underline;
}

.header__titleContainer {
  background-color: #dee3a3;
  border-bottom: solid 2px #c2c490;
  color: #333;
  padding: 30px;   /* 以前の値が不明瞭だったため変更済 */
  width: 100%;
}

.contentsArea {
  background-color: #fff;
  border: solid 10px #e8d6b5;
  padding: 10px;
}

.globalNav {
  border: solid 1px #83911d;
}

.globalNav__list {
  font-size: 1.4rem;
  line-height: 1.429;   /* (行の高さ) / (フォントサイズ) = 20pt / 14pt */
  margin: 0;
}

.globalNav__list > li {
  border: solid 1px #83911d;
  flex: auto;
  list-style-type: none;
  text-align: center;
}

.globalNav__list > li > a {
  display: block;
  height: 100%;
  padding: 10px;
  text-decoration: none;
}

.globalNav__item {
  background-color: #96a621;
  color: #fff;
}

.globalNav__item:hover,
.globalNav__item--current {
  background-color: #cde32d;
  color: #333;
}

.mainContents {
  font-size: 1.5rem;
  line-height: 1.4;   /* (行の高さ) / (フォントサイズ) = 21pt / 15pt */
}

.mainContents__section a {
  color: #96a621;
}

.mainContents__section a:hover {
  color: #563;
}

.footer {
  background-color: #563;
  color: #fff;
  padding: 10px 0;
}

.footer__copyright {
  margin-bottom: 0;
  text-align: center;
}

.footer__copyright > img {
  vertical-align: middle;
}

.footer__copyright a {
  color: #dee3a3;
  text-decoration: none;
}

.footer__copyright a:hover {
  text-decoration: underline;
}

/**************** 汎用性の高いクラス ****************/

.subtitle {
  font-size: 80%;
}

.fontColor--orangeRed {
  color: #ff4500;
}

.fontColor--darkOliveGreen {
  color: #563;
}

.fontColor--brightUguisu-iro {
  color: #96a621;
}

.breakWord {
  word-wrap: break-word;
}

/* 第1レベルの節 */
.firstHeading {
  background-color: #96a621;
  color: #fff;
  font-size: 2rem;
  font-weight: normal;
  line-height: 1.300;   /* (行の高さ) / (フォントサイズ) = 26pt / 20pt；上下で 3pt ずつ余裕をもつ。 */
  margin-top: 0;
  padding: 2px 10px;
}

/* 第2レベルの節 */
.secondHeading {
  border-bottom: solid 1px #96a621;
  border-left: solid 4px #96a621;
  color: #96a621;
  font-size: 1.8rem;
  font-weight: normal;
  line-height: 1.333;   /* (行の高さ) / (フォントサイズ) = 24pt / 18pt；上下で 3pt ずつ余裕をもつ。 */
  padding-left: 10px;
}

/* 第3レベルの節 */
.thirdHeading {
  font-size: 1.6rem;
  line-height: 1.375;   /* (行の高さ) / (フォントサイズ) = 22pt / 16pt；上下で 3pt ずつ余裕をもつ。 */
}

/* 改行しない記述リスト。dl に適用する。 */
/* float プロパティを使う方法。設定が若干煩雑なものの、問題なく動く。 */
.nonBreakingList::after {    /* dd で float を設定していないので不必要。 */
  clear: both;
  content: "";
  display: block;
}

.nonBreakingList > dt {
  float: left;
  clear: left;
  width: 20%;                /* dd の margin-left と合わせる。 */
}

.nonBreakingList > dd {
  margin: 1rem 0 1rem 20%;   /* dt の width と合わせる。 */
  width: 80%;
}

/* Flexible box を使う方法。下側に余計な空白が入る問題あり。
.nonBreakingList {
  display: flex;
  flex-flow: row wrap;
}

.nonBreakingList > dt {
  flex: 0 1 15%;
  margin: 0 0 10px 0;           余白を設定しないと意図した動作にならない。
}

.nonBreakingList > dd {
  flex: 0 1 calc(85% - 1em);   ここの 1em は左の余白の 1em と合わせている。
  margin: 0 0 10px 1em;        余白を設定しないと意図した動作にならない。
}*/

/* 枠で囲まれたリスト */
.boxedList {
  background-color: #f7ffef;
}

.boxedList__item {
  background-image: url("../../ank2.png");   /* 箇条書きの約物を画像に変更する際によく使われる手法。 */
  background-position: 25px 3px;
  background-repeat: no-repeat;
  list-style-type: none;
  margin: 10px auto;
  padding: 0 40px;
}

/**************** メディアクエリの設定 ****************/

/* iPhone 6/7/8 の縦幅よりも小さい場合に変更が必要なクラスを上書きする。 */
@media screen and (max-width: 666px) {
  .l-horizontalList {
    flex-direction: column;
  }

  .nonBreakingList > dt {
    float: none;
    clear: none;
    width: auto;
  }

  .nonBreakingList > dd {
    margin: 0 0 1rem 1.5rem;
    width: auto;
  }

  .l-textMargin > *:not(h1):not(h2):not(h3):not(h4) {
    margin-left: 0;
    margin-right: 0;
  }

  .contentsArea {
    border-width: 5px;
    padding: 5px;
  }
}

.content--inner {
  padding-left: 4rem;
}

.content--inner h4 {
  color: #96a621;
}