/****************************/
/* bodyの設定				*/
/****************************/
body {
    margin: 0;
    padding: 0;
    background-color: rgb(242, 242, 242); /* 背景色をRGB(242,242,242)に設定 */
}
/****************************/
/* ヘッダーの設定			*/
/****************************/
.header {
    position: relative;
    width: 100%; /* 横幅を常に画面全体にフィット */
    height: 7vh; /* 高さはビューポート高さの50% */
    background: url('../image/head.png') no-repeat center center;
    background-size: 100% 100%; /* 横方向フィット & 縦方向ストレッチ */
}
/*----------------------*/
/* ヘッダー文字列		*/
/*----------------------*/
.header-text {
    position: absolute;
    top: 0vh;	 /* 開始位置を縦方向の0%に設定	*/
    width: 100%; /* テキスト全体で調整			*/
}
.header-text .line1 {
    position: relative;
    text-align: left;	/* 左揃え */
    margin: 0 auto;		/* 左右の余白を自動調整 */
    width: fit-content;	/* テキスト幅に自動調整 */
    color: white;
    font-weight: bold;	/* 強調表示				*/
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);	/* 文字に影をつける	*/
}
.header-text .line1 {
    font-size: 2vh;					/* line1の文字サイズ	*/
    margin-left: calc(12.5% - 4em);	/* line1の開始位置		*/
}
/* 実施年	*/
.larger-number {
    font-size: 2.5vh;	/*実施年の数値だけサイズを少し大きく	*/
    color: white;		/* 必要であれば色を統一					*/
    font-weight: bold;	/* 強調表示								*/
}
.header-text .line2 {
    text-align: left;	/* 左揃え			*/
    color: white;
    margin: 0;
    font-size: 3vh;					/* line2の文字サイズ	*/
    font-weight: bold;				/* 強調表示				*/
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);	/* 文字に影をつける	*/
    margin-left: calc(15% - 4em);	/* line2の開始位置		*/
    margin-top: -0.7vh;				/* 少しだけ上に移動		*/
}
/*----------------------*/
/* 						*/
/*----------------------*/
.doc-text {
    position: relative ;
    top: 10vh; /* 開始位置を縦方向の10%に設定 */
    width: 100%; /* テキスト全体で調整 */
}
.doc-text .line1 {
    position: relative;
    text-align: left; /* 左揃え */
    margin: 0 auto; /* 左右の余白を自動調整 */
    width: fit-content; /* テキスト幅に自動調整 */
    color: rgb(19, 55, 141);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 2vh; /* line1の文字サイズ */
    margin-left: calc(35% - 4em); /* line2の開始位置と同じに設定 */
}
.doc-text .line2 {
    text-align: left; /* 左揃え */
    color: rgb(19, 55, 141);
    margin: 0;
    font-size: 4vh; /* line2の文字サイズ */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-left: calc(45% - 5em); /* line2の開始位置と同じに設定 */
}
.doc-text .line3 {
    position: relative;
    text-align: left; /* 左揃え */
    margin: 0 auto; /* 左右の余白を自動調整 */
    width: fit-content; /* テキスト幅に自動調整 */
    color: rgb(19, 55, 141);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 2vh; /* line1の文字サイズ */
    margin-left: calc(40% - 5em); /* line2の開始位置と同じに設定 */
    margin-bottom: 20px;
}
/*----------------------*/
/* 						*/
/*----------------------*/
.doc-text .prefecture-dropdown {
	position: relative; /* 矢印の基準を設定 */
    display: block;
    margin: 0 auto; /* 中央揃え */
    padding: 0.6em 2.0vw; /* login-buttonのpaddingに合わせる */
    font-size: 1.5vw; /* login-buttonのfont-sizeと一致 */
    font-weight: bold;
    color: rgb(19, 55, 141); /* テキスト色 */
    background-color: white;
    border: 2px solid rgb(19, 55, 141); /* ボーダー色 */
    border-radius: 6px; /* login-buttonのborder-radiusと一致 */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* 軽い影を追加 */
    cursor: pointer;
    text-decoration: none;
    text-align: center; /* テキストを中央揃え */
    white-space: nowrap;
    width: 28.2%;
    max-width: 28.2%;
    appearance: none; /* デフォルトの矢印をカスタム */
}

.doc-text .prefecture-dropdown:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(19, 55, 141, 0.5); /* フォーカス時の強調 */
}

.doc-text .prefecture-dropdown::-ms-expand {
    display: none; /* Edgeのデフォルト矢印を非表示 */
}

/* カスタム矢印を追加 */
.doc-text .prefecture-dropdown::after {
    content: '▼';
    position: absolute;
    right: 1em;
    pointer-events: none;
}

.doc-text .prefecture-dropdown:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
/***************************************/
.doc-text .user-info {
	position: relative; /* 矢印の基準を設定 */
    display: block;
    margin: 0 auto; /* 中央揃え */
    padding: 0.6em 2.0vw; /* login-buttonのpaddingに合わせる */
    font-size: 1.5vw; /* login-buttonのfont-sizeと一致 */
    font-weight: bold;
    color: rgb(19, 55, 141); /* テキスト色 */
    background-color: white;
    border: 2px solid rgb(19, 55, 141); /* ボーダー色 */
    border-radius: 6px; /* login-buttonのborder-radiusと一致 */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* 軽い影を追加 */
    cursor: pointer;
    text-decoration: none;
    text-align: center; /* テキストを中央揃え */
    white-space: nowrap;
    width: 24%;
    max-width: 24%;
    appearance: none; /* デフォルトの矢印をカスタム */
}

.doc-text .user-info:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(19, 55, 141, 0.5); /* フォーカス時の強調 */
}
.doc-text .jpColor {
    color: rgb(59,135,236);
}
.doc-text .prefPos {
    margin-top: 2vh;
}
/*----------------------*/
/* 						*/
/*----------------------*/
.next-button,
.apply-button  {
    position: relative; /* 絶対配置 */
    top: 75%; /* 上方向の位置を指定 */
    left: calc(0% + 0vw); /* 横幅に基づいて位置を調整 */
    padding: 0.2em 3.0vw; /* 横幅に応じてパディングを調整 */
    font-size: 1.5vw; /* フォントサイズを横幅に連動 */
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    border: none;
    border-radius: 20px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    text-decoration: none;
    text-align: center; /* テキストを中央揃え */
    white-space: nowrap; /* 改行を防止 */
    max-width: 4%; /* ボタンの最大幅を制限 */
    margin-top: calc(5% - 2em); /* line2の開始位置と同じに設定 */
    margin-left: calc(60% - 4em); /* line2の開始位置と同じに設定 */

    /* 追加 */
    display: flex;
    align-items: center; /* 垂直方向の中央揃え */
    justify-content: center; /* 水平方向の中央揃え */
}

.next-button:hover,
.apply-button:hover {
    opacity: 0.85;
}

/* ——— 初回アクセス時案内メッセージ ——— */
.doc-text .intro-message2 {
    text-align: left;                /* 中央寄せ */
    color: rgb(19, 55, 141);           /* 見出しと同じ青色 */
    font-size: 2vh;                    /* ビューポート高さに連動 */
    font-weight: normal;               /* 強調しすぎない */
    line-height: 1.4;                  /* 読みやすい行間 */
    margin: 1.5vh auto;                /* 上下に適度な余白 */
    width: auto;                        /* 横幅を制限して可読性向上 */
    max-width: 900px;                  /* 大画面でも行長を抑制 */
}
/* ——— 案内文を囲む角丸ボックス ——— */
.doc-text .intro-box2 {
    background-color: rgba(19, 55, 141, 0.08);  /* 薄い青背景 */
    border: 1px solid rgba(19, 55, 141, 0.3);    /* 青系のボーダー */
    border-radius: 12px;                         /* 角丸 */
    padding: 1vh 1vw;                            /* 内側余白 */
    margin: 1.5vh auto;                          /* 上下マージン＋中央寄せ */
    width: 60%;
    max-width: 900px;
}

.doc-text .intro-box2 .intro-message2 {
    margin: 0;
    font-size: 2vh;          /* 読みやすい大きさ */
    line-height: 1.4;
    color: rgb(19, 55, 141); /* 見出しと揃えた青色 */
    text-align: left;
    white-space: normal;     /* 自然な改行を許可 */
}