@charset "UTF-8";

/*fontSizeSetting*/
html {
    font-size: 100%;
    scroll-behavior: smooth;
}

:root {
    --hover-color: #44dafd;
    --footer-bg: #d0d0d0;
    --footer-etc: #535252;
    --text-color: #000;
    --header-color: #006b9d;
}

body {
    font-family: "Hiragino Sans", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "Meiryo", "メイリオ", "Osaka", "ＭＳ Ｐゴシック", "MS P Gothic", sans-serif;
    color: var(--text-color);
    /*addition*/
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100vh;
    scroll-behavior: smooth;
}

.main-content {
    flex: 1;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

/*layout*/
.wrapper {
    max-width: 1000px;
    width: 90%;
    padding: 0 1.5rem;
    margin: 3rem auto 4rem;
}

.align-center {
    text-align: center;
}

/*headline*/
@font-face {
    font-family: "nagino";
    src: url("../font/nagino.otf") format("truetype");
    font-display: swap;
}

.font-nagino {
    font-family: "nagino", sans-serif;
    font-weight: normal;
}

/*header
-------------------------*/
.page-header {
    padding-top: .5rem;
}

.logo {
    width: 210px;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    font-size: 1.5rem;
    list-style: none;
    border-bottom: 2px dashed #a9a9a9;
}

.main-border {
    border-bottom: 2px dashed #a9a9a9;
}

.main-nav a {
    color: var(--header-color);
    transition: .5s;
}

.main-nav a:hover {
    color: var(--hover-color);
}

/*content
--------------------------*/
.nav-title {
    font-size: 1.5rem;
    text-align: center;
    margin-top: 1.6rem;
    line-height: 1.4;
    font-family: "nagino";
}

/**/

.introduction {
    text-align: center;
    line-height: 50px;
    font-size: 1.2rem;
}

.marker1 {
    background: linear-gradient(transparent 60%, #c8f4d9 60%)
}

.marker2 {
    background: linear-gradient(transparent 60%, #a2ecff 60%)
}

/*archive
------------------------*/

.heading-medium {
    font-size: 1.5rem;
    text-align: center;
}

.side-colum {
    list-style: none;
    text-align: center;
    margin-bottom: 4rem;
}

.side-colum li {
    border-bottom: 1px solid #a9a9a9;
}

.side-colum a {
    color: #006b9d;
    display: block;
    padding: .5rem;
    transition: .5s;
}

.side-colum a:hover {
    color: #44dafd;
}



/*footer
--------------------------*/
.page-hooter {
    position: relative;
    bottom: 0;
    width: 100%;
    height: 60px;
    background-color: var(--footer-bg);
    margin-top: auto;
}

.etc a {
    color: #4f4f4f;
}

.etc {
    padding-top: 4px;
    vertical-align: bottom;
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: .9rem;
    list-style: none;
}

.copyright {
    text-align: center;
    padding-top: 7px;
    font-size: .8rem;
}

/*index.html-mainContents
-----------------------------*/

.index-1 {
    margin-top: 1rem;
    border-bottom: 6px solid #b8babb;
    font-weight: bolder;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.post {
    height: 450px;
    padding: .8rem 1rem 0;
    margin-bottom: 3rem;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.post-title {
    font-weight: normal;
    margin-bottom: 1.25rem;
}

.post-date {
    font-size: 1rem;
    position: relative;
    top: 11px;
    color: #ff0000;
}

.post-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.article-title-instance {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: bold;
    margin: .3rem auto;
    color: #2c3e50;
}

.article-title-instance :hover {
    color: #006b9d;
}

.article-thumb {
    width: 6rem;
    height: auto;
    max-width: 100%;
    display: block;
}

/*for laptop
-----------------------------*/

@media (min-width: 800px) {
    .post-title {
        font-size: 2rem;
    }

    .post-date {
        font-size: 1.2rem;
        position: relative;
        top: 17px;
    }

    .home-contents {
        display: flex;
        justify-content: space-between;
        gap: 2rem;
        max-width: 1000px;
        margin: 0 auto;
    }

    .post {
        width: 75%;
    }

    .sidebar {
        width: 23%;
    }

    .sidebar .post-info {
        line-height: 1;
        margin-bottom: 1rem;
    }

    .bit {
        margin-top: 3rem;
    }

    .side-affiliate {
        margin-top: 3rem;
        position: sticky;
        top: 120px;
        align-self: flex-start;
    }
}



/*for template.html
-----------------------------*/

.date-time {
    font-size: 1.2em;
    color: #666;
    text-align: right;
}

.template-title {
    max-width: 80%;
    margin: 0 auto;
    font-weight: normal;
    text-align: center;
}

.template-box {
    background-color: #fff;
    padding: 1rem 1rem;
    opacity: 0.8;
}

.template-background {
    margin-top: .5rem;
    padding: 4rem 0rem;
    background-image: url(../images/background.jpg);
    background-size: cover;
    background-position: center;
}

.template-wrapper {
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    max-width: 1000px;
    width: 90%;
    padding: 0 1.5rem;
    margin: 1rem 2rem 4rem;
}

.template-nav {
    background-color: #f0f0f0;
    padding: 15px;
    margin-top: 1rem;
    margin-bottom: 40px;
    border-radius: 5px;
}

.template-nav a {
    color: #494949;
    text-decoration: none;
    margin-right: 20px;
    margin-top: .5rem;
    font-weight: bolder;
    cursor: pointer;
    display: block;
    padding-top: .5rem;
}

.template-nav a:hover {
    color: var(--text-color);
    font-weight: bolder;
}

.template-nav h2 {
    font-size: 1.2rem;
}

.template-nav p {
    color: #7f7f7f;
    font-weight: normal;
    margin-top: 0;
    font-size: .9rem;
    padding-left: 15px;
}

.template-section {
    margin-bottom: 80px;
}

.template-section h2 {
    border-bottom: 6px solid #a2ecff;
    font-weight: bolder;
}

.template-section h3 {
    margin-top: 1rem;
    border-bottom: 6px solid #b8babb;
    font-weight: bolder;
    font-size: 1.2rem;
}

.template-section p {
    margin-top: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.7rem;
}

.maintext {
    margin-top: 1.3rem;
    line-height: normal;
    font-size: .7rem;
}

.code-container {
    position: relative;
    margin-top: 1.5em;
}

pre.line-numbers {
    padding: auto;
    position: relative;
}

table {
    border-collapse: collapse;
    width: 99%;
    margin: 1rem auto;
    /* 表全体の横幅 */
}

th,
td {
    border: 1px solid black;
    text-align: center;
    padding: 10px;
    height: 60px;
}

th {
    height: 30px;
    background-color: hsl(172, 100%, 93%);
}

/*for murmur.html
-----------------------------*/

.article {
    background-color: white;
    border-radius: 8px;
    padding: 1em;
    margin-bottom: 1.5em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #2c3e50;
}

.article-body {
    font-size: 1em;
    line-height: 1.6;
    color: #333;
}

.bottan-layer {
    margin-bottom: 1rem;
}

.quote {
    border-left: 4px solid #ccc;
    padding-left: 1em;
    color: #666;
    margin: 1em 0;
    font-style: italic;
}

.pagination {
    text-align: center;
    margin-top: 2em;
}

.pagination button {
    margin: 0 5px;
    padding: 0.5em 1em;
    font-size: 1em;
    border: none;
    background: #eee;
    cursor: pointer;
}

.pagination button.active {
    background: #007BFF;
    color: white;
}

.highright {
    font-weight: bolder;
    color: rgb(255, 0, 0);
}

/* for archive->dropdown-menu
---------------------------------*/
.dropdown-menu {
    height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: #f8f8f8;
    padding-left: 0;
    margin-top: 0.3rem;
    list-style: none;
    box-sizing: border-box;
}

.dropdown-menu li a {
    display: block;
    padding: 0.4rem;
    color: #006b9d;
    text-align: center;
}

.dropdown-menu li a:hover {
    color: var(--hover-color);
}

/* class to trigger dropdown */
.dropdown.open .dropdown-menu {
    display: block;
    max-height: 500px;
}


/* advertising */

.affiliate-box {
    text-align: center;
    padding: 10px;
    margin: 10px auto;
    background-color: #fff;
    font-family: sans-serif;
}

.rakuten-affiliate-box {
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 10px;
    margin: 10px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    max-width: 300px;
    font-family: sans-serif;
}

.rakuten-affiliate-box:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


.rakuten-affiliate-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.rakuten-affiliate-image {
    max-width: 100%;
    border: none;
    margin-bottom: 8px;
}

.rakuten-affiliate-title {
    font-size: 14px;
    font-weight: bold;
    margin: 8px 0;
}

.rakuten-affiliate-button {
    background-color: #bf0000;
    /* 楽天っぽい赤 */
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
}

@media (max-width: 799px) {
    .side-affiliate {
        display: none;
    }
}