/*
Theme Name: hoshi-note2026
Theme URI: https://hoshi-note.blog/
Description: Minimal Mode Theme 
Author: hoshi
Version: 2.0
*/

/* ==========================================================================
   1. VARIABLES (設定)
   ========================================================================== */
:root {

    /* Colors */
    --c-black: #050505;
    --c-white: #ffffff;
    --c-gray: #d3d3d3;
	--c-lightgray: #f5f5f5;
    --c-text: #1a1a1a;
    --c-text-light: #888888;
    
    /* Layout Sizes */
    --w-max: 1280px;
    --header-h: 80px;
    --sp-section: 160px;
    --sp-section-sp: 80px;

    /* Animation */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Tenor Sans', sans-serif; 
    font-weight: 400; 
    text-transform: uppercase; /* 大文字にする*/
    letter-spacing: 0.1em;
    color: var(--c-text);
    background-color: var(--c-white);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
}

a { color: inherit; text-decoration: none; transition: opacity 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ==========================================================================
   3. UTILITIES
   ========================================================================== */
.container {
    max-width: var(--w-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.serif { font-family: var(--font-serif); }
.text-center { text-align: center; }
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   4. COMPONENT: HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--header-h);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    z-index: 100;
    mix-blend-mode: difference;
    color: var(--c-white);
}

.site-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

.site-nav { display: flex; gap: 2rem; }
.site-nav a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* ==========================================================================
   5. COMPONENT: HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--header-h) 3rem 0;
}

.hero-sub {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    margin-bottom: 2rem;
    opacity: 0.7;
}

.hero-title {
    font-size: clamp(2.7rem, 11vw, 10rem);
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 3rem;
}

.hero-desc {
    max-width: 600px;
    font-size: 1rem;
    font-weight: 300;
}

.hero-footer {
    margin-top: auto;
    padding-bottom: 3rem;
    display: flex;
    justify-content: flex-end;
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.5;
}

/* ==========================================================================
   6. COMPONENT: ABOUT
   ========================================================================== */
.section-about {
    padding: var(--sp-section) 0;
    background-color: var(--c-gray);
    color: var(--c-white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.skill-item { text-align: center; }
.skill-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 4rem;
    font-style: italic;
    opacity: 0.3;
    margin-bottom: 1rem;
}
.skill-title {
    font-size: 0.875rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.skill-desc {
    font-size: 0.8rem;
    opacity: 0.9;
    line-height: 1.8;
}

/* ==========================================================================
   7. COMPONENT: NOTE LOOP
   ========================================================================== */
.section-note { 
	background-color: var(--c-lightgray);
	padding: var(--sp-section) 0; 
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}
.section-title { font-size: 3rem; }

.post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}
.post-item:hover {
    background-color: var(--c-gray);
    padding-left: 1rem;
    padding-right: 1rem;
}

.post-meta {
    font-size: 0.75rem;
    color: var(--c-text-light);
    margin-right: 2rem;
}
.post-title {
    font-size: 1.2rem;
    font-weight: 500;
    flex-grow: 1;
	letter-spacing:0.05em;
	line-height:1.6em;
}

.cat-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid currentColor;
    padding: 0.2em 0.8em;
    color: var(--c-text); 
}

/* ==========================================================================
   8. COMPONENT: BUTTON (MODE)
   ========================================================================== */
.btn-mode {
    display: inline-block;
    position: relative;
    padding: 1rem 3rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    cursor: pointer;
    z-index: 1;
}
.btn-mode::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out);
    z-index: -1;
}
.btn-mode:hover::before { transform: scaleX(1); transform-origin: left; }
body:not(.dark-mode) .btn-mode:hover { color: var(--c-white); }
.section-about .btn-mode:hover, 
.site-footer .btn-mode:hover { color: var(--c-black); }

/* ==========================================================================
   9. COMPONENT: FOOTER
   ========================================================================== */
.site-footer {
    padding: var(--sp-section) 0 4rem;
    background-color: var(--c-black);
    color: var(--c-white);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}
.footer-title {
    font-size: clamp(3rem, 6vw, 6rem);
    font-style: italic;
    margin-bottom: 2rem;
}
.footer-links a {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 0.5rem;
}
.footer-links a:hover { opacity: 1; text-decoration: line-through; }

.copyright {
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.4;
}

/* ==========================================================================
   10. RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    :root { --header-h: 60px; }
    .site-header { padding: 0 1.5rem; }
    .hero { padding: var(--header-h) 1.5rem 0; }
    .skills-grid, .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .post-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .section-title { font-size: 2rem; }
    .hero-title { margin-bottom: 2rem; }
    .footer-title { font-size: 3rem; }
}

/* ==========================================================================
   11. PLUGIN: CONTACT FORM 7 (MODE STYLE - FINAL)
   ========================================================================== */

/* フォーム全体の幅制限と中央寄せ */
.mode-form {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

/* CF7が勝手に入れるpタグの余白を消す */
.mode-form p {
    margin: 0;
    padding: 0;
}

/* 入力エリアのグループ（余白設定） */
.mode-form .form-group {
    margin-bottom: 3.5rem;
    position: relative;
}

/* ラベルのデザイン（大文字・字間広め・小さく） */
.mode-form label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--c-text);
    opacity: 0.6;
}

/* 入力フィールドの基本リセット（下線のみにする） */
.mode-form input[type="text"],
.mode-form input[type="email"],
.mode-form input[type="tel"],
.mode-form textarea,
.mode-form select {
    display: block;
    width: 100%;
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0.8rem 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--c-text);
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.4s ease;
}

/* プレースホルダーの色調整 */
.mode-form ::placeholder {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 300;
}

/* 入力中のフォーカス時（線を黒く） */
.mode-form input:focus,
.mode-form textarea:focus,
.mode-form select:focus {
}

/* テキストエリアの高さ */
.mode-form textarea {
    height: 320px;
    resize: none;
}

/* 送信ボタンエリア */
.mode-form .form-submit {
    margin-top: 5rem;
    text-align: left; /* モードな左寄せ */
}

/* 送信ボタン（btn-modeクラスへのスタイル適用） */
.mode-form input.btn-mode {
    display: inline-block;
    width: auto;
    min-width: 200px;
    padding: 1rem 3rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background-color: transparent;
    border: 1px solid var(--c-black);
    color: var(--c-text);
    cursor: pointer;
    transition: all 0.4s ease;
    -webkit-appearance: none;
    border-radius: 0;
}

/* 送信ボタンホバー時 */
.mode-form input.btn-mode:hover {
    background-color: var(--c-black);
    color: var(--c-white);
}

/* エラーメッセージ等の調整 */
.wpcf7-not-valid-tip {
    font-size: 0.65rem;
    margin-top: 0.5rem;
    color: var(--c-text);
    opacity: 0.8;
}

.wpcf7-response-output {
    margin: 2rem 0 !important;
    padding: 1.5rem !important;
    border: 1px solid var(--c-black) !important;
    font-size: 0.75rem;
    text-align: center;
    background: transparent;
}
/* ==========================================================================
   FIX: 固定ページとフォームのレイアウト修正
   ========================================================================== */

/* 1. ヘッダー被りを防ぐための余白*/
.page-container {
    padding-top: 180px; /* ヘッダー(80px) + 余白(100px) */
    padding-bottom: 120px;
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* スマホ表示時の余白調整 */
@media (max-width: 768px) {
    .page-container {
        padding-top: 120px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* 2. 固定ページのタイトル周り */
.page-header {
    margin-bottom: 5rem;
    text-align: center; 
}

.page-title {
    font-size: 3rem;
    font-family: var(--font-serif);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.mode-form .form-group {
    margin-bottom: 2.5rem; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 1rem; 
}

.mode-form label {
    margin-bottom: 0.2rem;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
}

/* 入力欄の下線を消す*/
.mode-form input[type="text"],
.mode-form input[type="email"],
.mode-form textarea {
    border-bottom: none !important; 
    padding: 0.5rem 0;
}


.mode-form .form-group:focus-within {
    border-bottom-color: #000;
}
/* ==========================================================================
page
========================================================================== */
.page-content h2 {
	margin-top:56px;
	margin-bottom:24px;
}
.page-content h3 {
	margin-top:32px;
	margin-bottom:24px;
}
.page-content h4 {
	margin-top:24px;
	margin-bottom:24px;
}
.page-content p {
	margin-bottom:24px;
	letter-spacing:0.08em;
	text-transform: none;
	line-height:1.8em;
	
}
.page-content {
	text-transform: none;
}
.page-content ul {
	margin-bottom:24px;
}
.page-content ul li {
	list-style:disc;
	list-style-position: inside;
	margin-bottom:1em;
}
/* ==========================================================================
   12. SINGLE POST CONTENT (ABOUTページのデザインを継承)
   ========================================================================== */

/* 記事全体のレイアウト調整 */
.single-post .page-container {
    max-width: var(--w-narrow); 
    margin: 0 auto;
}

/* 記事ヘッダー：ABOUTページのタイトルスタイルを反映 */
.post-header {
    text-align: center;
    margin-bottom: 56px;
}

.post-meta-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--c-text-light);
}

.post-meta-divider {
    width: 40px;
    height: 1px;
    background-color: var(--c-border);
}


.post-title {
    font-size: 1.4em;
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic; 
    line-height: 1.6em;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
	text-transform: none;
}

.post-title-line {
    width: 60px;
    height: 1px;
    background: var(--c-black);
    margin: 0 auto;
}


.post-thumbnail {
    margin: 6rem -5vw; /* 少し外に飛び出す */
}

@media (max-width: 768px) {
    .post-thumbnail { margin: 4rem 0; }
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 1s var(--ease-out);
}

.post-thumbnail:hover img {
    filter: grayscale(0%);
}

/* ---------------------------------------------------------
   本文エリア (entry-content) 
   --------------------------------------------------------- */
.entry-content {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 2.2;
    font-weight: 300;
    color: var(--c-text);
    letter-spacing: 0.02em;
	text-transform: none;
}
.content-title {
    font-size: 1.8em;
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
    line-height: 1.8em;
    letter-spacing: -0.03em;
    margin-bottom: 56px;
	text-transform: none;
}
.entry-content strong,
.entry-content p strong,
.entry-content ul li strong {
	font-weight:bold;
}
.entry-content figure.wp-block-image img {
	    width: 100%;
    height: auto;
    filter: grayscale(100%);
	margin-bottom:32px;
}
/* 画像を白黒にしない */
.entry-content figure.nogray img {
	    width: 100%;
    height: auto;
    filter: grayscale(0%);
	margin-bottom:32px;
}
/* 段落：ABOUTページのようなゆったりとした間隔 */
.entry-content p {
    margin-bottom: 32px;
}

/* 見出し2：ABOUTページのセクションタイトルのような佇まい */
.entry-content h2 {
    font-family: var(--font-serif);
    font-size: 1.6em;
    font-weight: 400;
	font-style: italic;
    margin: 72px 0 32px;
    border-bottom: 1px solid var(--c-border);
    letter-spacing: -0.01em;
}

/* 見出し3：サブセクション用 */
.entry-content h3 {
    font-family: var(--font-serif);
    font-size: 1.4em;
    margin: 48px 0 32px;
    font-style: italic;
}
/* 見出し4：サブセクション用 */
.entry-content h4 {
    font-family: var(--font-serif);
    font-size: 1.2em;
    margin: 32px 0 32px;
    font-style: italic;
}
/* 引用：ミニマルなアクセント */
.entry-content blockquote {
    position: relative;
    padding: 2rem 0 2rem 3rem;
    margin: 5rem 0;
    border-left: 1px solid var(--c-black);
    font-style: italic;
    font-size: 1.2rem;
    opacity: 0.7;
}

/* リストスタイル */
.entry-content ul, 
.entry-content ol {
    margin-bottom: 4rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 1rem;
    position: relative;
}

.entry-content ul li::before {
    content: "—";
    position: absolute;
    left: -1.5rem;
    opacity: 0.4;
}
.post-author {
	opacity:0.6;
	text-transform: none;
	font-size:0.8em;
}
/* 画像のキャプション */
.wp-block-image figcaption {
    font-size: 0.75rem;
    text-align: center;
    margin-top: 1.5rem;
    text-transform: none;
    letter-spacing: 0.2em;
    opacity: 0.4;
}

/* 記事下ナビゲーション：フッターに繋がる静かなデザイン */
.post-footer {
    margin-top: 108px;
    padding-top: 32px;
    border-top: 1px solid var(--c-border);
}

.post-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-to-index {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    position: relative;
}

.back-to-index:hover::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 100%; height: 1px;
    background: currentColor;
}

/* 記事本文内のリンクのみに適用 */
.entry-content a {
    position: relative;
    color: var(--c-black);
    text-decoration: none;
    /* 下線（border）で表現することで、文字との距離を微調整 */
    border-bottom: 1px solid #cccccc; 
    transition: all 0.3s var(--ease-out);
    font-weight: 400; /* 少しだけ太くして視認性を上げる */
    padding-bottom: 1px;
}

/* ホバー時の挙動 */
.entry-content a:hover {
    border-bottom-color: var(--c-black); /* 線を濃くする */
    opacity: 0.7; /* 少し透かして「押した感」を出す */
}

/* 外部リンク（別タブで開くリンク）に小さな矢印アイコンを添える演出（任意） */
.entry-content a[target="_blank"]::after {
    content: " ↗"; /* シンプルな矢印 */
    font-size: 0.8em;
    display: inline-block;
    vertical-align: middle;
    margin-left: 2px;
    opacity: 0.5;
}

/* ---------------------------------------------------------
   特定の装飾を避けたい場合（画像リンクなど）への対策
--------------------------------------------------------- */
/* 画像にリンクが貼られている場合に下線が出ないようにする */
.entry-content a:has(img),
.entry-content a.wp-block-button__link {
    border-bottom: none !important;
}
/* ==========================================================================
   16. CATEGORY NAVIGATION (INDEX FOOTER)
   ========================================================================== */

.category-nav {
    margin: 10rem auto 4rem; /* ページネーションとの間に大きな余白 */
    max-width: var(--w-narrow);
    text-align: center;
}

.category-nav-header {
    margin-bottom: 3rem;
    position: relative;
}

.category-nav-header span {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

/* カテゴリリストを横並び、または柔軟な並びに */
.category-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem 4rem;
}

.cat-link {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.4s var(--ease-out);
}

.cat-name {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 600;
}

.cat-count {
    font-size: 0.6rem;
    font-family: var(--font-serif);
    font-style: italic;
    opacity: 0.3;
}

/* ホバーで下線が伸び、少し浮き上がる演出 */
.cat-link:hover {
    border-bottom-color: var(--c-black);
    opacity: 1;
}

.cat-link:hover .cat-count {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .category-nav { margin: 6rem auto 2rem; }
    .category-list { gap: 1.5rem 2rem; }
    .cat-name { font-size: 0.75rem; letter-spacing: 0.2em; }
}

/* --- お問い合わせサンクスページ --- */
.thanks-container {
    background: #fff;
    padding: 80px 40px;
    border: 1px solid #eee; /* 薄い境界線のみ */
    text-align: center;
    margin-bottom: 50px;
}

.thanks-icon {
    font-size: 48px;
    color: #000;
    margin-bottom: 30px;
    display: block;
}

.thanks-title {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 28px;
    font-weight: 300; /* 細めのウェイトで高級感を出す */
    letter-spacing: 0.15em;
    color: #000;
    margin: 0 0 10px;
}

.thanks-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 40px;
}

.thanks-body {
    line-height: 2;
    color: #333;
    font-size: 15px;
}

.thanks-notice {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f2f2f2;
    font-size: 13px;
    color: #999;
}

.thanks-action {
    margin-top: 50px;
}

.btn-back-home {
    display: inline-block;
    background: #000; /* ボタンは完全な黒 */
    color: #fff !important;
    padding: 18px 50px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.2em;
    transition: all 0.4s ease;
    border: 1px solid #000;
}

.btn-back-home:hover {
    background: #fff;
    color: #000 !important;
    transform: none; /* 派手な動きは抑える */
}

@media (max-width: 767px) {
    .thanks-container {
        padding: 60px 20px;
    }
    .thanks-title {
        font-size: 20px;
    }
    .pc-only { display: none; }
}

/* ==========================================================================
   17. RELATED POSTS (関連記事エリア)
   ========================================================================== */

.related-posts-section {
    margin: 8rem auto 4rem;
    max-width: var(--w-narrow);
    padding-top: 4rem;
    border-top: 1px solid #eeeeee;
}

.related-title {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    text-align: center;
    opacity: 0.8;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.related-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f5f5f5;
}

.related-item:last-child {
    border-bottom: none;
}

.related-meta {
    font-size: 0.65rem;
    font-family: var(--font-serif);
    color: var(--c-text-light);
    width: 80px;
    flex-shrink: 0;
}

.related-link {
    flex-grow: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--c-black);
    text-decoration: none;
    margin-row: 1rem;
    transition: all 0.3s;
    /* 長いタイトルを三点リーダーで省略 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-link:hover {
    opacity: 0.6;
    padding-left: 5px;
}

.related-cat {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    border: 1px solid #dddddd;
    border-radius: 2px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .related-posts-section { margin: 5rem auto 3rem; }
    .related-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .related-link { white-space: normal; overflow: visible; text-overflow: clip; }
    .related-cat { order: -1; } /* スマホではカテゴリを上に */
}