@charset "utf-8";

/* Font Awesomeの読み込み */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");

/* Google Fontsの読み込み */
@import url('https://fonts.googleapis.com/css2?family=Murecho:wght@100..900&display=swap');

/* CSSカスタムプロパティ（サイト全体を一括管理する為の設定） */
:root {
	--primary-color: #88d48e; /*テンプレートのメインまたはアクセントカラー*/
	--primary-inverse-color: #fff; /*上のprimary-colorの対となる色*/
	--global-space: 7vw; /*主に余白の一括管理用。画面幅100%＝100vwです。*/
}

/* リンクテキスト全般の設定 */
a {
	color: inherit;
	transition: 0.3s;
}
a:hover {
	text-decoration: none;
	opacity: 0.9;
}

/* コンテナー（サイト全体を囲むブロック） */
#container {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* メインコンテンツ */
#contents {
	flex: 1;
	padding: 0 var(--global-space);
}

/* mainブロック */
main {
	padding: var(--global-space) 0;
}

/* 汎用input, section間余白 */
input {font-size: 1rem;}
section + section {
	margin-top: var(--global-space);
}

/* =============================
   サイト全体のリセットCSS・レイアウト基礎
   ============================= */

/* すべての要素のbox-sizingをborder-boxに */
body * {box-sizing: border-box;}

/* デフォルト余白・リスト・画像などのリセット */

nav ul {list-style: none;}
nav,ul,li,ol {margin: 0;padding: 0;}
section li {margin-left: 1rem;}

/* テーブルの初期化 */
table {border-collapse:collapse;}

/* 画像の初期化 */
img {border: none;max-width: 100%;height: auto;vertical-align: middle;}


/* 共通パーツ（header, menubar, footer）用CSS */

/*header（ロゴが入った最上段のブロック）*/
header {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100px;
	padding: 0 var(--global-space);
	font-optical-sizing: auto;
	font-weight: 700;
	background: var(--primary-color);
	color: var(--primary-inverse-color);
}
header a {color: inherit;}
.logo a {display: block;text-decoration: none;}
.logo img {display: block;}
.logo {
	margin: 0;
	padding: 0;
	font-size: 1.5rem;
	font-weight: 500;
	letter-spacing: 0.1em;
}
.logo img {
	width: clamp(300px, 20vw, 600px);
	height: auto;
	display: block;
}
@media screen and (min-width:900px) {
	header {height: 120px;}
	.logo {width: 300px;}
}

/* ヘッダー内メニュー */
header nav ul {display: none;}
@media screen and (min-width:900px) {
	header > nav > ul {display: flex;font-size: 0.85rem;}
	header nav li a {display: block;text-decoration: none;padding: 0.5rem 1rem;}
}

/* ドロップダウンメニュー共通 */
header nav ul ul,
.small-screen #menubar ul ul {animation: opa1 0.5s 0.1s both;}
header nav ul ul {position: absolute;z-index: 100;}
header nav ul ul a {
	background: var(--primary-inverse-color);
	color: var(--primary-color);
	padding: 0.3em 1em;
	margin-top: 4px;
	border: 1px solid var(--primary-color);
}

#menubar {
  display: none;
}
#menubar.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--primary-color);
}
#menubar ul {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}
#menubar li {
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}
#menubar a {
  display: block;
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1.2rem;
  color: #fff;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 10px;
  text-align: left;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}
#menubar a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
#menubar .logo,
#menubar h1 {
  text-align: center;
  margin-bottom: 2.5rem;
  color: #fff;
  font-size: 2.2rem;
  font-family: 'Murecho', '游ゴシック体', 'YuGothic', sans-serif;
  letter-spacing: 0.1em;
}
#menubar_hdr {
  position: fixed;
  z-index: 2100;
  cursor: pointer;
  top: 5px;
  right: 10px;
  width: 80px;
  height: 80px;
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #FF7900;
  border-radius: 50%;
}
#menubar_hdr:hover {transform: scale(1.2);}
@media screen and (min-width:900px) {
  #menubar_hdr {top: 34px;}
}
#menubar_hdr.display-none {display: none;}
.ddmenu_parent ul {display: none;}
a.ddmenu::before {
	font-family: "Font Awesome 6 Free";
	content: "\f078";
	font-weight: bold;
	margin-right: 0.5em;
}

/* 開閉メニュー */
.small-screen #menubar ul ul {margin: 2rem;}
.small-screen #menubar nav ul li {
	border: 1px solid var(--primary-inverse-color);
	margin: 1rem 0;
	border-radius: 5px;
}
.small-screen #menubar a {color: inherit;padding: 1rem 2rem;}
.small-screen #menubar a:hover {
	color: var(--primary-color);
	background: var(--primary-inverse-color);
}

/* フッター */
footer {
	display: flex; /* flexboxを有効化 */
	justify-content: center; /* 水平方向の中央配置 */
	align-items: center; /* 垂直方向の中央配置 */
	font-size: 0.9rem;
	padding: var(--global-space);
	color: var(--primary-inverse-color); /* ヘッダーと同じ白色テキスト */
	background: var(--primary-color); /* ヘッダーと同じ緑色背景 */
	width: calc(100% + 2 * var(--global-space)); /* 親要素の幅 + 左右のマージン分 */
	margin-left: calc(-1 * var(--global-space)); /* 左側のパディングを相殺 */
	margin-right: calc(-1 * var(--global-space)); /* 右側のパディングを相殺 */
	box-sizing: border-box; /* パディングとボーダーを幅に含める */
}

/* フッター内のリンクスタイル */
footer a {
	text-decoration: none;
	color: inherit;
}

.menu-logo {
  display: block;
  margin: 0 auto 2.5rem auto;
  width: clamp(300px, 20vw, 600px);
  height: auto;
} 
.menu-icon i {
  font-size: 2rem;
  color: #fff;
} 