@charset "utf-8";

/* =========================================================
   有限会社吉津総合保険事務所
   XSERVER CONTACT FORM｜FINAL

   入力画面 / 確認画面 / 送信完了画面 共通
========================================================= */


/* =========================================================
   01. DESIGN TOKENS
========================================================= */

:root {
  --kitsu-main: #08475f;
  --kitsu-sub: #0c6283;

  --kitsu-text: #2f3639;
  --kitsu-text-sub: #667176;
  --kitsu-text-light: #879095;

  --kitsu-bg: #f4f8f9;
  --kitsu-bg-light: #f8fbfb;
  --kitsu-bg-accent: #eef5f6;

  --kitsu-border: #dce6e9;
  --kitsu-border-dark: #c7d5da;

  --kitsu-white: #ffffff;

  --kitsu-required: #b94141;
  --kitsu-error: #b52d2d;
  --kitsu-error-bg: #fff7f7;
  --kitsu-error-border: #efd1d1;

  --kitsu-shadow:
    0 8px 35px rgba(8, 71, 95, 0.08);

  --kitsu-shadow-hover:
    0 12px 28px rgba(8, 71, 95, 0.16);

  --kitsu-font-ja:
    "Shin Go Regular",
    "Yu Gothic Medium",
    "Yu Gothic",
    "YuGothic",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Kaku Gothic Pro",
    Meiryo,
    sans-serif;

  --kitsu-font-bold:
    "Shin Go Bold",
    "Yu Gothic",
    "YuGothic",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Kaku Gothic Pro",
    Meiryo,
    sans-serif;
}


/* =========================================================
   02. RESET / BASE
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
form,
table,
tbody,
tr,
th,
td,
main,
section {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;

  color: var(--kitsu-text);
  background: var(--kitsu-bg);

  font-family: var(--kitsu-font-ja);
  font-size: 16px;
  font-weight: 400;

  line-height: 1.8;
  letter-spacing: 0.025em;

  word-break: normal;
  overflow-wrap: break-word;
}

a {
  color: var(--kitsu-main);

  text-decoration: none;

  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

@media (hover: hover) {

  a:hover {
    color: var(--kitsu-sub);
  }

}

input,
textarea,
select,
button {
  font: inherit;
}


/* =========================================================
   03. PAGE WRAPPER
========================================================= */

#wrapper {
  width: calc(100% - 40px);
  max-width: 960px;

  margin: 60px auto;

  overflow: hidden;

  background: var(--kitsu-white);

  border-radius: 20px;

  box-shadow: var(--kitsu-shadow);
}

#main {
  padding: 65px 70px 55px;
}


/* =========================================================
   04. FORM HEADER
========================================================= */

.form_header {
  position: relative;

  margin-bottom: 50px;
  padding-bottom: 32px;

  text-align: center;
}

.form_header::after {
  content: "";

  position: absolute;
  bottom: 0;
  left: 50%;

  width: 45px;
  height: 3px;

  background: var(--kitsu-sub);

  border-radius: 999px;

  transform: translateX(-50%);
}

.form_header__en {
  margin-bottom: 8px;

  color: var(--kitsu-sub);

  font-family: var(--kitsu-font-bold);
  font-size: 13px;
  font-weight: 700;

  line-height: 1.4;
  letter-spacing: 0.18em;
}

.form_header__title {
  margin-bottom: 18px;

  color: var(--kitsu-main);

  font-family: var(--kitsu-font-bold);
  font-size: 32px;
  font-weight: 700;

  line-height: 1.4;
  letter-spacing: 0.025em;
}

.form_header__text {
  color: var(--kitsu-text-sub);

  font-size: 16px;

  line-height: 1.9;
}


/* =========================================================
   05. SECTION
========================================================= */

.section,
.section__body {
  margin: 0;
  padding: 0;
}


/* =========================================================
   06. 説明ボックス
========================================================= */

#txt_explain {
  margin-bottom: 32px;
  padding: 24px 28px;

  color: #41494d;
  background: var(--kitsu-bg-light);

  border: 1px solid var(--kitsu-border);
  border-radius: 10px;

  font-size: 15px;

  line-height: 1.9;
}

#txt_explain p {
  margin: 0;
}


/* =========================================================
   07. 必須説明 / 必須バッジ
========================================================= */

.required_note {
  margin-top: 10px !important;

  color: var(--kitsu-text-sub);
}

.required_note span,
.required_badge {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  color: var(--kitsu-white) !important;
  background: var(--kitsu-required);

  border-radius: 4px;

  font-family: var(--kitsu-font-bold);
  font-weight: 700;

  line-height: 1.5;

  white-space: nowrap;
}

.required_note span {
  margin-right: 6px;
  padding: 2px 8px;

  font-size: 11px;
}

.required_badge {
  margin-left: 9px;
  padding: 2px 7px;

  font-size: 10px !important;

  letter-spacing: 0.05em;

  vertical-align: 2px;
}


/* =========================================================
   08. ERROR
========================================================= */

.red_txt {
  margin-bottom: 25px;
  padding: 16px 18px;

  color: var(--kitsu-error);
  background: var(--kitsu-error-bg);

  border: 1px solid var(--kitsu-error-border);
  border-radius: 7px;

  font-family: var(--kitsu-font-bold);
  font-size: 14px;
  font-weight: 700;

  line-height: 1.75;
}

.red_txt:empty {
  display: none;
}


/* =========================================================
   09. FORM TABLE
========================================================= */

.form_table_wrap {
  width: 100%;

  margin-bottom: 30px;

  overflow: hidden;

  border: 1px solid var(--kitsu-border);
  border-radius: 10px;
}

.table {
  width: 100%;

  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid var(--kitsu-border);
}

.table tr:last-child th,
.table tr:last-child td {
  border-bottom: 0;
}

.table th {
  width: 31%;

  padding: 24px 22px;

  color: var(--kitsu-main);
  background: var(--kitsu-bg-accent);

  font-family: var(--kitsu-font-bold);
  font-size: 15px;
  font-weight: 700;

  line-height: 1.7;

  text-align: left;
  vertical-align: middle;
}

.table td {
  width: 69%;

  padding: 20px 24px;

  color: var(--kitsu-text);
  background: var(--kitsu-white);

  font-size: 15px;

  line-height: 1.8;

  vertical-align: middle;
}


/* =========================================================
   10. INPUT / TEXTAREA / SELECT
========================================================= */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
  display: block;

  width: 100%;
  max-width: 100%;

  margin: 0;
  padding: 13px 15px;

  color: var(--kitsu-text);
  background: var(--kitsu-white);

  border: 1px solid var(--kitsu-border-dark);
  border-radius: 7px;

  box-shadow: none;
  outline: none;

  font-size: 16px;

  line-height: 1.6;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
  min-height: 50px;
}

textarea {
  min-height: 180px;

  resize: vertical;
}

select {
  min-height: 50px;

  cursor: pointer;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  background: var(--kitsu-white);

  border-color: var(--kitsu-sub);

  box-shadow:
    0 0 0 3px rgba(12, 98, 131, 0.10);
}


/* =========================================================
   11. CHECKBOX / RADIO
========================================================= */

input[type="checkbox"],
input[type="radio"] {
  flex: 0 0 auto;

  width: 19px;
  height: 19px;

  margin: 0;

  accent-color: var(--kitsu-sub);

  cursor: pointer;
}

.table td .choice_item,
.table td label {
  display: inline-flex;

  align-items: center;

  min-height: 34px;

  gap: 8px;

  margin: 4px 18px 4px 0;

  line-height: 1.6;

  white-space: nowrap;

  cursor: pointer;
  vertical-align: middle;
}

.table td label input[type="checkbox"],
.table td label input[type="radio"] {
  margin: 0;
}


/* =========================================================
   12. PRIVACY
========================================================= */

.privacy_note {
  margin: 30px 0 35px;
  padding: 20px 24px;

  color: var(--kitsu-text-sub);
  background: var(--kitsu-bg-light);

  border-left: 4px solid var(--kitsu-sub);
  border-radius: 6px;

  font-size: 14px;

  line-height: 1.9;
}

.privacy_note p {
  margin: 0;
}

.privacy_note a {
  color: var(--kitsu-sub);

  font-family: var(--kitsu-font-bold);
  font-weight: 700;

  text-decoration: underline;
  text-decoration-color: rgba(12, 98, 131, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (hover: hover) {

  .privacy_note a:hover {
    text-decoration-color: var(--kitsu-sub);
  }

}


/* =========================================================
   13. BUTTON BASE
========================================================= */

.button_box {
  margin-top: 35px;
  padding: 0;

  text-align: center;
}

.submit_button,
input[type="submit"],
.complete_back a {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 420px;
  min-height: 62px;

  margin: 0;
  padding: 15px 35px;

  color: var(--kitsu-white);
  background: var(--kitsu-main);

  border: 2px solid var(--kitsu-main);
  border-radius: 999px;

  font-family: var(--kitsu-font-bold);
  font-size: 16px;
  font-weight: 700;

  line-height: 1.5;
  letter-spacing: 0.06em;

  text-align: center;
  text-decoration: none;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  box-shadow: none;

  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

@media (hover: hover) {

  .submit_button:hover,
  input[type="submit"]:hover,
  .complete_back a:hover {
    color: var(--kitsu-white);
    background: var(--kitsu-sub);

    border-color: var(--kitsu-sub);

    box-shadow: var(--kitsu-shadow-hover);

    transform: translateY(-2px);
  }

}

.submit_button:active,
input[type="submit"]:active,
.complete_back a:active {
  transform: translateY(0);
}

input[type="submit"]:disabled,
button:disabled {
  opacity: 0.5;

  cursor: default;

  transform: none;
  box-shadow: none;
}


/* キーボード操作 */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(12, 98, 131, 0.28);
  outline-offset: 3px;
}


/* =========================================================
   14. サイトへ戻る
========================================================= */

.back_button {
  margin-top: 35px;

  text-align: center;
}

.back_button a {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  color: var(--kitsu-main);

  font-family: var(--kitsu-font-bold);
  font-size: 14px;
  font-weight: 700;

  text-decoration: none;
}

.back_button a span {
  font-size: 18px;

  transition: transform 0.25s ease;
}

@media (hover: hover) {

  .back_button a:hover span {
    transform: translateX(-4px);
  }

}


/* =========================================================
   15. 確認画面
========================================================= */

.confirm_table_wrap {
  margin-bottom: 40px;
}

.confirm_table td {
  color: var(--kitsu-text);

  font-size: 15px;
  font-weight: 500;

  line-height: 1.9;

  overflow-wrap: anywhere;
}

.confirm_buttons {
  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 14px;

  margin-top: 35px;
}


/* 送信 */

.confirm_buttons input[type="submit"][value="送信"],
.confirm_buttons .confirm_submit {
  width: 100%;
  max-width: 420px;
  min-height: 62px;

  margin: 0;

  color: var(--kitsu-white);
  background: var(--kitsu-main);

  border: 2px solid var(--kitsu-main);

  font-size: 16px;
}


/* 戻る */

.confirm_buttons input[type="submit"][value="戻る"],
.confirm_buttons .confirm_back {
  width: 100%;
  max-width: 420px;
  min-height: 56px;

  margin: 0;

  color: var(--kitsu-main);
  background: var(--kitsu-white);

  border: 1px solid #b9cbd2;

  font-size: 14px;

  letter-spacing: 0.04em;

  box-shadow: none;
}

@media (hover: hover) {

  .confirm_buttons input[type="submit"][value="戻る"]:hover,
  .confirm_buttons .confirm_back:hover {
    color: var(--kitsu-sub);
    background: var(--kitsu-bg-light);

    border-color: var(--kitsu-sub);

    box-shadow: none;

    transform: none;
  }

}


/* =========================================================
   16. 送信完了画面
========================================================= */

.complete {
  padding: 15px 0 20px;

  text-align: center;
}

.complete__icon {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 72px;
  height: 72px;

  margin: 0 auto 28px;

  color: var(--kitsu-sub);
  background: var(--kitsu-bg-accent);

  border: 2px solid var(--kitsu-sub);
  border-radius: 50%;
}

.complete__icon span {
  color: inherit;

  font-family: var(--kitsu-font-bold);
  font-size: 32px;
  font-weight: 700;

  line-height: 1;
}

.complete__title {
  margin-bottom: 25px;

  color: var(--kitsu-main);

  font-family: var(--kitsu-font-bold);
  font-size: 24px;
  font-weight: 700;

  line-height: 1.5;
  letter-spacing: 0.04em;
}

.complete__text {
  max-width: 620px;

  margin: 0 auto;

  color: var(--kitsu-text-sub);

  font-size: 15px;

  line-height: 2;
}

.complete__text p {
  margin: 0 0 18px;
}

.complete__text p:last-child {
  margin-bottom: 0;
}

.complete_back {
  margin-top: 45px;

  text-align: center;
}


/* =========================================================
   17. XSERVER 汎用クラス
========================================================= */

.left_txt,
.tal {
  text-align: left;
}

.tac {
  text-align: center;
}

.tar {
  text-align: right;
}

.dispN {
  display: none !important;
}

.dispB {
  display: block !important;
}

.dispIB {
  display: inline-block !important;
}

.fontBold {
  font-weight: 700 !important;
}

.colorBlack {
  color: #000;
}


/* =========================================================
   18. TABLET
========================================================= */

@media screen and (max-width: 900px) {

  #wrapper {
    width: calc(100% - 40px);

    margin: 40px auto;
  }

  #main {
    padding: 55px 45px 45px;
  }

  .form_header__title {
    font-size: 29px;
  }

}


/* =========================================================
   19. SMARTPHONE
========================================================= */

@media screen and (max-width: 767px) {

  body {
    background: var(--kitsu-white);

    font-size: 15px;
  }


  /* PAGE */

  #wrapper {
    width: 100%;

    margin: 0;

    background: var(--kitsu-white);

    border-radius: 0;

    box-shadow: none;
  }

  #main {
    padding: 42px 20px 40px;
  }


  /* HEADER */

  .form_header {
    margin-bottom: 35px;
    padding-bottom: 25px;
  }

  .form_header__en {
    margin-bottom: 5px;

    font-size: 11px;
  }

  .form_header__title {
    margin-bottom: 14px;

    font-size: 25px;
  }

  .form_header__text {
    font-size: 14px;

    line-height: 1.8;
  }


  /* 説明 */

  #txt_explain {
    margin-bottom: 25px;
    padding: 18px 17px;

    border-radius: 8px;

    font-size: 13px;

    line-height: 1.8;
  }


  /* ERROR */

  .red_txt {
    margin-bottom: 22px;
    padding: 14px 15px;

    font-size: 13px;
  }


  /* TABLE → 縦積み */

  .form_table_wrap {
    overflow: visible;

    border: 0;
    border-radius: 0;
  }

  .table,
  .table tbody,
  .table tr,
  .table th,
  .table td {
    display: block;

    width: 100%;
  }

  .table tr {
    margin-bottom: 24px;
  }

  .table tr:last-child {
    margin-bottom: 0;
  }

  .table th {
    padding: 0 0 9px;

    color: var(--kitsu-main);
    background: transparent;

    border: 0;

    font-size: 14px;

    line-height: 1.7;
  }

  .table td {
    padding: 0;

    border: 0;

    font-size: 14px;
  }


  /* 必須 */

  .required_badge {
    margin-left: 7px;
    padding: 2px 6px;

    font-size: 9px !important;
  }


  /* INPUT */

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  textarea,
  select {
    width: 100%;

    padding: 12px 13px;

    border-radius: 6px;

    font-size: 16px;
  }

  textarea {
    min-height: 160px;
  }


  /* CHECKBOX / RADIO */

  input[type="checkbox"],
  input[type="radio"] {
    width: 19px;
    height: 19px;
  }

  .table td .choice_item,
  .table td label {
    display: inline-flex;

    align-items: center;

    min-height: 36px;

    gap: 8px;

    margin: 5px 12px 5px 0;

    line-height: 1.6;

    white-space: nowrap;
  }


  /* PRIVACY */

  .privacy_note {
    margin: 25px 0 30px;
    padding: 17px 18px;

    font-size: 13px;
  }


  /* BUTTON */

  .button_box {
    margin-top: 28px;
  }

  .submit_button,
  input[type="submit"],
  .complete_back a {
    width: 100%;
    max-width: none;
    min-height: 58px;

    padding: 14px 25px;

    font-size: 15px;
  }


  /* BACK */

  .back_button {
    margin-top: 28px;
  }

  .back_button a {
    font-size: 13px;
  }


  /* 確認画面 */

  .confirm_table_wrap {
    margin-bottom: 30px;
  }

  .confirm_table td {
    padding-bottom: 8px;

    font-size: 14px;

    line-height: 1.8;
  }

  .confirm_buttons {
    gap: 12px;

    margin-top: 28px;
  }

  .confirm_buttons input[type="submit"][value="送信"],
  .confirm_buttons .confirm_submit {
    width: 100%;
    max-width: none;
    min-height: 58px;

    font-size: 15px;
  }

  .confirm_buttons input[type="submit"][value="戻る"],
  .confirm_buttons .confirm_back {
    width: 100%;
    max-width: none;
    min-height: 54px;

    font-size: 14px;
  }


  /* 完了画面 */

  .complete {
    padding: 5px 0 10px;
  }

  .complete__icon {
    width: 62px;
    height: 62px;

    margin-bottom: 22px;
  }

  .complete__icon span {
    font-size: 28px;
  }

  .complete__title {
    margin-bottom: 20px;

    font-size: 21px;
  }

  .complete__text {
    font-size: 14px;

    line-height: 1.9;
  }

  .complete_back {
    margin-top: 35px;
  }


  /* SP ONLY */

  .sp_only {
    display: block;
  }

}


/* =========================================================
   20. PC ONLY
========================================================= */

@media screen and (min-width: 768px) {

  .sp_only {
    display: none;
  }

}


/* =========================================================
   21. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

}