/* =========================================================
   NEWクレラップ 学園祭応援協賛活動フォーム modern CSS
   既存の css/style.css をこの内容でまるっと差し替え可能
   ========================================================= */

:root {
  --brand: #9fc63b;
  --brand-dark: #6f921d;
  --accent: #00a6c8;
  --bg: #f5f7ef;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --danger: #dc2626;
  --warning-bg: #fff7d6;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(31, 41, 55, .10);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.75;
  background:
    radial-gradient(circle at top left, rgba(159, 198, 59, .25), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(0, 166, 200, .15), transparent 30rem),
    var(--bg);
}

div {
  margin: 0;
  padding: 0;
  position: relative;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
}

form#F1, 
form#F2{
  width: min(1080px, calc(100% - 32px)) !important;
  margin: 0 auto;
  padding: 32px 0 48px;
}

#conte {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

#p1 {
  position: relative;
  overflow: hidden;
  margin: 0 0 24px;
  padding: clamp(28px, 6vw, 56px);
  border-radius: 28px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(111, 146, 29, .96), rgba(159, 198, 59, .92)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='2'%3E%3Cpath d='M0 80h160M80 0v160'/%3E%3Ccircle cx='80' cy='80' r='38'/%3E%3C/g%3E%3C/svg%3E");
  box-shadow: var(--shadow);
}

#p1::before {
  content: "お申込みフォーム";
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
}

#p1::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}

h1 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
}

#p1 h1 {
  position: relative;
  z-index: 1;
  width: auto;
  margin: 0;
  padding: 0;
  color: #fff;
  background-color: transparent;
  line-height: 1.35;
  letter-spacing: .02em;
}

table {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, .9);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  background: var(--card) !important;
  box-shadow: var(--shadow);
}

tr {
  clear: both;
}

tr.oddorevn0,
tr.oddorevn1 {
  background: transparent !important;
}

.ltd,
.rtd,
.headtd,
.second_ltd,
.second_rtd {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

tr:last-child .ltd,
tr:last-child .rtd,
tr:last-child .headtd,
tr:last-child .second_ltd,
tr:last-child .second_rtd {
  border-bottom: 0;
}

.ltd,
.second_ltd,
.headtd {
  width: 28%;
  min-width: 220px;
  color: #334155;
  background-color: #fbfcf7;
  font-weight: 800;
  letter-spacing: .02em;
}

.rtd,
.second_rtd {
  width: 72%;
  color: var(--text);
  background-color: #fff;
  font-size: .95rem;
  line-height: 1.9;
}

.sml_announce {
  color: var(--muted);
  font-size: .85em;
}

.mustfld {
  display: inline-flex;
  float: none;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background-color: var(--danger);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
  vertical-align: middle;
}

.non_mustfld {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-left: 8px;
  padding: 3px 8px;

  border-radius: 999px;

  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;

  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
  vertical-align: middle;
}

.size_s {
  font-size: .75rem !important;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  max-width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  color: var(--text);
  background: #fff;
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 166, 200, .15);
  background: #fcfeff;
}

textarea {
  width: 100%;
  min-height: 140px;
  height: 140px;
  resize: vertical;
}

input[type="file"] {
  width: 100%;
  max-width: 560px;
  padding: 14px;
  border: 1px dashed #b8c98a;
  border-radius: 14px;
  background: #fbfdf4;
  color: var(--muted);
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--brand-dark);
  font-weight: 700;
  cursor: pointer;
}

select {
  min-width: 120px;
  appearance: auto;
}

#tel1,
#fax1,
#delivery_tel1,
#delivery_npos1,
#npos1 {
  width: 5.5em;
}

#tel2,
#tel3,
#fax2,
#fax3,
#delivery_tel2,
#delivery_tel3,
#delivery_npos2,
#npos2 {
  width: 6em;
}

#Email {
  width: min(100%, 500px) !important;
}

#organization_Name,
#City,
#Address1,
#Address2,
#delivery_City,
#delivery_Address1,
#delivery_Address2,
#delivery_name,
#q1_other {
  width: min(100%, 560px) !important;
}

#block_of_Name,
#block_of_Name_kana {
  gap: 12px 18px;
  align-items: flex-start;
}

#div_of_familyName,
#div_of_firstName,
#div_of_familyName_kana,
#div_of_firstName_kana {
  max-width: 180px !important;
  color: var(--muted);
  font-size: .9rem;
}

#div_of_familyName input,
#div_of_firstName input,
#div_of_familyName_kana input,
#div_of_firstName_kana input {
  width: 100% !important;
}

#ul_q1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0 !important;
  list-style: none;
}

.tedq {
  list-style: none;
}

.tedq input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tedq label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #d9e4bb;
  border-radius: 14px;
  background: #fbfdf4;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.tedq label:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(111, 146, 29, .10);
}

.tedq label::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid #b4c778;
  border-radius: 5px;
  background: #fff;
}

.tedq input[type="checkbox"]:checked + label {
  border-color: var(--brand-dark);
  background: #f2f8df;
  box-shadow: 0 8px 18px rgba(111, 146, 29, .12);
}

.tedq input[type="checkbox"]:checked + label::before {
  border-color: var(--brand-dark);
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: inset 0 0 0 3px #fff;
}

#entry_pc_autonpos,
#delivery_entry_pc_autonpos {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
  font-size: .9rem;
}
/*
#entry_pc_autonpos span,
#delivery_entry_pc_autonpos span,
#ok_npos2addr {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  color: #036579;
  background-color: #e6f8fb !important;
  font-weight: 700;
}
*/
#entry_pc_autonpos span,
#delivery_entry_pc_autonpos span,
#ok_npos2addr,
#ok_npos2addr_2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 15px 8px 10px;
  padding: 8px 16px;
  border: 1px solid #00a6c8;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #00a6c8, #078ca8);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 4px 10px rgba(0,166,200,.22);
  transition:
    transform .15s ease,
    box-shadow .2s ease,
    filter .2s ease;
}

#entry_pc_autonpos span::after,
#delivery_entry_pc_autonpos span::after,
#ok_npos2addr::after,
#ok_npos2addr_2::after {
  content: " ›";
}

#entry_pc_autonpos span:hover,
#delivery_entry_pc_autonpos span:hover,
#ok_npos2addr:hover,
#ok_npos2addr_2:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 14px rgba(0,166,200,.3);
  transform: translateY(-1px);
}

#entry_pc_autonpos::after,
#delivery_entry_pc_autonpos::after {
  content: "郵便番号を入力後、ボタンを押してください。";
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 0.82rem;
}


.image_path_1_size,
.image_path_2_size,
.image_path_3_size {
  margin-left: 0;
  color: var(--danger) !important;
  font-weight: 700;
}

#gotocheckform,
#gotofinalregister,
#gobackbtn {
  display: inline-block;
  min-width: 240px;
  padding: 15px 26px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: 0 14px 26px rgba(111, 146, 29, .28);
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

#gobackbtn {
  background: linear-gradient(135deg, #64748b, #94a3b8);
  box-shadow: 0 14px 26px rgba(100, 116, 139, .22);
}

#gotocheckform:hover,
#gotofinalregister:hover,
#gobackbtn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

#gotocheckform:active,
#gotofinalregister:active,
#gobackbtn:active {
  transform: translateY(0);
}

#footer,
dif#footer {
  display: block;
  margin: 28px auto 0;
  padding: 0;
  background: transparent;
  height: auto;
}

.footer2 {
  border-radius: 22px;
  background-color: #7fa425 !important;
  box-shadow: var(--shadow);
}

.footer2 ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  text-align: center;
  zoom: 1;
}

.footer2 ul li {
  display: inline-block;
  font-size: .8rem;
}

.footer2 ul li a,
.footer2 a {
  padding: 0;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .45);
}

.footer2 ul li a:hover,
.footer2 a:hover {
  border-bottom-color: #fff;
}

#footer .copy,
.copy {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .85);
  text-align: center;
  font-family: inherit;
  font-size: 12px;
  line-height: inherit;
  white-space: normal;
}

/* エラーの表示 */
div.ERROR_ANNOUNCE,
div.ERROR_ANNOUNCE_oprtMNG {
  margin: 16px auto;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  color: #b91c1c;
  background-color: var(--warning-bg);
  text-align: left;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.7;
}

div.ERROR_ANNOUNCE_oprtMNG {
  margin: 20px;
}

.error_cell {
  color: #c00;
  font-weight: normal;
  font-size: .85rem;
}

.error_td {
  color: #c00;
  font-weight: bold;
}

@media (max-width: 760px) {
  form#F1,
  form#F2 {
    width: min(100% - 20px, 680px) !important;
    padding-top: 16px;
  }

  #p1 {
    padding: 28px 22px;
    border-radius: 22px;
  }

  table,
  tbody,
  tr,
  .ltd,
  .rtd,
  .headtd,
  .second_ltd,
  .second_rtd {
    display: block;
    width: 100% !important;
  }

  table {
    border-radius: 18px;
  }

  .ltd,
  .rtd,
  .headtd,
  .second_ltd,
  .second_rtd {
    padding: 16px 18px;
  }

  .ltd,
  .second_ltd,
  .headtd {
    min-width: 0;
    padding-bottom: 8px;
    border-bottom: 0;
/*    background-color: #fff;*/
  }

  .rtd,
  .second_rtd {
    padding-top: 0;
  }

  tr:not(:last-child) .rtd,
  tr:not(:last-child) .second_rtd {
    border-bottom: 1px solid var(--line);
  }

  #ul_q1 {
    grid-template-columns: 1fr;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px;
  }

  #gotocheckform,
  #gotofinalregister,
  #gobackbtn {
    width: 100%;
    min-width: 0;
  }
}

td.eachLine {
  padding: 20px 14px !important;
}

/* 入力系 */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  min-height: 34px;
  padding: 6px 10px;
  margin-top: 4px;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* 郵便番号みたいな短いinputは詰める */
#tel1,
#tel2,
#tel3,
#fax1,
#fax2,
#fax3,
#npos1,
#npos2,
#delivery_tel1,
#delivery_tel2,
#delivery_tel3,
#delivery_npos1,
#delivery_npos2 {
  margin-bottom: 0;
}

/* textarea */
textarea {
  min-height: 84px;
}

/* checkbox */
.tedq label {
  min-height: 36px;
  padding: 6px 10px;
}

/* タイトル */
#p1 {
  padding: 22px 28px;
}
@media (max-width: 760px) {

  #block_of_Name,
  #block_of_Name_kana {
    display: block !important;
    width: 100% !important;
  }

  #div_of_familyName,
  #div_of_firstName,
  #div_of_familyName_kana,
  #div_of_firstName_kana {
    max-width: none !important;
    width: 100% !important;
    margin-bottom: 10px !important;
  }

  #div_of_familyName input,
  #div_of_firstName input,
  #div_of_familyName_kana input,
  #div_of_firstName_kana input {
    width: 100% !important;
  }

}
.disp_inlineB{
	display: inline-block;
}

#td_left_delivery_npos, 
#td_right_delivery_npos, 
#td_left_delivery_name, 
#td_right_delivery_name {
	border-bottom: 0px;
}

.q1-other-row .ltd {
  background: #fff;
  color: #64748b;
  font-size: .95rem;
}

.q1-other-row .ltd::before {
  content: "↳ ";
  color: #9fc63b;
  font-weight: 800;
}

#q1_other {
  width: min(100%, 560px) !important;
}

#q1_other::placeholder {
  color: #94a3b8;
}
.image_path_1_size {
  display: block;
  margin-top: 8px;
  font-size: .85rem;
  font-weight: 700;
}

.image_path_1_size.is-error {
  padding: 8px 12px;
  border: 1px solid #fca5a5;
  border-radius: 10px;
  color: #b91c1c !important;
  background: #fef2f2;
}

.image_path_1_size.is-error::before {
  content: "⚠ ";
}

.image_path_1_size.is-ok {
  padding: 8px 12px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  color: #15803d !important;
  background: #f0fdf4;
}

.image_path_1_size.is-ok::before {
  content: "✓ ";
}

#image_path_1.has-error {
  border-color: #dc2626 !important;
  background: #fff7f7;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.event-period-wrap {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.event-date-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-date-block label {
  font-size: .82rem;
  font-weight: 700;
  color: #64748b;
}

.event-period-sep {
  padding-bottom: 10px;
  color: #94a3b8;
  font-weight: 700;
}

.event-period-wrap input[type="date"] {
  min-width: 180px;
}

input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  min-height: 38px;
  padding: 5px 14px;
  border: 1px solid #d6dbe3;
  border-radius: 14px;
  background: #fff;
  color: #24324b;
  font-size: .8rem;
  font-weight: 500;
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
}

input[type="date"]:hover {
  border-color: #9fc63b;
}

input[type="date"]:focus {
  outline: none;
  border-color: #00a6c8;
  box-shadow: 0 0 0 4px rgba(0,166,200,.12);
}

/* カレンダーアイコン */
input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .7;
  transition: opacity .2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.event-period-wrap input[type="date"] {
  width: 220px;
}

.Event_period_div{
	display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-end;
}

#divEventPeriod_str, 
#divEventPeriod_fin {

}

.spEventDate{
	width: 35px;
    text-align: center;
    padding-bottom: 6px;
}


input::placeholder,
textarea::placeholder {
  color: #aeb8c7;
  opacity: 1;
  font-weight: 400;
}

.agreement_ul{
	list-style: none;
    padding: 0;
}

.agreementBoxSubtext {
    padding-left: 31px;
    text-indent: -15px;
    line-height: 1.3rem;
    font-size: .9rem;
}
.agreementBox_list {
    font-weight: 600;
}

#ul_q3{
	padding: 0;
}

.agree-note {
  margin-top: 8px;
  color: #64748b;
  font-size: .85rem;
  line-height: 1.6;
}

.agree-error {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #fca5a5;
  border-radius: 10px;
  color: #b91c1c;
  background: #fef2f2;
  font-size: .9rem;
  font-weight: 700;
}

.agree-error::before {
  content: "⚠ ";
}

.uploaded_file_box{
	margin: 20px auto 0;
    width: 100%;
    max-width: none;
    border: 1px solid rgba(229, 231, 235, .9);
    border-radius: var(--radius);
    background: var(--card) !important;
    box-shadow: var(--shadow);
}

select:invalid {
  color: #aeb8c7;
}

select option {
  color: #24324b;
}