/*
全体の基本レイアウト 
背景色：(薄) #FFFFFF
　　　　(濃) #F4F4F4
メイン：#7CD0F2
文字色：#333333
*/
body {
  -webkit-text-size-adjust: 100%;
  background-color: #FFFFFF;
  color: #333333;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0 auto;
    max-width: 1200px;
}

p {
	margin-right: 20px;
	margin-left: 20px;
	text-align: left;
}

h1 {
  color: #364e96;/*文字色*/
  padding: 0.5em 0;/*上下の余白*/
  border-top: solid 3px #364e96;/*上線*/
  border-bottom: solid 3px #364e96;/*下線*/
}

h2 {
  padding: 0.5em;/*文字周りの余白*/
  color: #010101;/*文字色*/
  background: #eaf3ff;/*背景色*/
  border-bottom: solid 3px #516ab6;/*下線*/
}

h3 {
  color: #364e96;/*文字色*/
  border-bottom: solid 3px #364e96;/*下線*/
}

h4 {
  color: #364e96;/*文字色*/
  border-bottom: solid 3px #364e96;/*下線*/
}

h1, h2, h3 {
    margin-bottom: 10px;
    color: #333;
}

.header {
	width: 100%;
	height: auto;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center; /* 水平方向に中央揃え */
}

.header .logo {
  max-width: 100%;
  height: auto;
}

.logo {
    width: 150px;
}

.contents {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-container {
  position: relative;
  display: inline-block;

}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
}

.add-relative {
	position: relative;
}

.video-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7; /* スマートフォンのときだけ斑点を薄くする */
  pointer-events: none;
  background: rgba(255, 255, 255, 0.05); /* 白い薄いフィルター */
  background-image: radial-gradient(white 1px, transparent 1px); /* 斑点模様 */
  background-size: 3px 3px; /* 斑点のサイズ */
  z-index: 1;
}
/* contents-rowを縦に並べる */
.contents-row-block {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* 折り返しを許可 */
    margin: 1px 0;
    background-color: #F4F4F4;
}
.contents-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* 折り返しを許可 */
    margin: 1px 0;
}

/* contents-colを横に並べる */
.contents-col {
    flex: 1 1 100px; /* 最小幅200px */
    padding: 20px;
    margin: 1px;
    text-align: center;
}

.contents-col-full {
    width: 100%;
    padding: 20px;
    margin: 1px;
    text-align: center;
}

.contents-col-caution-full {
  width: 100%;
  margin: 1px;
  background-color: #5dabdb;
}

.contents-col-left {
    flex: 0.5 1 100px; /* 最小幅200pxで、残りのスペースを均等に分配 */
    padding: 20px;
    background-color: #7CD0F2;
    margin: 1px;
    text-align: center;
}

.contents-col-private {
  background-color: #b1dbf5;

}

.contents-col-right {
    flex: 1 1 100px; /* 最小幅200pxで、残りのスペースを均等に分配 */
    padding: 20px;
    background-color: white;
    margin: 1px;
    text-align: left;
}

/* 3ペインイメージのrow */
.box2 {
    flex: 1 1 300px; /* 横幅を調整 */
    display: flex;
    flex-direction: column; /* 縦に並べる */
}

.box3 {
	text-align: right;
	height: 33%;
  flex: none;
}
.content-image-small {
    width: 33%;
    height: auto;
    aspect-ratio: 1 / 1; /* 正方形にする */
    margin-right: 5px;
    border-radius: 15px;
    align-self: flex-end;
}


.w100p {
   width: 100%;
}

.w80p {
   width: 80%;
}

.image-list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.image-list li {
    margin: 0 5px;
}

.image-list img {
    width: 50px;
    height: auto;
}

.switch-images {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1; /* 正方形にする */
  margin-right: 20px;
  margin-left: 20px;
}

.switch-image {
/*
  width: 25%;
  height: 100%;
*/
  aspect-ratio: 1 / 1; /* 正方形にする */
  border-radius: 15px;
}

.button-like {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff; /* ボタンの背景色 */
    color: #fff; /* 文字色 */
    text-align: center;
    text-decoration: none;
    border-radius: 5px; /* 角を丸くする */
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.button-like:hover {
    background-color: #0056b3; /* ホバー時の背景色 */
}

.button-like:active {
    background-color: #004494; /* クリック時の背景色 */
}

.button-like:disabled {
    background-color: #cccccc; /* 無効時の背景色 */
    cursor: not-allowed; /* 無効時のカーソル */
    opacity: 0.6; /* 不透明度 */
}

.button-like:not(:disabled) {
    background-color: #007bff; /* ボタンの背景色 */
}

.term-caution {
    position: relative;
    background-color: rgba(0, 123, 255, 0.1); /* 背景を薄く青くする */
    padding: 10px; /* フレーム周りに余白を追加 */
    border-radius: 8px;
}

/* フッター */




.footer {
  background: #eaf3ff;/*背景色*/
  padding: 20px;
  width: 100%;
  text-align: center;
  color: black;
}
.footer-logo {
	float: left;
}

.footer-navi {
  float: left;
  color: black; !important;
}

.footer p {
	margin-right: initial;
	margin-left: initial;
	text-align: center;

}

/**************************************/
/* 個人情報保護方針のcss              */
/**************************************/
/* 親のdivにスタイルを適用 */
#termsContainer {
    border: 1px solid #ccc;
    width: 100%;
    height: 300px; /* 高さを300pxに設定 */
    overflow-y: scroll; /* 縦方向にスクロール可能にする */
}
/* iframeにスタイルを適用 */
#termsIframe {
    width: 100%;
    height: 100%; /* 親要素の高さに合わせる */
    border: none; /* 枠線をなくす */
}

@media (min-width: 429px) and (max-width: 1199px) {
    html,
    textarea,
    .file-selector {
/*      font-size: 32px; */
    }
    /* header, contents, footerを縦に並べる */
    .container {
        flex-direction: column;
    }

    .contents {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    /* contents-rowも縦に並べる */
    .contents-row,
    .contents-row-block {
        flex-direction: column;
			width: auto;
    }

    /* contents-colも縦に並べる */
    .contents-col,
    .contents-col-left,
    .contents-col-right,
    .contents-col-full,
    .contents-col-caution-full {
        width: 100%; !important;
        margin: 5px 0;
        flex-direction: column;
    }

    .contents-col-left,
    .contents-col-right,
    .contents-col-full,
    .contents-col-caution-full {
        flex: none;
        height: auto;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    .file-selector::file-selector-button,
    button {
      height: 60px;
      margin: 10px;
      padding: 10px;
/*      font-size: 32px;*/
    }

    textarea {
      height: calc( 1.3em * 3 );
      line-height: 1.3;

    }

	input[type="radio"] , input[type="checkbox"]{
	   -webkit-transform: scale(1.5);
	   transform: scale(1.5);
	   margin-right: 0.5em;
	}

	#termsContainer {
	    border: 1px solid #ccc;
	    width: 100%;
	    height: 600px; /* 高さを300pxに設定 */
	    overflow-y: scroll; /* 縦方向にスクロール可能にする */
	}

.button-like {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff; /* ボタンの背景色 */
    color: #fff; /* 文字色 */
    text-align: center;
    text-decoration: none;
    border-radius: 5px; /* 角を丸くする */
    border: none;
    cursor: pointer;
/*    font-size: 32px;*/
    transition: background-color 0.3s;
}

.switch-images {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  margin-right: 20px;
  margin-left: 20px;
}
.content-image-small {
    height: auto;
    aspect-ratio: 1 / 1; /* 正方形にする */
    margin-right: 5px;
    border-radius: 15px;
    align-self: flex-end;
		max-width: 150px;
		max-height: 150px;
}
}
/* レスポンシブ対応：タブレット・スマートフォンの場合 */
@media (max-width: 428px) {
    html,
    textarea,
    .file-selector {
/*      font-size: 32px;*/
    }

    /* header, contents, footerを縦に並べる */
    .container {
        flex-direction: column;
    }

    /* contents-rowも縦に並べる */
    .contents-row,
    .contents-row-block {
        flex-direction: column;
			width: auto;
    }

    /* contents-colも縦に並べる */
    .contents-col,
    .contents-col-left,
    .contents-col-right,
    .contents-col-full,
    .contents-col-caution-full {
        width: 100%; !important;
        margin: 5px 0;
        flex-direction: column;
    }

    .contents-col-left,
    .contents-col-right {
        flex: none;
        height: auto;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="checkbox"],
    .file-selector::file-selector-button,
    button {
      height: 60px;
      margin: 10px;
      padding: 10px;
/*      font-size: 32px;*/
    }

	input[type="radio"] , input[type="checkbox"]{
	   -webkit-transform: scale(1.5);
	   transform: scale(1.5);
	   margin-right: 0.5em;
	}

    textarea {
      height: calc( 1.3em * 3 );
      line-height: 1.3;

    }
	#termsContainer {
	    border: 1px solid #ccc;
	    width: 100%;
	    height: 600px; /* 高さを300pxに設定 */
	    overflow-y: scroll; /* 縦方向にスクロール可能にする */
	}
.button-like {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff; /* ボタンの背景色 */
    color: #fff; /* 文字色 */
    text-align: center;
    text-decoration: none;
    border-radius: 5px; /* 角を丸くする */
    border: none;
    cursor: pointer;
/*    font-size: 32px;*/
    transition: background-color 0.3s;
}
.switch-images {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  margin-right: 20px;
  margin-left: 20px;
}
.content-image-small {
    height: auto;
    aspect-ratio: 1 / 1; /* 正方形にする */
    margin-right: 5px;
    border-radius: 15px;
    align-self: flex-end;
		max-width: 150px;
		max-height: 150px;
}

}