@import url('https://fonts.googleapis.com/css2?family=Zen+Kurenaido&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body {
    background-color: #A2AADB;
}


/*--------------------------------------
main
--------------------------------------*/
main {
    min-height: 100vh;
    margin-top: 100px;
}

section {
    position: relative;
    width: 100%;
    margin-bottom: 50px;
}

.smartphoneContent {
    display: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 0;
}

.section-title {
    font-size: 4rem;
    font-weight: 700;
    font-family: 'Zen Kurenaido';
    color: #FFFFFF;
    text-align: center;
}

.section-title span {
    font-size: 6rem;
}

.container h3 {
    margin-bottom: 30px;
    text-align: center;
    font-size: 3rem;
    font-family: 'Zen Kurenaido';
    color: #FFFFFF;
}

.container p {
    margin: 10px 0;
    text-align: center;
    font-size: 2rem;
    font-family: 'Zen Kurenaido';
    color: #FFFFFF;
}

.customClock {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 0;
}

.previewWrap {
    position: sticky;
    top: 20%;
    width: 700px;
}

.preview {
    margin-bottom: 50px;
}

.clockBGC {
    display: flex;
    margin: auto;
    border: solid 3px #000000;
    border-bottom: 0;
}

.clockBGC label {
    cursor: pointer;
}

.clockBGC label input {
    display: none;
}

.clockBGC label span {
    padding: 0 25px;
    font-family: 'Zen Kurenaido';
    font-weight: 500;
    font-size: 1.5rem;
    white-space: nowrap;
}

.clockBGC label input:checked+span {
    background: #0ABAB5;
}

.clock {
    padding: 100px 0;
    border: solid 3px #000000;
}

.clockArea {
    width: fit-content;
    margin: auto;
    background-color: #ffffffff;
    box-shadow: 0px 0px 0px 0px #000000;
    text-shadow: 0px 0px 0px #00000000;
    font-family: 'Hachi Maru Pop';
    font-weight: 500;
}

.clockArea .flex {
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.clockArea span {
    white-space: nowrap;
}

.generate {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
}

.generate>div {
    display: flex;
    gap: 10px;
}

.generate label {
    position: relative;
    display: inline-block;
}

.generate input[type="button"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: 0;
    padding: 0;
}

.generate label span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 50px;
    padding: 10px 24px;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s ease-in-out;
    box-shadow: 0 2px 4px #0000001a;
}

.generate label:has(input[name="generate"]) span {
    background-color: #337ab7;
}

.generate label:has(input[name="generate"]):hover span {
    background-color: #286090;
}

.generate label:has(input.copey) span {
    background-color: #5cb85c;
}

.generate label:has(input.copey):hover span {
    background-color: #449d44;
}

.generate textarea.customCSS {
    width: 100%;
    height: 200px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #212529;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    box-shadow: inset 0 1px 3px #0000000d;
}

.settingWrap {
    flex: 1;
}

.setting {
    margin-bottom: 50px;
    padding: 25px;
    background: #282828b3;
    border: 1px solid #ffffff1a;
    border-radius: 12px;
    color: #eeeeee;
}

.setting:last-child {
    margin-bottom: 0;
}

.setting h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 1px solid #ffffff33;
    padding-bottom: 12px;
}

.setting h3 span {
    font-size: 0.9rem;
    font-weight: 400;
}

.setting .flex {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.setting .flex label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.setting .flex label:hover {
    color: #FFEB55;
}

.setting .flex label span {
    font-size: 1.4rem;
}

.setting .size {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.setting .size p {
    margin: 0;
    width: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
}

.setting .size .value {
    font-weight: bold;
    min-width: 28px;
    text-align: center;
    background-color: #0000004d;
    padding: 4px 8px;
    border-radius: 4px;
}

.setting input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    flex-grow: 1;
    max-width: 100%;
    height: 6px;
    background: #00000066;
    border-radius: 3px;
    outline: none;
}

.setting input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #FFEB55;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 5px #ffeb5580;
    transition: transform 0.2s ease;
}

.setting input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.2);
}

.setting hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 30px 0;
}

.setting .design {
    margin: 10px 0;
    text-align: center;
    font-weight: bold;
}

.pickr {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
}

.pickr button {
    width: 90% !important;
    border: solid 2px #000000;
}

.pcr-app[data-theme=nano] {
    width: 20%;
}

#how-to .container {
    background-color: #282828b3;
    border: 1px solid #ffffff33;
    border-radius: 15px;
    padding: 30px 50px;
    margin-top: 100px;
    box-shadow: 0 8px 16px #0000004d;
}

#how-to h3 {
    font-size: 2.5rem;
    text-align: center;
    color: #FFEB55;
}

#how-to ol {
    padding-left: 50px;
    color: #e0e0e0;
}

#how-to ol li {
    margin-bottom: 25px;
    font-size: 1.4em;
}

#how-to ol li::marker {
    color: #FFEB55;
    font-weight: bold;
    font-size: 1.3em;
}

.link-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px #00000014;
    margin: 1em 0;
    transition: box-shadow 0.3s ease;
}

.link-container:hover {
    box-shadow: 0 6px 16px #0000001f;
}

.link-container a {
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    margin-right: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-container a:hover {
    color: #007bff;
}

.link-container .copy-btn {
    background-image: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    color: #FFFFFF;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
    flex-shrink: 0;
    box-shadow: 0 2px 4px #0000001a;
}

.link-container .copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px #00000033;
}

.link-container .copy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px #0000001a;
}

#how-to .note {
    margin-bottom: 0;
    padding-top: 25px;
    border-top: 1px solid #ffffff33;
    font-size: 0.9em;
    color: #b0b0b0;
    text-align: center;
}

.preset-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 16px #0000000d;
    padding: 20px 40px;
    margin-bottom: 40px;
    text-align: center;
}

.preset-item h4 {
    font-size: 2em;
    color: #495057;
    margin-bottom: 20px;
}

.preset-item .flex {
    display: flex;
    align-items: center;
    gap: 30px;
}

.preset-item img {
    width: 250px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.preset-code-block {
    position: relative;
    flex: 1;
}

.preCSS {
    width: 100%;
    height: 200px;
    padding: 20px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background-color: #212529;
    color: #f8f9fa;
    font-size: 0.95em;
    line-height: 1.5;
    resize: vertical;
}

.copy-button {
    position: absolute;
    top: 15px;
    right: 30px;
    width: 80px;
    padding: 8px 16px;
    background-color: #007bff;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.copy-button:hover {
    background-color: #0056b3;
}

.preset-item .creater {
    font-size: 0.9em;
    color: #6c757d;
    text-align: right;
    margin-bottom: 0;
}

.preset-item .creater a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.preset-item .creater a:hover {
    text-decoration: underline;
}

.preset-request {
    text-align: center;
    padding: 30px;
    background-color: #e9ecef;
    border-radius: 12px;
}

.preset-request p {
    margin: 10px 0;
    line-height: 1.7;
    color: #495057;
    font-size: 1.1em;
}


/*--------------------------------------
スマートフォン向けスタイル
--------------------------------------*/
@media (max-width: 768px) {
    main {
        margin-top: 30px;
    }

    .smartphoneContent {
        display: block;
    }

    .pcContent {
        display: none;
    }

    .container {
        padding: 20px 0;
    }

    .container h3 {
        margin-bottom: 20px;
        font-size: 2rem;
    }

    .container p {
        margin: 20px;
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-title span {
        font-size: 3rem;
    }

    #how-to .container {
        margin: 50px 10px;
        padding: 30px;
    }

    #how-to h3 {
        font-size: 2rem;
    }

    #how-to ol {
        padding-left: 30px;
    }

    #how-to ol li {
        margin-bottom: 20px;
        font-size: 1.2em;
    }

    #how-to ol li::marker {
        font-size: 1.1em;
    }
}