/*
Theme Name: なみかたマガジン Pro
Theme URI: https://www.umai.co.jp/magazine/
Author: なみかた羊肉店
Description: EC-CUBE本店のデザイン資産を利用するWordPressマガジンテーマ
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.1
Text Domain: namikata-pro
*/

/* WordPress側の最小調整 */
.nm-magazine-main {
    padding: 48px 20px 80px;
}

.nm-magazine-wrap {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.nm-article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 24px;
}

.nm-article-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f3f3;
}

.nm-article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nm-article-card__title {
    margin: 14px 0 8px;
    font-size: 18px;
    line-height: 1.65;
}

.nm-article-card__meta {
    font-size: 12px;
    opacity: 0.7;
}

.nm-entry {
    width: min(900px, 100%);
    margin: 0 auto;
}

.nm-entry__title {
    margin: 0 0 20px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.4;
}

.nm-entry__thumbnail img {
    width: 100%;
    height: auto;
}

.nm-entry__content {
    margin-top: 32px;
    font-size: 16px;
    line-height: 2;
}

.nm-entry__content img {
    max-width: 100%;
    height: auto;
}

.nm-pagination {
    margin-top: 48px;
    text-align: center;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.nm-site-name {
    margin-left: 12px;
    font-size: 12px;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.nm-search-form {
    display: flex;
    align-items: center;
}

.nm-search-form input {
    min-width: 180px;
}

@media (max-width: 1023px) {
    .nm-article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nm-site-name {
        display: none;
    }
}

@media (max-width: 767px) {
    .nm-magazine-main {
        padding: 28px 16px 56px;
    }

    .nm-article-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* WordPress管理バーと固定ヘッダーの重なり対策 */
body.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .header {
        top: 46px;
    }
}

/* ヘッダー分の余白を確保 */
.ec-layoutRole {
    padding-top: 0;
}

/* WordPress記事内のリンク色を本店デザインへ合わせる */
.nm-magazine-main a {
    color: #111;
    text-decoration: none;
}

.nm-magazine-main a:hover {
    opacity: 0.7;
}

/* 記事タイトル */
.nm-article-card__title a {
    color: #111;
}

/* ヘッダー・フッターのリンク色を固定 */
.header a,
footer a {
    color: inherit;
    text-decoration: none;
}

/* ヘッダーが画面外へずれないようにする */
.header {
    z-index: 1000;
}

/* WordPress管理画面ログイン中の本文位置 */
body.admin-bar .nm-magazine-main {
    margin-top: 0;
}

/* EC-CUBEヘッダー表示補正 */
html {
    font-size: 62.5%;
}

.header .link-namikata,
.header .link-wan {
    color: rgba(255, 255, 255, 0.99);
}

.header .link-namikata:hover,
.header .link-wan:hover {
    color: rgba(255, 255, 255, 0.99);
}

/* ヘッダー上段リンクを画面右端まで合わせる */
@media (min-width: 1025px) {
    .header-top--right {
        margin-right: -2.47%;
    }
}

/* ヘッダー検索窓の縮小防止 */
@media (min-width: 1025px) {
    .header .header--search-wrap {
        flex: 0 0 30rem;
        width: 30rem;
        min-width: 30rem;
    }
}

/* ヘッダー商品検索の内部幅補正 */
@media (min-width: 1025px) {
    .header .ec-headerSearch__keyword {
        width: 100% !important;
        max-width: none !important;
    }

    .header .ec-headerSearch__keyword .ec-input {
        position: relative;
        width: 100% !important;
        max-width: none !important;
    }

    .header .ec-headerSearch__keyword input[type="search"].header--search {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box;
    }
}

/* ヘッダー商品検索の形状最終補正 */
@media (min-width: 1025px) {
    .header .ec-headerSearch__keyword .ec-input {
        position: relative;
        width: 100% !important;
        overflow: hidden !important;
        border-radius: 4px !important;
    }

    .header .ec-headerSearch__keyword input[type="search"].header--search {
        width: 100% !important;
        height: 4rem !important;
        padding: 0 4.5rem 0 1rem !important;
        border: 1px solid #cccccc !important;
        border-radius: 4px !important;
        background: #ffffff !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }

    .header .ec-headerSearch__keywordBtn {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        left: auto !important;
        width: 4rem !important;
        height: 4rem !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 4px 4px 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
        translate: none !important;
    }

    .header .ec-headerSearch__keywordBtn .ec-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
    }

    .header .ec-headerSearch__keywordBtn .ec-icon img {
        display: block !important;
        width: 1.6rem !important;
        height: 1.6rem !important;
        margin: 0 !important;
    }
}

/* ヘッダー商品検索の二重枠を解消 */
@media (min-width: 1025px) {
    .header .ec-headerSearch,
    .header .ec-headerSearch .searchform,
    .header .ec-headerSearch__keyword,
    .header .ec-headerSearch__keyword .ec-input {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        outline: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .header .ec-headerSearch__keyword .ec-input {
        position: relative !important;
        width: 100% !important;
        height: 4rem !important;
        overflow: visible !important;
        border-radius: 0 !important;
    }

    .header .ec-headerSearch__keyword input[type="search"].header--search {
        display: block !important;
        width: 100% !important;
        height: 4rem !important;
        margin: 0 !important;
        padding: 0 4.5rem 0 1rem !important;
        border: 1px solid #cccccc !important;
        border-radius: 4px !important;
        outline: none !important;
        background: #ffffff !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }

    .header .ec-headerSearch__keywordBtn {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }
}

/* 固定ヘッダーと本文の重なりを解消 */
@media (max-width: 1024px) {
    .ec-layoutRole {
        padding-top: 8rem;
    }
}

@media (max-width: 767px) {
    .ec-layoutRole {
        padding-top: 7.2rem;
    }
}

/* マガジン一覧見出し */
.nm-page-header {
    margin-bottom: 28px;
}

.nm-page-header h1 {
    margin: 0;
    color: #111;
    font-family: "Noto Serif JP", serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.5;
}

/* カテゴリナビ */
.nm-category-nav {
    margin-bottom: 40px;
    border-top: 1px solid #dedede;
    border-bottom: 1px solid #dedede;
}

.nm-category-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nm-category-nav__item {
    margin: 0;
    padding: 0;
}

.nm-category-nav__link {
    position: relative;
    display: block;
    padding: 16px 22px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

.nm-category-nav__link::after {
    position: absolute;
    right: 22px;
    bottom: -1px;
    left: 22px;
    height: 2px;
    background: transparent;
    content: "";
}

.nm-category-nav__link.is-current {
    color: #111;
    font-weight: 700;
}

.nm-category-nav__link.is-current::after {
    background: #a18f23;
}

/* 記事カードのカテゴリ */
.nm-article-card__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.nm-article-card__category {
    display: inline-block;
    padding: 4px 9px;
    border: 1px solid #a18f23;
    color: #806f18 !important;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
}

.nm-article-card__category:hover {
    background: #a18f23;
    color: #fff !important;
    opacity: 1 !important;
}

.nm-article-card__categories + .nm-article-card__title {
    margin-top: 8px;
}

.nm-article-card__excerpt {
    margin-top: 12px;
    color: #555;
    font-size: 14px;
    line-height: 1.8;
}

.nm-article-card__excerpt p {
    margin: 0;
}

.nm-no-posts {
    margin: 48px 0;
    font-size: 16px;
    text-align: center;
}

@media (max-width: 767px) {
    .nm-page-header {
        margin-bottom: 20px;
    }

    .nm-page-header h1 {
        font-size: 26px;
    }

    .nm-category-nav {
        margin-right: -16px;
        margin-bottom: 28px;
        margin-left: -16px;
        overflow-x: auto;
        border-top: 1px solid #dedede;
        border-bottom: 1px solid #dedede;
        -webkit-overflow-scrolling: touch;
    }

    .nm-category-nav__list {
        flex-wrap: nowrap;
        width: max-content;
        min-width: 100%;
        padding: 0 6px;
    }

    .nm-category-nav__link {
        padding: 14px 12px;
        font-size: 13px;
    }

    .nm-category-nav__link::after {
        right: 12px;
        left: 12px;
    }

    .nm-article-card__categories {
        margin-top: 12px;
    }

    .nm-article-card__title {
        margin-top: 8px;
    }
}

/* ==================================================
   記事詳細ページ
================================================== */

/* 記事全体 */
.nm-entry {
    width: min(900px, 100%);
    margin: 0 auto;
    color: #333;
}

/* 記事ヘッダー */
.nm-entry > header {
    margin-bottom: 32px;
}

.nm-entry > header .nm-article-card__meta {
    margin-bottom: 12px;
    color: #777;
    font-size: 13px;
    letter-spacing: 0.04em;
    opacity: 1;
}

/* 記事タイトル H1 */
.nm-entry__title {
    position: relative;
    margin: 0;
    padding-bottom: 22px;
    color: #111;
    font-family: "Noto Serif JP", serif;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0.02em;
}

.nm-entry__title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 64px;
    height: 3px;
    background: #a18f23;
    content: "";
}

/* メイン画像 */
.nm-entry__thumbnail {
    margin-bottom: 48px;
}

.nm-entry__thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* 本文全体 */
.nm-entry__content {
    margin-top: 0;
    color: #333;
    font-size: 16px;
    line-height: 2;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
}

/* 本文の段落 */
.nm-entry__content p {
    margin: 0 0 1.8em;
}

/* 本文 H2 */
.nm-entry__content h2 {
    position: relative;
    margin: 64px 0 28px;
    padding: 18px 22px 18px 28px;
    border-left: 5px solid #a18f23;
    background: #f6f4ee;
    color: #111;
    font-family: "Noto Serif JP", serif;
    font-size: 27px;
    font-weight: 600;
    line-height: 1.55;
    letter-spacing: 0.02em;
}

/* H2直前が画像の場合の余白調整 */
.nm-entry__content figure + h2,
.nm-entry__content img + h2 {
    margin-top: 56px;
}

/* 本文 H3 */
.nm-entry__content h3 {
    position: relative;
    margin: 44px 0 20px;
    padding: 0 0 12px 18px;
    border-bottom: 1px solid #d9d4c8;
    color: #222;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.65;
}

.nm-entry__content h3::before {
    position: absolute;
    top: 0.35em;
    bottom: 0.35em;
    left: 0;
    width: 4px;
    border-radius: 2px;
    background: #a18f23;
    content: "";
}

/* 本文 H4 */
.nm-entry__content h4 {
    margin: 36px 0 16px;
    padding-left: 14px;
    border-left: 3px solid #333;
    color: #222;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.7;
}

/* H5・H6 */
.nm-entry__content h5,
.nm-entry__content h6 {
    margin: 30px 0 14px;
    color: #333;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
}

/* 見出し直後の余白 */
.nm-entry__content h2 + p,
.nm-entry__content h3 + p,
.nm-entry__content h4 + p,
.nm-entry__content h5 + p,
.nm-entry__content h6 + p {
    margin-top: 0;
}

/* 箇条書き・番号付きリスト */
.nm-entry__content ul,
.nm-entry__content ol {
    margin: 0 0 2em;
    padding: 20px 24px 20px 48px;
    border: 1px solid #e1ded6;
    background: #faf9f6;
}

.nm-entry__content ul {
    list-style: disc;
}

.nm-entry__content ol {
    list-style: decimal;
}

.nm-entry__content li {
    margin: 0.45em 0;
    padding-left: 0.2em;
    list-style: inherit;
    line-height: 1.8;
}

.nm-entry__content li::marker {
    color: #a18f23;
    font-weight: 700;
}

/* 入れ子リスト */
.nm-entry__content ul ul,
.nm-entry__content ul ol,
.nm-entry__content ol ul,
.nm-entry__content ol ol {
    margin: 0.7em 0 0;
    padding: 0 0 0 24px;
    border: 0;
    background: transparent;
}

/* 本文画像・figure */
.nm-entry__content figure {
    max-width: 100%;
    margin: 40px 0;
}

.nm-entry__content figure img,
.nm-entry__content > img,
.nm-entry__content p > img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-right: auto;
    margin-left: auto;
    border-radius: 4px;
}

.nm-entry__content > img,
.nm-entry__content p > img {
    margin-top: 32px;
    margin-bottom: 32px;
}

/* 画像キャプション */
.nm-entry__content figcaption,
.nm-entry__content .wp-element-caption,
.nm-entry__content .wp-caption-text {
    margin-top: 10px;
    color: #777;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

/* 本文リンク */
.nm-entry__content a {
    color: #806f18;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.nm-entry__content a:hover {
    color: #5f5212;
    opacity: 1;
}

/* 引用 */
.nm-entry__content blockquote {
    position: relative;
    margin: 40px 0;
    padding: 26px 30px 26px 54px;
    border: 0;
    border-left: 4px solid #a18f23;
    background: #f7f7f5;
    color: #555;
}

.nm-entry__content blockquote::before {
    position: absolute;
    top: 12px;
    left: 18px;
    color: #c9b95e;
    font-family: Georgia, serif;
    font-size: 38px;
    line-height: 1;
    content: "“";
}

.nm-entry__content blockquote p:last-child {
    margin-bottom: 0;
}

/* 強調 */
.nm-entry__content strong {
    color: #111;
    font-weight: 700;
}

/* 区切り線 */
.nm-entry__content hr,
.nm-entry__content .wp-block-separator {
    width: 100%;
    margin: 56px 0;
    border: 0;
    border-top: 1px solid #d9d9d9;
}

/* 表 */
.nm-entry__content .wp-block-table,
.nm-entry__content .table-wrap {
    margin: 36px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nm-entry__content table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
    line-height: 1.7;
}

.nm-entry__content th,
.nm-entry__content td {
    padding: 14px 16px;
    border: 1px solid #dcdcdc;
    text-align: left;
    vertical-align: top;
}

.nm-entry__content th {
    background: #f2f0e9;
    color: #222;
    font-weight: 700;
}

/* コード */
.nm-entry__content pre {
    margin: 36px 0;
    padding: 20px;
    overflow-x: auto;
    border-radius: 4px;
    background: #222;
    color: #f5f5f5;
    font-size: 14px;
    line-height: 1.7;
}

.nm-entry__content code {
    padding: 0.15em 0.4em;
    border-radius: 3px;
    background: #f0eee8;
    color: #333;
    font-family: Consolas, Monaco, monospace;
}

.nm-entry__content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

/* ボタン */
.nm-entry__content .wp-block-button {
    margin: 32px 0;
}

.nm-entry__content .wp-block-button__link {
    display: inline-block;
    padding: 14px 28px;
    border: 1px solid #333;
    border-radius: 3px;
    background: #333;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}

.nm-entry__content .wp-block-button__link:hover {
    background: #fff;
    color: #333 !important;
    opacity: 1;
}

/* 埋め込み */
.nm-entry__content iframe,
.nm-entry__content video {
    max-width: 100%;
}

/* スマホ */
@media (max-width: 767px) {
    .nm-entry > header {
        margin-bottom: 24px;
    }

    .nm-entry > header .nm-article-card__meta {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .nm-entry__title {
        padding-bottom: 18px;
        font-size: 27px;
        line-height: 1.5;
    }

    .nm-entry__title::after {
        width: 48px;
        height: 2px;
    }

    .nm-entry__thumbnail {
        margin-bottom: 32px;
    }

    .nm-entry__thumbnail img {
        border-radius: 2px;
    }

    .nm-entry__content {
        font-size: 15px;
        line-height: 1.95;
    }

    .nm-entry__content p {
        margin-bottom: 1.7em;
    }

    .nm-entry__content h2 {
        margin: 48px -4px 22px;
        padding: 15px 16px 15px 19px;
        border-left-width: 4px;
        font-size: 22px;
        line-height: 1.55;
    }

    .nm-entry__content h3 {
        margin: 36px 0 18px;
        padding: 0 0 10px 15px;
        font-size: 18px;
        line-height: 1.65;
    }

    .nm-entry__content h3::before {
        width: 3px;
    }

    .nm-entry__content h4 {
        margin: 30px 0 14px;
        padding-left: 12px;
        font-size: 16px;
    }

    .nm-entry__content ul,
    .nm-entry__content ol {
        margin-bottom: 1.8em;
        padding: 16px 16px 16px 40px;
    }

    .nm-entry__content figure {
        margin: 30px 0;
    }

    .nm-entry__content > img,
    .nm-entry__content p > img {
        margin-top: 24px;
        margin-bottom: 24px;
        border-radius: 2px;
    }

    .nm-entry__content blockquote {
        margin: 30px 0;
        padding: 22px 18px 22px 42px;
    }

    .nm-entry__content blockquote::before {
        top: 11px;
        left: 13px;
        font-size: 32px;
    }

    .nm-entry__content hr,
    .nm-entry__content .wp-block-separator {
        margin: 42px 0;
    }

    .nm-entry__content table {
        font-size: 13px;
    }

    .nm-entry__content th,
    .nm-entry__content td {
        padding: 11px 12px;
    }
}

/* ===== NAMIKATA PRODUCT CARD START ===== */

.nm-entry__content .nm-product-card {
    display: grid;
    grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);
    gap: 34px;
    align-items: stretch;
    margin: 56px 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #ddd9cf;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.nm-entry__content .nm-product-card__image {
    display: block;
    min-height: 310px;
    overflow: hidden;
    background: #f4f2ed;
    text-decoration: none;
}

.nm-entry__content .nm-product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 310px;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.nm-entry__content .nm-product-card__image:hover img {
    transform: scale(1.025);
}

.nm-entry__content .nm-product-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 34px 34px 0;
}

.nm-entry__content .nm-product-card__label {
    width: fit-content;
    margin-bottom: 16px;
    padding: 6px 11px;
    border: 0;
    background: #eeeeee;
    color: #333333;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.05em;
}

.nm-entry__content .nm-product-card__title {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #171717;
    font-family: "Noto Serif JP", serif;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.65;
}

.nm-entry__content .nm-product-card__title::before,
.nm-entry__content .nm-product-card__title::after {
    display: none;
}

.nm-entry__content .nm-product-card__title a {
    color: inherit;
    text-decoration: none;
}

.nm-entry__content .nm-product-card__title a:hover {
    color: #806f18;
}

.nm-entry__content .nm-product-card__text {
    margin: 0 0 23px;
    color: #555;
    font-size: 14px;
    line-height: 1.9;
}

.nm-entry__content .nm-product-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 330px);
    margin-top: auto;
    padding: 14px 18px;
    border: 1px solid #2e2e2e;
    background: #2e2e2e;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.nm-entry__content .nm-product-card__button:hover {
    background: #fff;
    color: #2e2e2e;
    opacity: 1;
}

.nm-entry__content .nm-product-card__button span {
    margin-left: 20px;
    font-size: 18px;
    line-height: 1;
}

.nm-entry__content .nm-product-card-fallback {
    margin: 40px 0;
    padding: 22px;
    border: 1px solid #ddd9cf;
    background: #faf9f6;
    text-align: center;
}

.nm-entry__content .nm-product-card-fallback a {
    font-weight: 700;
}

@media (max-width: 767px) {
    .nm-entry__content .nm-product-card {
        grid-template-columns: 1fr;
        gap: 0;
        margin: 42px 0;
    }

    .nm-entry__content .nm-product-card__image {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .nm-entry__content .nm-product-card__image img {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .nm-entry__content .nm-product-card__body {
        padding: 24px 20px 22px;
    }

    .nm-entry__content .nm-product-card__label {
        margin-bottom: 11px;
        font-size: 11px;
    }

    .nm-entry__content .nm-product-card__title {
        margin-bottom: 13px;
        font-size: 19px;
        line-height: 1.6;
    }

    .nm-entry__content .nm-product-card__text {
        margin-bottom: 19px;
        font-size: 13px;
    }

    .nm-entry__content .nm-product-card__button {
        width: 100%;
        padding: 13px 15px;
        font-size: 13px;
    }
}

/* ===== NAMIKATA PRODUCT CARD END ===== */

/* ===== NAMIKATA NOTE CARD START ===== */

.nm-entry__content .nm-note-card {
    display: grid;
    grid-template-columns: minmax(250px, 40%) minmax(0, 1fr);
    gap: 0;
    margin: 48px 0;
    overflow: hidden;
    border: 1px solid #d9d9d9;
    background: #fff;
}

.nm-entry__content .nm-note-card__image {
    display: block;
    min-height: 260px;
    overflow: hidden;
    background: #f2f2f2;
    text-decoration: none;
}

.nm-entry__content .nm-note-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nm-entry__content .nm-note-card__image:hover img {
    transform: scale(1.02);
}

.nm-entry__content .nm-note-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 32px;
}

.nm-entry__content .nm-note-card__source {
    width: fit-content;
    margin-bottom: 14px;
    padding: 5px 10px;
    background: #eeeeee;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.05em;
}

.nm-entry__content .nm-note-card__title {
    margin: 0 0 14px;
    color: #171717;
    font-family: "Noto Serif JP", serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.65;
}

.nm-entry__content .nm-note-card__title a {
    color: inherit;
    text-decoration: none;
}

.nm-entry__content .nm-note-card__title a:hover {
    color: #555;
    opacity: 1;
}

.nm-entry__content .nm-note-card__description {
    display: -webkit-box;
    margin: 0 0 20px;
    overflow: hidden;
    color: #555;
    font-size: 14px;
    line-height: 1.9;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.nm-entry__content .nm-note-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 260px);
    margin-top: auto;
    padding: 13px 17px;
    border: 1px solid #333;
    background: #333;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}

.nm-entry__content .nm-note-card__link:hover {
    background: #fff;
    color: #333;
    opacity: 1;
}

.nm-entry__content .nm-note-card__link span {
    margin-left: 18px;
    font-size: 17px;
}

.nm-entry__content .nm-note-card-fallback {
    margin: 40px 0;
    padding: 20px;
    border: 1px solid #d9d9d9;
    background: #f7f7f7;
    text-align: center;
}

@media (max-width: 767px) {
    .nm-entry__content .nm-note-card {
        grid-template-columns: 1fr;
        margin: 38px 0;
    }

    .nm-entry__content .nm-note-card__image {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .nm-entry__content .nm-note-card__image img {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .nm-entry__content .nm-note-card__body {
        padding: 22px 20px;
    }

    .nm-entry__content .nm-note-card__source {
        margin-bottom: 11px;
        font-size: 11px;
    }

    .nm-entry__content .nm-note-card__title {
        margin-bottom: 12px;
        font-size: 19px;
    }

    .nm-entry__content .nm-note-card__description {
        margin-bottom: 18px;
        font-size: 13px;
        -webkit-line-clamp: 4;
    }

    .nm-entry__content .nm-note-card__link {
        width: 100%;
        font-size: 13px;
    }
}

/* ===== NAMIKATA NOTE CARD END ===== */

/* ===== NAMIKATA AUTHOR BOX START ===== */

.nm-author-box {
    margin-top: 72px;
    padding-top: 32px;
    border-top: 1px solid #d7d7d7;
    color: #333;
}

.nm-author-box__heading {
    margin-bottom: 22px;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.08em;
}

.nm-author-box__inner {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.nm-author-box__image img {
    display: block;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
}

.nm-author-box__body {
    min-width: 0;
}

.nm-author-box__name {
    margin-bottom: 10px;
    color: #171717;
    font-family: "Noto Serif JP", serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
}

.nm-author-box__description {
    margin: 0 0 17px;
    color: #555;
    font-size: 14px;
    line-height: 1.9;
}

.nm-author-box__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.nm-author-box__links a {
    position: relative;
    padding-bottom: 2px;
    border-bottom: 1px solid #777;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}

.nm-author-box__links a:hover {
    color: #777;
    opacity: 1;
}

@media (max-width: 767px) {
    .nm-author-box {
        margin-top: 52px;
        padding-top: 26px;
    }

    .nm-author-box__heading {
        margin-bottom: 18px;
        font-size: 12px;
    }

    .nm-author-box__inner {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 16px;
    }

    .nm-author-box__image img {
        width: 76px;
        height: 76px;
    }

    .nm-author-box__name {
        margin-bottom: 8px;
        font-size: 18px;
    }

    .nm-author-box__description {
        grid-column: 1 / -1;
        margin-top: 12px;
        margin-bottom: 15px;
        font-size: 13px;
        line-height: 1.85;
    }

    .nm-author-box__links {
        grid-column: 1 / -1;
        gap: 9px 18px;
    }

    .nm-author-box__links a {
        font-size: 12px;
    }
}

/* ===== NAMIKATA AUTHOR BOX END ===== */

/* ===== NAMIKATA AUTHOR SNS ICONS START ===== */

.nm-author-box__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nm-author-box__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #d7d7d7;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font-size: 0;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.nm-author-box__links a::before {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.nm-author-box__links a[href*="instagram.com"]::before {
    content: "IG";
}

.nm-author-box__links a[href*="x.com"]::before {
    content: "X";
    font-size: 16px;
    font-weight: 500;
}

.nm-author-box__links a[href*="note.com"]::before {
    content: "note";
    font-size: 11px;
    font-weight: 700;
}

.nm-author-box__links a:hover {
    border-color: #222;
    background: #222;
    color: #fff;
    opacity: 1;
}

@media (max-width: 767px) {
    .nm-author-box__links a {
        width: 38px;
        height: 38px;
    }
}

/* ===== NAMIKATA AUTHOR SNS ICONS END ===== */

/* ===== NAMIKATA AUTHOR SNS SVG ICONS START ===== */

.nm-author-box__links a {
    width: 40px;
    height: 40px;
    border: 1px solid #d8d8d8;
    border-radius: 50%;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    font-size: 0;
}

.nm-author-box__links a::before {
    display: none;
}

.nm-author-box__links a[href*="instagram.com"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5' ry='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='%23222' stroke='none'/%3E%3C/svg%3E");
}

.nm-author-box__links a[href*="x.com"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23222'%3E%3Cpath d='M18.244 2H21l-6.56 7.497L22 22h-5.828l-4.565-5.965L6.383 22H3.625l6.981-7.979L2 2h5.976l4.126 5.455L18.244 2Zm-.967 18h1.527L7.147 3.895H5.508L17.277 20Z'/%3E%3C/svg%3E");
}

.nm-author-box__links a[href*="note.com"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='3' fill='none' stroke='%23222' stroke-width='1.8'/%3E%3Cpath d='M8 16V8h2.2l3.6 5.2V8H16v8h-2.1l-3.7-5.3V16H8Z' fill='%23222'/%3E%3C/svg%3E");
}

.nm-author-box__links a:hover {
    border-color: #222;
    background-color: #f5f5f5;
    opacity: 1;
}

@media (max-width: 767px) {
    .nm-author-box__links a {
        width: 38px;
        height: 38px;
        background-size: 17px 17px;
    }
}

/* ===== NAMIKATA AUTHOR SNS SVG ICONS END ===== */

/* ===== NAMIKATA OFFICIAL AUTHOR SNS ICONS START ===== */

.nm-author-box__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nm-author-box__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d8d8d8;
    border-radius: 50%;
    background-color: #fff;
    background-image: none !important;
    color: #222;
    font-size: inherit;
    line-height: 1;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.nm-author-box__links a::before,
.nm-author-box__links a::after {
    display: none !important;
    content: none !important;
}

.nm-author-box__links a img {
    display: block;
    width: auto;
    max-width: 22px;
    height: 20px;
    max-height: 22px;
    margin: 0;
    border: 0;
    border-radius: 0;
    object-fit: contain;
}

.nm-author-box__links a[href*="instagram.com"] img {
    width: 20px;
    height: 20px;
}

.nm-author-box__links a[href*="x.com"] img {
    width: 18px;
    height: 18px;
}

.nm-author-box__links a[href*="note.com"] img {
    width: 22px;
    height: 22px;
}

.nm-author-box__links a:hover {
    border-color: #999;
    background-color: #f4f4f4;
    color: #222;
    opacity: 1;
    transform: translateY(-1px);
}

.nm-author-box__links a:focus-visible {
    outline: 2px solid #333;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .nm-author-box__links a {
        width: 40px;
        height: 40px;
    }
}

/* ===== NAMIKATA OFFICIAL AUTHOR SNS ICONS END ===== */

/* ===== NAMIKATA AUTHOR SP LAYOUT START ===== */

@media (max-width: 767px) {
    .nm-author-box {
        margin-top: 52px;
        padding-top: 26px;
    }

    .nm-author-box__heading {
        margin-bottom: 20px;
        font-size: 12px;
    }

    .nm-author-box__inner {
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    .nm-author-box__image {
        margin-bottom: 16px;
    }

    .nm-author-box__image img {
        width: 96px;
        height: 96px;
    }

    .nm-author-box__body {
        width: 100%;
    }

    .nm-author-box__name {
        margin-bottom: 10px;
        font-size: 20px;
        line-height: 1.5;
    }

    .nm-author-box__description {
        margin: 0 0 20px;
        color: #555;
        font-size: 14px;
        line-height: 1.9;
    }

    .nm-author-box__links {
        display: flex;
        gap: 18px;
        align-items: center;
    }

    .nm-author-box__links a {
        width: auto;
        height: auto;
        padding: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        transform: none;
    }

    .nm-author-box__links a:hover {
        border: 0;
        background: transparent;
        transform: none;
    }

    .nm-author-box__links a img {
        width: 28px;
        max-width: none;
        height: 28px;
        max-height: none;
        object-fit: contain;
    }

    .nm-author-box__links a[href*="instagram.com"] img {
        width: 28px;
        height: 28px;
    }

    .nm-author-box__links a[href*="x.com"] img {
        width: 27px;
        height: 27px;
    }

    .nm-author-box__links a[href*="note.com"] img {
        width: 29px;
        height: 29px;
    }
}

/* ===== NAMIKATA AUTHOR SP LAYOUT END ===== */

/* ===== NAMIKATA AUTHOR ICONS NO FRAME START ===== */

/* PC・SP共通：SNSロゴの外側の丸枠をなくす */
.nm-author-box__links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.nm-author-box__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    background-image: none !important;
    box-shadow: none;
    transform: none;
}

.nm-author-box__links a:hover {
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0.65;
    transform: none;
}

.nm-author-box__links a::before,
.nm-author-box__links a::after {
    display: none !important;
    content: none !important;
}

.nm-author-box__links a img {
    display: block;
    width: 28px;
    max-width: none;
    height: 28px;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    object-fit: contain;
}

.nm-author-box__links a[href*="instagram.com"] img {
    width: 28px;
    height: 28px;
}

.nm-author-box__links a[href*="x.com"] img {
    width: 27px;
    height: 27px;
}

.nm-author-box__links a[href*="note.com"] img {
    width: 29px;
    height: 29px;
}

/* ===== NAMIKATA AUTHOR ICONS NO FRAME END ===== */
