/* 画面幅に応じたベースのフォントサイズ調整 */
html {
  font-size: clamp(14px, 2.5vw, 18px);
}

* {
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(to right, #f0f4ff, #e8f1ff);
  color: #2c3e50;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: 1rem;
}

/* 見出し */
h1 {
  text-align: center;
  background: linear-gradient(to right, #007bff, #0056b3);
  color: #fff;
  margin: 0;
  padding: 1.5rem;
  font-size: 2rem;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
}

/* リンク */
a {
  font-size: 1rem;
  color: #007bff;
  text-decoration: none;
  display: inline-block;
  margin: 1rem;
}

a:hover {
  text-decoration: underline;
}

/* ナビゲーション */
nav {
  display: flex;
  overflow-x: auto;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  padding: 10px;
  gap: 12px;
  justify-content: center;
  border-bottom: 1px solid #ccc;
}

nav button {
  background: linear-gradient(to bottom right, #007bff, #3399ff);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
  transition: background 0.3s, transform 0.2s;
  flex-shrink: 0;
}

nav button:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

/* タブ切り替え */
.tab {
  display: none;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease-in-out;
}

.tab.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* セクション */
.section-content {
  margin: 20px auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  max-width: 800px;
}

/* フォーム要素 */
input, select, textarea {
  margin-top: 6px;
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 100%;        /* 親幅いっぱい */
  font-size: 1rem;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
  border-color: #007bff;
  outline: none;
}

/* ボタン */
button {
  background: linear-gradient(to bottom right, #007bff, #3399ff);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 3px 6px rgba(0,123,255,0.2);
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background: #0056b3;
  transform: scale(1.02);
}

/* 結果表示 */
#requestResult, #result {
  margin-top: 1rem;
  font-weight: bold;
  color: #007bff;
}

/* アイコン */
.icon {
  font-size: 1.3rem;
}

/* ラベル */
label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #333;
  font-size: 1rem;
}

/* テーブル */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin: 1rem auto;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

th, td {
  padding: 12px 8px;
  text-align: left;
  border: 1px solid #ccc;
  word-break: break-word;
}

/* モバイル対応 */
@media screen and (max-width: 600px) {
  h1 {
    font-size: 1.8rem;
    padding: 1.2rem;
  }

  nav {
    justify-content: flex-start;
    padding: 8px;
  }

  nav button {
    font-size: 0.95rem;
    padding: 10px 14px;
  }

  .section-content {
    padding: 16px;
    margin: 10px;
  }

  input, select, textarea, button {
    font-size: 1rem;
  }

  label {
    font-size: 0.95rem;
  }

  

  /* ここから追加修正部分 */
  input, select, textarea {
    width: 90%;              /* 画面幅の90%に */
    max-width: 400px;        /* 最大400pxまでに制限 */
    margin-left: auto;
    margin-right: auto;
    display: block;          /* ブロック表示で中央寄せ */
    padding: 12px;
    font-size: 1.1rem;
  }

  button {
    width: 90%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    padding: 14px;
    font-size: 1.1rem;
  }
}
