/* Google FontsからPoppinsフォントをインポート */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

/* 全体のスタイル */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 上下に要素を配置 */
}

/* コンテンツエリアの下部にフッターのスペースを確保 */
.container {
    background-color: white;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding:50px 20px 100px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    flex-grow: 1;
}

/* 見出しと画像のレイアウト */
h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    font-size: 24px;
    font-weight: 700;
    position: relative;
}

h1::before {
    content: '';
    display: inline-block;
    width: 60px;
    height: 60px;
    background-image: url('https://bonworld.jp/img/global_icon.png');
    background-size: cover;
    border-radius: 22%; /* 角丸をiPhoneのアイコン風に */
    margin-right: 15px; /* アイコンとテキストの間隔を調整 */
}

/* pタグのスタイルを移動 */
p {
    text-align: center;
    font-size: 90%;
}

/* 各入力グループのスタイル */
.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.input-group label {
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
}

.input-group input, 
.input-group select {
    padding: 0 10px;  /* 左右の余白のみを設定 */
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease;
    background-color: #f0f8ff;
    height: 42px; /* 高さを統一 */
    line-height: 42px; /* テキストが中央揃えされるように設定 */
    box-sizing: border-box; /* paddingを含めた高さを正確に計算 */
}

.input-group input:focus, 
.input-group select:focus {
    border-color: #007BFF;
    outline: none;
}

/* ボタンのスタイリッシュなデザイン */
.action-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #007BFF, #00d4ff);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.4s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.action-button:hover {
    background: linear-gradient(45deg, #0056b3, #00b0d4);
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.action-button:active {
    background: linear-gradient(45deg, #004494, #0088aa);
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* フォームのレスポンシブ対応 */
@media (max-width: 600px) {
    .container {
        padding: 50px 15px 100px;
    }

    .input-group input, 
    .input-group select {
        font-size: 14px;
        padding: 0 10px;  /* 左右の余白のみ調整 */
        height: 42px; /* モバイルでもフォームの高さを統一 */
        line-height: 42px; /* テキストが中央揃えされるように設定 */
    }

    h1 {
        font-size: 20px;
    }
}

/* 追加のスタイル */
.japan-time-display {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}
.input-group {
    text-align: center;
    margin-bottom: 20px;
}
label {
    font-weight: bold;
}


/* デジタル時計風のスタイル */
/* Google Fonts 読み込み */
@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap");

.japan-time-display {
    text-align: center;
    background-color: #f5f7fa; /* 非常に薄い背景色 */
    padding:10px 20px 20px;
    border-radius: 8px;
    color: #333; /* 高い視認性の濃いグレー */
    font-family: 'Share Tech Mono', monospace;
}



#japan-time .date {
    font-size: 16px;
    color: #555; /* 背景色に合う濃いめのグレー */
}

#japan-time .time {
    font-size: 50px;
    font-weight: bold;
    color: #333;
}

#japan-time-label {
    font-size: 14px; /* 半分のサイズ */
    background-color: #333;
    border-radius: 12px; /* 角丸 */
    color: #f5f7fa;
    padding: 5px 10px;
    display: inline-block;
    margin-bottom: 10px; /* 時間とのスペース */
}

table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    border: 2px solid #007BFF;
    border-radius: 10px;
    overflow: hidden;
    font-family: 'Share Tech Mono', monospace;
}

th, td {
    padding: 12px;
    text-align: center;
    border: 2px solid #ffffff; /* 各セルに薄い1pxの線 */
}

th {
    background-color: #333; 
    color: #f5f7fa;
}

tr:nth-child(even) {
    background-color: #f5f7fa; /* 非常に淡い色 */
}

tr:nth-child(odd) {
    background-color: #f0f0f0; 
}

.region-menu-item {
    font-size: 14px;  /* フォントサイズを小さく */
    padding: 5px 10px;  /* 余白を小さく */
    margin: 2px;
    display: inline-block;
    border-radius: 4px;
    background-color: #f0f0f0;  /* 通常の背景色 */
    color: #333;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
}

/* 選択中のメニュー項目の背景色をブルーに変更 */
.region-menu-item.active {
    background-color: #007BFF !important; /* 確実にブルーにするために!importantを追加 */
    color: #fff !important;
}

/* メニュー項目のホバー効果 */
.region-menu-item:hover {
    background-color: #d0d0d0;
}

@media (max-width: 600px) {
    .region-menu-item {
        font-size: 12px;  /* モバイル向けフォントサイズ */
        padding: 4px 8px;  /* モバイル向け余白 */
        display: inline-block;
        white-space: nowrap;  /* 一行に収める */
    }
}

