/* リンクテキストのスタイル定義 */
.link-button {
    color: #00BFFF;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* リンクテキストのホバー定義 */
.link-button:hover {
    color: #0080FF;
    text-decoration: none;
}


.c-input__input[readonly] {
    opacity: 0.5;
    background-color: var(--c-line_primary);
}

/* ボタンの無効化 */
.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.c-button-width-fix {
    width: 200px;
}

/* スマートフォンサイズでのみ表示できるクラス */
.for-mobile-only {
    display: none;
}

@media screen and (max-width: 767px) {
    .for-mobile-only {
        display: block;
    }
}

/*
 * 領収書画面のスタイル定義
 */


.block--receipt {
    background-color: #fff;
    width: 596px;
    min-width: 596px;
    max-width: 596px;
    height: 842px;
    overflow: hidden;
    padding: 10px 28px
}

.block--receipt-wrap {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
    -webkit-transform-origin: top center;
    transform-origin: top center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background-color: #f7f6f4
}

@media screen and (max-width: 716px) {
    .block--receipt-wrap {
        -webkit-transform: scale(1);
        transform: scale(1)
    }
}

@media screen and (max-width: 596px) {
    .block--receipt-wrap {
        display: block
    }
}

.block--receipt.is-reissue .block__item--heading .block:nth-of-type(1) {
    opacity: 1
}

.block--receipt .block__item--heading {
    margin-top: 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between
}

.block--receipt .block__item--heading .block {
    width: calc(100% / 3)
}

.block--receipt .block__item--heading .block:nth-of-type(1) {
    opacity: 0
}

.block--receipt .block__item--heading .image-box {
    width: 190px;
}


.block--receipt .block__item--heading .block:nth-of-type(1) .text {
    font-size: 2rem;
    display: inline-block;
    border: 2px solid #ef444d;
    border-radius: 6px;
    padding: 2px 12px;
    color: #ef444d;
    font-weight: 500
}

.block--receipt .block__item--heading .block:nth-of-type(2) .text {
    text-align: center
}

.block--receipt .block__item--heading .block:nth-of-type(2) .text--jp {
    font-size: 2rem;
    font-weight: 700
}

.block--receipt .block__item--heading .block:nth-of-type(2) .text--en {
    font-size: 1.2rem;
    font-weight: 500
}

.block--receipt .block__item--heading .block:nth-of-type(3) {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
    -webkit-transform-origin: right center;
    transform-origin: right center
}

.block--receipt .block__item--heading .block:nth-of-type(3) .text {
    font-weight: 500;
    font-size: 1rem;
    display: inline-block
}

.block--receipt .block__item--heading .block:nth-of-type(3) .text--date {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

.block--receipt .block__item--heading .block:nth-of-type(3) .text--date .text:last-of-type {
    margin-left: 5px
}

.block--receipt .block__item--heading .block:nth-of-type(3) .text--order-number {
    display: block;
    margin-top: 2px
}

.block--receipt .block__item--heading .block:nth-of-type(3) .text--receipt-number {
    margin-top: -2px
}

.block--receipt .block__item--name-and-logo {
    margin-top: 25px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between
}

.block--receipt .block__item--name-and-logo .block {
    min-width: 208px;
    max-width: 390px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding-bottom: 2px;
    border-bottom: 2px solid #fe8800
}

.block--receipt .block__item--name-and-logo .block .text {
    font-size: 1.5rem;
    font-weight: 700;
    align-self: flex-end;
    text-align: center;
}

.block--receipt .block__item--name-and-logo .block .text:nth-of-type(1) {
    min-width: 165px;
    max-width: 350px;
}

.block--receipt .block__item--name-and-logo .block .text:nth-of-type(2) {
    margin-left: 4px;
    -ms-flex-item-align: end;
    align-self: flex-end
}

.block--receipt .block__item--name-and-logo .image-box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    height: 40px
}

.block--receipt .block__item--name-and-logo .image-box .image {
    height: 100%
}

.block--receipt .block__item--total-and-shop-info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between
}

.block--receipt .block__item--total-and-shop-info .block--total {
    -ms-flex-item-align: end;
    align-self: flex-end;
    width: 208px;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    padding: 7px 0;
    background-color: rgb(176 172 164 / 10%);
    border-bottom: 2px solid #fe8800
}

.block--receipt .block__item--total-and-shop-info .block--total .text {
    font-size: 1.8rem;
    text-align: center;
    font-weight: 700
}

.block--receipt .block__item--total-and-shop-info .block--shop {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between
}

.block--receipt .block__item--total-and-shop-info .block--shop > .text {
    font-size: 1.1rem
}

.block--receipt .block__item--total-and-shop-info .block--shop .block__item--shop-address {
    margin-top: 3px;
    font-size: 1rem;
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
    -webkit-transform-origin: right center;
    transform-origin: right center
}

.block--receipt .block__item--total-and-shop-info .block--shop .text {
    text-align: right;
    font-weight: 500
}

.block--receipt .block__item--detail {
    margin-bottom: 10px;
    margin-top: 30px
}

.block--receipt .block__item--detail table, .block--receipt .block__item--detail tr, .block--receipt .block__item--detail th, .block--receipt .block__item--detail td {
    margin: 0;
    padding: 0;
    position: relative
}

.block--receipt .block__item--detail .table {
    width: 100%
}

.block--receipt .block__item--detail .table__th, .block--receipt .block__item--detail .table__td {
    border: 1px solid #fff
}

.block--receipt .block__item--detail .table__thead .table__tr {
    height: 32px
}

.block--receipt .block__item--detail .table__thead .table__tr .table__th {
    background-color: #ffe6d5;
    color: #000;
    text-align: center;
    font-weight: 500;
    position: relative
}

.block--receipt .block__item--detail .table__thead .table__tr .table__th span {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 1rem;
    -webkit-transform: scale(0.9) translate(-50%, -50%);
    transform: scale(0.9) translate(-50%, -50%);
    -webkit-transform-origin: center center;
    transform-origin: center center;
    white-space: nowrap
}

.block--receipt .block__item--detail .table__thead .table__tr .table__th:nth-of-type(1) {
    width: 25px
}

.block--receipt .block__item--detail .table__thead .table__tr .table__th:nth-of-type(2) {
    width: 292px
}

.block--receipt .block__item--detail .table__thead .table__tr .table__th:nth-of-type(3) {
    width: 43px
}

.block--receipt .block__item--detail .table__thead .table__tr .table__th:nth-of-type(4) {
    width: 66px
}

.block--receipt .block__item--detail .table__thead .table__tr .table__th:nth-of-type(5) {
    width: 42px
}

.block--receipt .block__item--detail .table__thead .table__tr .table__th:nth-of-type(6) {
    width: 71px
}

.block--receipt .block__item--detail .table__tbody .table__tr {
    height: 28px;
    max-height: 28px
}

.block--receipt .block__item--detail .table__tbody .table__tr:nth-of-type(2n+1) {
    background-color: rgb(176 172 164 / 10%)
}

.block--receipt .block__item--detail .table__tbody .table__tr:nth-of-type(2n) {
    background-color: rgba(233, 239, 247, 0.1)
}

.block--receipt .block__item--detail .table__tbody .table__tr .table__td {
    vertical-align: middle;
    font-size: 1rem;
    -webkit-transform-origin: center center;
    transform-origin: center center;
    text-align: center;
    padding: 0 3px 0 3px;
}

.block--receipt .block__item--detail .table__tbody .table__tr .table__td:nth-of-type(2) {
    text-align: left
}

.block--receipt .block__item--detail .table__tbody .table__tr .table__td:nth-of-type(3), .block--receipt .block__item--detail .table__tbody .table__tr .table__td:nth-of-type(4), .block--receipt .block__item--detail .table__tbody .table__tr .table__td:nth-of-type(5), .block--receipt .block__item--detail .table__tbody .table__tr .table__td:nth-of-type(6) {
    text-align: right
}

.block--receipt .block__item--detail .table__tbody .table__tr .table__td.table__td--product-name-cell {
    -webkit-transform: none;
    transform: none
}

.block--receipt .block__item--detail .table__tbody .table__tr .table__td.table__td--product-name-cell .text--product-name {
    font-size: 1rem;
    line-height: 1rem
}

.block--receipt .block__item--result {
    margin-bottom: 10px;
    min-height: 170px
}

.block--receipt .block__item--result table, .block--receipt .block__item--result tr, .block--receipt .block__item--result th, .block--receipt .block__item--result td {
    margin: 0;
    padding: 0;
    border: none
}

.block--receipt .block__item--result .table {
    width: 100%;
    font-size: 1rem;
    padding: 0 1rem
}

.block--receipt .block__item--result .table__thead .table__tr {
    height: 24px
}

.block--receipt .block__item--result .table__thead .table__tr .table__th {
    background-color: #ffe6d5;
    font-weight: normal;
    text-align: center;
    vertical-align: middle
}

.block--receipt .block__item--result .table__thead .table__tr .table__th:last-child {
    background-color: #ff7e00;
    color: white;
    font-weight: normal;
    text-align: center;
    vertical-align: middle
}

.block--receipt .block__item--result .table__thead .table__tr .table__th .text {
    -webkit-transform: scale(0.9);
    transform: scale(0.9)
}

.block--receipt .block__item--result .table__thead .table__tr .table__th ~ .space {
    background-color: white;
}

.goukei {
    background-color: #fcf1eb;
}

.block--receipt .block__item--result .table__thead .table__tr .table__th:nth-of-type(10) {
    -webkit-transform: translateX(1px);
    transform: translateX(1px)
}

.block--receipt .block__item--result .table__thead .table__tr .table__th:nth-of-type(11) {
    color: #000
}

.block--receipt .block__item--result .table__tbody .table__tr {
    height: 26px
}

.block--receipt .block__item--result .table__tbody .table__tr .table__td {
    /*-webkit-transform: scale(0.8);*/
    /*transform: scale(0.8);*/
    vertical-align: middle;
    text-align: right;
    padding: 0 3px 0 3px;
}

/*.block--receipt .block__item--result .table__tbody .table__tr .table__td.sm {*/
/*    -webkit-transform: scale(0.7) translateX(0.5rem);*/
/*    transform: scale(0.7) translateX(0.5rem)*/
/*}*/

.block--receipt .block__item--result .table__tfoot .table__tr {
    height: 26px
}

.block--receipt .block__item--result .table__tfoot .table__tr .table__td {
    text-align: right;
    vertical-align: middle;
    -webkit-transform: scale(0.8);
    transform: scale(0.8)
}

.block--receipt .block__item--result .table__tfoot .table__tr .table__td:nth-of-type(10) {
    background-color: #ffe6d5;
    font-weight: bold;
    -webkit-transform: scale(1) translateX(1px);
    transform: scale(1) translateX(1px);
    padding: 0 3px 0 3px;
    text-align: right;
}

.block--receipt .block__item--result .table__tfoot .table__tr .table__td:nth-of-type(11) {
    background-color: #ffe6d5;
    /*letter-spacing: -1px;*/
    font-weight: bold;
    -webkit-transform: scale(1);
    transform: scale(1);
    padding: 0 3px 0 3px;
}


.block--receipt .block__item--result .table__tfoot .table__tr .table__td.text {
    -webkit-transform: scale(0.9);
    transform: scale(0.9)
}

.block--receipt .block__item--breakdown {
    margin-top: 5px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end
}

.block--receipt .block__item--breakdown .dl {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
    -webkit-transform-origin: right center;
    transform-origin: right center
}

.block--receipt .block__item--breakdown .dl:last-of-type {
    margin-top: 10px;
    padding-bottom: 3px;
    border-bottom: 1px solid #fe8800
}

.block--receipt .block__item--breakdown .dl .dt, .block--receipt .block__item--breakdown .dl .dd {
    text-align: right;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.1rem
}

.block--receipt .block__item--breakdown .dl .dd {
    width: 110px
}

.block--receipt .block__item--note {
    margin-top: 5px;
    height: 42px;
    border: 1px solid #d7d3cf;
    padding: 4px
}

.block--receipt .block__item--note .text {
    font-size: 1rem
}

.block--receipt .block__footer {
    margin-top: 8px
}


/* infoの位置を相対指定して、その中の絶対位置指定の基準にする */
.info {
    position: relative;
    display: inline-block;
}

.hover_up img {
    width: 150px !important; /* お好みのサイズに調整 */
    height: auto !important;; /* アスペクト比を維持 */
    max-width: 100%;
}


.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.left-button,
.right-button {
    cursor: pointer;
}

.preview-mode-icon {
    position: fixed;
    top: 10px;
    left: 20px;
    border: 1px solid #888888;
    padding: 2px 6px;
    background-color: rgba(255, 255, 255, 0.70);
    z-index: 9999;
}

.is-gray {
    color: #999;
}

.c-button-normal.is-disabled {
    pointer-events: none;
    opacity: 0.5;
}

.hover_text {
    font-size: small;
    text-align: left;
    padding: 0 10px;
}

.free_area_for_sns_banner {
    line-height: 10px;
    padding: 0 15px;
}

.c-section:has(.free_area_for_sns_banner) {
    padding: 5px 0;
    margin-top: 0 !important;
    background: transparent;
}

@media (max-width: 380px) {
    .c-input.--two-column .c-input-list.is-flex {
        gap: 12px !important;
    }
}

/* レコメンドエリアを非表示 */
.c-section:has(.ttt-recommend) {
    display: none;
}