/* =========================================================
   全体デザイン（PC 標準）
========================================================= */
body {
  background: #ffffff;
  font-family: "Hiragino Sans", sans-serif;
  color: #663366;
  margin: 0%;
}

.wave-svg {
  min-width: 300px;
  margin-bottom: -12%;
}

/* 背景 */
.background {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  z-index: -3;
}

.wave-svg {
    min-width: 300px;
}
@media screen and (max-width: 475px) {
   .wave-svg {
     min-width: 300px;
  }
}

/* ヘッダー */
.header-img {
  position: absolute;
  display: flex;
  height: 0%;
  align-items: center;
  gap: 10px;
  top: 4.5%;
}

.header-img img {
  width: 150px;
}

.header_time {
  margin-top: 5px;
}

.header_logo img {
  padding: 0px;
}

.list_nav_header {
  position: absolute;
  top: 15px;
  right: 70px; /* ←固定pxではなく右寄せ推奨 */
  display: flex;
  gap: 20px;
  list-style-type: none;
  font-size: 12px;
}

.list_nav_header a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  padding-bottom: 2px; /* テキストと下線の間隔 */
  background-image: linear-gradient(#ffffff, #ffffff);
  background-repeat: no-repeat;
  background-position: bottom right; /* 下線の初期位置 */
  background-size: 0 1px; /* 下線のサイズ（横幅、高さ） */
  transition: background-size 0.5s;
}

.list_nav_header li {
  position: relative;
  white-space: nowrap;
}

.list_nav_header a:hover {
  background-position: bottom left; /* 下線のホバー時位置 */
  background-size: 100% 1px; /* 下線の横幅を100%にする */
}

/* ハンバーガーメニュー */
.burger {
  width: 40px;
  height: 40px;
  background-color: #d9304f;
  background-image: url(images/header_firstview/burger.png);
  background-size: 21x;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 4px;
  cursor: pointer;
  position: fixed;
  top: 14px;
  right: 10px;
  display: block;
  z-index: 10;
}

.burger:hover {
  background-color: rgb(234, 182, 199);
}

.menu {
  position: absolute;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: start;
  width: 20%;
  height: 50%;
  background-color: rgb(159, 20, 171);
  position: fixed;
  top: 0;
  right: 0;
  z-index: 5;
  display: none;
  opacity: 0.7;
  border-radius: 6px;
}

.menu_list_nav_header li {
  list-style-type: none;
  line-height: 40px;
}

.menu_list_nav_header a {
  text-decoration: none;
  color: #ffffff;
  padding-bottom: 2px; /* テキストと下線の間隔 */
  background-image: linear-gradient(#ffffff, #ffffff);
  background-repeat: no-repeat;
  background-position: bottom right; /* 下線の初期位置 */
  background-size: 0 1px; /* 下線のサイズ（横幅、高さ） */
  transition: background-size 0.5s;
}
.menu_list_nav_header a:hover {
  background-position: bottom left; /* 下線のホバー時位置 */
  background-size: 100% 1px; /* 下線の横幅を100%にする */
}

.menu.is-active {
  position: relative;
  position: fixed;
  top: 0;
  right: 0;
  display: flex;
}

.burger.is-active {
  background-image: url(images/header_firstview/close.png);
  position: fixed;
  top: 14;
  right: 10;
}

.rogo-top-home {
  cursor: pointer;
}

.rogo-top-home:hover {
  cursor: pointer;
  opacity: 3;
}

/* Header レスポンシブ */
@media screen and (max-width: 970px) {
  .list_nav_header {
    display: none;
  }
}
@media screen and (max-width: 940px) {
  .header-img {
    position: absolute;
    display: flex;
    height: 0%;
    align-items: center;
    gap: 10px;
    top: 4.5%;
  }
}
@media screen and (max-width: 900px) {
  .header-img {
    position: absolute;
    display: flex;
    height: 0%;
    align-items: center;
    gap: 10px;
    top: 4.2%;
  }
}
@media screen and (max-width: 733px) {
  .header-img {
    position: absolute;
    display: flex;
    height: 0%;
    align-items: center;
    gap: 10px;
    top: 2.8%;
  }
}
@media screen and (max-width: 700px) {
  .header-img {
    position: absolute;
    display: flex;
    height: 0%;
    align-items: center;
    gap: 10px;
    top: 2.8%;
  }
  .menu {
    width: 30%;
    height: 50%;
    font-size: 12px;
  }
  .menu_list_nav_header li {
    list-style-type: none;
    line-height: 40px;
  }
  .menu_list_nav_header a {
    text-decoration: none;
    color: #ffffff;
    padding-bottom: 2px; /* テキストと下線の間隔 */
    background-image: linear-gradient(#ffffff, #ffffff);
    background-repeat: no-repeat;
    background-position: bottom right; /* 下線の初期位置 */
    background-size: 0 1px; /* 下線のサイズ（横幅、高さ） */
    transition: background-size 0.5s;
  }
}
@media screen and (max-width: 620px) {
 .header-img {
    position: absolute;
    display: flex;
    height: 0%;
    align-items: center;
    gap: 10px;
    top: 2.5%;
  }
  .header-img img {
    width: 130px;
  }
  .burger {
    position: fixed;
    top: 10px;
    right: 10px;
  }
  .menu {
    width: 30%;
    height: 50%;
    font-size: 12px;
  }
  .menu_list_nav_header li {
    list-style-type: none;
    line-height: 40px;
  }
  .menu_list_nav_header a {
    text-decoration: none;
    color: #ffffff;
    padding-bottom: 2px; /* テキストと下線の間隔 */
    background-image: linear-gradient(#ffffff, #ffffff);
    background-repeat: no-repeat;
    background-position: bottom right; /* 下線の初期位置 */
    background-size: 0 1px; /* 下線のサイズ（横幅、高さ） */
    transition: background-size 0.5s;
  }
}
@media screen and (max-width: 545px) {
  .header {
    width: 100%;
  }
 .wave-svg {
    width: 100%;
    height: auto;
    display: block;
  }
}

@media screen and (max-width: 500px) {
  .header-img {
    width: 98%;
    gap: 10px;
    top: 4%;
  }
  .header-img img {
    width: 140px;
  }
  .burger {
    position: fixed;
    top: 10px;
    right: 10px;
  }
  .header {
    width: 100%;
    overflow: hidden;
  }
  .wave-svg {
    width: 150%;
    height: auto;
    display: block;
  }
}
@media screen and (max-width: 487px) {
  .header-img {
    width: 95%;
    gap: 10px;
    top: 4%;
  }
  .header {
    width: 100%;
    overflow: hidden;
  }
  .wave-svg {
    width: 150%;
    height: auto;
    display: block;
  }
  .header-img img {
    width: 130px;
  }
}
@media screen and (max-width: 475px) {
  .header-img {
    width: 95%;
    gap: 10px;
    top: 4%;
  }
  .header-img img {
    width: 130px;
  }
  .burger {
    position: fixed;
    top: 10px;
    right: 10px;
  }
  .header {
    width: 100%;
    overflow: hidden;
  }
  .wave-svg {
    width: 150%;
    height: auto;
    display: block;
  }
}
@media screen and (max-width: 470px) {
  .header-img {
    width: 95%;
    gap: 8px;
    top: 4%;
  }
  .header {
    width: 100%;
    overflow: hidden;
  }
  .wave-svg {
    width: 150%;
    height: auto;
    display: block;
  }
  .header-img img {
    width: 130px;
  }
}
@media screen and (max-width: 468px) {
  .header-img {
    width: 95%;
    gap: 10px;
    top: 4%;
  }
  .header {
    width: 100%;
    overflow: hidden;
  }
  .wave-svg {
    width: 150%;
    height: auto;
    display: block;
  }
  .header-img img {
    width: 128px;
  }
}
@media screen and (max-width: 465px) {
  .header-img {
    width: 95%;
    gap: 10px;
    top: 4%;
  }
  .header-img img {
    width: 127px;
  }
  .burger {
    position: fixed;
    top: 10px;
    right: 10px;
  }
  .header {
    width: 100%;
    overflow: hidden;
  }
  .wave-svg {
    width: 150%;
    height: auto;
    display: block;
  }
}
@media screen and (max-width: 440px) {
  .header-img img {
    width: 120px;
  }
}
@media screen and (max-width: 450px) {
  .header-img img {
    width: 120px;
  }
}
@media screen and (max-width: 430px) {
  .header-img img {
    width: 117px;
  }
}
@media screen and (max-width: 425px) {
  .header-img img {
    width: 115px;
  }
}
@media screen and (max-width: 408px) {
  .header-img img {
    width: 105px;
  }
}
@media screen and (max-width: 407px) {
  .header-img img {
    width: 105px;
  }
  .header {
    width: 100%;
    overflow: hidden;
  }
}
@media screen and (max-width: 395px) {
  .header-img img {
    width: 104px;
  }
}
@media screen and (max-width: 380px) {
  .header-img {
    top: 3.5%;
  }
  .header-img img {
    width: 100px;
  }
}
@media screen and (max-width: 375px) {
  .header-img {
    top: 3.3%;
    gap: 5px;
  }
 .header-img img {
    width: 100px;
  }
}
@media screen and (max-width: 360px) {
  .header-img img {
    width: 98px;
  }
}
@media screen and (max-width: 350px) {
  .header-img {
    top: 3.3%;
    gap: 4px;
  }
  .header-img img {
    width: 90px;
  }
}
@media screen and (max-width: 338px) {
 .header-img img {
    width: 90px;
  }
}
@media screen and (max-width: 335px) {
  .header-img {
    top: 3%;
  }
  .header-img img {
    width: 87px;
  }
}
@media screen and (max-width: 320px) {
  .header-img img {
    width: 87px;
  }
}

.form-wrapper {
  max-width: 880px;
  background: #ffffff;  
  border-radius: 16px;
  margin: auto;
}

h1 {
  text-align: center;
  margin-top: 7%;
  margin-bottom: 50px;
  color: #5d2d73;
}

.field, .field-half > div {
  margin-bottom: 20px;
}

.short-field {
  max-width: 300px;   /* ← 以前より更に狭くしました */
  width: 100%;
}

.inquiry-note {
  color: red;
  font-size: 0.8em;
  margin: 4px 0 0 4px;
}


label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
label span {
  color: #dd2222;
  font-size: 12px;
}

input, select, textarea {
  width: 100%;
  padding: 10px 5px 10px 10px;
  border: 1px solid #d4b8e0;
  border-radius: 6px;
  font-size: 15px;
  background: #fff;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid #d9c0e8;
}

.field-half {
  display: flex;
  gap: 35px;
}

.note {
  color: #dd2222;
  font-size: 14px;
  margin-bottom: 15px;
}

.btn {
  width: 100%;
  padding: 14px;
  border: none;
  background: #a26ad8;
  color: white;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 40px;
}

.btn:hover {
  background: #8c55c7;
}

.btn-light {
  background: #e8d9f3;
  color: #5d2d73;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  margin-top: 10px;
  margin-right: 10px;
  font-size: 12px;
}
.btn-light:hover {
  cursor: pointer;
  background: #d34262;
  color: #ffffff;
}

/* 修正するボタンを横長の長方形にする */
#backToForm {
  display: inline-block;
  width: 180px;          /* ← 横幅をしっかり確保（調整可） */
  height: 48px;          /* ← 高さ固定で長方形に */
  line-height: 48px;     /* ← テキストが中央に来る */
  text-align: center;
  white-space: nowrap;   /* ← 文字の折り返し防止 */
  border-radius: 8px;
  background: #e8d9f3;
  color: #5d2d73;
  font-size: 16px;
  border: none;
  cursor: pointer;
  padding: 0;            /* ← 余白リセット（line-heightで中央寄せ） */
}
#backToForm:hover {
  cursor: pointer;
  background: #d34262;
  color: #ffffff;
}


.hidden {
  display: none;
}

.confirm-section {
  padding: 20px;
}

.confirm-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  gap: 10px;
}

.complete-section {
  text-align: center;
  padding: 30px 0;
}

@media screen and (max-width: 960px) {
  .form-wrapper {
    padding: 0px 0px 0px 0px;  
  }
}
@media screen and (max-width: 912px) {
  .form-wrapper {
    padding: 0px 40px 0px 40px;  
  }
}
@media screen and (max-width: 545px) {
  .form-wrapper {
    padding: 0px 20px;
  }
}

@media screen and (max-width: 357px),
       screen and (max-width: 350px),
       screen and (max-width: 327px),
       screen and (max-width: 325px),
       screen and (max-width: 322px),
       screen and (max-width: 320px) {
  .form-wrapper {
    padding: 0 20px;
  }
}

@media (max-width: 599px) {
  #backToForm {
    width: 100%;        /* ← スマホは必ず1行 */
    white-space: nowrap;
  }
}


/* =========================================================
   入力欄を短めにする
========================================================= */

.short-field {
  max-width: 360px;    /* ← PCでの横幅（変更可） */
  width: 100%;
}
select#souce {
  padding: 0px 0% 0px 0px;
}

/* スマホでは全幅でOK */
@media (max-width: 1368px) {
  input#city {
    max-width: 98%;
  }
  input.short-field {
   max-width: 98%;
  }
  textarea {
    max-width: 98%;
  }
}
@media (max-width: 599px) {
  .short-field {
    max-width: 100%;
  }
}
@media (max-width: 545px) {
  input#city {
    max-width: 96%;
  }
  input.short-field {
   max-width: 96%;
  }
  textarea {
    max-width: 96%;
  }
}
@media (max-width: 430px) {
  input#city {
    max-width: 96%;
  }
  input.short-field {
   max-width: 96%;
  }
  input {
    max-width: 90%;
  }
}


/* =========================================================
   スマホ・タブレット時（縦型表示）
   → 入力欄は必ず左右同じ幅(100%)になるよう統一
========================================================= */
/* @media (max-width: 1023px) {
  .short-field {
    max-width: 100%;   /* ← 縦並びでは左右段差なし */
    /* width: 100%; */
  /* } */ */
  /* field-half を縦並びにしたときに幅統一 */

  /* .field-half {
    flex-direction: column;
    gap: 0;
  } */
  /* .short-field {
  max-width: 300px;   ← 以前より更に狭くしました
  width: 100%; */
/* } */
  /* .field-half > div {
    width: 100%;       /* 左右どちらも同じ幅に揃える */
  /* } */ */
/* } */
