/*
* 共通
*/
*, *::before, *::after {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Metropolis';
    src: url('../font/Metropolis-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

.d-none {
    display: none !important;
}

button {
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
    background: 0 0;
    cursor: pointer;
    line-height: inherit;
}

.flex-justify-center {
    display: flex;
    justify-content: center;
}

/* ---------------------
* header
--------------------- */
.header-wrapper {
    width: 100%;
    background-color: rgb(246, 246, 246);
}

.header-content {
    display: flex;
    justify-content: space-between;
    padding: 30px 5% 15px;
    max-width: 1020px;
    margin: 0 auto;
}

img.logo {
    height: 30px;
    width: auto;
    padding-top: 6px;
}

.header-btn-group {
    display: flex;
}

.header-btn-group .btn-id {
    margin-right: 2%;
}

.header-btn-group .btn-help {
    margin-left: 2%;
}

img.help {
    opacity: 0.4;
    height: 30px;
    width: auto;
    padding-top: 6px;
}

/* ---------------------
* preview
--------------------- */
.preview-wrapper {
    width: 100%;
    background-color: rgb(246, 246, 246);
    display: flex;
    justify-content: center;
    padding-bottom: 50px;
}


/* ---------------------
* カスタマイズ
--------------------- */
.customize-wrapper {
    max-width: 960px;
    display: block;
    margin: 0 auto;
}

.customize {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px;
}

/* ---------------------
* ラベルボタン
--------------------- */
.label-list-wrapper {
    margin-bottom: 24px;
}

.btn-label-list {
    display: flex;
}

.btn-label {
    height: 36px;
    outline: none;
    margin: 0px 5px;
    color: rgb(17, 17, 17);
    border-radius: 20px;
    display: inline-block;
    width: 120px;
    border: 1px solid rgb(229, 229, 229);
    text-overflow: ellipsis;
}

.active .btn-label {
    border: 1px solid rgb(17, 17, 17);
}

/* ---------------------
* カラーボタン
--------------------- */
.color-list-wrapper {
    margin-bottom: 24px;
}

.color-list {
    display: flex;
    align-items: start;
    width: fit-content;
    height: 96px;
}

.btn-color-group {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.btn-color {
    top: 0;
    position: relative;
    border: none;
    outline: none;
    margin: 0px 11px;
    overflow: hidden;
    width: 40px;
    height: 40px;
    background-color: transparent;

    /* 疑似要素にtop,left指定でなく以下でも可 */
    /* display: flex;
    justify-content: center;
    align-items: center; */
}

.btn-color::before {
    position: absolute;
    content: "";
    border-radius: 100%;
    width: 40px;
    height: 40px;
    border: 1px solid rgb(229, 229, 229);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.active .btn-color::before {
    border: 1.5px solid rgb(17, 17, 17);
}

.btn-color::after {
    position: absolute;
    content: "";
    border-radius: 100%;
    width: 30px;
    height: 30px;
    border: 1px solid rgb(229, 229, 229);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-color-text {
    width: 120px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    position: absolute;
    transform: translateY(38px);
    display: none;
}

.active .btn-color-text {
    display: block;
    z-index: 1;
}


/* カラー用 */
.btn-color.black::after {
    background-color: rgb(43, 43, 43);
}

.btn-color.navy::after {
    background-color: rgb(39, 39, 124);
}

.btn-color.blue::after {
    background-color: rgb(23, 51, 169);
}

.btn-color.bluegreen::after {
    background-color: rgb(131, 166, 161);
}

.btn-color.bluegray::after {
    background-color: rgb(182, 185, 203);
}

.btn-color.smokeblue::after {
    background-color: rgb(121, 125, 151);
}

.btn-color.darkgreen::after {
    background-color: rgb(80, 78, 53);
}

.btn-color.kahki::after {
    background-color: rgb(107, 102, 63);
}

.btn-color.mossgreen::after {
    background-color: rgb(26, 110, 98);
}

.btn-color.green::after {
    background-color: rgb(57, 142, 107);
}

.btn-color.mustardyellow::after {
    background-color: rgb(241, 178, 42);
}

.btn-color.yellow::after {
    background-color: rgb(247, 210, 95);
}

.btn-color.lemonyellow::after {
    background-color: rgb(251, 239, 181);
}

.btn-color.ecru::after {
    background-color: rgb(237, 208, 177);
}

.btn-color.pinkbeige::after {
    background-color: rgb(200, 168, 156);
}

.btn-color.lightpink::after {
    background-color: rgb(234, 200, 189);
}

.btn-color.pink::after {
    background-color: rgb(255, 169, 169);
}

.btn-color.berry::after {
    background-color: rgb(194, 74, 99);
}

.btn-color.purple::after {
    background-color: rgb(135, 78, 173);
}

.btn-color.winered::after {
    background-color: rgb(125, 47, 47);
}

.btn-color.cranberry::after {
    background-color: rgb(118, 54, 55);
}

.btn-color.grape::after {
    background-color: rgb(147, 78, 101);
}

.btn-color.red::after {
    background-color: rgb(224, 20, 21);
}

.btn-color.samonpink::after {
    background-color: rgb(216, 112, 96);
}

.btn-color.brick::after {
    background-color: rgb(183, 92, 47);
}

.btn-color.cappuccino::after {
    background-color: rgb(177, 147, 112);
}

.btn-color.brown::after {
    background-color: rgb(123, 78, 33);
}

.btn-color.caramel::after {
    background-color: rgb(153, 110, 84);
}

.btn-color.greige::after {
    background-color: rgb(168, 144, 123);
}

.btn-color.charcoalgray::after {
    background-color: rgb(102, 100, 97);
}

.btn-color.gray::after {
    background-color: rgb(201, 201, 201);
}

.btn-color.white::after {
    background-color: rgb(240, 225, 210);
}

/* ---------------------
* テキストボックス
--------------------- */
.form__group {
    position: relative;
    padding: 15px 0 0;
    margin-top: 10px;
    max-width: 280px;
}

.form__field {
font-family: inherit;
width: 100%;
border: 0;
border-bottom: 1px solid rgb(229, 229, 229);
outline: 0;
font-size: 16px;
color: #212121;
padding: 7px 0;
background: transparent;
transition: border-color 0.2s;
}

.form__field::placeholder {
color: transparent;
}

.form__field:placeholder-shown ~ .form__label {
font-size: 16px;
cursor: text;
top: 20px;
}

label,
.form__field:focus ~ .form__label {
position: absolute;
top: 0;
display: block;
transition: 0.2s;
font-size: 12px;
color: #9b9b9b;
}

.form__field:focus ~ .form__label {
color: rgb(17, 17, 17);
}

.form__field:focus {
padding-bottom: 6px;
border-bottom: 1px solid rgb(17, 17, 17);
}

/* ---------------------
* モーダル
--------------------- */
.modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-wrapper {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 15px;
    border: 1px solid #888;
    border-radius: 30px;
    width: 90%;
    max-width: 640px;
    height: 86%;
    overflow-y: hidden;
}

.modal-content-scroll {
    overflow-y: scroll;
    height: 100%;
}

.modal-content-scroll::-webkit-scrollbar {
    width: 0;
}

.modal-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.close {
    color: #aaaaaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.simulation-image-wrapper {
    width: fit-content;
    text-align: center;
}

.simulation-image {
    width: 70%;
    max-width: 300px;
    height: 100%;
}

.simulation-selected {
    max-width: 500px;
    margin-bottom: 15px;
}

.simulation-selected table {
    min-width: 300px;
    table-layout: auto;
}

.simulation-selected td {
    width: 40%;
    text-align: center;
    background-color: #cccccc;
    font-size: 0.8rem;
    padding: 0 5px;
    height: 28px;
}

.simulation-selected th {
    width: 60%;
    text-align: center;
}

.simulation-id-text-wrapper {
    width: 100%;
    max-width: 500px;
}

.simulation-id-text {
    font-weight:500;
    font-size: 18px;
    border-radius: 5px;
    line-height: 22px;
    background-color: transparent;
    border:2px solid rgb(17, 17, 17);
    text-align:center;
    transition: all 0.3s;
    padding: 13px;
    margin-bottom: 15px;
    width:100%;
    box-sizing: border-box;
    outline:0;
}

.copy-wrapper {
    position: relative;
}

.tooltip {
    position: absolute;
    top: -48px; /* Adjust this value according to your button's height */
    display: block;
    background: rgb(229, 229, 229);
    padding: 5px;
    border-radius: 5px;
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
}

.rakuten-description {
    font-size: 0.75rem;
    text-align: left;
    max-width: 520px;
}

.rakuten-description ul {
    padding-left: 20px;
}

/*
* spinner
*/
.spinner-wrapper {
    position: fixed;    /* 位置を固定 */
    top: 0;             /* 画面の上端から0pxの位置 */
    left: 0;            /* 画面の左端から0pxの位置 */
    width: 100%;        /* 画面の全幅 */
    height: 100%;       /* 画面の全高 */
    background: rgba(255, 255, 255, 0.9); /* 背景色（ここでは半透明の白） */
    z-index: 1000;      /* 他の要素よりも前面に表示するためのz-index */
    display: flex;      /* 子要素を中央に配置するためのflexbox */
    justify-content: center; /* 水平方向の中央揃え */
    align-items: center;     /* 垂直方向の中央揃え */
}

.spinner {
    width: 150px;
    height: 150px;
    margin: 10px auto;
    border: 6px #ddd solid;
    border-top: 6px rgb(17, 17, 17) solid;
    border-radius: 50%;
    animation: sp-anime 1.0s infinite linear;
}
  
@keyframes sp-anime {
    100% { 
      transform: rotate(360deg); 
    }
}