/* -----------------------------------------------------------------------------
 * 共通レイアウト
 * -------------------------------------------------------------------------- */

* {
    /* プライマリーカラー */
    --color-primary: #e70012;
    /* 背景色 */
    --color-background: #ffffff;
    /* 全体背景色 */
    --color-background-underlay: #fef2f2;
    /* 少し目立つ背景色 */
    --color-background-tint: #fee9ec;
    /* 成功背景色 */
    --color-background-success: #dfffef;
    /* 通常罫線色 */
    --color-border: rgba(0, 0, 0, 0.1);
    /* 成功罫線色 */
    --color-border-success: 1px solid #008f7f;
    /* 通常テキスト色 */
    --color-text: #364153;
    /* 薄いテキスト色 */
    --color-text-light: #4a5565;
    /* 背景テキスト色 */
    --color-text-underlay: #697282;
    /* エラーテキスト色 */
    --color-text-error: #fb2c36;
    /* 成功テキスト色 */
    --color-text-success: #007f3f;
    /* チェックボックスやラジオボタンなどがONの時の色 */
    --color-control-tint: #000000;
}

/* 全体 */
body {
    background-color: var(--color-background-underlay);
    min-height: 100vh;
    font-size: 16px;
    font-family: "Noto Sans JP", sans-serif;
}

/* ヘッダー */
header {
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    height: 68px;
}

/* フッター */
.footer {
  background: #212121;
  color: #fff;
  text-align: center;
  padding: 50px;
  box-sizing: border-box;
  margin-top: 30px;
}

.footer .footer__inner .footer__list {
  padding: 44px 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.footer .footer__inner .footer__list .footer__item .footer__link {
  color: #fff;
}

.footer .footer__inner .footer__list .footer__item .footer__link:hover {
  opacity: .6;
  transition: all .2s;
}

.footer .footer__copyright {
  color: #6f6f6f;
  font-size: 14px;
}
@media screen and (max-width: 768px) {
.footer .footer__inner .footer__list {
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }
.footer {
    padding: 50px 10px 15px;
  }
}

select {
  color: var(--color-text);
  background-color: #f3f3f5;
  border: none;
  border-radius: 8px;
  height: 36px;
  font-size: 16px;
  padding: 0 32px 0 12px;
  box-sizing: border-box;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;

  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* タイトル */
h1 {
    color: var(--color-primary);
    font-size: 24px;
    font-weight: bold;
    margin-top: 32px;
    margin-bottom: 26px;
}

/* 内容 */
.container {
    color: var(--color-text);
    background-color: var(--color-background);
    border: solid 1px var(--color-border);
    border-radius: 14px;
    padding: 24px;
    /* offset-x = 0, offset-y = 10px, blur-radius = 15px, spread-radius = -3px */
    /* offset-x = 0, offset-y = 4px, blur-radius = 6px, spread-radius = -4px */
    box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
}
.container {
    box-sizing: border-box;
    max-width: 426px;
    width: 94%;
}

/* 縦並び横中央揃え */
.column-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.column-full {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 24px;
    margin-bottom: 20px;
}
.column-full > * {
    width: 100%;
}

/* フッター */
footer {
    color: var(--color-text-underlay);
    text-align: center;
    width: 100%;
    padding: 24px 0;
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* -----------------------------------------------------------------------------
 * 共通ヘッダー
 * -------------------------------------------------------------------------- */

 .header-inner {
    text-align: left;
    padding-left: 10px;
}
.menu-button {
    text-align: right;
    padding-right: 18px;
}
.icon {
    display: block;
    width: 7rem;
    height: 3.25rem;
}
@media (width >= 48rem) {
    .icon {
        width: 6rem;
        height: 3.75rem;
    }
}

.login-account {
    color: var(--color-primary);
    background-color: var(--color-background-tint);
    border-radius: 16px;
    border: none;
    padding: 5px 18px;
    font-size: 13px;
}

.login-menu-container {
    background-color: var(--color-background);
    overflow: hidden;
    position: absolute;
    right: 0;
    width: 200px;
    z-index: 50;
    box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
    border-radius: 10px;
}
.login-menu-container ul {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.login-menu-container ul li {
    /* border-top: 1px solid var(--color-border);
    color: var(--color-text);
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center; */
    width: 100%;
}
.login-menu-container ul li:hover {
    background-color: var(--color-background-tint);
}
.login-menu-container ul li a {
    /* border-top: 1px solid var(--color-border); */
    color: var(--color-text);
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    display: block;
    text-decoration: none;
}
.login-menu-container ul li:hover a {
    color: var(--color-primary);
}

/* -----------------------------------------------------------------------------
 * フォーム
 * -------------------------------------------------------------------------- */

/* ラベルと入力欄のセット */
div.input {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
}

/* ラベル */
label {
    font-weight: bold;
}
label .required {
    color: var(--color-primary);
}

/* 入力欄 */
input[type=text],
input[type=email],
input[type=password] {
    color: var(--color-text);
    background-color: #f3f3f5;
    border: none;
    border-radius: 8px;
    height: 36px;
    font-size: 16px;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
}

/* 入力欄（フォーカス） */
input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus {
    outline: 2px solid var(--color-border);
    border: 1px solid #999999;
    /* offset-x = 0, offset-y = 0, blur-radius = 0, spread-radius = 3px */
    box-shadow: 0 0 0 3px #d9d9d9;
}

/* 入力欄（エラー） */
div.error input[type=text],
div.error input[type=email],
div.error input[type=password] {
    border: 1px solid var(--color-text-error);
}

.input-note {
    color: #888;
    font-size: 13px;
    margin-top: 6px;
}

/* エラーメッセージ */
.error-message {
    color: var(--color-text-error);
}

/* チェックボックス・ラジオボタン */
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 6px;
    align-items: start;
    font-weight: normal;
    font-size: 15px;
    margin-bottom: 10px;
}
label > input:is([type="checkbox"], [type="radio"]) {
    grid-column: 1;
}
label > :not(input) {
    grid-column: 2;
    min-width: 0;
}
label > input[type="checkbox"],
label > input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #666;
    border-radius: 4px;
    background-color: #fff;
    vertical-align: middle;
    margin: 4px 4px 0 0;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}
input[type="checkbox"]:checked {
    background-color: var(--color-control-tint);
    border-color: var(--color-control-tint);
}
input[type="checkbox"]:checked::before {
    content: "";
    display: block;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin: 1px auto;
}
label > input[type="radio"] {
    border-radius: 50%;
}
label > input[type="radio"]:checked::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    margin: 2px auto;
    border-radius: 50%;
    background-color: var(--color-control-tint);
}

/* ボタン */
button {
    text-align: center;
    cursor: pointer;
}
div.button-container {
    display: flex;
    gap: 24px;
}
div.button-container > div.submit,
div.button-container > button {
    flex: 1;
}
div.button-container > button,
div.button-container > div.submit > input[type=submit] {
    width: 100%;
    height: 48px;
    font-size: 16px;
}
div.button-container-compact {
    display: flex;
    gap: 12px;
}
div.button-container-compact > div.submit,
div.button-container-compact > button {
    height: 36px;
}
div.button-container-compact > div.submit > button,
div.button-container-compact > button {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 14px;
}
.button-primary,
.button-secondary,
div.submit > button {
    border: none;
    border-radius: 8px;
}
.button-primary:hover,
.button-secondary:hover,
div.submit > button:hover {
    cursor: pointer;
}
.button-primary,
div.submit > button {
    color: #ffffff;
    background-color: var(--color-primary);
    border: none;
}
button.button-secondary {
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    background-color: #ffffff;
}
button.button-secondary:hover {
    color: #ffffff;
    background-color: var(--color-primary);
}

/* クレジットカード入力 */
div.card-input-title {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 16px;
}
div.card-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 24px;
    padding: 24px;
    background-color: #f3f4f6;
    border-radius: 14px;
    box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
    box-sizing: border-box;
}
div.card-input-container > * {
    width: 100%;
}
div.card-input {
    /* background-color: #f3f3f5; */
    background-color: #ffffff;
    border: solid 1px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    height: 36px;
    display: flex;
    align-items: center;
}
div.card-input:has(.PayjpElement--focus) {
    border-color: var(--color-border);
    /* offset-x = 0, offset-y = 0, blur-radius = 0, spread-radius = 3px */
    box-shadow: 0 0 0 3px #a1a1a180;
}
div.card-input div#card-number-form,
div.card-input div#card-expiry-form,
div.card-input div#card-cvc-form {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
}

/* -----------------------------------------------------------------------------
 * 共通UI
 * -------------------------------------------------------------------------- */

/* フラッシュメッセージ */
.message.success {
    color: var(--color-text-success);
    border: 1px solid var(--color-border-success);
    background-color: var(--color-background-success);
    padding: 8px 16px;
    margin-bottom: 16px;
}

/* モーダルalert */
.alert-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.alert-modal {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    min-width: 300px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: fadeIn 0.2s ease;
}
.alert-message {
    margin-bottom: 16px;
}
.alert-modal button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: #fff;
    cursor: pointer;
}
.alert-modal button:hover {
    background: #0056b3;
}
@keyframes fadeIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* モーダルconfirm */
.confirm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.confirm-modal {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    min-width: 320px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: fadeIn 0.2s ease;
}
.confirm-message {
    margin-bottom: 20px;
}
.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.confirm-buttons button {
    padding: 8px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
#confirm-ok {
    background: #007bff;
    color: #fff;
}
#confirm-cancel {
    background: #ccc;
}
#confirm-ok:hover {
    background: #0056b3;
}
#confirm-cancel:hover {
    background: #aaa;
}
@keyframes fadeIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* リンク */
a {
    color: var(--color-primary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ページネーション */
ul.pagination {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-bottom: 12px;
}
ul.pagination li {
    width: 50px;
}

/* 一覧 */
dl.info dt {
    color: var(--color-text-light);
    margin-bottom: 8px;
}
dl.info dd {
    font-size: 16px;
    padding-left: 12px;
    margin-bottom: 12px;
}

.big_text {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

/* -----------------------------------------------------------------------------
 * その他
 * -------------------------------------------------------------------------- */

/* 配信一覧 */
.delivery-table-wrapper {
    color: var(--color-text);
    background-color: var(--color-background);
    border-radius: 14px;
    /* offset-x = 0, offset-y = 10px, blur-radius = 15px, spread-radius = -3px */
    /* offset-x = 0, offset-y = 4px, blur-radius = 6px, spread-radius = -4px */
    box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
}
.delivery-table th:first-child {
    border-top-left-radius: 14px;
}
.delivery-table th:last-child {
    border-top-right-radius: 14px;
}
.delivery-table tr:last-child td:first-child {
    border-bottom-left-radius: 14px;
}
.delivery-table tr:last-child td:last-child {
    border-bottom-right-radius: 14px;
}
.delivery-table tr {
    border-bottom: 1px solid var(--color-border);
}
.delivery-table tr:last-child {
    border-bottom: none;
}
.delivery-table th {
    color: var(--color-primary);
    background-color: var(--color-background-tint);
    font-weight: bold;
}
.delivery-table th, .delivery-table td {
    width: 120px;
    padding: 12px;
}
.delivery-table .delivery-status {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    display: inline;
}
.delivery-table .delivery-status.delivery-status-11 {
    color: oklch(0.527 0.154 150.069);
    background-color: oklch(0.962 0.044 156.743);
}
.delivery-table .delivery-status.delivery-status-12 {
    color: oklch(0.554 0.135 66.442);
    background-color: oklch(0.973 0.071 103.193);
}
.delivery-table .delivery-status.delivery-status-13 {
    color: oklch(0.488 0.243 264.376);
    background-color: oklch(0.932 0.032 255.585);
}
.delivery-table .delivery-status.delivery-status-20 {
    color: oklch(0.496 0.265 301.924);
    background-color: oklch(0.946 0.033 307.174);
}
.delivery-table .delivery-status.delivery-status-21 {
    color: oklch(0.446 0.03 256.802);
    background-color: oklch(0.967 0.003 264.542);
}
.delivery-table .delivery-status.delivery-status-21 {
    color: oklch(0.505 0.213 27.518);
    background-color: oklch(0.936 0.032 17.717);
}

@media (max-width: 768px) {
.delivery-table-wrapper {
    width: 95%;
    overflow-x: scroll;
    max-width: 380px;
    margin: 0 auto;
}
.login-account {
    border: none;
    padding: 2px 10px;
    font-size: 12px;
    text-align: left;
}
.menu-button {
    padding-right: 10px;
}
}

textarea {
    padding: 5px;
    box-sizing: border-box;
}

.upload_container .upload_area {
    background: #fff;
    border: 2px dashed #D0D0D0;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 8px;
    margin-top: 5px;
    position: relative;
    overflow: hidden;
    height: auto;
}
.upload_container .upload_area:hover {
    background: #f5f5f5;
}
.upload_container .upload_area img {
    position: absolute;
    z-index: 1;
    opacity: 0.16;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}
.upload_container .preview-image {
    display: none;
}
.upload_container.uploaded .preview-image {
    display: block;
}
.upload_container .upload_area .inner {
    text-align: center;
    padding: 30px 0;
    z-index: 2;
    position: inherit;
}
.upload_container .upload_area .inner .text_up {
    display: inline-block;
    width: 100%;
    text-align: center;
}
.upload_container .upload_area .inner .text_up .text {
    font-size: 18px;
    display: inline-block;
    padding: 0 0 15px 0;
}
.upload_container .upload_area .inner .text_up .text_up__info {
    font-size: 13px;
    text-align: center;
    padding: 0;
    margin: 10px 0 -10px 0px;
}
.upload_container .upload_area .inner .text_up__inner .upload__area {
    margin: 0 auto;
    display: flex;
    position: static;
    color: #000;
    font-weight: 600;
    font-size: 16px;
    padding: 6px 10px;
    border-radius: 100px;
    transition: all 0.3s;
    border: 2px solid #EF8D4E;
    background: #fff;
    width: 120px;
    justify-content: center;
}
.upload_container .upload_area .inner .text_up__inner .upload__area:hover {
    opacity: 0.6;
    transition: all 0.4s;
}
.upload_container .upload_area .inner .text_up__inner .upload__area img {
    z-index: 1;
    position: unset;
    opacity: 1;
    margin: 0;
    width: 19px;
    margin-right: 10px;
}
.upload_container .upload_area .inner .text_up__inner .upload__area input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
}
.upload_container .upload_area .inner .text_up .text_up__info {
    font-size: 13px;
    text-align: center;
    padding: 0;
    margin: 10px 0 -10px 0px;
}
.upload_container div.bar {
    width: 68%;
    height: 18px;
    position: relative;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    margin-bottom: 0;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    margin: 0 auto 5px;
    overflow: hidden;
}
.upload_container span.percent {
    color: #fff;
    display: inherit;
    padding: 7px;
    background: #eb0000;
    width: 40%;
    height: 100%;
    position: absolute;
}
.upload_container span.percent_str {
    color: #fff;
    height: 100%;
    position: absolute;
    top: 0;
    left: 10px;
}

.introduction_box {
    font-size: 90%;
    margin-bottom: 30px;
}

.alert_box {
    margin-top: 30px;
    margin-bottom: 30px;
}
.alert_box .title {
    background: #d7d7d7;
    text-align: center;
    font-weight: bold;
    font-size: 120%;
    padding: 4px;
}
.alert_box .message {
    border-style: solid;
    border-color: #d7d7d7;
    border-width: 0 3px 3px 3px;
    padding: 10px 10px 10px 10px;
    font-size: 90%;
}
.alert_box .message ul {
    padding-left: 15px;
}
.alert_box .message ul li {
    list-style-type: disc;
}

.agreement_box {
    background-color: #f7f7f7;
    padding: 16px;
    font-size: 80%;
    margin-top: 30px;
    margin-bottom: 30px;
}

.divider {
    height: 2px;
    background-color: #d7d7d7;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}