/* アクセスキー認証システム - メインスタイルシート */

/* ベーススタイル */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック体", YuGothic, 'Hiragino Kaku Gothic ProN', メイリオ, Meiryo, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #eff1f6;
  color: #333;
}

/*ヘッダー*/
header{
  padding: 20px 40px;
}

/*フッター*/
footer{
  text-align: center;
  padding: 20px 40px;
  background: #3c4559;
  color: #fff;
  font-size: 1rem;
}

/* レイアウト */

.container {
  max-width: 600px;
  margin: 0 auto 100px;
  padding:0 20px;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: #1b4fa3;
  color: #fff;
}

/* タイポグラフィ */
h1 {
  margin-bottom: 10px;
  font-size: 2rem; line-height: 1.2;
}

/* フォーム要素 */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #555;
}

input[type="email"],
input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

input[type="email"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: #1b4fa3;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 16px 24px;
  border: none;
  border-radius: 4px;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s;
  box-sizing: border-box;
  
}
.btn:hover {
  text-decoration: none;
  opacity: 0.7;
}

.btn-area{
  display: flex; justify-content: center; align-self: center; gap:40px;
  padding: 30px 0;
}

.btn-block {
  width: 100%;
}

.btn-inline {
  width: auto;
}

.btn-primary {
  background-color: #1b4fa3;
  color: white;
}


.btn-success {
  background-color: #28a745;
  color: white;
}


.btn-danger {
  background-color: #d82f3f;
  color: white;
}


.btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* アラート */
.alert {
  padding: 20px;
  border-radius: 4px;
  margin: 20px 0;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-info {
  background-color: #eeeef5;
  color: #0c5460;
  border: 1px solid #1b4fa3;
}

/* ユーティリティクラス */
.text-center {
  text-align: center;
}

.mt-3 {
  margin-top: 1rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

/* リンク */
a {
  color: #1b4fa3;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* カウントダウン */
.countdown {
  font-size: 1.2rem;
  font-weight: bold;
  color: #d82f3f;
}

/* ステータスバー */
.status-bar {
  background-color: #e9ecef;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* タブスタイル */
.nav-tabs {
  border-bottom: 2px solid #dee2e6;
  margin-bottom: 0;
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  padding-left: 0;
}

.nav-tabs .nav-item {
  margin-bottom: -2px;
  flex: 0 0 auto;
}

.nav-tabs .nav-link {
  border: 1px solid transparent;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
  padding: 0.75rem 1rem;
  color: #495057;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-tabs .nav-link:hover {
  border-color: #e9ecef #e9ecef #dee2e6;
  background-color: #f8f9fa;
}

.nav-tabs .nav-link.active {
  color: #495057;
  background-color: #fff;
  border-color: #dee2e6 #dee2e6 #fff;
  font-weight: 600;
}

.tab-content {
  border: 1px solid #dee2e6;
  border-top: none;
  border-radius: 0 0 0.375rem 0.375rem;
  background-color: #fff;
}

.tab-pane {
  padding: 0;
}

/* iframe コンテナ */
.iframe-container {
  position: relative;
  width: 100%;
  min-height: 1024px;
}

/* iframe レスポンシブ対応 */
iframe {
  border: none;
  width: 100%;
  min-height: 1024px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .container {
    margin: 20px auto;
    padding: 10px;
  }

  .card {
    padding: 20px;
  }

  .status-bar {
    flex-direction: column;
    gap: 10px;
  }

  .btn-inline {
    width: 100%;
    margin-bottom: 10px;
  }

  .nav-tabs .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  iframe {
    min-height: 800px;
  }

  .iframe-container {
    min-height: 800px;
  }
}
