@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&family=Noto+Sans+JP:wght@100..900&display=swap');

button {
    font-family: inherit;
}

.center-align{
    text-align: center;
}
.image{
    margin: 0 auto;
    max-width: 800px;
    min-width: 300px;
}
.image img { width: 100%; }

.light-theme{
    background-color: #fff;
    color: #202020;
}

.dark-theme{
    background-color: #121212;
    color: #e0e0e0;
}

.box-light-mode{
    border-color: #ccc;
    background-color: #f9f9f9;
}

.box-dark-mode{
    border-color: #444;
    background-color: #1e1e1e;
}

.light-theme, .dark-theme, .box-light-mode, .box-dark-mode {
    transition: background-color 0.3s, color 0.3s;
}

.header-style{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    padding: 0;
}

.header-inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    width: 100%;
    box-sizing: border-box;
}

.header-logo{
    display: flex;
    align-items: center;
}

.logo-text{
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.logo-text:hover{
    color: #a8d8ff;
    transform: scale(1.05);
}

.header-nav{
    display: flex;
    gap: 30px;
    align-items: center;
}

.link, .footer-link {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.link {
    font-size: 16px;
}

.link:hover, .footer-link:hover {
    color: #5dd9d4;
}

.link::after, .footer-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #5dd9d4;
    transition: width 0.3s;
}

.footer-link::after {
    bottom: -3px;
}

.link:hover::after, .footer-link:hover::after {
    width: 100%;
}

.link-list{
    list-style: none;
}

.field {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1000px) {
    .field {
        grid-template-columns: repeat(1, 1fr);
    }
}

.text-worp{
    white-space: pre-wrap;
}

.memo{
    width: 50%; height: 300px;
}
.wrapper{
    width: 100%;
    min-height: 100vh;
    position: relative;
    padding-bottom: 160px;/*←footerの高さ*/
    box-sizing: border-box;/*←全て含めてmin-height:100vhに*/
}

.footer-style{
    width: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 40px 0;
    position: absolute;/*←絶対位置*/
    bottom: 0; /*下に固定*/
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
}

.footer-inner{
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-nav{
    flex: 1;
}

.footer-links{
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0 0 15px 0;
    padding: 0;
}

.footer-links li{
    margin: 0;
    padding: 0;
}

html,body {
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    background-color: #121212;
    color: #e0e0e0;
}

html.light-theme, body.light-theme {
    background-color: #fff;
    color: #202020;
}

html.dark-theme, body.dark-theme {
    background-color: #121212;
    color: #e0e0e0;
}
body{
    padding-top: 70px;
    font-family: "Google Sans Flex", "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "slnt" 0,
        "wdth" 100,
        "GRAD" 0,
        "ROND" 0;
}

.box {
    border: 3px solid #ccc;
    padding: 10px;
    max-width: 300px;
    min-width: 10vw;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
    margin: 0 auto;
}

.box a{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.box:hover {
    border-color: #888;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    background-color: rgba(110, 110, 110, 0.3);
    transform: scale(1.03);
}

.footer-copyright{
    color: #888;
    font-size: 12px;
    margin: 0;
    padding: 0;
}

.clock_class{
    font-size: 130px;
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
}

.date_class{
    font-size: 53px;
    text-align: center;
}

.display-area{
    text-align: center;
}

.timerbutton{
    font-size: 20px;
    margin: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #808080;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.timerbutton:hover{
    background-color: #5dd9d4;
}
.timerbutton:active{
    background-color: #40bfb9;
}

.timer_settings{
    font-size: 18px;
    margin-top: 20px;
}

.timer_inputs{
    font-size: 18px;
    margin-top: 20px;
}

/*レスポンシブ用*/
@media (max-width: 600px) {
    .header-style {
        padding: 0px;
    }
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-nav {
        gap: 15px;
        margin-top: 10px;
        justify-content: center;
        width: 100%;
    }
    .logo-text {
        font-size: 18px;
    }
    .header-logo{
    justify-content: center;
    width: 100%;
    }
    .clock_class{
        font-size: 20vw;
    }
    .date_class{
        font-size: 8vw;
    }
}


input {
    border: 1px solid #0c0c0d4d;
    color: #737373;
    display: inline-block;
    margin: 0 4px;
}

input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #0c0c0d1a;
    height: 16px;
    width: 32px;
    border-radius: 0;
}

input[type="checkbox"]:hover {
    background-color: #0c0c0d33;
    border-color: #0c0c0d7f;
}

input[type="checkbox"]:active {
    background-color: #0c0c0d4d;
}

input[type="checkbox"]:focus {
    box-shadow: 0 0 0 1px #0a84ff inset, 0 0 0 1px #0a84ff, 0 0 0 4px #0a84ff4d;
}

input[type="checkbox"]:checked {
    background-color: #0060df;
    border-color: #0060df;
}

input[type="checkbox"]::before {
    background-color: currentColor;
    content: "";
    display: inline-block;
    height: 12px;
    width: 12px;
    margin: 1px;
    border-radius: 0;
    transition: margin-left 0.2s cubic-bezier(0.07, 0.95, 0, 1);
}

input[type="checkbox"]:checked::before {
    background-color: #fff;
    margin-left: 17px;
}

input[type="checkbox"].text {
    position: relative;
}

input[type="checkbox"].text::after {
    content: attr(data-text-off);
    font-size: 8px;
    position: absolute;
    right: 2px;
    top: 2px;
}

input[type="checkbox"].text:checked::after {
    color: #fff;
    content: attr(data-text-on);
    left: 2px;
    right: auto;
}
