/* -------------------------------------------------------------------------- */
/* 冒頭の呪文 */
@charset "UTF-8";

/* -------------------------------------------------------------------------- */
/* 基本の設定 */
html,body {
	margin: 0;
	padding: 0;
	width: 100%;
}
html {
	font-size: 62.5%;
}
body {
	text-align: center;
}

/* -------------------------------------------------------------------------- */
/* ウェブフォント */
.kosugi-regular {
	font-family: "Kosugi", sans-serif;
	font-weight: 400;
	font-style: normal;
}

/* -------------------------------------------------------------------------- */
/* wrapper */
#wrapper {
	box-sizing: border-box;
	margin: 20px auto;
	padding: 0;
	text-align: left;
	max-width: 1024px;
}

/* -------------------------------------------------------------------------- */
/* header */
#header {
	padding: 0 10px;
	display: flex;
	align-items: center;
}
/* ロゴ */
#header div.logo img {
	width: 4rem;
	opacity: 0.6;
}
/* 会社名をまとめたコンテナ（.title）*/
#header .title {
	display: flex; /* これが重要：すべての画面幅でロゴと名前を横並びにする */
	align-items: center;
}
/* 会社名和文と英文をまとめたコンテナ（.name）*/
#header div.name {
	display: flex;
	flex-direction: column; /* h1とh2を縦に並べる */
	margin-left: 1.0rem; /* ロゴとの間にスペースを追加 */
}
/* 会社名和文 */
#header div.name h1 {
	margin: 0; /* デフォルトマージンをリセット */
	color: #333;
	font-size: 2.2rem;
	font-weight: normal;
}
/* 会社名英文 */
#header div.name h2 {
	margin: 0 0 0 0.3rem; /* デフォルトマージンをリセット */
	color: #555;
	font-size: 0.88rem;
	font-weight: normal;
}
/* ナビゲーション */
#header div.nav {
	margin-left: auto;
}
#header div.nav ul {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}
#header div.nav ul li {
	margin: 0 0 0 1rem;
	border: 1px solid #999;
	border-radius: 5px;
	font-size: 1.1rem;
	text-align: center;
}
#header div.nav ul li a {
	display: block;
	width: 6rem;
	padding: 0.3rem 1rem;
	text-decoration: none;
	color: #333;
}

/* -------------------------------------------------------------------------- */
/* 本文箇所 */
#articles {
	font-size: 1.4rem;
	color: #555;
}
/* 各本文基本設定 */
#articles div.article {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 480px;
	padding: 30px 0 20px;
}
#articles div.article::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url( "../img/usagi.svg" );
	background-repeat: no-repeat;
	background-position: center;
	background-size: 50%;
	opacity: 0.07;
	z-index: -1;
}
/* 本文ホーム */
#articles div.article div.message {
	width: 50%;
	line-height: 2rem;
}
/* 本文概要 */
#articles div.article.profile dl {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	width: 50%;
}
#articles div.article.profile dl dt,
#articles div.article.profile dl dd {
	margin: 0;
	padding: 5px 0;
	box-sizing: border-box;
	line-height: 2rem;
}
#articles div.article.profile dl dt {
	width: 110px;
}
#articles div.article.profile dl dd {
	width: calc( 100% - 110px );
}
#articles div.article.profile dl dd ul {
	margin: 3px 0;
	padding-left: 25px;
}

/* #articles div.article.archives ul {
	margin: 0;
	padding: 0 0 0 30px;
	width: 512px;
} */

/* -------------------------------------------------------------------------- */
/* footer */
#footer {
	margin-top: 10px;
	border-top: 1px solid #ddd;
	padding-top: 5px;
	color: #888;
	text-align: center;
	font-size: 1.2rem;
}
#footer span {
	white-space: nowrap;
}

span.x-stretch {
	display: inline-block;
	transform: scaleX( 1.5 );
	transform-origin: left;
	margin-left: 0.1rem;
	margin-right: 0.4rem;
	color: #666;
}

/* -------------------------------------------------------------------------- */
/* 本文非表示設定とアニメーション */
#articles div.article {
	opacity: 0;
}
#articles div.article.hide {
	display: none;
}
#articles div.article.fadein {
	animation-name: fadein;
	animation-duration: 1.5s;
	animation-fill-mode: forwards;
}
@keyframes fadein {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

/* 画面幅が400px以下のときに適用されるスタイル */
@media screen and (max-width: 600px) {
	/* 親コンテナであるヘッダーの設定 */
	#header {
		flex-wrap: wrap; /* 子要素の改行を許可 */
		justify-content: center;
	}

	/* ロゴと会社名をまとめるためのグループ化 */
	#header .title {
		flex-basis: 100%; /* このグループ全体で1行を占める */
		justify-content: center;
		margin-bottom: 10px;
	}

	/* 会社名部分のコンテナをFlexに設定 */
	#header div.name {
		margin-left: 0.5rem; /* ロゴとの間にスペースを追加 */
	}

	/* h1とh2のフォントサイズとマージンを調整 */
	#header div.name h1 {
		font-size: 2rem;
	}

	#header div.name h2 {
		font-size: 0.8rem;
	}

	/* ナビゲーション部分の設定 */
	#header div.nav {
		flex-basis: 100%; /* ナビゲーション全体で新しい行を占める */
		margin-top: 10px;
	}

	/* ナビゲーションメニューのリストを中央揃えに */
	#header div.nav ul {
		justify-content: center;
	}
	#articles div.article {
		padding: 0;
	}
	#articles div.article div.message {
		width: 80%;
	}
	#articles div.article.profile dl {
		width: 80%;
	}
}