@font-face {
    font-family: 'rainyhearts';
    src: url("/assets/fonts/rainyhearts.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

:root {
    --main-font: 'Helvetica', monospace, sans-serif;
    --main-size: 16px;
    --darkmint: #72835a;
    --medmint: #9db57b;
    --mint: #bfdd95;
    --white: white;
    --brown: #734941;
    --chocolate: #4d2b25;
    --black: black;
}

/*body.readable-font {
    --main-font: 'Helvetica', sans-serif;
    --main-size: 16px;
}*/

body {
    background: var(--chocolate);
    color: var(--chocolate);
    font-family: var(--main-font);
    font-size: var(--main-size);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

a {
    color: var(--darkmint);
    font-size: var(--main-size);
    text-decoration: none;
}

a:hover {
    color: var(--medmint);
}

a:visited {
    color: var(--brown);
}

header {
    position: relative;
    z-index: 10;
    margin: 0;
}

header img {
    max-height: 100%;
    max-width: 100%;
    display: block;
    position: relative;
    margin: 0 auto;
}

header h1 {
    font-family: 'Griffy', system-ui;
    font-size: 160px;
    color: var(--mint);
    text-align: center;
}

.wrapper {
    background-image:url(/assets/images/f-ue.gif), url(/assets/images/f-sita.gif);
    background-position:top left, bottom left;
    background-repeat:repeat-x, repeat-x;
    margin:1em 0; /* 中央寄せは0をautoに変更 */
    padding:30px 0;
    position: relative;
    z-index: 1;
    max-width: 1500px;
    width: 100%;
    transform: translateY(-120px);
    margin: 0 auto;
    display: flex;
    box-sizing: border-box;
    align-items: stretch;
    overflow: hidden;
    min-height: calc(100vh - 430px);
    margin-bottom: 20px;
}

.wrapper::after {
    content: "";
    display: table;
    display: flow-root;
}

footer {
    margin-top: auto;
    min-width: 100%;
    color: var(--chocolate);
    border-top: 2px solid var(--darkmint);
    background-color: var(--white);
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
}

.left-bar {
    flex: 0 0 calc(20% - 13.33px);
    display: flex;
    background-color: var(--white);
    justify-content: flex-start;
    flex-direction: column;
    align-items: center;
    min-height: 80px;
    text-align: center;
    padding-top: 40px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 10px;
    box-sizing: border-box;
}

.left-bar ul {
    padding-left: 0px;
    list-style-type: none;
    margin-top: 5px;
    text-align: left;
}

.main {
    flex: 1;
    min-width: 0;
    background-color: var(--white);
    color: var(--chocolate);
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 40px;
    padding-bottom: 10px;
}

.right-bar {
    flex: 0 0 calc(20% - 13.33px);
    display: flex;
    justify-content: flex-start;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    min-height: 80px;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 10px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

/*#font-toggle {
    border-radius: 5px;
    padding: 5px;
    border: 1px solid var(--chocolate);
    background-color: var(--white);
    color: var(--chocolate);
}*/

.widget-top {
    text-align: center;
    width: 75%;
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 2px dotted var(--darkmint);
}

.menu a {
    color: var(--darkmint);
    font-size: var(--main-size);
}

.menu li::before {
    content: "\1F480";
    color: var(--white);
    display: inline-block;
    margin-right: 0.25em;
}

.updates {
    background: var(--dimgray);
    color: var(--chocolate);
    font-family: var(--main-font);
    font-size: var(--main-size);
    border: dotted 1px  var(--chocolate);
    border-radius: 5px;
    padding: 5px;
}

.widget-top-right {
    text-align: center;
    width: 75%;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-right: 10px;
    border-bottom: 2px dashed var(--white);
}

.welcome {
    /*border: 1px dashed var(--white);*/
    padding-left: 15px;
    padding-right: 7px;
}

.blinkies-home {
    display: block;
    text-align: center;
}

.about-me {
    display: flow-root;
}

.about-me img {
    float: left;
    height: 25%;
    width: 25%;
    border-radius: 50%;
    margin: 10px;
}

.about-me li {
    list-style-type: none;
}

.bottom-of-the-page {
    margin-bottom: 20px;
}

.last-one {
    margin-bottom: 20px;
    display: flex;
    width: 100%;
    box-sizing: border-box;
}

.welcome.last-one > div {
    flex: 1;
    box-sizing: border-box;
    min-width: 0;
    margin: 10px auto;
    text-align: center;
}

.welcome.last-one h4 {
    overflow-wrap: break-word;
    white-space: normal;
}

/*.fun-thing {
    min-width: 0;
    display: block;
    text-align: center;
}

.fave-sites {
    margin-top: 10px;
    margin-bottom: 10px;
    min-width: 0;
    display: block;
    text-align: center;
}*/

.no-bullet {
    list-style-type: none;
    margin-bottom: 5px;
}

.review-info {
        border: medium double var(--white);
        background-color: var(--dimgray);
        margin-bottom: 2.5em;
        min-height: 15.625em;
        padding-top: .9375em;
        margin-left: .8125em;
        margin-top: 1.875em;
        clear: left;
    }

.review-info img {
    float: left;
    padding-right: .9375em;
    margin-top: -30px;
    margin-left: -15px;
    margin-bottom: 10px;
    height: auto;
    max-width: 25%;
    }

    .review-description {
    padding-top: .25em;
    padding-left: 10px;
    padding-right: 5px;
    margin-top: 10px;
}

.review-description li {
    list-style-type: none;
}

.the_review {
    margin-left: .8125em;
    margin-bottom: 20px;
}

/* --- Hide Mobile Elements on Desktop by default --- */
.mobile-nav {
    display: none;
}

@media (max-width: 800px) {
    /* 1. Ensure the header stays at the top of the stack and handles its space cleanly */
    header {
        position: relative;
        z-index: 10;
        margin: 0 0 10px 0;
        width: 100%;
    }

    header img {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

    body {
        font-family: "Tahoma";
    }

    /* 2. The Mobile Dropdown Container - Clean, positive margins so it sits UNDER the header */
    .mobile-nav {
        display: block;
        position: relative;
        z-index: 100;
        margin: 10px 15px 20px 15px; /* Cleaned up: no negative margins */
    }

    /* 3. Reset the wrapper completely so it sits nicely under the menu */
    .wrapper {
        display: block; 
        transform: none; /* Disables the desktop overlap shift completely */
        margin-top: 10px;
        padding: 0 15px;
        position: relative;
        z-index: 5;
    }

    /* 4. Hide the sidebars entirely */
    .left-bar, 
    .right-bar {
        display: none;
    }

    /* 5. Force the main column to fill the entire screen width */
    .main {
        width: 100%;
        box-sizing: border-box;
        border-top: none;
    }

    /* Hide the actual checkbox hack widget */
    #menu-toggle {
        display: none;
    }

    /* The clickable menu header bar */
    .menu-button {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: var(--black);
        border: 2px solid var(--white);
        padding: 12px 20px;
        font-family: "Tahoma";
        font-size: var(--main-size);
        color: var(--white);
        cursor: pointer;
        user-select: none;
    }

    /* The actual hidden list items */
    .menu-dropdown {
        list-style-type: none;
        padding-left: 0;
        margin: 0;
        background-color: var(--darkgray);
        border: 2px solid var(--white);
        border-top: none;
        display: none; 
        flex-direction: column;
    }

    .menu-dropdown li {
        border-bottom: 1px dashed var(--dimgray);
    }
    
    .menu-dropdown li:last-child {
        border-bottom: none;
    }

    .menu-dropdown a {
        display: block;
        padding: 12px;
        color: var(--darkorange);
        font-family: "Tahoma";
        font-size: var(--main-size);
        text-align: center;
    }

    /* The Magic CSS Toggle Rule: When checked, show the list items */
    #menu-toggle:checked ~ .menu-dropdown {
        display: flex;
    }

    /* Flip the little arrow upside down when open */
    #menu-toggle:checked ~ .menu-button .arrow {
        transform: rotate(180deg);
    }

    /* Clean up the footer constraints */
    .footer {
        width: 100%;
        max-width: calc(100% - 30px);
        margin: 20px auto;
        box-sizing: border-box;
    }
}