:root {
  /* カラー */
  --main-color: #EB1E1E;
  --support-color: #808080;
  --bg-main-color: #f7f7f7;
  --link-color: #339933;
  --button-color: #990000;

  /* フォントサイズ */
  --font-size-xxs: 55%; /** 8.8px (16px * 0.55) **/
  --font-size-xs: 80%; /** 12.8px (16px * 0.8) **/
  --font-size-sm: 90%; /** 14.4px (16px * 0.9) **/
  --font-size-base: 100%; /** 16px **/
  --font-size-md: 115%; /** 18.4px (16px * 1.15) **/
  --font-size-lg: 130%; /** 20.8px (16px * 1.3) **/
  --font-size-xl: 150%; /** 24px (16px * 1.5) **/
  --font-size-sp-md: 130%; /** 18.4px (16px * 1.15) **/
  --font-size-sp-lg: 150%; /** 20.8px (16px * 1.3) **/
  --font-size-sp-xl: 200%; /** 24px (16px * 1.5) **/
}

/* ******** PC版のスタイル ******** */
/* 画面全体 */
body {
  color: #666;
  font-family: 'Hiragino Kaku Gothic ProN', 'Meiryo', 'MS Pゴシック', 'Arial', sans-serif;
}

/* 見出しタグ関連 */
h2, h3 {
  margin-top: 0;
}

h2 {
  font-size: var(--font-size-xl);
}

h3 {
  font-size: var(--font-size-lg);
}

th, td {
  font-size: var(--font-size-base);
}

a, p {
  font-size: var(--font-size-base);
}

/* リンク */
a {
  overflow-wrap: break-word;
  color: var(--link-color);
}


/* 画面の説明文 */
.header {
  width: 100%;
  padding: 60px 0 20px 0
}

.form-item-checkbox-container {
  margin-left: 40px;
  padding: 24px 0;
}

td {
  width: 70%;
  padding: 16px 32px;
}

/* 項目ラベル背景色 */
th,
th > label {
  background-color: var(--bg-main-color);
}

/* TODO 後で綺麗にする */
.title-label-contents {
  justify-content: center;
  align-items: center;
  display: flex;
}

.inside {
  width: 65%;
  margin: auto;
}

.form {
  width: 100%;
}

/* 改行タグスタイル */
.sp {
  display: none;
}
.pc {
  display: block !important;
}

/* 注釈文言 */
.support-text {
  color: var(--support-color);
  font-size: var(--font-size-sm);
}

/* 各項目スタイル */
.form-contents {
  display: flex;
  justify-content: space-between;
}

/* 必須ラベル */
.form-required {
  border-radius: 6px;
  margin-right: 4px;
  padding-top: 2px;
  padding-bottom: 2px;
  width: 28px;
  display: inline-block;
  text-align: center;
  background: var(--main-color);
  color: #fff;
  font-size: var(--font-size-xxs);
}

/* 入力ボックス */
.form-input-text {
  border: 1px solid rgba(219, 219, 219, 0.3);
  border-radius: 6px;
  padding-left: 1em;
  padding-right: 1em;
  height: 40px;
  flex: 1;
  width: calc(100% - 32px);
  background: #f7f7f7;
  font-size: var(--font-size-sm);
}

/* 申出番号入力ボックス */
/* TODO: 別の指定があるので見直す */
.form-input-application-number-container {
  margin-bottom: 8px;
}

/* TODO: 見直す */
.title-label-left {
  flex: 1;
  height: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ヘルプボタン */
.help-button {
  border-radius: 10px;
  width: 18px;
  height: 18px;
  border: none;
  font-size: var(--font-size-sm);
  border: #3b3b3b 1px solid;
  color: #3b3b3b;
  background: #fff;
  align-items: center;
  display: flex;
  padding: 0;
  justify-content: center;
  margin-left: 18px;
  font-weight: bold;
}

/* テーブルの各セルの枠 */
/* TODO: 見直す 今は使っていない */
.divider {
  border-bottom: 2px solid var(--bg-main-color);
}

/******* 名前スタイル ********/
/* 名前入力ボックス */
.form-detail-name-input-container {
  width: calc(100% - 18px);
  display: flex;
  flex: 1
}
/* 名前に関連する各InputBoxとの間隔調整 */
.kanji-margin {
  margin-left: 20px;
}
.kana-margin {
  margin-left: 8px;
}

/* セレクトボックスのスタイル */
.selectbox {
  display: inline-flex;
  align-items: center;
  position: relative;
  width: 100%;
  flex: 1;
  margin-right: 10px;
}

.selectbox::after {
  position: absolute;
  right: 15px;
  width: 10px;
  height: 7px;
  background-color: #535353;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  content: '';
  pointer-events: none;
}

.selectbox select {
  appearance: none;
  flex: 1;
  width: 100%;
  height: 40px;
  padding: .2em calc(0.2em + 26px) 0.2em 0.4em;
  border: 1px solid #cccccc;
  border-radius: 3px;
  background-color: #fff;
  color: #333333;
  font-size: var(--font-size-base);
  cursor: pointer;
}

/* 生年月日入力ボックス横並び */
.select-box-container {
  flex-direction: row;
  display: flex;
  align-items: center;
}

/* 生年月日ラベル */
/* TODO: 見直す */
.selectbox + p {
  margin-right: 8px;
  margin-left: 4px;
}

/* 郵便番号　センター揃え */
.form-postal-container {
  display: flex;
  align-items: center;
}

/* エラーメッセージ */
.error-message {
  font-size: var(--font-size-xs);
  color: var(--main-color);
  letter-spacing: 0.05em;
}

/* 住所検索ボタン */
.form-address-button {
  border-radius: 6px;
  display: block;
  letter-spacing: 0.05em;
  background: var(--button-color);
  color: #fff;
  font-size: var(--font-size-sm);
  height: 42px;
  border: none;
  margin-left: 20px;
}

/* 郵便番号 inputbox */
.postal-code-input {
  width: 100px;
  flex: unset;
}

/* 非活性 ポインター */
.disabled-pointer {
  cursor:	not-allowed;
}

/* 賠償金受取初めての方への説明文 */
.received-reparation-detail {
  justify-content: start;
  width: 58%;
  padding-top: 24px;
  color: #ff5151;
}

/* 賠償金受取初めての方への説明文のコンテンツ */
.received-reparation-detail-container {
  padding: 0;
}

/* 登録ボタン */
.form-btn {
  border-radius: 6px;
  margin-top: 12px;
  margin-left: auto;
  margin-right: auto;
  width: 10%;
  height: 42px;
  display: block;
  letter-spacing: 0.05em;
  background: #990000;
  color: #fff;
  font-size: var(--font-size-lg);
  border: none;
}

.media-checkbox-contents {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  max-height: 240px;
}

.media-checkbox-contents > div {
  width: 50%;
  box-sizing: border-box;
  padding: 5px;
}

/* スマートフォン版のスタイル */
@media only screen and (max-width: 1000px) {
  .inside {
    width: unset;
    margin: unset;
  }
  .sp {
		display: block !important;
  }
  .pc {
		display: none !important;
  }
  h2 {
    text-align: center;
    font-size: var(--font-size-sp-xl);
  }

  .form-detail-checkbox-contents > label {
    font-size: var(--font-size-sp-lg);

  }

  th, td {
    font-size: var(--font-size-sp-lg);
  }

  a, p {
    font-size: var(--font-size-sp-lg);
  }

  .header {
    padding: 32.5px 0 34px 0;
  }

  .form-detail-container-name {
    width: none;
    padding: 0;
    display: flex;
    flex: 1
  }
  /* 必須ラベル */
  .form-required {
    border-radius: 6px;
    margin-right: 4px;
    padding-top: 2px;
    padding-bottom: 2px;
    width: 28px;
    display: inline-block;
    text-align: center;
    background: var(--main-color);
    color: #fff;
    font-size: var(--font-size-sp-md);
  }
  .title-label-contents {
    justify-content: center;
    align-items: center;
    display: flex;
        font-size: var(--font-size-sp-md);
  }

  td {
    width: 65%;
    padding: 16px;
  }

  a {
    text-align: center;
  }

  .container, .form-container {
    padding: 0 60px;
  }

  h2, h3 {
    margin-top: 0;
  }

  .form-container > .header {
    border: none;
  }

  .form-required {
    border-radius: 4px;
    padding-top: 4px;
    padding-bottom: 4px;
    width: 32px;
  }

  .form-contents {
    display: flex;
  }

  .form-detail-container {
    flex: 2;
  }

  .form-detail-container > div {
    text-align: start;
    display: flex;
  }

  .form-detail-checkbox-contents {
    text-align: start;
    align-items: center;
    display: flex;
  }

  .wrap-text {
    text-align: start;
    align-items: start;
    display: flex;
    margin-top: 8px;
  }

  .form-detail-checkbox-contents.wrap-text > input {
    margin-top: 8px;
  }

  .form-detail-checkbox-contents > input {
    inline-size: 24px;
    block-size: 24px;
    margin-right: 12px;
  }

  .form-input-text {
    border-radius: 6px;
    margin: 0.5rem 0;
    flex: 1;
    width: 100%;
    max-width: 100%;
    width: 90%;
    height: 68px;
    font-size: var(--font-size-sp-md);
  }
  
  .support-text {
  color: var(--support-color);
  font-size: var(--font-size-md);
  }

  .kanji-margin {
    margin-left: 20px;
  }
  .kana-margin {
    margin-left: 8px;
  }

  .form-input-application-number {
    margin-bottom: 8px;
    flex-direction: column;
  }

  .form-address-button {
    border-radius: 6px;
    letter-spacing: 0.05em;
    height: 4rem;
    border: none;
    font-size: var(--font-size-sp-md);
  }

  .error-message {
    letter-spacing: 0.05em;
  }

  .form-btn {
    width: 30%;
    height: 60px;
    font-size: var(--font-size-sp-lg);
  }

  .received-reparation-detail {
    width: 75%;
    color: var(--main-color);
  }

  .selectbox select {
    height: 68px;
    width: 68px
  }

  .select-birthday-container {
   /* flex-wrap: wrap; */
    gap: 12px;
  }

  .select-birthday-container > .selectbox {
    max-width: 36%;
    flex: unset;
    margin-right: 10px;
    font-size: var(--font-size-sp-md);
  }
  .selectbox + p {
    margin-right: 0;
  }

  /* 情報源選択スタイル */
  .media-checkbox-contents {
    display: flex;
    flex-wrap: unset;
    max-height: none;
  }

  .media-checkbox-contents > div {
    width: unset;
    box-sizing: border-box;
    padding: 5px;
  }
}