@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.7
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

:root {
    --webstack-ink: #18324e;
    --webstack-navy: #003577;
    --webstack-paper: #f4f7fb;
    --webstack-rule: #dbe5f0;
}

body.body {
    background-color: var(--webstack-paper);
}

#header-container #header {
    background-color: #fff;
    color: var(--webstack-ink);
}

#header-container .logo-header .site-name-text {
    color: var(--webstack-ink);
    font-size: clamp(2.3rem, 5vw, 3.85rem);
    font-weight: 800;
    letter-spacing: -.065em;
}

#header-container .logo-header a:hover {
    opacity: .8;
}

#header-container .tagline {
    color: #4c6075;
}

#navi {
    background-color: var(--webstack-navy);
}

#navi .navi-in a {
    color: #fff;
    font-weight: 600;
}

#navi .navi-in a:hover,
#navi .navi-in a:focus-visible {
    background: #164d8d;
}

.webstack-home {
    padding: 0 18px;
    margin: clamp(24px, 4vw, 50px) auto 32px;
    box-sizing: border-box;
}

.webstack-home-intro {
    padding: clamp(22px, 4vw, 46px);
    border-radius: 14px;
    background: linear-gradient(110deg, #06274d, #004181);
    color: #fff;
}

.webstack-home-intro h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(1.28rem, 3vw, 2.15rem);
    letter-spacing: -.02em;
    line-height: 1.5;
}

.webstack-home-intro p {
    margin: 10px 0 0;
    color: #e2efff;
    font-size: clamp(.86rem, 2vw, 1rem);
    line-height: 1.7;
}

.webstack-home-guides {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.webstack-home-guide {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: .35rem;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--webstack-rule);
    border-radius: 10px;
    background: #fff;
    color: var(--webstack-ink);
    text-decoration: none;
    line-height: 1.5;
}

.webstack-home-guide strong {
    color: var(--webstack-navy);
}

.webstack-home-guide span {
    color: #4c6075;
    font-size: .81rem;
}

.webstack-home-guide:hover,
.webstack-home-guide:focus-visible {
    border-color: #6192ca;
    background: #eef5fe;
}

.webstack-legacy-card,
.webstack-legacy-offer {
    display: block;
    margin: 1.25rem 0;
    padding: .85rem 1rem;
    border: 1px solid var(--webstack-rule);
    border-radius: 8px;
    background: #fff;
    color: var(--webstack-ink);
    overflow-wrap: anywhere;
}

.webstack-legacy-card {
    text-decoration: none;
}

.webstack-legacy-card:hover {
    border-color: #6192ca;
}

.webstack-legacy-label {
    display: block;
    margin-bottom: .25rem;
    color: var(--webstack-navy);
    font-size: .75em;
}

.webstack-legacy-button {
    display: inline-block;
    margin: .5em 0;
    padding: .5em .9em;
    border-radius: 5px;
    background: var(--webstack-navy);
    color: #fff;
    text-decoration: none;
}

.entry-content .ep-box {
    margin: 1em 0;
    padding: .9em 1em;
    border: 1px solid var(--webstack-rule);
    border-radius: 6px;
    background: #f7faff;
}

.entry-content .marker-halfYellow {
    background: linear-gradient(transparent 62%, #ffed9b 62%);
}

@media (max-width: 540px) {
    .webstack-home {
        padding-inline: 13px;
    }

    .webstack-home-guides {
        gap: 7px;
    }

    .webstack-home-guide {
        padding: 12px 8px;
    }

    .webstack-home-guide strong {
        font-size: .82rem;
    }

    .webstack-home-guide span {
        font-size: .72rem;
    }
}

/* Put the site's name, search and editorial paths within reach. */
#header-container #header-in {
    height: auto;
    min-height: 6.6rem;
}

#header-container .logo-header.logo-text {
    margin: 0;
    padding: .85rem 0;
    line-height: 1.1;
}

#header-container .logo-header .site-name-text {
    font-size: clamp(2rem, 4vw, 3.15rem);
}

#navi .menu-top > li > a {
    min-height: 2.8rem;
}

.webstack-home {
    margin-top: clamp(.9rem, 2.2vw, 2rem);
    margin-bottom: 9px;
}

.webstack-home-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 31%);
    gap: 20px;
    align-items: center;
    padding: clamp(1.1rem, 3vw, 2.4rem);
}

.webstack-home-intro h2 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    line-height: 1.45;
}

.webstack-home-intro h2 span {
    display: inline-block;
}

.webstack-home-intro p {
    margin-top: .4rem;
}

.webstack-home-search label {
    display: block;
    margin-bottom: .3rem;
    color: #e2efff;
    font-size: .8rem;
    font-weight: 600;
}

.webstack-home-search div {
    display: flex;
    gap: 6px;
}

.webstack-home-search input {
    min-width: 0;
    width: 100%;
    padding: .6rem .72rem;
    border: 1px solid #d3e4fb;
    border-radius: 6px;
    background: #fff;
    color: var(--webstack-ink);
    font: inherit;
    font-size: .9rem;
}

.webstack-home-search button {
    flex: 0 0 auto;
    padding: .6rem .8rem;
    border: 1px solid #b5d5ff;
    border-radius: 6px;
    background: #e3efff;
    color: var(--webstack-ink);
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
}

.webstack-home-search button:hover {
    background: #fff;
}

.webstack-home-search :focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.webstack-home-guides {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.webstack-home-guide {
    padding: .78rem .88rem;
}

.webstack-home-feed-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 1.65rem;
    padding: 0 0 .6rem;
    border-bottom: 1px solid var(--webstack-rule);
}

.webstack-home-feed-heading h2 {
    margin: 0;
    color: var(--webstack-ink);
    font-size: 1.26rem;
}

.webstack-home-feed-heading a {
    color: var(--webstack-navy);
    font-size: .85rem;
    text-underline-offset: .18em;
}

body.home .entry-card-snippet {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.sidebar .widget-title {
    color: var(--webstack-ink);
    background: #eef4fc;
}

.webstack-sitemap-section {
    margin-top: .75rem;
    border: 1px solid var(--webstack-rule);
    border-radius: 8px;
    background: #fff;
}

.webstack-sitemap-section summary {
    padding: .7rem 1rem;
    color: var(--webstack-navy);
    cursor: pointer;
}

.webstack-sitemap-section summary span {
    margin-inline-start: .75rem;
    color: #4c6075;
    font-size: .83rem;
}

.webstack-sitemap-section ul {
    margin: 0 0 1rem;
    padding-inline: 2.1rem 1rem;
}

@media (max-width: 760px) {
    .webstack-home-intro {
        grid-template-columns: 1fr;
        gap: .8rem;
    }

    .webstack-home-guides {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    #header-container #header-in {
        min-height: 3.55rem;
    }

    #header-container .logo-header.logo-text {
        padding: .48rem 0;
    }

    body.home #header-container #navi {
        display: none;
    }

    .webstack-home-intro {
        gap: .6rem;
        padding: .85rem 1rem;
    }

    .webstack-home-intro h2 {
        font-size: clamp(1.04rem, 4.6vw, 1.25rem);
        line-height: 1.35;
    }

    .webstack-home-guides {
        gap: .4rem;
        margin-top: .55rem;
    }

    .webstack-home-guide {
        padding: .55rem .65rem;
    }

    .webstack-home-feed-heading {
        margin-top: 1.1rem;
    }
}
