@charset "utf-8";

/*PC・スマホ共通設定
----------------*/
/*全体の設定
----------------*/
body {
	margin: 0px;
	padding: 0px;
	-webkit-text-size-adjust: none;
	color: #432f2f;	/*全体の文字色*/
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;	/*フォント種類*/
	font-size: 16px;	/*文字サイズ*/
	line-height: 2;		/*行間*/
	background: #FFFFFF;	/*背景色*/
}
h2,h3,h4,h5,p,ul,ol,li,dl,dt,dd,form,figure,form,select,input,textarea {
	margin: 0px;
	padding: 0px;
	font-size: 100%;
	font-weight: normal;
}
p{
    text-align: center;
}
h1 {
  font-size: 130%;
  text-decoration: underline;
}
ul {
	list-style-type: none;
}
img {
	border: none;
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}
table {
	border-collapse:collapse;
	font-size: 100%;
	border-spacing: 0;
}

/*コンテナ（ホームページを囲む一番外側のブロック）
----------------*/
#container {
	max-width: 1400px;	/*ブロックの最大幅*/
	margin: 0 auto;
	padding: 0 3%;
}

/*ヘッダー（ロゴが入った最上段のブロック）
----------------*/
/*headerブロック*/
header {
	text-align: center;	/*内容を中央よせ*/
}
/*ロゴ画像設定*/
h1 img {
	width: 400px;	/*画像幅*/
	margin: 20px auto 20px;	/*ロゴの上と下に40pxスペースを空けている*/
}

/*トップページのメイン画像
----------------*/
/*画像ブロック*/

/*メニュー
----------------*/
.menu-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    height: 60px;
    width: 60px;
    justify-content: center;
    align-items: center;
    z-index: 90;
    background-color: #003366;
}
.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background-color: #ffffff;
    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 {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 100%;/*leftの値を変更してメニューを画面外へ*/
    z-index: 80;
    background-color: #003366;
    transition: all 0.5s;/*アニメーション設定*/
}
.menu-content ul {
    padding: 70px 10px 0;
}
.menu-content ul li {
    border-bottom: solid 1px #ffffff;
    list-style: none;
}
.menu-content ul li a {
    display: block;
    width: 100%;
    font-size: 15px;
    box-sizing: border-box;
    color:#ffffff;
    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 #ffffff;
    border-right: solid 2px #ffffff;
    transform: rotate(45deg);
    position: absolute;
    right: 11px;
    top: 16px;
}
#menu-btn-check:checked ~ .menu-content {
    left: 0;/*メニューを画面内へ*/
}
/*メニュー全体を囲むブロック*/
nav {
	text-align: center;		/*文字をセンタリング*/
	font-size: 18px;		/*文字サイズ*/
	margin-top:30px;		/*上に空けるスペース*/
	margin-bottom: 30px;	/*下に空けるスペース*/
}
/*メニュー１個あたりの設定*/
nav li {
	display: inline;	/*横並びにする設定*/
}
nav li a {
	text-decoration: none;
	padding: 10px 20px;	/*各メニュー内の余白。上下に10px、左右に20pxあけている。*/
}
:root {
    --link_color: #003366;
}

*, ::before, ::after {
  box-sizing: border-box;
}

.link_wrap {
    padding: 0 20px;
    margin: 20px 50px;
    position: relative;
}

a {
    display: inline-block;
    text-decoration: none;
    line-height: 1;
}

.acc_style03 {
    border: 1px solid var(--link_color);
    padding: 1em 4em;
    color: var(--link_color);
    transition: all 0.2s ease-in;
    position: relative;
    z-index: 0;
}

.acc_style03:hover {
    color: #fff;
}

.acc_style03::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 3px;
    width: 12px;
    height: 90%;
    background: var(--link_color);
    transition: all 0.2s ease-in;
    transform: translateY(-50%);
    z-index: -1;
}

.acc_style03:hover::before {
    width: 100%;
    height: 100%;
    left: 0;
}

/*コンテンツ（見出しバーや文字などが入っているブロック）
----------------*/
/*コンテンツのh2タグの設定*/
#contents h2 {
	clear:both;
	margin-bottom: 20px;
	color: #fff;		/*文字色*/
	padding: 10px 20px;	/*上下、左右への余白*/
	background: #003366;	/*背景色*/
	/*角を丸くする指定。この１行を削除すれば角丸がなくなります。*/
	margin-top: 20px;/*kesu★★★。*/
}

.submenu{
	color: #003366;
	width: 960px;
	margin: 0 auto;
	text-align: center;
    background-color: #F2F4F7;
  }
  .image{
	width: 300px;
	height: 200px;
  }
  .text {
	font-size: large;
	font-weight: bold;
	float: center;
  }
 .moji {
	font-weight: bold;
 }
  
:root {
    --link_color: #003366;
}

#link2 {
    display: flex;
    flex-direction: column;
}
.link_lap {
    padding: 0 20px;
    margin: 20px 20px;
    position: relative;
    text-align: center;
    margin-bottom: 130px;
}

*, ::before, ::after {
  box-sizing: border-box;
}

a {
    display: inline-block;
    text-decoration: none;
    line-height: 1;
}

.bg_style06 {
    background: var(--link_color);
    color: #fff;
    padding: 1em 4em;
	margin: 50px;
    transition: all 0.2s ease-in;
    position: absolute;
    left: 30%;
	right: 35%;
}

.bg_style06::before,
.bg_style06::after {
    content: "";
    position: absolute;
    transition: all 0.2s ease-in;
}

.bg_style06::before {
    width: 10px;
    height: 10px;
    right: 20px;
    top: 50%;
    transform: translateY(-40%) rotate(45deg);
    border-top: 1px solid #fff;
}

.bg_style06::after {
    width: 24px;
    height: 1px;
    right: 18px;
    top: 53%;
    transform: translateY(-40%);
    background: #fff;
}

.bg_style06:hover::before {
    right: 12px;
}

.bg_style06:hover::after {
    right: 10px;
    width: 32px;
}

/* =========================
   card-group
========================= */
.card-group{
  margin-top: 15px;
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
  width: 90%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* =========================
   card
========================= */
.card{
  width: calc((100% - 40px) / 3); /* 3列（gap 20px × 2） */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
  background: #fff;
}

/* =========================
   image
========================= */
.card__imgframe{
  width: 100%;
  background: #bbb;
  padding: 10px;
  box-sizing: border-box;
}

.card__imgframe img{
  width: 100%;
  height: auto;
  display: block; /* 画像下の隙間対策 */
}

/* =========================
   text box
========================= */
.card__textbox{
  padding: 20px 15px;
  box-sizing: border-box;
}

.card__textbox > * + *{
  margin-top: 5px;
}

.card__titletext{
  font-size: 20px;
  font-weight: bold;
  line-height: 1.25;
}

.card__overviewtext{
  font-size: 12px;
  line-height: 1.5;
}

/* =========================
   Responsive
========================= */
@media screen and (max-width: 768px){
  .card{
    width: calc((100% - 20px) / 2); /* タブレット：2列 */
  }
}

@media screen and (max-width: 480px){
  .card{
    width: 100%; /* スマホ：1列 */
  }
}
/*メインページ全体のCSS*/
.media-block {
  max-width: 640px;   /* ← 画像基準の幅 */
  margin: 0 auto;     /* 中央配置 */
}

.media-block img {
  width: 100%;
  height: auto;
  display: block;
}

.media-block .text {
  margin-top: 16px;
  line-height: 1.8;
}

/*お問い合わせページのCSS*/
.form-container {
    width: 50%; /* 中央寄せしたい幅を指定 */
    margin-left: auto;
    margin-right: auto;
    /* またはショートハンドで margin: 0 auto; */
    border: 1px solid #ccc; /* 見やすいように境界線を追加 */
    padding: 20px;
}


/*フッター(ページ最下部のcopyrightのパーツ)設定
----------------*/
footer {
	color: #fff;
	clear: both;
	text-align: center;	/*文字をセンタリング*/
	padding: 14px 0 14px 0;	/*上、左右、下へのボックス内の余白*/
    padding-bottom: 80px;
    position: relative;
    top: 100%;
    width: 100%;
    height: 80px;
	background-color:#003366;
  margin-top: 30px;
}
.item li{
	height: 250px;
}
div.parent {
	position: relative; /*配置位置の基準となる指定*/
  }
  p.text {
	position: absolute; /*自由に配置する指定*/
	bottom: 0; /*下寄せの指定*/
	margin: 0;
  }
 