@charset "uft-8";

/*
Theme Name: ウェブDeBLOG sample
Theme URI:
Author: 渡来 伝人
Author URI:
Description: Webデザインを学び始めて最初のWordPressテーマです。1年後期集中授業。
Version: 1.0
Tested up to: 6.8.2
Requires PHP: 8.3.14
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: This theme, like WordPress, is licensed under the GPL.
*/

.loader {
    display: none !important;
}


/*-------------------
hamburger-menu
---------------------*/

header {
    padding: 20px 0;
    background-color: beige;
}





header .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.global ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 18px;

}

.global a {
    position: relative;
    text-decoration: none;
    color: #333;
    padding: 5px 0;
}

.global a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #ff6347;
    /* underline color */
    transition: width 0.3s;
}

.global a:hover::after {
    width: 100%;
}

.global a {

    font-size: 18px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}



/* Hamburger button */
.menu-toggle {
    font-size: 28px;
    cursor: pointer;
    display: none;
    position: relative;
    z-index: 1001;
    /* keep above menu */
}

/* Responsive */
@media (max-width: 540px) {
    .global {
        position: fixed;
        top: 0;
        right: -250px;
        /* 👈 hidden off-screen */
        width: 200px;
        height: 100%;
        background: beige;
        border-left: 1px solid #ddd;
        transition: right 0.3s ease;
        /* smooth slide */
        z-index: 1000;
        padding-top: 60px;
        /* space under header */
    }

    .global ul {
        display: flex;
        flex-direction: column;
        padding: 40px;
        gap: 15px;
        margin: 0;
    }

    .menu-toggle {
        display: block;
    }

    /* When menu is open */
    .global.show {
        right: 0;
    }
}

/*------------------
background animation
-------------------*/


body {
    margin: auto;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: auto;
    background: linear-gradient(315deg, rgb(222, 135, 216) 3%, rgb(129, 181, 233) 38%, rgb(133, 230, 224) 68%, rgb(243, 149, 149) 98%);
    animation: gradient 15s ease infinite;
    background-size: 400% 400%;
    background-attachment: fixed;
}

@keyframes gradient {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.wave {
    background: rgb(255 255 255 / 25%);
    border-radius: 1000% 1000% 0 0;
    position: fixed;
    width: 200%;
    height: 12em;
    animation: wave 10s -3s linear infinite;
    transform: translate3d(0, 0, 0);
    opacity: 0.8;
    bottom: 0;
    left: 0;
    z-index: -1;
}

.wave:nth-of-type(2) {
    bottom: -1.25em;
    animation: wave 18s linear reverse infinite;
    opacity: 0.8;
}

.wave:nth-of-type(3) {
    bottom: -2.5em;
    animation: wave 20s -1s reverse infinite;
    opacity: 0.9;
}

@keyframes wave {
    2% {
        transform: translateX(1);
    }

    25% {
        transform: translateX(-25%);
    }

    50% {
        transform: translateX(-50%);
    }

    75% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(1);
    }
}

/*----------------
css loader
-----------------*/
.loader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    z-index: 555;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader .txt {
    font-size: 45px;
    font-weight: bold;
    color: rgb(30, 50, 93);
}

/*--------------
for body
--------------*/

body {
    color: #000;
    font-size: 14px;
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.5;
    letter-spacing: 0;
    font-weight: lighter;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.inner {
    width: 86.486%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

::selection {
    color: #fff;
    background-color: #000;
}

html {
    scroll-behavior: smooth;
}

/*-------------------------
  h1,
  h2,
  h3
-------------------------*/
h1 {
    margin-bottom: 20px;
}

.logo {
    height: 50px;
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.logo::after {
    content: "MyBLOG";
    /* 👈 your text here */
    display: block;
    /* space under image */
    font-size: 18px;
    font-family: 'Lobster', cursive;
    color: #333;
}

header .logo img:hover {
    filter: brightness(1.3);
    transition: filter 0.3s;
}

h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 40px;

    border-bottom: 1px solid #000;
    display: inline-block;
}

.about h2 {
    text-align: center;
}

.about h3 {
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dotted #000;
}

.blog h3 {
    display: inline-block;
    border-bottom: 2px dotted #000;

    padding-bottom: 5px;
}

h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

/*--------------

header
---------------*/
/* header {
    padding: 20px 0;
    background-color: #fff;

}

header .inner {
    display: grid;
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: center;
}

.global {
    display: none;
}

.global.open {
    display: block;
}

.global ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.global a {
    font-size: 18px;
    transition: 0.2s;
    margin-left: 30px;
    font-weight: bold;
}

.global a:hover {
    text-decoration: underline;
}

 */

/*main------*/
/*mainvisual-----------*/
.mainvisual h2 {
    margin-bottom: 0;
    border-bottom: none;
    display: block;

    /* Japanese Google Font */
    font-weight: 700;
    /* bold for visibility */
    font-size: 2.5rem;
    /* adjust for desktop */
    color: #ffffff;
    /* white over image */
    text-align: center;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}



.mainvisual {
    padding: 120px 0;
    margin-bottom: 60px;
    background-image: url(/blog/wp-content/themes/05_blog/image/mainphoto.png);
    /* background: url(./image/mainphoto.png)no-repeat center center/cover; */
    background-size: cover;
    background-position: 50% 0;
    background-repeat: no-repeat;

}

.navigation-pagination .nav-links {
    font-size: 4rem;
}


/*--------------
main-blog
---------------*/
.post-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    column-gap: 2%;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #000;
}

.archive-title {
    margin-top: 0;
}



.img-box {
    width: 100%;
    aspect-ratio: 1/1;
    max-height: 100%;
}

a .about-body {
    min-height: 100%;
}



.img-box img {
    width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center 20%;
    overflow: hidden;
}

.category-tag {
    position: absolute;
    font-size: 8px;
    padding: 5px;
    text-align: center;
    background-color: rgba(245, 245, 245, 0.8);
    border-radius: 10px;
    font-weight: bold;
    top: 5px;
    left: 5px;
}

.posts .tag-box {
    position: relative;
}

.posts img {
    border-radius: 10px;

}

.posts img:hover,
.posts .about-body:hover {
    transform: scale(0.98);
    box-shadow: 0 0 15px rgb(255, 255, 0);
}

.about-body {
    padding: 12px 12px;
    background-color: beige;
    border-radius: 10px;
}

small {
    font-size: 8px;
    margin-top: 40px;
}

/* .nums {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 60px;
}

.nums p {
    font-size: 18px;
    font-weight: bold;
    margin-left: 20px;
    padding: 15px 20px;
    background-color: yellow;
    border-radius: 100%;
} */

.nums p:hover {
    background-color: #9cb5d6;
}

.single-whole-body h3 {
    margin-top: 20px;
}

.single-whole-body ol strong {
    color: #000;
}

.single-whole-body ul {
    padding-left: 20px;
    list-style: square;
}

.wp-block-list ul li {
    list-style-type: circle;
}

.wp-block-list ul ul li {
    list-style-type: disc;

}





blockquote {
    font-family: "Georgia", serif;
    font-size: 1.3rem;
    line-height: 1.6;
    position: relative;
    margin: 40px auto;
    padding: 30px 40px;
    max-width: 700px;
    background: #fff;
    border-left: 6px solid #4a90e2;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    color: #333;
}

blockquote::before {
    content: "❝";
    font-size: 2rem;
    color: #333;
    position: absolute;
    left: 10px;
    top: 5px;
    opacity: 0.3;
}

.single-whole-body blockquote p {
    margin-bottom: 0;
}

blockquote cite {
    display: block;
    margin-top: 15px;
    text-align: right;
    font-size: 1rem;
    color: #666;
    font-style: normal;
    font-weight: bold;
    font-style: italic;
}

sub {
    font-size: 0.7em;
    /* Smaller text */
    vertical-align: sub;
    /* Lower than normal text */
    color: #555;
    /* Optional: change color */
}

.my-koala {
    width: 180px;
    height: 180px;
    background: #f7edaa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;

}

.my-koala img {
    max-height: 80px;
    object-fit: contain;
}


.profile-h3 strong {
    font-size: 20px;
    text-shadow: none;
}



/*----------------
comment-box
------------------*/

.comment-form {
    max-width: 650px;
    margin: 40px 0;
    padding: 30px;
    background-color: beige;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.comment-form .comment-header p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.comment-form .comment-header a {
    color: #0073aa;
    text-decoration: none;
    margin-left: 8px;
    font-weight: 500;
}

.comment-form .comment-header a:hover {
    text-decoration: underline;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 1rem;
    resize: none;
    /* disable manual resize to control growth */
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-height: 100px;
    max-height: 300px;
    /* limit maximum growth */
    overflow-y: auto;
    /* scroll if content exceeds max height */
}

.comment-form textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 10px rgba(0, 115, 170, 0.2);
    outline: none;
}

.comment-form .submit {
    margin-top: 15px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form .submit:hover {
    background-color: #005f87;
    transform: translateY(-5px);
}

/* Name, Email, Website inputs */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 12px 18px;
    /* match textarea padding */
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    /* same as textarea */
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Focus effect to match textarea */
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
    border-color: #0073aa;
    box-shadow: 0 0 10px rgba(0, 115, 170, 0.2);
    outline: none;
}

/* Optional: add icons inside inputs */
.comment-form input#author {
    background: url('https://cdn-icons-png.flaticon.com/512/1077/1077114.png') no-repeat 12px center;
    padding-left: 40px;
    background-size: 20px 20px;
}

.comment-form input#email {
    background: url('https://cdn-icons-png.flaticon.com/512/561/561127.png') no-repeat 12px center;
    padding-left: 40px;
    background-size: 20px 20px;
}

.comment-form input#url {
    background: url('https://cdn-icons-png.flaticon.com/512/25/25231.png') no-repeat 12px center;
    padding-left: 40px;
    background-size: 20px 20px;
}




time {
    font-size: 10px;
}

.posts p {
    margin-bottom: 0;
}

.post-p {
    margin-bottom: 10px;
}

dt {
    font-weight: bold;
    font-size: 18px;
    padding-bottom: 5px;
    border-bottom: 1px dotted #333;
    display: inline-block;
}

dd {
    margin: 10px 0 20px;
}

.na address {
    font-style: normal;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 0;
}

.single-whole-body li strong {
    text-shadow: none;
    font-weight: normal;
    font-size: 14px;
}

.single-whole-body ol li {
    margin-left: 10px;
    list-style-type: disc;
}



strong {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-links .current {
    color: #fff;
    padding: 5px;
    border-radius: 100%;
    background-color: #000;
    margin: 0 5px;
    font-weight: bold;

}


.nav-links a,
span {
    font-size: 18px;
    font-weight: bold;
}

.nav-links a:hover {
    color: #fff;
}

.breadcrumbs {
    margin-bottom: 40px;
    color: #fff;
}

.tag ul {
    margin-top: 10px;
    list-style-type: circle;
}

.nav-links a {
    display: inline-block;
    max-width: 140px;
    /* adjust depending on your layout */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;

}

.nav-links {
    margin-bottom: 20px;
}

/*-------------
categories
-------------*/

.categories-list ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
    align-items: start;
    margin-left: 20px;
    list-style-type: none;
}

/* Remove bullets from category list */
.categories-list ul,
.categories-list ul li {
    list-style-type: none !important;
    margin: 0;
    padding-left: 0;
}

.profile-post {
    margin-top: 85px;

}

.profile-post .about-body {
    padding: 40px;
}

.profile-post p {
    margin: 10px 0;
}



.categories-list ul {
    max-height: 200px;
    /* shows about 5 items */
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.categories-list.expanded ul {
    max-height: 1500px;
    /* enough to show all */
}

.toggle-btn {
    display: block;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    padding: 8px 16px;
    background: linear-gradient(135deg, #9cb5d6, #ddd);
    /* gradient color */
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.toggle-btn:hover {
    background: linear-gradient(135deg, #ff4500, #ff6347);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.categories h2 {
    font-size: 24px;
    text-align: center;
    display: block;
    border-bottom: none;
    margin-bottom: 40px;
    padding-top: 20px;

}

.categories {
    padding: 5px;
    border-radius: 10px;
    background-color: beige;
    margin-top: 87px;
    margin-bottom: 60px;

}

.about {
    padding: 20px;
    border-radius: 10px;
    background-color: beige;
    margin-top: 20px;
    margin-bottom: 60px;
}

.categories {
    margin-bottom: 40px;
}

.categories h2 {
    text-align: center;
}

.categories ul li {
    list-style-type: square;
    margin-bottom: 10px;
}

/*------------------
about
--------------------*/

.about h2 {
    font-size: 24px;
    text-align: center;
    display: block;
    border-bottom: none;
}

.profile {
    width: 180px;

    height: 180px;
    background: #f7edaa;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.profile img {
    height: 80px;
    object-fit: cover;
}

/* .profile:hover img {
    transform: scale(1.1);
} */

.profile {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}


.about h3 {
    display: block;
    text-align: center;
}

.about p {
    text-align: center;
    display: block;
}


.sns a {
    font-size: 48px;
    transition: 0.2s;
}

.sns {
    text-align: center;
    margin-top: 20px;
}

.sns a:hover {
    color: #9cb5d6;
}

/*-------------------
footer
-------------------*/

.boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;

}

footer {
    margin-top: 60px;
    text-align: center;
    background-color: #f7edaa;
}

footer .inner {
    padding: 150px 0 40px;
    position: relative;
}

.box {
    width: 20px;
    height: 20px;
    background-color: #f5f5f5;
    border: 2px solid black;

}

footer small {
    font-size: 16px;
    font-weight: bold;
}

.koala-top a {
    height: 230px;
    position: absolute;
    right: 0;
    top: -45px;
}

.koala-top a:hover {
    filter: brightness(1.1);
    transition: filter 0.3s;
}






@media(540px<=width) {

    body {
        font-size: 14px;
    }

    .my-koala {
        margin-left: 0;
    }

    .blog .post-grid {
        display: grid;
        grid-template-columns: 180px 1fr;
        column-gap: 2%;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid #000;

    }

    .posts {
        padding-right: 20px;
        border-right: 1px solid #000;
    }



    .global {
        display: block;
    }

    .whole-body {
        display: grid;
        grid-template-columns: 2fr 1fr;
        column-gap: 20px;
    }

    h3 {
        font-size: 20px;
        font-weight: bold;
    }

    .koala-top a {
        height: 270px;
        top: -75px;
    }

    .mainvisual {
        padding: 150px 0;
        margin-bottom: 60px;
        background-image: url(/blog/wp-content/themes/05_blog/image/mainphoto.png);
        /* background: url(./image/mainphoto.png)no-repeat center center/cover; */
        background-size: cover;
        background-position: 50% 37.5%;
        background-repeat: no-repeat;

    }

    .mainvisual h2 {
        margin-bottom: 0;
        border-bottom: none;
        display: block;

        /* Japanese Google Font */
        font-weight: 700;
        /* bold for visibility */
        font-size: 3rem;
        /* adjust for desktop */
        color: #ffffff;
        /* white over image */
        text-align: center;
        line-height: 1.2;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    }

}



/* HTML: <div class="loader"></div> */
.loader {
    display: inline-flex;
    gap: 10px;
}



.loader:before,
.loader:after {
    content: "";
    height: 20px;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        linear-gradient(#222 0 0) top/100% 40% no-repeat,
        radial-gradient(farthest-side, #000 95%, #0000) 50%/8px 8px no-repeat #fff;
    animation: l7 1.5s infinite alternate ease-in;
}


/*-------------------------
  single page
-------------------------*/

.single {
    .comment-form-comment {
        width: 100%;
        max-width: 500px;
        background-color: #fff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        margin: 20px 0 20px;
    }

    /*----------------
hammburger-menu
-----------------*/
    header {
        background: #f5f5f5;
        padding: 20px 0;
        margin-bottom: 40px;
    }

    header .inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .global ul {
        display: flex;
        gap: 20px;
        list-style: none;
        margin: 0;
        padding: 0;
        font-size: 18px;
    }



    .global a {
        text-decoration: none;
        color: #333;
        font-weight: bold;
    }

    /* Hamburger button */
    .menu-toggle {
        font-size: 35px;
        cursor: pointer;
        display: none;
        position: relative;
        z-index: 1001;
        /* keep above menu */
    }

    /* Responsive */
    @media (max-width: 540px) {
        .global {
            position: fixed;
            top: 0;
            right: -250px;
            /* 👈 hidden off-screen */
            width: 200px;
            height: 100%;
            background: beige;
            border-left: 1px solid #ddd;
            transition: right 0.3s ease;
            /* smooth slide */
            z-index: 1000;
            padding-top: 75px;
            /* space under header */
        }

        .global ul {
            display: flex;
            flex-direction: column;
            padding: 25px;
            gap: 15px;
            margin: 0;
        }

        .menu-toggle {
            display: block;
        }

        /* When menu is open */
        .global.show {
            right: 0;
        }
    }



    .main-img {
        width: 100%;
        height: auto;
        margin-bottom: 40px;
    }

    .single-whole-body h3 {
        font-size: 20px;
        padding-bottom: 5px;
        border-bottom: 1px dotted #000;
    }

    .single-whole-body {
        padding: 40px;
        border-radius: 10px;
        background-color: beige;
        margin-bottom: 30px;
    }

    .single-whole-body p {
        margin-bottom: 20px;
    }



    .single-whole-body article img {
        width: 100%;
        min-height: 100%;
        object-fit: cover;
        object-position: center 20%;
        overflow: hidden;
        margin-bottom: 20px;
    }

    .categories {
        margin-top: 0;
    }

    @media(540px<=width) {
        main .single-grid {
            display: grid;
            grid-template-columns: 750px 1fr;
            column-gap: 40px;
        }

        .single-whole-body .text {
            margin-bottom: 0;
        }

        /* .main-img {
            width: 100%;
            aspect-ratio: 1/1;
        } */

        .main-img img {
            width: 100%;
            max-height: 400px;
            object-fit: cover;
            object-position: center 60%;
            overflow: hidden;
            margin-bottom: 0;
            padding: 0 100px;
        }

        .categories-about {
            margin-top: 0;
        }

        .pc-single-style {
            display: grid;
            grid-template-columns: 200px 1fr;
            column-gap: 20px;
        }

        .img-box {
            width: 100%;
            aspect-ratio: 1/1;
        }

        .img-box img {
            width: 100%;
            min-height: 100%;
            object-fit: cover;
            object-position: center 20%;
            overflow: hidden;
        }


    }





}

@keyframes l7 {

    0%,
    70% {
        background-size: 100% 40%, 8px 8px
    }

    85% {
        background-size: 100% 120%, 8px 8px
    }

    100% {
        background-size: 100% 40%, 8px 8px
    }
}