/*---------------------------------------------------------
サイト全体に関わる定義を設定
---------------------------------------------------------*/
body {
/*フォントの指定*/
	font-family: 'メイリオ', 'Meiryo', 'ヒラギノ角ゴ Pro', 'Hiragino Kaku Gothic Pro', 'Noto Sans Japanese', Osaka, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif !important;
/*フォントサイズと太さ*/
	font-size: 13pt;
    font-weight: 300;
	transition: font-size 0.5s ease; /* フォントサイズの変化をアニメート */
/*フォントのスムージング*/
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
/*行間の指定*/
	line-height: 2.25em;
	margin: 0;
	padding: 0;
/*サイトのデフォルトとなる文字の色を指定*/
	color: #333;
}
/*配置（この設定はWordPress テーマのコーディング基準で推奨されています）*/
.alignleft {
	display: inline;
	float: left;
}
.alignright {
	display: inline;
	float: right;
}
.aligncenter {
	clear: both;
	display: block;
	margin-right: auto;
	margin-left: auto;
}

/*---------------------------------------------------------
ロゴ・ヘッダーメニューが表示されるヘッダー部の設定
---------------------------------------------------------*/
.header-inner {
  position: relative;
  display: flex;
  align-items: center; /* 要素を垂直方向に中央揃え */
}

/*---------------------------------------------------------
ロゴの表示設定
---------------------------------------------------------*/
.logo-area {
	display: inline-block;
	margin-right: auto;
}
/* ロゴは画面の横幅に対して30%の大きさで表示 */
.logo-area img {
    max-width: 30vw;
    height: auto;
    padding: 2rem;
}
/* スマートフォンの時、ロゴは画面の横幅に対して80%の大きさで表示 */
@media (max-width: 767px) {
	.logo-area img {
    max-width: 70vw;
	}
}

/*---------------------------------------------------------
ヘッダーナビの設定
---------------------------------------------------------*/
.header-nav {
	display: inline-block;
	margin-left: auto;
}
/* タブレットとスマートフォンの画面サイズで、ヘッダーメニューを非表示にする */
@media (max-width: 991px) {
  .header-nav {
    display: none !important;
  }
}
.header-nav ul {
	margin-bottom: 0;
	list-style: none;
}
.header-nav li {
	display: inline;
	margin: 15px 0;
	padding: 10px 20px;
	background-color: #333;
	color: #fff;
	transition: background .3s ease-in-out;
}
.header-nav li:hover {
	background-color: #888;
}
.header-nav li a {
	color: #fff;
	text-decoration: none;
}

/*---------------------------------------------------------
グローバルメニューの設定
---------------------------------------------------------*/
#gnav {
    background-color: black;	/* gnavの背景色は黒にします */
    position: relative;			/* 親要素の相対位置を指定します */
	z-index: 9999;				/* 表示位置を最前面に設定します */
}
/* メニュー項目は横並びにします */
.gnav-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
/* メニューに表示される項目の数に応じて、均等に割り振りをします */
.gnav-container li {
    flex: 1;
    text-align: center;
    position: relative; 
}
/* メニューの文字は白で表示します */
.gnav-container a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
}
/* メニューにオンマウスした時、背景色を赤に切り替えます */
.gnav-container a:hover {
    background-color: red;
    transition: background-color 0.3s ease;
}

/* メニューに表示される文字は、均等に割り付けられた範囲の上下中央に配置します */
.gnav-container a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* 追加 */
}
/* 子要素がある場合は、親項目の下部に表示させます */
.gnav-container ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    background-color: aqua; /* 水色 */
}
/* 子要素がある場合は、親項目の幅と一致させます */
.gnav-container li:hover > ul {
    display: block;
    width: 100%;
}
/* 孫要素がある場合は、子要素の右側に表示させます */
.gnav-container ul ul ul {
    position: absolute;
    top: 0;
    left: 100%;
    display: none;
    background-color: lime; /* 緑色 */
}
/* 孫要素が複数ある場合には、一つ目の孫要素の下に表示させます */
.gnav-container ul ul li:hover > ul {
    display: block;
    top: 0;
    left: 100%;
}

/*---------------------------------------------------------
スマートフォンメニューの設定
---------------------------------------------------------*/
.menu-btn {
    background-color: black;    /* ハンバーガーメニューの背景色は黒にします */
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    width: 60px;
    z-index: 90;
}
.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background-color: #fff;
    position: absolute;
}
.menu-btn span:before {
    bottom: 8px;
}
.menu-btn span:after {
    top: 8px;
}
#menu-btn-check:checked ~ .menu-btn span {
    background-color: rgba(255, 255, 255, 0);
}
#menu-btn-check:checked ~ .menu-btn span::before {
    bottom: 0;
    transform: rotate(45deg);
}
#menu-btn-check:checked ~ .menu-btn span::after {
    top: 0;
    transform: rotate(-45deg);
}
#menu-btn-check {
    display: none;
}
.menu-content {
    background-color: black;    /* スマートフォンメニューを開いた時の背景色は黒にします */
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 100%;
    z-index: 80;
    transition: all 0.5s;
}
.menu-content ul {
    padding: 70px 10px 0;
}
.menu-content ul li {
    border-bottom: solid 1px #fff;
    list-style: none;
}
.menu-content ul li a {
    display: block;
    width: 100%;
    font-size: 15px;
    box-sizing: border-box;
    color:#fff;
    text-decoration: none;
    padding: 9px 15px 10px 0;
    position: relative;
}
.menu-content ul li a::before {
    content: "";
    width: 7px;
    height: 7px;
    border-top: solid 2px #fff;
    border-right: solid 2px #fff;
    transform: rotate(45deg);
    position: absolute;
    right: 11px;
    top: 16px;
}
#menu-btn-check:checked ~ .menu-content {
    left: 0;
}
.sub-menu {
    padding: 0 !important; /* 余白を除去 */
    margin: 0 !important; /* 余白を除去 */
}
/* 子メニューの下線が太く見えないように調整 */
.menu-content ul li ul {
    border: none; /* 子メニュー全体に対する下線をなくす */
}

/* 子メニューに点線の下線を追加 */
.menu-content ul li ul li {
    border-bottom: dotted 1px #fff; /* 子メニュー項目の下線を点線に */
}

/* 子メニューのリンクに対する追加スタイル */
.menu-content ul li ul li a {
    padding-left: 30px; /* 子メニューのインデントを追加して親メニューと区別 */
}

/* 子メニューの最後の行には下線を表示しない */
.menu-content ul li ul li:last-child {
    border-bottom: none; /* 最後の子メニュー項目の下線を非表示 */
}

/* 子メニューを持つ親メニューの最後の行に白いソリッドの罫線を追加 */
.menu-content ul li.menu-item-has-children {
    border-bottom: solid 1px #fff; /* 子メニューを持つ親メニューの下線をソリッドに */
}

/* より具体的なセレクタで優先順位を高める */
.menu-content ul li.menu-item-has-children > a {
    border-bottom: solid 1px #fff; /* 子メニューを持つ親メニューのリンクの下線をソリッドに */
}

/*---------------------------------------------------------
Bootstrap3の設定を調整する
---------------------------------------------------------*/
ol, ul {
    margin: 2rem 4.5rem;
}