/*
Theme Name: RITMUS Child
Theme URI: https://ritmus-store.com/
Description: Twenty Twenty-Three child theme for RITMUS order form.
Author: RITMUS
Template: twentytwentythree
Version: 1.1.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ritmus-child
*/

/* ===== ページ全体のフォント ===== */
body {
  font-family: 'EB Garamond', 'Shippori Mincho', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif !important;
}

/* ヘッダーのサイト名リンク */
.wp-block-site-title a {
  text-decoration: none;
}

/* ===== 注文フォーム (MW WP Form) ===== */
.mwform-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.mwform-table th {
  font-weight: normal;
  text-align: left;
  vertical-align: top;
  width: 13em;
  padding: 1em;
  white-space: nowrap;
}

.mwform-table td {
  padding: 1em;
}

.mwform-table input[type="text"],
.mwform-table input[type="email"],
.mwform-table input[type="tel"],
.mwform-table textarea,
.mwform-table select {
  font-size: 14px;
  padding: 0.5em;
  border: 1px solid #ccc;
  font-family: inherit;
  max-width: 100%;
  box-sizing: border-box;
}

.mwform-table textarea {
  width: 100%;
}

/* 希望商品の番号を揃える */
.mwform-table .goods-num {
  display: inline-block;
  width: 2em;
  margin-right: 0.5em;
}

/* 希望商品の行は折り返さない */
.mwform-table .goods-row {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  white-space: nowrap;
}

/* 上下の行の境界線を重ねて1pxにする */
.mwform-table .goods-row ~ .goods-row {
  margin-top: -1px;
}

/* MW WP Formが挿入する <br> を非表示（行はblock化したので改行不要） */
.mwform-table .goods-row + br {
  display: none;
}

.mwform-table .goods-row input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
}

.mwform-table .goods-row select {
  flex: 0 0 auto;
  height: 34px;
  margin-left: -1px;
}

/* お支払い方法の選択肢は縦に並べる */
.mwform-table .mwform-radio-field.horizontal-item {
  display: block;
  margin-bottom: 0.3em;
}

.mwform-table .mwform-radio-field.horizontal-item + .mwform-radio-field.horizontal-item {
  margin-left: 0;
}

/* ===== ご注文フォームページのタイトル ===== */
body.page-id-9 .wp-block-post-title {
  text-align: center;
  font-size: 24px;
}

/* 完了画面メッセージ */
body.page-id-9 .mw_wp_form_complete {
  font-size: 14px;
}

/* リード文 */
.mwform-lead {
  font-size: 14px;
}

/* 送信・確認ボタン */
.mwform-submit {
  text-align: center;
  margin-top: 1.5em;
}

.mwform-submit button[type="submit"],
.mwform-submit input[type="submit"] {
  font-family: inherit;
  font-size: 14px;
  padding: 0.8em 3em;
  cursor: pointer;
}

.mwform-submit button[name="submit"],
.mwform-submit input[name="submit"],
.mwform-submit button[name="submitConfirm"],
.mwform-submit input[name="submitConfirm"] {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}

.mwform-submit button[name="submitBack"],
.mwform-submit input[name="submitBack"] {
  background: #fff;
  color: #000;
  border: 1px solid #000;
  margin-right: 1em;
}

/* ===== SP時は縦並び ===== */
@media (max-width: 768px) {
  .mwform-table,
  .mwform-table tbody,
  .mwform-table tr,
  .mwform-table th,
  .mwform-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .mwform-table th {
    padding-bottom: 0;
  }

  .mwform-table td {
    padding-top: 0.2em;
  }
}
