@charset "UTF-8";
@import url("grid.css");

:root { /* 色変更される場合は、#以降のカラーコードを変更してください IE非対応 */
    --base-color: #000;
    --link-color: #666;
    --linkhover-color: #999;
    --back-color: #f7f7f7;
    --back-color02: #ebebeb;
    --back-color03: #bbb;
    --back-color04: #FAF0F0;
    --back-color05: #d5e9f1;
    --back-color06: #E7F6EA;
    --border-color: #ccc;
    --border-color02: #bbb;
    --white-color: #fff;
}

img {
	max-width:100%;
	height: auto;/*高さ自動*/
}
a {
    display:inline-block;
    color: var(--link-color);
    text-decoration-line: none;
}
a:hover { 
  color: var(--linkhover-color);
  opacity: 0.6 ;
  filter: alpha(opacity=80);
  -moz-opacity: 0.6;
  -webkit-transition: 0.3s ease-in-out;
  -moz-transition: 0.3s ease-in-out;
  -o-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}

/*ヘッダー
-------------------------------------*/
header {
 position: fixed; 
 top: 0; 
 left: 0;
 width: 100%; 
 height:80px;
 z-index: 999; 
 background-color: #fff;
 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
 }
.header {
 display: flex;
 flex-direction: row;
 padding: 2rem 0 0 0;
}
.header-box {
	margin-left: auto;
	margin-top: 8px;
}
#navi ul {
	display: flex;
 flex-direction: row;
 justify-content: center;
 list-style: none;
	margin: 1rem 0 1em;
}

#navi li {
	flex: 1 0 auto;
    position: relative;
    padding: 0 0.5rem;
}
#navi li a {
	text-decoration: none;
	text-align: center;
	width: auto;
	margin: 0;
    padding: 0.75rem 0;
    display: block;
}
#navi a:hover {
}
/* ===================================== */
/* ドロップダウンメニューのスタイル */
/* ===================================== */

/* ドロップダウンメニュー全体 (ul.dropdown-menu) */
#navi .dropdown-menu {
    /* 配置 */
    position: absolute; 
    top: 120%; /* 初期位置を少し下にずらしてアニメーション効果 */
    left: 0;
    
    /* 初期状態は非表示（フェードアウト） */
    visibility: hidden;
    opacity: 0;
    
    /* アニメーション設定 */
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out, top 0.3s ease-out;
    
    /* 見た目の調整 */
    background-color: #fff;
    border:none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    min-width: 100%; 
    list-style: none;
    padding: 0;
    margin: 0;
    white-space: nowrap; /* テキストの折り返しを防ぐ */
}

/* マウスオーバーでドロップダウンを表示（アニメーション） */
/* セレクタに #navi をつけることで優先度を上げ、ホバーの競合を防ぐ */
#navi .dropdown:hover > .dropdown-menu { 
	display: flex;
 flex-direction: column;
 visibility: visible;
 opacity: 1;
 top: 100%; /* 元の位置に戻る（上へフェードイン） */
}

/* ドロップダウン内のリンク (a) のスタイル */
#navi .dropdown-menu a {
    padding: 0.75rem 1rem;
    color: #666!important;
    text-align: center;
    display: block;
    font-size: 1.5em!important;
}

#navi .dropdown-menu a:hover {
    background-color: #eee;
    color: #333;
}

@media screen and (min-width: 769px){
/* PC時はMENUボタンを非表示 */
#open,#close {
    display: none !important;
}

#navi {
    display: block !important;
}
}

@media screen and (max-width: 768px){
header .container {
 background-color: #fff;
 opacity:0.9;
}
.header {
	flex-direction: column;
 margin-bottom: 10px;
 height:auto;
}
.header #open,#close  {
    position: absolute;
    top: 20px;
    right: 12px;
}
#navi ul {
    flex-direction: column;
    align-items: stretch;
}

/* モバイルではドロップダウンの絶対配置を解除し、常に表示させる */
#navi .dropdown-menu {
    position: static; /* 絶対配置を解除し、親要素の直後に配置 */
    display: block;
    visibility: visible;
    opacity: 1;
    top: 0;

    box-shadow: none;
    border: none;
    padding-left: 1rem; /* 親メニューからのインデント */
    background-color: #e9e9e9;
}

/* モバイルではリンクエリアを幅いっぱいに広げる */
#navi li {
    padding: 0;
    width: 100%;
}

/* モバイル時のドロップダウン内のリンクデザイン */
#navi .dropdown-menu li a {
    padding: 0.5rem 1rem 0.5rem 2rem;
}
.header li {
	padding-top: 0;
}
/* スマホ時はMENUボタンを表示 */
#open {
    display: block;
    background: url(../img/button.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
#close  {
    display: block;
    background: url(../img/button2.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
/* スマホ時はメニューを非表示 */
#navi {
    display: none;
}
}
/*メイン画像
-------------------------------------*/
.main-image-container {
    /* メインビジュアルの最大サイズ設定 */
    max-width: 100%;
/*    max-width: 1600px;*/
    position: relative; 
    margin: 0 auto; 
    /* 縦横比を維持：縦573px / 横1600px * 100 = 35.81% */
    padding-top: 35.81%;
    background-color: #fff;
    opacity: 0.8;
}
@media (max-width: 768px) {
.main-image-container {
    max-width: 768px;
    /* 縦横比を維持：縦573px / 横768px * 100 = 74.6% */
    padding-top: 74.6%; 
    margin-top:50px;
}
}

.main-image {
    /* 常に親要素全体に広げる */
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../img/image_top.png");
    background-size: cover; /* 縦横比を維持しつつ要素全体をカバー */
    background-position: center center; /* 画像を中央に配置 */
}

/*メイン画像内キャッチコピー
-------------------------------------*/
.main-msg {
    position: absolute;
    left: 50px; 
    top: 50%;
    transform: translateY(-50%); /* 自分の高さの半分だけ上にずらして完全な中央にする */
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    width: 90%; 
    max-width: 1000px;
}

@media (max-width: 768px) {
.main-msg {
    left: 50%;
    top: 40%;
    margin: 0; /* PC設定のmargin-leftをリセット */
    transform: translate(-50%, -50%); /* 中央配置＆中央揃え */
    font-size: 25px; 
    text-align: center; 
    padding: 0 10px;
    max-width: 80%;
}
}
@media (max-width: 470px) {
.main-msg {
    font-size: 15px; 
}
}

/*メイン画像内サブ画像
-------------------------------------*/
.main-subimg {
    position: absolute;
    left: 75%; 
    top: 50%;
    transform: translate(-50%, -50%); /* 中央配置＆中央揃え */
    width: 60%; 
    max-width: 550px;
}

@media (max-width: 768px) {
.main-subimg {
    left: 50%; 
    top: 70%;
    transform: translate(-50%, -50%); /* 中央配置＆中央揃え */
    width: 50%; 
    max-width: 300px;
}
}
@media (max-width: 470px) {
.main-subimg {
    top: 70%;
    width: 50%; 
    max-width: 200px;
}
}

/*メインコンテンツ
-------------------------------------*/
main {
    margin: 5rem 0 0 0;
}
section {
	margin: 5rem 0;
	padding: 3rem 1rem;
}
.gray-back {
	background-color: var(--back-color);
}
.gray-back02 {
	background-color: var(--back-color02);
}
.gray-back03 {
	background-color: var(--back-color03);
}
.white-back {
	background-color: var(--white-color);
}
.happy-back {
	background-color: var(--back-color04)!important;
}
.cool-back {
	background-color: var(--back-color05)!important;
}
.peace-back {
	background-color: var(--back-color06)!important;
}

/*キャッチコピー
-------------------------------------*/
.catch {
    text-align: center;
}
.catch h2 {
    padding-bottom: 1rem;
}
.under {
    border-bottom: 0.3rem solid var(--base-color);
    padding:0 1rem 0 1rem;
}
@media (max-width: 769px) {
.under {
    border-bottom: 0.2rem solid var(--base-color);
    padding:0;
    line-height: 1.5em;
}
}

.center {
	text-align: center;
	margin-bottom: 4rem;
}

/*申し込みの流れ
-------------------------------------*/
.flow.row {
	margin-bottom: 3rem;
}

/*フッター
-------------------------------------*/
footer {
    background-color: var(--back-color03); 
    padding: 5rem 0;
}
footer h4 {
    border-bottom: 3px solid var(--border-color);
}
.f-nav ul {
	display: flex;
 flex-direction: row;
 flex-wrap: wrap;
 justify-content: start;
 list-style: none;
	margin: 1rem 0 1em;
}
.f-nav li {
	margin: 0 1rem 1em;
}
.f-nav li a {
 font-size:0.9em;
 text-decoration: none;
 text-align: center;
 width: auto;
 margin: 0;
}

/*お問い合わせ
-------------------------------------*/
.contact-box {
	border: 1px solid var(--border-color);
	text-align: center;
	padding: 2rem 0;
}
.table {
	margin: 4rem 0;
}
.table th {
	width: 250px;
}

/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1rem 0;
    background-color: var(--base-color);
    color: var(--white-color);
}

/*ページトップへ戻るボタン
-------------------------------------*/
#pagetop {
    position: fixed;
    bottom: 15px;
    right: 15px;
}
#pagetop a {
    display: block;
    background-color: var(--base-color);
    border-radius: 10px;
    color: var(--white-color);
    width: 60px;
    padding: 15px 10px;
    text-align: center;
}
#pagetop a:hover {
    background-color: var(--link-color);
}
.a_innerpage {
 padding-top: 80px;
 margin-top: -80px;
}

/* 幅768px以下の表示
-------------------------------------*/
@media screen and (max-width: 768px){
	
/*ヘッダー
-------------------------------------*/
.header-box {
	display: none;
}	
/*お問い合わせ
-------------------------------------*/
.table th {
	width: 100%;
	display: block;
}	
.table td {
	display: block;
}
}

/* BOXのフェード
-------------------------------------*/
.js-fadein {
    /* 初期状態は非表示（透明） */
    opacity: 0;
    /* 初期状態は下に5px移動した位置 */
    transform: translateY(10px);
    /* トランジション設定: 変化を滑らかにする（JSでクラスが付与されたときの動作） */
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}
/* アニメーションの最終状態（画面内に表示された状態） */
/* JSによって「is-show」クラスが付与されたときにこの状態に変化します */
.js-fadein.is-show {
    /* 不透明（表示） */
    opacity: 1;
    /* 元の位置に戻る（5px上に戻るように見える） */
    transform: translateY(0);
}

/* 角丸BOX
-------------------------------------*/
.box-bubble {
 padding: 3em;
 margin-bottom: 1em;
 background-color: #fff;
 border-radius:50px;
}
@media screen and (max-width: 768px){
.box-bubble {
 padding: 1.5em;
 border-radius:30px;
}
}
/* 背景Particle
-------------------------------------*/
.background {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  z-index: 0;
}