/* =====================
共通
===================== */
body {
    background-color: #FFF;
    color: #222;
    font-family: 'Noto Sans JP', 'Roboto Condensed', Arial, Verdana, 游ゴシック, YuGothic, 'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN', メイリオ, Meiryo, sans-serif;
}

main.site-main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ボタンはセンター */
.form-button-area {
    text-align: center;
}

/* =====================
ヘッダー
===================== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* サイト名 */

.site-logo {
    margin-bottom: 8px;
}

.site-logo a {
    color: #222;
    font-size: 32px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.4;
}

/* 説明文 */

.site-description {
    margin: 0 0 20px;
    color: #666;
    font-size: 15px;
}

/* ナビ */

.global-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.global-nav a {
    background: #ffe600;
    color: #000;
    border: 2px solid #ffe600;
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s;
}

.global-nav a:hover {
    background: #fff;
    color: #000;
    border-color: #ffe600;
}

/* スマホ */

@media (max-width: 768px) {

    .site-container {
        padding: 15px;
    }

    .site-logo a {
        font-size: 24px;
    }

    .site-description {
        font-size: 14px;
    }

    .global-nav a {
        font-size: 13px;
        padding: 5px 10px;
    }

}


/* =====================
フッター
===================== */

.site-footer {
    margin-top: 60px;
    padding: 30px 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.footer-nav {
    font-size: 14px;
    line-height: 2;
}



.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:not(:first-child)::before {
    content: "｜";
    margin: 0 6px;
    color: #999;
}

.footer-links-center {
    text-align: center;
}

.copyright {
    margin-top: 20px;
    color: #999;
    font-size: 13px;
    text-align: center;
}

/* =====================
質問セクション
===================== */
.question-form-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
}

.question-form-section h2 {
    margin: 0 0 30px;
    padding-left: 18px;
    border-left: 12px solid #1a78c0;
    color: #000;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 16px;
    background: #fff;
}

.form-group select {
    height: 56px;
    width:15rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    display: inline-block;
    padding: 14px 40px;
    border: none;
    border-radius: 10px;
    background: #ffe600;
    color: #000;
    border: 2px solid #ffe600;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
    text-decoration: none;
}

.submit-button:hover {
    background: #fff;
    color: #000;
    border: 2px solid #ffe600;
}



#loading {
    margin-top: 15px;
    color: #ff2020;
    font-weight: 700;
}

@media (max-width: 768px) {

    .question-form-section {
        padding: 20px;
    }

    .question-form-section h2 {
        font-size: 28px;
        padding-left: 14px;
    }

    .submit-button {
        width: 100%;
    }

}


/* =====================
最近の投稿
===================== */
.latest-questions {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
}

.latest-questions h2 {
    margin: 0 0 30px;
    padding-left: 18px;
    border-left: 12px solid #1a78c0;
    color: #000;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
}

.question-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.question-card {
    margin-bottom: 20px;
}

.question-link {
    display: block;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: .2s;
}

.question-link:hover {
    box-shadow: 0 3px 15px rgba(0,0,0,.08);
}

.question-header {
    display: flex;
    gap: 20px;
}

.question-icon {
    width: 70px;
    height: 70px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #1a78c0;
    color: #fff;

    font-size: 42px;
    font-weight: bold;
    border-radius: 8px;
}

.question-content {
    flex: 1;
}

.question-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.question-date {
    color: #666;
    font-size: 14px;
    font-weight: 700;
}

.question-prefecture {
    display: inline-block;
    padding: 4px 10px;
    background: #1a78c0;
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.question-category {
    display: inline-block;
    padding: 4px 10px;
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.question-title {
    color: #222;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 20px;
}

.question-answer-count {
    text-align: right;
    color: #333;
    font-size: 18px;
    font-weight: 700;
}

@media (max-width: 768px) {

    .question-header {
        gap: 15px;
    }

    .question-icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .question-title {
        font-size: 22px;
    }

    .question-answer-count {
        font-size: 16px;
    }

}





/* =====================
質問詳細ページ question.php
===================== */
/* =====================
質問詳細
===================== */

.question-detail {
    margin-bottom: 50px;
}


.question-body {
    background: #f8fafc;
    font-size: 18px;
    line-height: 2;
    font-weight:bold;

    padding: 32px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}


/* =====================
回答共通
===================== */

.answer-section {
    margin-bottom: 50px;
}

.answer-heading {
    margin: 0 0 20px;
    padding-left: 16px;
    border-left: 8px solid #1a78c0;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
}

.answer-box {
    position: relative;
    padding: 34px;
    border-radius: 14px;
    margin-bottom: 28px;
    line-height: 2;
}

/* =====================
AI回答
===================== */

.ai-answer {
    background: #f8fafc;
    font-size: 18px;
    line-height: 2;
    font-weight:bold;

    padding: 32px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}


/* =====================
行政書士回答
===================== */
.gyosei-answer {
    background: #f8fafc;
    font-size: 18px;
    line-height: 2;
    font-weight:bold;

    padding: 32px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.gyosei-answer--linked {
    border-color: #1a78c0;
}
.gyosei-answer--linked:hover {
    background: #fff;
    border-color: #1a78c0;
}


.gyosei-answer-body {
    margin-bottom: 20px;
}

.gyosei-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    font-size: 14px;
}

.gyosei-name {
    font-weight: 700;
    color: #777;
}
.gyosei-name a {
    color: #1a78c0;
    font-weight: 700;
    text-decoration: none;
}

.gyosei-name a:hover {
    text-decoration: underline;
}


.office-name {
    font-weight: 700;
    color: #777;
}

.office-name a {
    color: #1a78c0;
    font-weight: 700;
    text-decoration: none;
}

.office-name a:hover {
    text-decoration: underline;
}

.answer-date {
    color: #777;
}

/* =====================
回答フォーム
===================== */

/* =====================
行政書士回答フォーム
===================== */

.answer-form-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
}

.answer-form-section h2 {
    margin: 0 0 30px;
    padding-left: 18px;
    border-left: 12px solid #1a78c0;
    color: #000;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
}

.answer-guide {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.8;
}

.answer-form-section form p {
    margin: 0 0 25px;
}

.answer-form-section label {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.answer-form-section input[type="text"],
.answer-form-section input[type="url"],
.answer-form-section textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 16px;
    background: #fff;
    box-sizing: border-box;
}

.answer-form-section textarea {
    min-height: 250px;
    resize: vertical;
}

.answer-form-section button[type="submit"] {
    display: inline-block;
    padding: 14px 40px;
    border: 2px solid #ffe600;
    border-radius: 10px;
    background: #ffe600;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.answer-form-section button[type="submit"]:hover {
    background: #fff;
}

.answer-form-section .cookie-note {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

@media (max-width: 768px) {

    .answer-form-section {
        padding: 20px;
    }

    .answer-form-section h2 {
        font-size: 28px;
        padding-left: 14px;
    }

    .answer-form-section button[type="submit"] {
        width: 100%;
    }

}


/* =====================
スマホ
===================== */

@media (max-width: 768px) {



    .answer-heading,
    .answer-form-section h2 {
        font-size: 28px;
    }

    .question-body,
    .answer-box,
    .answer-form-section {
        padding: 20px;
    }



}





/* =====================
追加
===================== */

.ai-header {
    margin-top: 24px;
    color: #777;
    font-size: 14px;
    text-align: right;
}






/* =====================
ヘッダー下部の件数カウンター
===================== */
.site-count-box{
    display:flex;
    justify-content:center;
    align-items:flex-end;
    gap:12px;
    margin:40px auto;
    padding:30px 40px;
    max-width:1000px;

background:linear-gradient(
    135deg,
    #eef7ff 0%,
    #e5f4ff 50%,
    #dff0ff 100%
);

    border-radius:20px;
}

.site-count-number{
    font-size:64px;
    font-weight:700;
    line-height:1;
    color:#118fd4;
}

.site-count-text{
    font-size:32px;
    font-weight:700;
    color:#222;
}

/* =====================
ヘッダー下部のh1
===================== */

.site-h1{
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-size:1rem;
}


/* =====================
リストの件数カウンター
===================== */
.result-count{
    text-align:right;
    margin-bottom:20px;
    font-size:14px;
    color:#666;
}



/* =====================
ページャー、ページネーション
===================== */
.pagination{
    display:flex;
    justify-content:center;
    gap:8px;
    margin:40px 0;
    flex-wrap:wrap;
}

.pagination a{
    display:flex;
    align-items:center;
    justify-content:center;

    width:42px;
    height:42px;

    border:1px solid #d0d7de;
    border-radius:6px;

    background:#fff;
    color:#333;

    text-decoration:none;
    font-weight:600;

    transition:.2s;
}

.pagination a:hover{
    background:#1A78C0;
    border-color:#1A78C0;
    color:#fff;
}

.pagination a.current{
    background:#1A78C0;
    border-color:#1A78C0;
    color:#fff;
    pointer-events:none;
}

/* =====================
ページャー、ページネーション
===================== */
.qa-id{
    color: #777;
    font-size: 14px;
    text-align: right;
}



/* =====================
AIが参考にした資料
===================== */
.reference-box{
    margin-top:40px;
    padding:18px 22px;
    border-top:1px solid #ddd;
    font-size:0.9rem;
    color:#666;
}

.reference-box h3{
    margin:0 0 12px;
    font-size:1rem;
    font-weight:600;
    color:#444;
}

.reference-box ul{
    margin:0;
    padding-left:22px;
}

.reference-box li{
    margin:6px 0;
    line-height:1.5;
    font-weight:400;
}

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

.reference-box a:hover{
    text-decoration:underline;
}

.reference-box li a:last-child{
    font-size:0.9em;
    color:#777;
}





/*************************************************
ヘッダー
*************************************************/

.site-header{
    background:#fff;
    border-bottom:1px solid #e5e5e5;
    padding:30px 20px;
}

.site-container{
    max-width:1200px;
    margin:0 auto;
}

/*************************************************
ロゴ
*************************************************/

.site-logo{
    display:block;
    text-align:center;
    margin-bottom:20px;
}

.site-logo img{
    display:block;
    width:100%;
    max-width:600px;
    height:auto;
    margin:0 auto;
}

/*************************************************
キャッチコピー
*************************************************/

.site-description{
    text-align:center;
    font-size:1.2rem;
    color:#555;
    margin:0 0 35px;
    font-weight:500;
    line-height:1.8;
}

/*************************************************
ナビゲーション
*************************************************/

.global-nav{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;
}

.global-nav a{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:14px 24px;

    background:#ffd500;
    color:#222;

    text-decoration:none;
    font-weight:700;

    border-radius:9999px;

    transition:.2s;
}

.global-nav a:hover{
    background:#f2c400;
}

/*************************************************
SEO用H1
*************************************************/

.visually-hidden{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0 0 0 0);
    white-space:nowrap;
    border:0;
}

/*************************************************
スマホ
*************************************************/

@media screen and (max-width:767px){

.site-header{
    padding:20px 15px;
}

.site-logo{
    margin-bottom:15px;
}

.site-logo img{
    max-width:100%;
}

.site-description{
    font-size:1rem;
    margin-bottom:25px;
}

.global-nav{
    gap:10px;
}

.global-nav a{
    padding:12px 18px;
    font-size:0.95rem;
}

}