@charset "UTF-8";
/* ==========================================================================
   tarareba_v2 - style.css
   シンプル・高速表示を優先したブログテーマ用スタイル
   構成は FLOCSS を意識し、下記の順にブロックを記述する
   foundation > layout(l-) > object/component(c-) > object/project(p-) > utility(u-)
   ========================================================================== */

/* --------------------------------------------------------------------------
   foundation : reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    /* 1rem = 10px 基準。読みやすさを優先しユーザーのブラウザ文字サイズ設定を尊重するため、
       vwによる文字サイズの固定（フルード化）は行わない */
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
        "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
    /* システムフォントのみを使用しWebフォント読み込みを行わない（表示速度優先） */
    font-size: 1.6rem;
    line-height: 1.8;
    color: #000;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

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

a {
    color: #cfa961;
    text-decoration: none;
    transition: 0.3s opacity;
}

a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   layout : l-
   -------------------------------------------------------------------------- */
.l-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2.4rem;
}

/* l-header ---------------------------------------------------------------- */
.l-header {
    border-bottom: 1px solid #f8f8f8;
    background-color: #fff;
}

.l-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.6rem 2.4rem;
}

.l-header__logo {
    font-size: 2.2rem;
    font-weight: bold;
    color: #000;
    letter-spacing: 0.02em;
}

.l-header__logo a {
    color: #000;
}

.l-header__logo a:hover {
    opacity: 1;
    text-decoration: none;
}

.l-header__nav-toggle {
    display: none;
}

.l-header__nav {
    display: flex;
}

.l-header__nav-list {
    display: flex;
    gap: 2.4rem;
}

.l-header__nav-link {
    color: #000;
    font-size: 1.4rem;
}

/* SPハンバーガーメニュー（JS不使用・チェックボックスによる開閉） */
.l-header__nav-toggle-label {
    display: none;
}

@media screen and (max-width: 768px) {
    .l-header__nav-toggle-label {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.4rem;
        width: 2.8rem;
        height: 2.8rem;
        cursor: pointer;
    }

    .l-header__nav-toggle-label span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #000;
    }

    .l-header__nav {
        display: none;
        width: 100%;
        border-top: 1px solid #f8f8f8;
    }

    .l-header__nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .l-header__nav-link {
        display: block;
        padding: 1.6rem 2.4rem;
        border-bottom: 1px solid #f8f8f8;
    }

    .l-header__nav-toggle:checked ~ .l-header__nav {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
    }

    .l-header__inner {
        position: relative;
        flex-wrap: wrap;
    }
}

/* l-footer ---------------------------------------------------------------- */
.l-footer {
    margin-top: 6.4rem;
    background-color: #f8f8f8;
    color: #666;
}

.l-footer__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 4.8rem 2.4rem 3.2rem;
}

.l-footer__nav-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3.2rem;
    margin-bottom: 2.4rem;
}

.l-footer__nav-link {
    color: #000;
    font-size: 1.5rem;
}

.l-footer__sub-nav-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.4rem;
    margin-bottom: 3.2rem;
}

.l-footer__sub-nav-link {
    color: #666;
    font-size: 1.3rem;
}

.l-footer__copyright {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
}

/* l-main -------------------------------------------------------------------*/
.l-main {
    padding: 4.8rem 0;
}

/* --------------------------------------------------------------------------
   object / component : c-
   -------------------------------------------------------------------------- */
.c-section {
    margin-bottom: 6.4rem;
}

.c-section:last-child {
    margin-bottom: 0;
}

.c-section__ttl {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2.4rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid #000;
}

.c-section__ttl-en {
    font-size: 1.2rem;
    color: #666;
    font-weight: normal;
    letter-spacing: 0.05em;
}

/* c-breadcrumb（パンくずリスト） */
.c-breadcrumb {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2.4rem;
}

.c-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.c-breadcrumb__item {
    display: flex;
    align-items: center;
}

.c-breadcrumb__item:not(:last-child)::after {
    content: "/";
    margin: 0 0.8rem;
    color: #666;
}

.c-breadcrumb__link {
    color: #666;
}

.c-breadcrumb__item--current {
    color: #000;
}

/* c-card（記事カード） */
.c-card {
    display: block;
}

.c-card__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f8f8f8;
    overflow: hidden;
    margin-bottom: 1.2rem;
}

.c-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c-card__category {
    display: inline-block;
    font-size: 1.1rem;
    color: #666;
    background-color: #f8f8f8;
    padding: 0.3rem 1rem;
    margin-bottom: 0.8rem;
}

.c-card__ttl {
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1.5;
    color: #000;
    margin-bottom: 0.6rem;
}

.c-card__date {
    font-size: 1.2rem;
    color: #666;
}

a.c-card:hover {
    opacity: 1;
}

a.c-card:hover .c-card__ttl {
    color: #cfa961;
    text-decoration: underline;
}

/* c-card--row（横並びの一覧用カード） */
.c-card--row {
    display: flex;
    gap: 1.6rem;
    align-items: flex-start;
}

.c-card--row .c-card__thumb {
    flex-shrink: 0;
    width: 12rem;
    margin-bottom: 0;
}

.c-card--row .c-card__body {
    flex: 1;
    min-width: 0;
}

/* c-btn */
.c-btn {
    display: inline-block;
    padding: 1.2rem 3.2rem;
    border: 1px solid #000;
    color: #000;
    font-size: 1.4rem;
}

.c-btn:hover {
    background-color: #000;
    color: #fff;
    opacity: 1;
    text-decoration: none;
}

/* c-tag-list（カテゴリ一覧） */
.c-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.c-tag-list__link {
    display: block;
    padding: 1rem 2rem;
    background-color: #f8f8f8;
    color: #000;
    font-size: 1.4rem;
}

.c-tag-list__link:hover {
    background-color: #000;
    color: #fff;
    opacity: 1;
    text-decoration: none;
}

/* c-pagination（一覧ページの記事送り／WordPress標準クラスに対応） */
.pagination,
.navigation.pagination {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 4.8rem;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.6rem;
    height: 3.6rem;
    padding: 0 1.2rem;
    color: #000;
    background-color: #f8f8f8;
    font-size: 1.3rem;
}

.page-numbers.current {
    background-color: #000;
    color: #fff;
}

a.page-numbers:hover {
    background-color: #000;
    color: #fff;
    opacity: 1;
    text-decoration: none;
}

/* c-inline-card（本文中に埋め込む過去記事カード。[getpost id="123"] ショートコード用） */
.c-inline-card {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 1.2rem;
    background-color: #f8f8f8;
}

.c-inline-card__thumb {
    display: block;
    flex-shrink: 0;
    width: 8rem;
    aspect-ratio: 16 / 9;
    background-color: #fff;
    overflow: hidden;
}

.c-inline-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c-inline-card__title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    line-height: 1.5;
}

a.c-inline-card:hover {
    opacity: 1;
}

a.c-inline-card:hover .c-inline-card__title {
    color: #cfa961;
    text-decoration: underline;
}

/* c-entry-content（投稿・固定ページ本文の共通タイポグラフィ） */
.c-entry-content {
    font-size: 1.6rem;
    line-height: 2;
    color: #000;
}

.c-entry-content > * + * {
    margin-top: 2.4rem;
}

.c-entry-content h1 {
    font-size: 2.6rem;
    font-weight: bold;
    line-height: 1.5;
    margin-top: 4.8rem;
}

.c-entry-content h2 {
    font-size: 2.2rem;
    font-weight: bold;
    line-height: 1.5;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #000;
    margin-top: 4.8rem;
}

.c-entry-content h3 {
    font-size: 1.9rem;
    font-weight: bold;
    line-height: 1.5;
    margin-top: 4rem;
}

.c-entry-content h4 {
    font-size: 1.7rem;
    font-weight: bold;
    line-height: 1.6;
    margin-top: 3.2rem;
}

.c-entry-content h5 {
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1.6;
    margin-top: 3.2rem;
}

.c-entry-content a {
    text-decoration: underline;
}

.c-entry-content strong,
.c-entry-content b {
    font-weight: bold;
}

.c-entry-content em,
.c-entry-content i {
    font-style: italic;
}

.c-entry-content ul,
.c-entry-content ol {
    padding-left: 2rem;
}

.c-entry-content ul {
    list-style: disc;
}

.c-entry-content ol {
    list-style: decimal;
}

.c-entry-content li + li {
    margin-top: 0.8rem;
}

.c-entry-content blockquote {
    margin: 0;
    padding: 1.6rem 2.4rem;
    background-color: #f8f8f8;
    border-left: 4px solid #cfa961;
    color: #666;
}

.c-entry-content figure {
    margin: 0;
}

.c-entry-content figcaption {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-top: 0.8rem;
}

.c-entry-content hr {
    border: none;
    border-top: 1px solid #f8f8f8;
}

.c-entry-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    background-color: #f8f8f8;
    padding: 0.2rem 0.6rem;
}

.c-entry-content pre {
    background-color: #f8f8f8;
    padding: 1.6rem;
    overflow-x: auto;
}

.c-entry-content pre code {
    padding: 0;
}

.c-entry-content mark {
    background: linear-gradient(transparent 60%, rgba(207, 169, 97, 0.4) 60%);
}

/* table（横スクロール対応） */
.c-entry-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 1.4rem;
}

.c-entry-content th,
.c-entry-content td {
    padding: 1.2rem 1.6rem;
    border: 1px solid #f8f8f8;
    text-align: left;
}

.c-entry-content th {
    background-color: #f8f8f8;
    font-weight: bold;
}

/*
 * 旧テーマ（マルウェア被害以前）の固定ページ本文に含まれる、
 * ショートコード由来のクラス（sc_marker / sc_frame_wrap 等）に対する
 * 簡易フォールバックスタイル。新規執筆では使用しない想定。
 */
.c-entry-content .sc_marker {
    background: linear-gradient(transparent 60%, rgba(207, 169, 97, 0.4) 60%);
}

.c-entry-content .sc_frame_wrap {
    border: 1px solid #f8f8f8;
    background-color: #f8f8f8;
}

.c-entry-content .sc_frame_title {
    padding: 1.2rem 1.6rem;
    background-color: #000;
    color: #fff;
    font-weight: bold;
    font-size: 1.4rem;
}

.c-entry-content .sc_frame_text {
    padding: 1.6rem;
}

.c-entry-content .sc_designlist ul {
    list-style: none;
    padding-left: 0;
}

.c-entry-content .sc_designlist li {
    position: relative;
    padding-left: 2.4rem;
}

.c-entry-content .sc_designlist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #cfa961;
    font-weight: bold;
}

.c-entry-content .sc_heading {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.6rem;
    background-color: #f8f8f8;
    font-weight: bold;
}

.c-entry-content .sc_heading .before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    background-color: #000;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   object / project : p-
   -------------------------------------------------------------------------- */
/* p-entries（トップページ：記事一覧グリッド） */
.p-entries__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.2rem;
}

.p-entries__list {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

@media screen and (max-width: 768px) {
    .p-entries__grid {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }
}

/* p-article（記事ページ） */
.p-article {
    max-width: 70rem;
    margin: 0 auto;
}

.p-article__header {
    margin-bottom: 2.4rem;
}

.p-article__category {
    display: inline-block;
    font-size: 1.2rem;
    color: #666;
    background-color: #f8f8f8;
    padding: 0.4rem 1.2rem;
    margin-bottom: 1.2rem;
}

.p-article__ttl {
    font-size: 2.6rem;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 1.6rem;
}

.p-article__meta {
    display: flex;
    gap: 1.6rem;
    font-size: 1.3rem;
    color: #666;
}

.p-article__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f8f8f8;
    overflow: hidden;
    margin-bottom: 3.2rem;
}

.p-article__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 本文タイポグラフィは共通コンポーネント .c-entry-content 側で定義する */

/* p-page（固定ページ：投稿ページと同様に幅を狭めたレイアウト） */
.p-page {
    max-width: 70rem;
    margin: 0 auto;
}

.p-page__header {
    margin-bottom: 2.4rem;
}

.p-page__ttl {
    font-size: 2.6rem;
    font-weight: bold;
    line-height: 1.5;
}

.p-page__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f8f8f8;
    overflow: hidden;
    margin: 2.4rem 0 3.2rem;
}

.p-page__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-article__footer {
    max-width: 70rem;
    margin: 4.8rem auto 0;
    padding-top: 3.2rem;
    border-top: 1px solid #f8f8f8;
}

.p-article__tag-heading {
    font-size: 1.3rem;
    font-weight: bold;
    color: #666;
    margin-bottom: 1.2rem;
}

.p-article__tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.p-article__tag-link {
    font-size: 1.3rem;
    color: #666;
    background-color: #f8f8f8;
    padding: 0.4rem 1.2rem;
}

.p-article__tag-link::before {
    content: "#";
    color: #cfa961;
}

/* p-related（関連記事：同一タグの記事一覧） */
.p-related {
    max-width: 70rem;
    margin-top: 6.4rem;
    margin-left: auto;
    margin-right: auto;
}

/* p-pager（前後の記事ナビ） */
.p-pager {
    max-width: 70rem;
    margin: 3.2rem auto 0;
    display: flex;
    justify-content: space-between;
    gap: 1.6rem;
}

.p-pager__link {
    flex: 1;
    font-size: 1.3rem;
    color: #000;
}

.p-pager__link--next {
    text-align: right;
}

.p-pager__label {
    display: block;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.4rem;
}

/* --------------------------------------------------------------------------
   utility : u-
   -------------------------------------------------------------------------- */
.u-ta-c {
    text-align: center;
}

.u-mt-lg {
    margin-top: 4.8rem;
}

@media screen and (max-width: 768px) {
    .u-sp-none {
        display: none;
    }
}
