@charset "utf-8";


/* =========================================================
  サイズセレクトUI
  左：選択項目 / 右：選択画像
========================================================= */

html,
body {
  margin: 0;
  padding: 0;
}

.size-select-ui {
  width: 100%;
  max-width: 1120px;
  margin: 20px auto 24px auto;
  padding: 44px 56px 50px;
  box-sizing: border-box;
  background: #f7f8f1;
  border: 1px solid #a8bd83;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

.size-select-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 54px;
  align-items: start;
}

.size-select-controls {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.size-select-field {
  float: none;
  display: block;
  margin: 0;
  padding: 0;
}

.size-select-field h3 {
  margin: 0 0 12px;
  padding: 0;
  color: #58712f;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

.size-select-field select {
  width: 250px;
  height: 56px;
  padding: 0 44px 0 26px;
  box-sizing: border-box;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background-color: #fff;
  color: #222;
  font-size: 16px;
  line-height: 56px;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, #222 50%),
    linear-gradient(135deg, #222 50%, transparent 50%);
  background-position:
    calc(100% - 28px) 24px,
    calc(100% - 20px) 24px;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}

.size-select-field select:focus {
  outline: none;
  border-color: #8da666;
  box-shadow: 0 0 0 2px rgba(141, 166, 102, 0.18);
}

#tanaita_none,
#tanaita_normal,
#tanaita_taugh {
  margin: 0;
  padding: 0;
}

/* 初期状態 */
#tanaita_normal,
#tanaita_taugh {
  display: none;
}

/* 右側画像エリア */
.size-select-preview {
  width: 100%;
  min-height: 560px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

#resultPic {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
}

#resultPic img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* ボタン */
.size-select-action {
  margin-top: 46px;
  text-align: center;
}

.size-select-action .btn_a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 564px;
  max-width: 100%;
  height: 68px;
  padding: 0 24px;
  box-sizing: border-box;
  border: none;
  border-radius: 999px;
  background: #a9bd84;
  color: #fff;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: none;
  text-decoration: none;
}

.size-select-action .btn_a:hover {
  background: #94aa6f;
  color: #fff;
  text-decoration: none;
}

.size-select-action .btn_a:active {
  transform: translateY(1px);
}

/* =========================================================
  スマホ対応
========================================================= */

@media screen and (max-width: 768px) {

  .size-select-ui {
    margin: 16px auto;
    padding: 24px 18px 32px;
  }

  .size-select-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .size-select-controls {
    gap: 22px;
  }

  .size-select-field select {
    width: 100%;
    height: 54px;
    font-size: 16px;
  }

  .size-select-preview {
    min-height: 300px;
  }

  .size-select-action {
    margin-top: 28px;
  }

  .size-select-action .btn_a {
    width: 100%;
    height: 60px;
    font-size: 16px;
  }
}


/* =========================================================
  サイズセレクトUI：余白を詰める調整
========================================================= */

.size-select-ui {
  padding-top: 34px;
  padding-bottom: 32px;
}

.size-select-layout {
  gap: 44px;
}

.size-select-controls {
  gap: 22px;
}

.size-select-field h3 {
  margin-bottom: 8px;
}

.size-select-field select {
  height: 52px;
  line-height: 52px;
}

/* 右側画像エリアも少し低くする */
.size-select-preview {
  min-height: 450px;
}

/* ボタン上の余白を詰める */
.size-select-action {
  margin-top: 20px;
}

.size-select-action .btn_a {
  height: 62px;
}

/* =========================================================
  サイズセレクトUI：スマホ専用レイアウト調整
  項目名を左、セレクトを右に配置
========================================================= */

@media screen and (max-width: 768px) {

  html,
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  .size-select-ui {
    width: 100%;
    margin: 8px auto 12px;
    padding: 12px 10px 16px;
    box-sizing: border-box;
    background: #f7f8f1;
    border: 1px solid #a8bd83;
  }

  .size-select-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .size-select-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .size-select-field {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    margin: 0;
    padding: 0;
  }

  .size-select-field h3 {
    margin: 0;
    padding: 0;
    color: #58712f;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
  }

  .size-select-field select {
    width: 100%;
    height: 48px;
    line-height: 48px;
    padding: 0 42px 0 18px;
    font-size: 16px;
    box-sizing: border-box;
    background-position:
      calc(100% - 28px) 20px,
      calc(100% - 20px) 20px;
  }

  #tanaita_none,
  #tanaita_normal,
  #tanaita_taugh {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  #tanaita_none select,
  #tanaita_normal select,
  #tanaita_taugh select {
    width: 100%;
  }

  .size-select-preview {
    width: 100%;
    min-height: 300px;
    margin-top: 8px;
    padding: 0;
    background: #fff;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
  }

  #resultPic {
    width: 100%;
    margin: 0;
    padding: 0;
  }

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

  .size-select-action {
    margin-top: 12px;
  }

  .size-select-action .btn_a,
  .size-select-ui input.btn {
    width: 100%;
    height: 54px;
    font-size: 15px;
    line-height: 1.4;
  }
}
/* 選択中の仕様・価格 */
.selected-summary {
  width: 100%;
  max-width: 620px;
  margin: 18px auto 10px;
  padding: 14px 18px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #d9e2cf;
  border-radius: 8px;
  text-align: center;
  color: #333;
}

.selected-summary__title {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: bold;
  color: #4d734d;
}

.selected-summary__spec {
  font-size: 15px;
  font-weight: bold;
  line-height: 1.6;
}

.selected-summary__price {
  margin-top: 4px;
  font-size: 17px;
  font-weight: bold;
  color: #d85a24;
}

.selected-summary.is-complete {
  border-color: #a8bd83;
  background: #fffdf8;
}

@media screen and (max-width: 640px) {
  .selected-summary {
    max-width: 100%;
    margin: 16px auto 10px;
    padding: 12px 10px;
  }

  .selected-summary__spec {
    font-size: 14px;
  }

  .selected-summary__price {
    font-size: 16px;
  }
}
/* =========================================================
  サイズセレクトUI：注文ボタンをCTAオレンジに統一
========================================================= */

.size-select-action .btn_a {
  background: #d85a24 !important;
  color: #fff !important;
  border: none !important;
  text-decoration: none !important;
}

.size-select-action .btn_a:hover {
  background: #bf4618 !important;
  color: #fff !important;
  text-decoration: none !important;
}

.size-select-action .btn_a:visited,
.size-select-action .btn_a:focus,
.size-select-action .btn_a:active {
  color: #fff !important;
}

/* 注文ページで選択する項目の補足 */
.size-select-note {
  margin: 12px 0 0;
  padding: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .size-select-note {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
  }
}
