body {
    font-family:Meiryo,sans-serif;
    color:#FFFFFF;
    background-color: #b8b8cd;
    font-size: 24px;
    font-weight:bold;
    line-height:150%;
    margin: 0px;
}
.title_font {
    font-family:"Noto Serif JP", serif;
}
.button {
    display       : inline-block;
    border-radius : 30%;          /* 角丸       */
    font-size     : 25pt;        /* 文字サイズ */
    text-align    : center;      /* 文字位置   */
    cursor        : pointer;     /* カーソル   */
    padding       : 35px 10px 28px;   /* 余白       */
    background    : #ffff1a;     /* 背景色     */
    color         : #000000;     /* 文字色     */
    line-height   : 1em;         /* 1行の高さ  */
    transition    : .3s;         /* なめらか変化 */
    box-shadow    : 6px 6px 3px #666666;  /* 影の設定 */
    border        : 2px solid #ffff1a;    /* 枠の指定 */
    width: 400px;
    height: 40px;
    text-decoration:none;
}
.button:hover {
    box-shadow    : none;        /* カーソル時の影消去 */
    color         : #ffff1a;     /* 背景色     */
    background    : #000000;     /* 文字色     */
    text-decoration:underline;
}
.button2 {
    display       : inline-block;
    border-radius : 1%;          /* 角丸       */
    font-size     : 20pt;        /* 文字サイズ */
    text-align    : center;      /* 文字位置   */
    cursor        : pointer;     /* カーソル   */
    padding       : 5px 12px;   /* 余白       */
    background    : #ffff1a;     /* 背景色     */
    color         : #000000;     /* 文字色     */
    line-height   : 1em;         /* 1行の高さ  */
    transition    : .3s;         /* なめらか変化 */
    box-shadow    : 6px 6px 3px #666666;  /* 影の設定 */
    border        : 2px solid #ffff1a;    /* 枠の指定 */
    width: 100%;
    height: 40px;
}
input[type="text"] {
    width: 100%; /*親要素いっぱい広げる*/
    padding: 10px 15px; /*ボックスを大きくする*/
    font-size: 16px;
    border-radius: 3px; /*ボックス角の丸み*/
    border: 2px solid #ddd; /*枠線*/
    box-sizing: border-box; /*横幅の解釈をpadding, borderまでとする*/
}
input[type="text"]:focus {
    border: 2px solid #ff9900; 
    z-index: 10;
    outline: 0;
}

input[type="email"] {
    width: 100%; /*親要素いっぱい広げる*/
    padding: 10px 15px; /*ボックスを大きくする*/
    font-size: 16px;
    border-radius: 3px; /*ボックス角の丸み*/
    border: 2px solid #ddd; /*枠線*/
    box-sizing: border-box; /*横幅の解釈をpadding, borderまでとする*/
}
input[type="email"]:focus {
    border: 2px solid #ff9900; 
    z-index: 10;
    outline: 0;
}

input[type="tel"] {
    width: 100%; /*親要素いっぱい広げる*/
    padding: 10px 15px; /*ボックスを大きくする*/
    font-size: 16px;
    border-radius: 3px; /*ボックス角の丸み*/
    border: 2px solid #ddd; /*枠線*/
    box-sizing: border-box; /*横幅の解釈をpadding, borderまでとする*/
}
input[type="tel"]:focus {
    border: 2px solid #ff9900; 
    z-index: 10;
    outline: 0;
}

input[type="date"] {
    width: 100%; /*親要素いっぱい広げる*/
    min-height: 43px;
    padding: 10px 15px; /*ボックスを大きくする*/
    font-size: 16px;
    border-radius: 3px; /*ボックス角の丸み*/
    border: 2px solid #ddd; /*枠線*/
    box-sizing: border-box; /*横幅の解釈をpadding, borderまでとする*/
    -webkit-appearance: none;   /* Safariなどで表示がおかしくなる対応 */
    -moz-appearance: none;
}
input[type="date"]:focus {
    border: 2px solid #ff9900; 
    z-index: 10;
    outline: 0;
}
input[type="date"]::-webkit-date-and-time-value {
    text-align: left; /* Safariなどで表示がおかしくなる対応 */
}

input[type="checkbox"] {
    transform: scale(1.8); /* 1.8倍のサイズに拡大 */
}

select {
    width: 100%; /*親要素いっぱい広げる*/
    padding: 10px 15px; /*ボックスを大きくする*/
    font-size: 16px;
    border-radius: 3px; /*ボックス角の丸み*/
    border: 2px solid #ddd; /*枠線*/
    box-sizing: border-box; /*横幅の解釈をpadding, borderまでとする*/
    -webkit-appearance: none;   /* Safariなどで表示がおかしくなる対応 */
    -moz-appearance: none;
}
select:focus {
    border: 2px solid #ff9900; 
    z-index: 10;
    outline: 0;
}

.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    display: flex;
    width: 100vw;
    min-height: 100vh;
    max-width: 100%; /* コンテナの幅を超えないようにする */
    flex-direction: column; /* アイテムを縦並び */
    align-items: center; /* 水平方向の中央揃え */
    justify-content: center; /* 垂直方向の中央揃え */
    background-size: cover; /* コンテナいっぱいに表示 */
    background-position: center; /* 画像の中央を表示 */
    padding: 20px;
    overflow: hidden; /* 横スクロールを非表示にする */
    box-sizing: border-box;
}
.container2 {
    display: flex;
    width: 100vw;
    min-height: 40vh;
    max-width: 100%; /* コンテナの幅を超えないようにする */
    flex-direction: column; /* アイテムを縦並び */
    align-items: center; /* 水平方向の中央揃え */
    justify-content: center; /* 垂直方向の中央揃え */
    background-size: cover; /* コンテナいっぱいに表示 */
    background-position: center; /* 画像の中央を表示 */
    padding: 20px;
    overflow: hidden; /* 横スクロールを非表示にする */
    box-sizing: border-box;
}
.bg1 {
    background-image: url("background1.jpg");
}
.bg2 {
    background-image: url("background2.jpg");
}
.bg3 {
    background-image: url("background3.jpg");
}
.bg4 {
    background-image: linear-gradient(#b8b8cd, rgb(90, 111, 248));
}
.bg5 {
    background-image: url("background5.jpg");
}
.bg6 {
    background-image: url("background6.jpg");
}
.bg7 {
    background: linear-gradient(black, gray);
}
.bg8 {
    color: #666666;
}

/* 1列で配置するグループ */
.item-group {
    width: 90%;
    display: flex;
    flex-direction: column; /* 最初のグループは縦並び */
    align-items: center;
}

/* 2列で配置するグループ */
.item-group2 {
    width: 90%;
    display: flex;
    flex-wrap: wrap; /* 折り返しを許可 */
    justify-content: center; /* 中央揃え */
}

.item {
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.col1 {
    width: 100%; /* 1列の場合の幅 */
}
.col2 {
    width: calc(50% - 20px); /* 2列の場合の幅 */
}
.col3 {
    width: calc(33% - 20px); /* 3列の場合の幅 */
}
.col2-input {
    width: calc(50%); /* 2列の場合の幅 */
}

/** 入力フォーム */
/* 1列で配置するグループ */
.item-input-group {
    width: 450px;
    display: flex;
    flex-direction: column; /* 最初のグループは縦並び */
    align-items: center;
}
.item-input-group2 {
    width: 450px;
    display: flex;
    flex-wrap: wrap; /* 折り返しを許可 */
    justify-content: center; /* 中央揃え */
}

@media (max-width: 470px) {
    .item-input-group {
        width: 100%;
    }
    .item-input-group2 {
        width: 100%;
    }
}

.item-input {
    display: flex;
    font-size: 18px;
    font-weight: bold;
}
.item-input-left {
    align-items: left;
    justify-content: left;
}
.item-input-center {
    align-items: center;
    justify-content: center;
}

.border-box {
    display: inline-block; /* テキストの長さに合わせる */
    padding: 20px;
    border: 2px solid whitesmoke; 
    border-radius: 5px; /* 角を少し丸くする */
}

img {
    max-width: 100%;
    height: auto;
}


.text_left {
    text-align:left;
}
.text_center {
    text-align:center;
}
.text_title {
    font-size:38px;
    line-height:150%;
    text-align:center;
    text-decoration:underline;
}
.text_mediamlarge {
    font-size:30px;
}
.text_large {
    font-size:44px;
    line-height:150%;
    text-align:center;
}
.text_small {
    font-size:14px;
    line-height:150%;
}
.text_input_form {
    width: 100%;
    text-align:left;
    margin-top: 10px;
}
.color-red{
    color: red;
}


/* 画面幅が狭い場合は1列ずつ表示 */
@media screen and (max-width: 768px) {
    .col2 {
        width: 100%; /* 1列表示に変更 */
    }
    .col3 {
        width: 100%; /* 1列表示に変更 */
    }
    .col2-input {
        width: 100%; /* 1列表示に変更 */
    }

    .text_title {
        font-size:33px;
    }
    .text_mediamlarge {
        font-size:25px;
    }
    .text_large {
        font-size:35px;
    }

    .item-group {
        width: 99%;
    }
    .item-group2 {
        width: 99%;
    }
    body{
        font-size:19px;
    }
}
