body {
  	margin           : 0;
  	padding          : 0;
  	font-family      : "Hiragino Kaku Gothic ProN", sans-serif;
  	background       : #fff0f5;
}

.cart-section {
  	max-width        : 400px;
  	margin           : 0 auto;
	padding          : 1em;
	background       : #fffafc;
  	border           : 1px solid #ffc0cb;
  	border-radius    : 8px;
}

.cart-summary {
  	max-width        : 400px;
  	margin-left      : auto;
  	margin-right     : auto;
  	margin-bottom    : 1.5em;
  	padding          : 1em;
  	background       : #fff0f5;
  	border           : 2px solid #ffb6c1;
  	border-radius    : 10px;
  	font-size        : 1.1em;
  	color            : #333;
}

.summary-row {
  	margin           : 0.4em 0;
	display          : flex;
  	justify-content  : space-between;
}

.label {
  	flex             : 1;
	text-align       : left;
}

.amount {
  	min-width           : 100px;
  	font-variant-numeric: tabular-nums;
  	text-align          : right;
}

.total-row {
  	margin-top       : 0.5em;
  	padding-top      : 0.5em;
  	font-weight      : bold;
  	border-top       : 1px solid #ccc;
}

.cart-toggle {
  background: #ff69b4;
  color: #fff;
  font-weight: bold;
  padding: 0.6em 1em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-size: 1.1em;
}

.cart-toggle .icon {
  font-weight: bold;
  font-size: 1.3em;
  transition: transform 0.2s ease;
}

/* カート内の商品表示 */
.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1em;
  background: #fff;
  border-radius: 10px;
  padding: 0.8em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* 商品画像 */
.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eee;
}

/* 商品情報 */
.cart-info {
  flex: 1;
  font-size: 0.95em;
  color: #444;
}

.cart-title {
  font-size: 1.05em;
  font-weight: bold;
  margin-bottom: 0.4em;
  color: #d83a8c;
}

.cart-info p {
  margin: 0.3em 0;
}

/* 数量セレクト */
#quantity {
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.9em;
}

/* スマホ対応 */
@media screen and (max-width: 600px) {
  .cart-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cart-info {
    width: 100%;
    margin-top: 0.5em;
  }

  .cart-item img {
    width: 100px;
    height: 100px;
  }
}


.checkout-container {
  max-width: 600px;
  margin: 1em auto;
  padding: 1.5em;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 12px;
}

.checkout-title {
  font-size: 1.8em;
  text-align: center;
  color: #d83a8c;
  margin-bottom: 1em;
}

.checkout-section {
  margin-bottom: 1.5em;
}

.checkout-section h2 {
  font-size: 1.5em;
  color: #333;
  margin-bottom: 0.6em;
}
.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.login-button {
  padding: 6px 14px;
  font-size: 1rem;
  background-color: #2a6ebb;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.login-button:hover {
  background-color: #1e5aa1;
}


/*label {*/

.checkout-form p {
  display: block;
  margin-bottom: 0.8em;
  color: #555;
  font-size: 0.95em;
}

.checkout-buttons {
  text-align: center;
  margin-top: 2em;
}

.checkout-submit,
.checkout-cancel {
  font-size: 1em;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin: 0 0.5em;
  transition: transform 0.1s;
}

.checkout-submit {
  background-color: #ff66aa;
  color: white;
}

.checkout-cancel {
  background-color: #ccc;
  color: #333;
}

.checkout-submit:active,
.checkout-cancel:active {
  transform: scale(0.96);
}

/* カート表示 */
.cart-section .cart-item {
  display: flex;
  gap: 10px;
  margin-bottom: 1em;
  align-items: flex-start;
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-info {
  flex: 1;
  font-size: 0.9em;
}

.cart-title {
  font-weight: bold;
  font-size: 1em;
  margin-bottom: 0.4em;
}

/* 個人情報入力フィールド */ 
.label-must {
    vertical-align     : 3px;
    font-size          : 12px;
    color              : #eb5151;
}

#checkout-form input {
	margin-bottom      : 10px;
}

.form-label {
	color              : #000;
	font-weight        : bold;	
}

.name-fields {
  display: flex;
  gap: 1rem; /* 隙間の調整 */
}

.name-fields label {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.zip-pref-row {
  display: flex;
  gap: 1rem;
  /*margin-bottom: 1rem;*/
  flex-wrap: wrap; /* スマホ対応 */
}

.zip-field,
.pref-field {
  display: flex;
  flex-direction: column;
  flex: 1 1 200px; /* 最小幅200px、縮小・拡大対応 */
}

.zip-field label,
.pref-field label {
	margin-bottom: 0rem;
}
/*.zip-prefecture {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.zip-prefecture label {
  flex: 1;
  display: flex;
  flex-direction: column;
}*/

.toggle-register-btn {
  background-color: #2dd2ae;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.toggle-register-btn:hover {
  background-color: #22b89b;
}

#form-birthYear {
	width             : 73px;
	padding-left      : 5px;
}

#form-birthMonth,
#form-birthDate {
	width             : 65px;
	padding-left      : 12px;
}


/* エラーメッセージ */
.form-errors {
  color: red;
  background: #ffeef0;
  border: 1px solid red;
  padding: 1em;
  margin-top: 1em;
  border-radius: 6px;
}

@media screen and (max-width: 600px) {
  .checkout-container {
    margin: 10px;
    padding: 1em;
  }
}

/* 確認画面 */
#checkout-confirm-form {
  max-width: 600px;
  margin: 0 auto;
  font-family: "Helvetica Neue", sans-serif;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
}

/* セクションタイトル */
#checkout-confirm-form h2 {
  border-left: 5px solid #4caf50;
  padding-left: 10px;
  margin-top: 30px;
  font-size: 1.2em;
  color: #333;
}

/* 各行 */
.confirm-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
  font-size: 0.95em;
}

/* ラベル */
.confirm-row label {
  width: 35%;
  font-weight: bold;
  color: #555;
}

/* 値 */
.confirm-row span,
.confirm-row pre {
  	width             : 60%;
	font-size         : 16px;
  	color             : #1a30dd;
  	word-break        : break-word;
  	white-space       : pre-wrap;
}

/* ボタンエリア */
.form-buttons {
  	display           : flex;
  	justify-content   : space-between;
  	margin-top        : 30px;
}

/* ボタン共通スタイル */
.form-buttons button {
  	padding           : 10px 20px;
  	border            : none;
  	border-radius     : 4px;
  	font-size         : 1em;
  	cursor            : pointer;
}

/* 修正ボタン */
.form-buttons button[type="button"] {
  	background-color  : #ddd;
  	color             : #333;
}

/* 送信ボタン */
.form-buttons button[type="submit"] {
  	background-color  : #4caf50;
  	color             : #fff;
}

/* レスポンシブ対応 */
@media screen and (max-width: 600px) {
  .confirm-row {
    flex-direction    : column;
  }

  .confirm-row label,
  .confirm-row span,
  .confirm-row pre {
    width             : 100%;
  }

  .form-buttons {
    flex-direction    : column;
    gap               : 10px;
  }
}

/* 支払いページ */
.notice-message {
  	background-color  : #e0f7fa;
  	border            : 1px solid #00acc1;
  	padding           : 15px 20px;
  	border-radius     : 6px;
  	font-size         : 16px;
  	margin-bottom     : 20px;
  	color             : #007c91;
  	text-align        : center;
}

/* 銀行振込み */
.bank-info {
  	margin-top        : 20px;
  	padding           : 15px;
  	border            : 1px solid #ccc;
  	background-color  : #f8f8f8;
  	border-radius     : 8px;
}

.bank-info ul {
  	list-style        : none;
  	padding-left      : 0;
  	margin            : 0 0 10px 0;
}

.bank-info li {
  	margin-bottom     : 6px;
  	font-size         : 16px;
}

.bank-info .note {
  	color             : #d00;
  	font-size         : 16px;
  	margin            : 5px 0;
}

.order-buttons {
  	margin-top        : 30px;
  	text-align        : center;
}

.order-buttons .confirm-btn,
.order-buttons .modify-btn {
  	padding           : 12px 24px;
  	margin            : 10px;
  	border            : none;
  	border-radius     : 6px;
  	font-size         : 16px;
  	cursor            : pointer;
}

.payment-complete-btn {
  	background-color  : #0078d7;
  	color             : white;
}

.modify-btn {
  	background-color  : #ccc;
  	color             : #333;
}

