body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    margin: 0 20px;
    padding: 0;

    display: flex;
    flex-direction: column; /* 縦方向に並べる */
    justify-content: center; /* 縦中央 */
    align-items: center;     /* 横中央 */
    min-height: 100vh;       /* ビューポート最大 */
}

h1 {
    color: #3a3a3a;
    text-align: center;
    margin-bottom: 20px;
}

p {
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.button {
    display: inline-block;
    padding: 40px 20px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin: 5px;
}
.button:hover {
    background-color: #218838;
}

form {
    margin-block-end: 0;
}

.container {
    width: 90%;
    max-width: 500px;
    padding: 30px;
    background-color: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
}

/* 個人情報リスト */
.my-info {
        margin: 10px 0 20px 0;
}

/* ボタン */
input[type="submit"],
input[type="button"],
.button {
    display: inline-block;
    box-sizing: border-box;
    width: 75vw;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #939393;
    border: none;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    margin: 5px;
}

input[type="submit"]:hover,
input[type="button"]:hover,
.button:hover {
    background-color: #777777;
}

input[type="submit"]:active,
input[type="button"]:active,
a.button:active {
    transform: translateY(1px);
}

input[type="submit"]:focus,
input[type="button"]:focus,
a.button:focus {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

input[type="text"],
input[type="password"],
select {
  margin: 2px 0 7px 0;
  max-width: 300px !important;
}

.btn-container,
input.btn-container {
  margin-top: 10px;
  align-items: center;
}

.center {
  text-align: center;
}

/* ツールチップ */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  color: #0074c1;
  font-weight: bold;
}

.tooltip .tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 200px;
  background-color: #333;
  color: #fff;
  text-align: left;
  padding: 8px;
  border-radius: 6px;

  position: absolute;
  bottom: 125%;
  left: 75%;
  transform: translateX(-25%);

  transition: opacity 0.2s;
  z-index: 10;
}

@media (min-width: 670px) {
.tooltip .tooltip-text {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%); 
  transition: opacity 0.3s;
  z-index: 10;
}

input[type="submit"],
input[type="button"],
.button {
  width: 300px;
}

.short-btn,
input.short-btn {
  width: auto;
}

.center {
  text-align: left;
}

}

/* ホバーしたら表示 */	
.tooltip:hover .tooltip-text{
  visibility: visible;
  opacity: 1;
}
