body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", sans-serif;
    background: linear-gradient(to bottom right, #eaf0ff, #dbeaff);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main,
.applicant_continer {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* nav用 */
}

footer {
    text-align: center;
    padding: 1rem 0;
}

.image_wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.image_wrapper svg {
    position: relative;
    z-index: 2;
    color: white;
}

.circle {
    background-color: #2563eb;
    position: absolute;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    z-index: 1;
}

.title h1 {
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 8px;
    font-weight: bold;
    color: #1a1a1a;
}

.title p {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.applicant_form_container {
    background: white;
    width: 28rem;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 100%;
}

.form_card {
    width: 100%;
}

.form_title h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.card_item {
    text-align: left;
    margin-bottom: 20px;
}

label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

label svg {
    margin-right: 8px;
}

input[type="email"],
select {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    outline: none;
    transition: border 0.2s;
}

input:focus,
select:focus {
    border-color: #2563eb;
}

.start_button {
    margin-top: 20px;
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.start_button:hover {
    background-color: #1d4ed8;
}

.usage_cont {
    margin-top: 2rem;
    padding: 16px 20px;
    background-color: #f3f4f6;
    border-radius: 8px;
    box-shadow: 0 0 0 1px #e5e7eb;
    font-size: 0.9rem;
    color: #374151;
    text-align: left;
    max-width: 700px;
    max-height: 200px;
    overflow-y: auto;
}

.usage_cont h3 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #111827;
}

.usage_cont p {
    margin: 0;
    line-height: 1.6;
}

.usage_cont_text{
    font-size: 10px;
    color: red;
}

.usage_cont_text_chui{
    color: red;
}

.usage_cont h3{
    margin-top: 10px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal.terms-modal {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    font-family: 'Inter', sans-serif;
}

.policy-box {
    background: #f1f5f9;
    padding: 10px;
    margin-top: 1rem;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.policy-box strong {
    display: block;
    margin-bottom: 0.5rem;
}

.policy-content {
    font-size: 0.9rem;
}

/* 親は縦に並ぶだけ */
.policy-agree{
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #333;
  display: grid;
  row-gap: 12px;
}

/* 各行は 20px（☑） + 可変テキスト の2カラム */
.policy-agree .agree-item{
  display: grid;
  grid-template-columns: 20px 1fr; /* ←ここがキモ：左列幅固定 */
  column-gap: 10px;
  align-items: center;             /* テキストが複数行でも中央に揃える */
  margin: 0;
  text-align: left;
}

/* 入力の余白のブレを殺す */
.policy-agree .agree-item input[type="checkbox"]{
  width: 16px; height: 16px;
  margin: 0;                /* UAやリセットCSSの余白を無効化 */
  align-self: center;       /* Safari対策 */
  justify-self: start;      /* 左端に固定 */
  flex-shrink: 0;           /* 念のため */
}

/* テキスト側 */
.policy-agree .agree-item span,
.policy-agree .agree-item label{
  line-height: 1.7;
}

/* もし全体CSSで label の text-align:center; 等があるならローカルで打ち消す */
.policy-agree label{ text-align: left !important; display: block; }

.confirm-button {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 10px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
}

.confirm-button:disabled {
    background: #a5b4fc;
    cursor: not-allowed;
}

.confirm-button:hover:enabled {
    background: #1d4ed8;
}

.text_left p {
    height: 70px;
}

p.lang {
    text-align: center;
    width: 50px;
    padding: 5px;
    background-color: cornflowerblue;
    border-radius: 5px;
    color: white;
}