/*
Theme Name: Yamikin Soudan Guide
Theme URI: https://yamikin.law
Author: 個人融資・闇金相談ガイド編集部
Author URI: https://yamikin.law
Description: 闇金相談ガイド オリジナルWordPressテーマ
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.2
Text Domain: yamikin-soudan-guide
*/
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f5f5;
    color: #222;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
}

.container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    background: #1f2937;
    color: #fff;
    padding: 30px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: 35px;
    margin-right: 35px;
}

.logo,
.logo a {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
}

.menu-toggle {
    display: none;
}

.hero {
    background: #1f2937;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.main-content {
    padding: 32px 0;
}

.notice {
    margin-bottom: 32px;
    padding: 20px;
    background: #eef6ff;
    border-left: 5px solid #2563eb;
    border-radius: 6px;
}

.emergency-guide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 36px;
    padding: 24px 28px;
    background: #f0f7fa;
    border: 1px solid #c9dde5;
    border-left: 6px solid #1f5d73;
    border-radius: 10px;
}

.emergency-guide h2 {
    margin: 0 0 8px;
    font-size: 23px;
}

.emergency-guide p {
    margin: 0;
}

.emergency-guide__link {
    flex: 0 0 auto;
    padding: 12px 18px;
    background: #1f5d73;
    color: #fff;
    border-radius: 7px;
    font-weight: 700;
    text-decoration: none;
}

.emergency-guide__link:hover,
.emergency-guide__link:focus-visible {
    background: #174656;
}

.safety-note {
    margin-top: 10px !important;
    color: #667085;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
}

.article-content small {
    color: #667085;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
}

.grid {
    display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    padding: 22px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.card img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    display: block;
    background: #f5f5f5;
    border-radius: 8px;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    background: #2563eb;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}

.about {
    margin-top: 40px;
}

.site-footer {
    margin-top: 40px;
    padding: 32px 0;
    background: #1f2937;
    color: #fff;
    text-align: center;
}

@media (max-width: 700px) {
    .site-header .container {
        position: relative;
        display: flex;
        margin-right: auto;
        margin-left: auto;
        text-align: left;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        border: 1px solid rgba(255, 255, 255, .65);
        border-radius: 6px;
        background: transparent;
        color: #fff;
        font: inherit;
        font-weight: 700;
        cursor: pointer;
    }

    .menu-toggle__icon,
    .menu-toggle__icon::before,
    .menu-toggle__icon::after {
        display: block;
        width: 20px;
        height: 2px;
        background: currentColor;
    }

    .menu-toggle__icon { position: relative; }
    .menu-toggle__icon::before,
    .menu-toggle__icon::after {
        position: absolute;
        left: 0;
        content: "";
    }
    .menu-toggle__icon::before { top: -6px; }
    .menu-toggle__icon::after { top: 6px; }

    .main-nav {
        position: absolute;
        z-index: 10;
        top: calc(100% + 12px);
        right: 0;
        left: 0;
        display: none;
        padding: 12px;
        background: #111827;
        border-radius: 8px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
    }

    .main-nav.is-open { display: block; }

    .main-nav ul {
        display: block;
    }

    .main-nav a {
        display: block;
        padding: 11px 10px;
    }

    .emergency-guide {
        display: block;
        padding: 20px;
    }

    .emergency-guide h2 { font-size: 20px; }

    .emergency-guide__link {
        display: block;
        margin-top: 18px;
        text-align: center;
    }
}

.single-article {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    color: #777;
    font-size: 14px;
}

.article-title {
    margin: 0 0 24px;
    font-size: 36px;
    line-height: 1.4;
}

.article-thumbnail {
    margin-bottom: 30px;
}

.article-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.error-404 {
    max-width: 760px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    text-align: center;
}

.error-404__links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.error-404__links a {
    min-height: 48px;
    padding: 12px;
    background: #1f5d73;
    color: #fff;
    border-radius: 7px;
    text-decoration: none;
}

.article-content {
    font-size: 17px;
    line-height: 1.9;
}

.article-content h2 {
    margin-top: 48px;
    padding-left: 14px;
    border-left: 5px solid #2563eb;
    font-size: 28px;
}

.article-content h3 {
    margin-top: 32px;
    font-size: 22px;
}

@media (max-width: 700px) {
    .single-article {
        padding: 20px;
    }

    .article-title {
        font-size: clamp(25px, 7vw, 28px);
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .article-content {
        font-size: 16px;
    }

    .article-content h2 {
        font-size: 23px;
        line-height: 1.55;
        overflow-wrap: anywhere;
    }
}
.lp-guide-box{
    margin:80px 0;
    padding:32px;
    background:#fff;
    border:1px solid #e5e5e5;
    border-left:6px solid #1f5d73;
    border-radius:10px;
    box-shadow:0 8px 20px rgba(0,0,0,.05);
}

.lp-guide-button {
    display: inline-block;
    margin-top: 18px;
    padding: 16px 32px;
    background: #111;
    color: #fff;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: .25s;
}
.lp-guide-button:hover{
    background:#333;
}
@media screen and (max-width: 600px) {
    .lp-guide-box {
        margin: 36px 0 20px;
        padding: 24px 18px;
    }

    .lp-guide-box h2 {
        font-size: 21px;
    }
    }
.breadcrumb{
    font-size:14px;
    color:#777;
    margin-bottom:24px;
}

.breadcrumb a{
    color:#555;
    text-decoration:none;
}

.breadcrumb a:hover{
    text-decoration:underline;
}

.breadcrumb span{
    margin:0 6px;
}
.site-header .custom-logo-link img.custom-logo {
    width: auto !important;
    height: 45px !important;
    max-width: 240px !important;
    max-height: 45px !important;
    object-fit: contain;
    display: block;
}

.site-header .custom-logo-link {
    display: flex;
    align-items: center;
    width: auto;
}
.site-header .custom-logo {
    height: 40px !important;
    width: auto !important;
    max-height: 40px !important;
}
.post-navigation{
    display:flex;
    justify-content:space-between;
    gap:20px;
    margin:40px 0;
}

.post-navigation a{
    display:block;
    padding:15px 20px;
    background:#fff;
    border:1px solid #ddd;
    border-radius:8px;
    color:#222;
    text-decoration:none;
    font-weight:bold;
    transition:.2s;
}

.post-navigation a:hover{
    background:#f5f5f5;
}
.category-section {
    margin: 50px 0 40px;
    width: 100%;
}

.category-section h2 {
    margin-bottom: 22px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.category-grid a{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:65px;
    padding:16px;
    background:#fff;
    border:1px solid #e5e5e5;
    border-left:5px solid #1f5d73;
    border-radius:10px;
    color:#222;
    text-decoration:none;
    font-weight:700;
    font-size:18px;
    transition:.2s;
    box-shadow:0 4px 12px rgba(0,0,0,.05);
}

.category-grid a:hover {
    transform: translateY(-2px);
    background: #f8f8f8;
}

@media screen and (max-width: 600px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    margin-bottom: 18px;
}

.footer-nav a {
    color: inherit;
    text-decoration: none;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.page .page-article {
    max-width: 900px;
    margin: 0 auto;
}

.page .article-content table {
    width: 100%;
    margin: 24px 0 32px;
    border-collapse: collapse;
}

.page .article-content th,
.page .article-content td {
    padding: 14px 16px;
    border: 1px solid #d8d8d8;
    text-align: left;
    vertical-align: top;
}

.page .article-content th {
    width: 28%;
    background: #f4f4f4;
}

@media screen and (max-width: 600px) {
    .page .article-content th,
    .page .article-content td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
}
.about{
    margin-top:60px;
    padding:32px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,.05);
}
.about p{
    max-width:700px;
    line-height:1.9;
}
.about{
    max-width:900px;
    margin:60px auto 0;
}

.about p{
    max-width:700px;
    line-height:2;
}

/* 記事の自動目次 */
.article-toc {
    margin: 32px 0 40px;
    padding: 24px 28px;
    background: #f7fafb;
    border: 1px solid #dbe5e9;
    border-left: 5px solid #1f5d73;
    border-radius: 10px;
}

.article-toc__title {
    margin: 0;
    color: #1d2a30;
    cursor: pointer;
    font-size: 21px;
    font-weight: 700;
}

.article-toc[open] .article-toc__title {
    margin-bottom: 14px;
}

.article-toc__list {
    margin: 0;
    padding-left: 1.5em;
}

.article-toc__list li {
    margin: 8px 0;
    line-height: 1.65;
}

.article-toc__list .toc-level-3 {
    margin-left: 1.25em;
    font-size: 0.95em;
}

.article-toc__list a {
    color: #1f5d73;
    text-decoration: none;
}

.article-toc__list a:hover {
    text-decoration: underline;
}

.article-content h2,
.article-content h3 {
    scroll-margin-top: 24px;
}

.article-consultation-guide {
    margin: 40px 0;
    padding: 28px;
    background: #f4f8fa;
    border: 1px solid #cfdde3;
    border-radius: 12px;
}

.article-consultation-guide h2 {
    margin-top: 0;
    color: #1d4657;
}

.article-consultation-guide a {
    display: inline-block;
    padding: 11px 18px;
    color: #fff;
    background: #1f5d73;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 700;
}

.article-consultation-guide a:hover {
    background: #184a5c;
}

.article-consultation-guide small {
    color: #58666d;
}

@media screen and (max-width: 600px) {
    .article-toc {
        margin: 24px 0 32px;
        padding: 20px;
    }

    .article-toc__list .toc-level-3 {
        margin-left: 0.5em;
    }

    .article-thumbnail img {
        max-height: none;
    }

    .article-consultation-guide {
        padding: 22px 18px;
    }

    .article-consultation-guide a,
    .lp-guide-button {
        display: flex;
        width: 100%;
        min-height: 48px;
        padding: 14px 16px;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .post-navigation {
        flex-direction: column;
    }

    .post-navigation a {
        min-height: 48px;
    }
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
}
