@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* 管理画面 */
table.wp-list-table th#title {
	width:20%;
}





/* =========================================================
   MW WP Form 共通レイアウト
========================================================= */

/* 全体 */
.mw_wp_form,
.mw_wp_form_confirm,
.mw_wp_form_complete {
  line-height: 1.8;
  font-size: 16px;
}

.mw_wp_form h2,
.mw_wp_form_confirm h2,
.mw_wp_form_complete h2 {
  margin: 3em 0 1em;
  padding: .75em 1em;
  background: #f5f7fa;
  border-left: 5px solid #2f6fad;
  font-size: 1.25rem;
  line-height: 1.5;
  color:#000;
}
.post_content h2::before{
  border-top:none;
  border-bottom:none;
}



.mw_wp_form h3,
.mw_wp_form_confirm h3,
.mw_wp_form_complete h3 {
  margin: 0 0 1em;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* 必須ラベル */
.required {
  display: inline-block;
  margin-left: .5em;
  padding: .15em .5em;
  background: #d93025;
  color: #fff;
  font-size: .75rem;
  line-height: 1.2;
  border-radius: 3px;
  vertical-align: middle;
}

/* 注記・補足 */
.note {
  margin: .5em 0 0;
  font-size: .875rem;
  line-height: 1.7;
  color: #666;
}

.text-s {
  margin: 0 0 .5em;
  font-size: .875rem;
  line-height: 1.7;
  color: #555;
}

/* =========================================================
   テーブルレイアウト
========================================================= */
.form-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-bottom: 2em;
  border-top: 1px solid #dcdcdc;
  border-left: 1px solid #dcdcdc;
  background: #fff;
}

.form-table th,
.form-table td {
  border-right: 1px solid #dcdcdc;
  border-bottom: 1px solid #dcdcdc;
  padding: 1em;
  vertical-align: top;
  box-sizing: border-box;
}

.form-table th {
  width: 35%;
  background: #f8f8f8;
  font-weight: 700;
  line-height: 1.7;
  word-break: break-word;
}

.form-table td {
  width: 65%;
  background: #fff;
}

/* 項目名が長くても少し見やすく */
.form-table th br {
  display: none;
}

/* td に w-full を付けた時、その中の入力欄を広げる */
.form-table td.w-full input[type="text"],
.form-table td.w-full input[type="email"],
.form-table td.w-full input[type="tel"],
.form-table td.w-full input[type="number"],
.form-table td.w-full select,
.form-table td.w-full textarea {
  width: 100%;
  max-width: 100%;
}

.form-table td.w-full {
  min-width: 0;
}
/* =========================================================
   入力欄の共通デザイン
========================================================= */
.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="tel"],
.form-table input[type="number"],
.form-table input[type="date"],
.form-table select,
.form-table textarea {
  max-width: 100%;
  padding: .6em .75em;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
  box-sizing: border-box;
}

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

/* MW WP Formのsize指定が効くので、幅100%は一律にかけない
   ただし長い項目は個別に広げる */
.form-table .w-full input[type="text"],
.form-table .w-full textarea,
.form-table .w-full select {
  width: 100%;
}

/* =========================================================
   氏名・ふりがななどの横並び
========================================================= */
.name-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.name-col {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.label-inline {
  flex: 0 0 auto;
  display: inline-block;
  min-width: 1.5em;
  font-weight: 700;
}

/* 氏名欄が狭すぎないように */
.name-col input[type="text"] {
  width: 14em;
  max-width: 100%;
}

/* =========================================================
   郵便番号 + 住所検索ボタン
========================================================= */
.zip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}

.zip-row input[type="text"] {
  width: 10em;
  max-width: 100%;
}

.zip-search-btn {
  display: inline-block;
  padding: .55em 1em;
  border: 1px solid #b7c7d8;
  background: #eef5fb;
  color: #333;
  border-radius: 4px;
  cursor: pointer;
  font-size: .95rem;
  line-height: 1.4;
}

.zip-search-btn:hover {
  opacity: .9;
}

/* =========================================================
   年齢欄
========================================================= */
.age-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

.age-row input[type="text"] {
  width: 6em;
  max-width: 100%;
}

/* 年齢欄の補足を横並びに入れないように */
.age-row .text-s {
  flex: 0 0 100%;
  margin-bottom: .25em;
}

/* =========================================================
   ラジオ・チェックボックス
========================================================= */
.radio-with-clear {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
}

.radio-with-clear .radio-clear {
  display: inline-block;
  padding: .45em .9em;
  border: 1px solid #ccc;
  background: #f5f5f5;
  border-radius: 4px;
  cursor: pointer;
  font-size: .9rem;
  line-height: 1.4;
}

.radio-with-clear .radio-clear:hover {
  opacity: .9;
}

/* MW WP Formのラジオ・チェックボックスが縦に並びやすいように */
.radio-with-clear .mwform-radio-field,
.checkbox-list .mwform-checkbox-field {
  display: inline-block;
  margin-right: 1.2em;
  margin-bottom: .4em;
  line-height: 1.8;
}

.checkbox-list {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
}

/* ラベルと入力の間隔 */
.mwform-radio-field label,
.mwform-checkbox-field label {
  display: inline-flex;
  align-items: flex-start;
  gap: .35em;
}

.mwform-checkbox-field input, .mwform-radio-field input {
    margin-top: 8px;
}

.radio-with-clear .horizontal-item+.horizontal-item {
    margin-left: 0px;
}


/* =========================================================
   申込者ブロック
========================================================= */
.member-block {
  margin: 2.5em 0;
  padding: 1.5em;
  border: 1px solid #d9e2ea;
  background: #fbfdff;
  border-radius: 6px;
}

.member-block > p {
  margin: 0 0 1em;
  font-size: .95rem;
  color: #555;
}

/* ブロック内のテーブルは少し余白を詰める */
.member-block .form-table {
  margin-bottom: 0;
}

/* =========================================================
   分岐で表示する小ブロック
========================================================= */
.sub-form-block {
  padding: 1em;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.sub-form-block p {
  margin: 1em 0 .4em;
  font-weight: 700;
}

.sub-form-block p:first-child {
  margin-top: 0;
}

.sub-form-block input[type="text"],
.sub-form-block input[type="email"],
.sub-form-block input[type="tel"],
.sub-form-block input[type="number"],
.sub-form-block select,
.sub-form-block textarea {
  max-width: 100%;
  box-sizing: border-box;
}

.sub-form-block .w-full input[type="text"],
.sub-form-block .w-full input[type="email"],
.sub-form-block .w-full input[type="tel"],
.sub-form-block .w-full input[type="number"],
.sub-form-block .w-full select,
.sub-form-block .w-full textarea {
  width: 100%;
}

.belong-other-wrap {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #d8d8d8;
}
.belong-other-wrap .text-s {
  margin-bottom: 6px;
}


/* =========================================================
   非表示制御
========================================================= */
.is-hidden {
  display: none;
}

/* =========================================================
   エラーメッセージ
========================================================= */
.mw_wp_form .error,
.mw_wp_form_confirm .error {
  display: block;
  margin-top: .4em;
  color: #d93025;
  font-size: .875rem;
  line-height: 1.6;
}

/* MW WP Form のエラー行が見やすいように */
.mw_wp_form .mwform-error,
.mw_wp_form_confirm .mwform-error {
  color: #d93025;
}

/* =========================================================
   送信ボタンまわり（後で使える土台）
========================================================= */
.form-btns {
  margin-top: 2.5em;
  text-align: center;
}

.form-btns input[type="submit"],
.form-btns input[type="button"],
.form-btns button {
  min-width: 220px;
  margin: .3em;
  padding: .9em 1.5em;
  border: none;
  border-radius: 4px;
  background: #2f6fad;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.form-btns input[type="submit"]:hover,
.form-btns input[type="button"]:hover,
.form-btns button:hover {
  opacity: .9;
}

/* =========================================================
   スマホ対応
========================================================= */
@media screen and (max-width: 768px) {
  .mw_wp_form,
  .mw_wp_form_confirm,
  .mw_wp_form_complete {
    font-size: 15px;
  }

  .form-table,
  .form-table tbody,
  .form-table tr,
  .form-table th,
  .form-table td {
    display: block;
    width: 100%;
  }

  .form-table {
    border: none;
    background: transparent;
  }

  .form-table tr {
    margin-bottom: 1.25em;
    border: 1px solid #dcdcdc;
    background: #fff;
  }

  .form-table th,
  .form-table td {
    border: none;
    border-bottom: 1px solid #dcdcdc;
    width: 100%;
    padding: .9em 1em;
  }

  .form-table th {
    background: #f8f8f8;
  }

  .form-table td:last-child {
    border-bottom: none;
  }

  .name-row,
  .zip-row,
  .age-row,
  .radio-with-clear,
  .checkbox-list {
    gap: .6rem;
  }

  .name-col {
    width: 100%;
  }

  .name-col input[type="text"] {
    width: 100%;
  }

  .zip-row input[type="text"] {
    width: 100%;
  }

  .zip-search-btn {
    width: 100%;
    text-align: center;
  }

  .age-row input[type="text"] {
    width: 8em;
  }

  .member-block {
    padding: 1em;
  }

  .sub-form-block {
    padding: .9em;
  }
}











