/* ==================================================
   サイト共通の基本設定
================================================== */

* {
    box-sizing: border-box;
}

:root {
    --navy: #263b4d;

    --blue: #58b9e9;
    --blue-light: #e4f5fd;

    --yellow: #ffd45c;
    --yellow-light: #fff5cf;

    --green: #58bc68;
    --green-light: #e6f7e5;

    --orange: #f4a064;
    --orange-light: #fff0e1;

    --white: #ffffff;

    --shadow:
        0 8px 24px rgba(46, 76, 96, 0.12);
}


body {
    margin: 0;

    color: var(--navy);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Hiragino Kaku Gothic ProN",
        "Yu Gothic",
        sans-serif;

    /*
     * 白をしっかり残した4色ギンガム
     */
    background-color: #fff;

    background-image:
        linear-gradient(
            90deg,
            transparent 0 24px,
            rgba(88, 185, 233, .30) 24px 38px,
            transparent 38px 62px,
            rgba(255, 212, 92, .27) 62px 76px,
            transparent 76px 100px,
            rgba(88, 188, 104, .24) 100px 114px,
            transparent 114px 138px,
            rgba(244, 160, 100, .20) 138px 152px,
            transparent 152px 176px
        ),
        linear-gradient(
            0deg,
            transparent 0 24px,
            rgba(88, 185, 233, .20) 24px 38px,
            transparent 38px 62px,
            rgba(255, 212, 92, .20) 62px 76px,
            transparent 76px 100px,
            rgba(88, 188, 104, .17) 100px 114px,
            transparent 114px 138px,
            rgba(244, 160, 100, .14) 138px 152px,
            transparent 152px 176px
        );

    background-size: 176px 176px;
}
/* ==================================================
   ヘッダー
================================================== */

.site-header {
    width: min(1100px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;

    margin-top: 28px;
    padding: 18px;

    display: grid;
    grid-template-columns: 1fr 2.6fr;
    gap: 18px;

    background: rgba(255, 255, 255, .97);
    border-radius: 22px;
    box-shadow: var(--shadow);
}


/* ==================================================
   ブランド
================================================== */

.brand {
    position: relative;
    padding: 14px 18px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    margin: 0 0 9px;

    font-size: 27px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .02em;
}

.brand-subtitle {
    margin: 0;

    color: #596d7b;

    font-size: 15px;
    font-weight: 700;
}

.brand-line {
    position: relative;

    width: 180px;
    height: 14px;

    margin-top: 5px;

    border-bottom: 3px solid #68c4ef;
    border-radius: 50%;
}


/* ==================================================
   ナビゲーション
================================================== */

.menu-toggle {
    display: none;
}

.main-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}


.nav-card {
    min-width: 0;
    min-height: 112px;
    padding: 15px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    color: var(--navy);
    text-decoration: none;

    border-radius: 15px;

    box-shadow:
        0 4px 12px rgba(45, 76, 96, .08);

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

.nav-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 7px 16px rgba(45, 76, 96, .13);
}

.nav-top {
    background: var(--blue-light);
}

.nav-articles {
    background: var(--yellow-light);
}

.nav-columns {
    background: var(--orange-light);
}

.nav-about {
    background: var(--green-light);
}

.nav-icon {
    position: relative;

    flex: 0 0 58px;
    width: 58px;
    height: 58px;
}

.nav-text {
    min-width: 0;
}

.nav-text strong {
    display: block;
    margin-bottom: 5px;

    font-size: 16px;
    font-weight: 800;
}

.nav-text span {
    display: block;

    color: #5e7180;

    font-size: 12px;
    line-height: 1.5;
}


/* ==================================================
   ページ共通パーツ
================================================== */

.page-icon {
    position: relative;
    width: 70px;
    height: 62px;
    margin: 0 auto 10px;
}

.article-list {
    display: grid;
    gap: 14px;
}

.article-list {
    display: grid;
    gap: 14px;
}

/* ← この位置にカード一式を追加 */

.article-card {
    position: relative;
    overflow: hidden;
    min-height: 92px;
    display: flex;
    align-items: center;
    padding: 18px 22px 18px 28px;
    background: #fff;
    border: 1px solid #e0e9ed;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(46, 76, 96, .07);
    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

.article-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 7px;
}

.article-card:nth-child(4n + 1)::before {
    background: var(--blue);
}

.article-card:nth-child(4n + 2)::before {
    background: var(--yellow);
}

.article-card:nth-child(4n + 3)::before {
    background: var(--green);
}

.article-card:nth-child(4n + 4)::before {
    background: var(--orange);
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 17px rgba(46, 76, 96, .12);
}

.article-card a {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--navy);
    text-decoration: none;
}

.article-number {
    flex: 0 0 62px;
    color: #75909f;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .06em;
}

.article-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.55;
}

.article-arrow {
    margin-left: auto;
    color: #9ab0bc;
    font-size: 22px;
    font-weight: 700;
}
/* ==================================================
   TOP：鉢植え
================================================== */

.plant-icon {
    position: relative;

    width: 58px;
    height: 58px;
}

.plant-stem {
    position: absolute;

    left: 28px;
    top: 10px;

    width: 4px;
    height: 27px;

    background: var(--green);
    border-radius: 4px;
}

.plant-leaf {
    position: absolute;

    top: 5px;

    width: 21px;
    height: 13px;

    background: var(--green);
}

.plant-leaf.left {
    left: 8px;

    border-radius: 18px 3px 18px 3px;
    transform: rotate(20deg);
}

.plant-leaf.right {
    right: 7px;

    border-radius: 3px 18px 3px 18px;
    transform: rotate(-20deg);
}

.plant-pot-top {
    position: absolute;

    left: 15px;
    top: 31px;

    width: 31px;
    height: 8px;

    background: #c9864d;
    border-radius: 4px;
}

.plant-pot {
    position: absolute;

    left: 19px;
    top: 37px;

    width: 23px;
    height: 17px;

    background: #b9723d;

    clip-path:
        polygon(
            0 0,
            100% 0,
            82% 100%,
            18% 100%
        );

    border-radius: 0 0 4px 4px;
}


/* ==================================================
   ARTICLES：鉛筆
================================================== */

.pencil-icon {
    position: absolute;

    left: 7px;
    top: 23px;

    width: 42px;
    height: 14px;

    background: var(--orange);
    border-radius: 4px;

    transform: rotate(-42deg);
}

.pencil-icon::before {
    content: "";

    position: absolute;

    left: -12px;
    top: 0;

    width: 0;
    height: 0;

    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 13px solid #e9c38d;
}

.pencil-icon::after {
    content: "";

    position: absolute;

    right: -9px;
    top: 0;

    width: 11px;
    height: 14px;

    background: #ef8567;
    border-radius: 0 4px 4px 0;
}

/* ==================================================
   COLUMNS：メモ
================================================== */

.column-icon {
    position: absolute;
    left: 10px;
    top: 7px;
    width: 38px;
    height: 46px;
    border: 4px solid var(--orange);
    border-radius: 4px;
    background: rgba(244, 160, 100, .06);
}

.column-icon::before,
.column-icon::after {
    content: "";
    position: absolute;
    left: 7px;
    width: 18px;
    height: 3px;
    background: var(--orange);
    border-radius: 3px;
}

.column-icon::before {
    top: 12px;
}

.column-icon::after {
    top: 23px;
}


/* ==================================================
   ABOUT：ノートPC
================================================== */

.laptop-icon {
    position: absolute;

    left: 6px;
    top: 8px;

    width: 45px;
    height: 31px;

    border: 4px solid var(--green);
    border-radius: 4px;

    background: rgba(88, 188, 104, .06);
}

.laptop-icon::before {
    content: "";

    position: absolute;

    left: -8px;
    bottom: -12px;

    width: 53px;
    height: 8px;

    background: var(--green);
    border-radius: 2px 2px 7px 7px;
}


/* ==================================================
   タブレット用ヘッダー
================================================== */

@media (max-width: 1100px) and (min-width: 621px) {

    .site-header {
        grid-template-columns: 1fr;
    }

    .brand {
        text-align: center;
    }

    .brand-line {
        margin-left: auto;
        margin-right: auto;
    }

    .main-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================================================
   スマホ用ヘッダー・ハンバーガーメニュー
================================================== */

@media (max-width: 620px) {

    .site-header {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;

        margin-top: 12px;
        padding: 12px;

    }

    .brand {
        text-align: left;
    }

    .brand-title {
        font-size: 20px;
    }

    .brand-subtitle,
    .brand-line {
        display: none;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
        padding: 9px;

        border: 0;
        border-radius: 10px;
        background: var(--blue-light);

        cursor: pointer;

        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        flex-shrink: 0;
    }

    .menu-toggle span {
        display: block;

        width: 100%;
        height: 3px;

        background: var(--navy);
        border-radius: 999px;
    }

    .main-nav {
        display: none;
　　　　grid-template-columns: 1fr;
    }

    .main-nav.is-open {
        display: grid;
        grid-template-columns: 1fr;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        z-index: 100;

        padding: 12px;

        background: #ffffff;
        border-radius: 16px;
        box-shadow: var(--shadow);
    }
}
/* ==================================================
   ページネーション
================================================== */

.pagination {
    margin-top: 35px;

    display: flex;
    justify-content: center;

    gap: 9px;
}

.pagination a,
.pagination span {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;
}

.pagination a {
    color: #4f6978;

    background: #fff;

    border: 1px solid #d6e2e8;
}

.pagination a:hover {
    background: var(--blue-light);
}

.pagination .current {
    color: #fff;

    background: var(--navy);

    border: 1px solid var(--navy);
}
