/* ========================================
   土地問い合わせページ専用CSS
   メインコンテンツ、フォーム、アコーディオン
======================================== */
/* ========== パンくずリスト ========== */
#pankuzLink {
    font-size: 12px;
    padding: 5px 0 20px;
    line-height: 1.4;
    list-style: none;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

#pankuzLink li {
    display: inline;
    padding: 0;
    margin: 0;
}

#pankuzLink li:after {
    content: ">";
    margin: 0 5px;
    color: #999;
}

#pankuzLink li:last-child:after {
    content: "";
}

#pankuzLink a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

#pankuzLink a:hover {
    color: #175fff;
    text-decoration: underline;
}
main {
    width: 100%;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
main .container {
    margin-bottom: 80px;
    padding-bottom: 20px;
}
main .form-wrapper {
    max-width: 100%;
    margin: auto;
    background: #ffffff;
}

main .form-group {
    display: flex;
    padding-inline: 20px;
    padding-block: 16px;
}

main .form-label {
    margin-bottom: 5px;
    width: 240px;
}
main .form-label p {
    font-size: 15px;
    color: #333333;
    width: 180px;
}

main .required-badge {
    background: #c00;
    color: #fff;
    font-size: 10px;
    padding: 3px 5px;
    border-radius: 4px;
    margin-left: 8px;
    height: fit-content;
}

main .optional-badge {
    background: #aaa;
    color: #fff;
    font-size: 12px;
    padding: 3px 5px;
    border-radius: 4px;
    margin-left: 8px;
    height: fit-content;
}

main input {
    padding: 10px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 70%;
    background-color: rgba(195, 13, 35, 0.05);
}

main .inputC {
    width: 70%;
}
main .inputC input {
    width: 100%;
}

main .hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* ---- Privacy More ----- */
.accordion-wrapper {
    max-width: 1000px;
    margin-top: 12px;
    font-family: sans-serif;
    line-height: 1.6;
    color: #333;
}

.accordion-header {
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 10px;
    background: none;
    border: none;
    width: 100%;
}

.accordion-chevron {
    transition: transform 0.3s ease;
    font-size: 20px;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: #f9f9f9;
    padding: 0 10px;
    border-left: 3px solid #ccc;
    font-size: 10px;
}

.accordion-content.open {
    /* padding handled via JS for smoother collapse */
}

.accordion-chevron.rotate {
    transform: rotate(180deg);
}

.accordion-content ul {
    padding-left: 20px;
    margin: 10px 0;
}
main .pageT {
    font-size: 18px;
    font-weight: 600;
    width: 100%;
    padding-inline: 10px;
    padding-block: 16px;
    border-top: 2px solid #cccccc;
    box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}
main .bBar {
    display: none;
    background-color: #fafaf5;
    width: 100%;
    padding-inline: 21px;
    padding-block: 12px;
    font-size: 10px;
}

main .tel {
    width: 235px;
}
main .postCode {
    width: 155px;
}
.card-container {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-block: 50px;
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 25px 16px 25px 16px;
    width: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-label {
    background: #6c7ba1;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 7px;
    margin-bottom: 7px;
    align-self: flex-start;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 7px;
    color: #222;
    align-self: flex-start;
}

.card-image img {
    width: 100%;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 12px;
}

.card-btn {
    width: 90%;
    padding: 12px 0;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #b3aea3;
    cursor: pointer;
    transition: background 0.2s;
}

.card-btn.selected {
    background: #ff9800;
}

.card-btn:not(.selected):hover {
    background: #a39e92;
}
main .cardGT {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    text-align: center;
}
main .cardGT span {
    color: #c30d22;
}
main .formT {
    width: 100%;
    padding-inline: 11px;
    font-size: 18px;
    font-weight: 500;
    border-left: 3px solid #5b7bb0;
    margin-bottom: 18px;
}
main .second select {
    width: 200px;
    padding: 8px 3px;
}
main .second .inputC span {
    font-size: 15px;
    margin-right: 7px;
}
main .second .s_area {
    margin-bottom: 12px;
}
main .privacy p {
    font-size: 13px;
}
main .privacy input {
    width: fit-content;
    margin-right: 6px;
}
main .privacy label {
    font-size: 15px;
    display: flex;
    align-items: center;
}
.submit-btn {
    background: #FF7C00;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    padding: 14px 0;
    width: 320px;
    margin: 0 auto;
    display: block;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #e68900;
}
/* ===================== 建設予定地アコーディオン用CSS ===================== */

/* 大阪府アコーディオンのスタイル */
.prefecture-accordion {
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.prefecture-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.prefecture-header.open .accordion-arrow {
    transform: rotate(180deg);
}

/* 新しい4列グリッドレイアウト */
.osaka-city-grid,
.sakai-city-grid,
.other-cities-grid,
.toyono-gun-grid,
.mishima-gun-grid,
.kobe-city-grid,
.hyogo-other-cities-grid,
.kyoto-city-grid,
.kyoto-other-cities-grid,
.tsuzuki-gun-grid,
.soraku-gun-grid,
.kyotanba-town-grid,
.yosa-gun-grid,
.nara-cities-grid,
.wakayama-cities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.mishima-gun-grid:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.city-header-cell {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.checkbox-cell {
    display: flex;
    align-items: center;
    padding: 2px 0;
}

.checkbox-cell label {
    display: flex;
    align-items: center;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    width: 100%;
    padding: 0;
    margin: 0;
}

.checkbox-cell input[type="checkbox"] {
    margin-right: 4px;
    margin-top: 0;
    margin-left: 0;
    flex-shrink: 0;
    width: auto;
}

.checkbox-cell input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-cell label:has(input[type="checkbox"]:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
}

.empty-cell {
    /* 空のセル */
}

/* アコーディオンのスタイル調整 */
.prefecture-header {
    background-color: #fff;
    padding: 12px 15px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-bottom: none;
}

.prefecture-header:hover {
    background-color: #f8f8f8;
}

.prefecture-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: bold;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.prefecture-content {
    display: none;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
}

/* エラーメッセージスタイル */
.error-message {
    font-size: 12px;
    color: #c00;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

.form-group.error input {
    border-color: #c00;
    background-color: rgba(195, 13, 35, 0.1);
}

/* ==== Checkbox Styles ==== */
main .inputC.checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
main .input-check {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
main .input-check input {
    width: auto;
    margin-right: 8px;
}
main .input-check label {
    font-size: 15px;
    margin-left: 6px;
    cursor: pointer;
}
main .check-group {
    gap: 16px;
    flex-direction: row;
}

/* ==== Textarea Styles ==== */
main .form-group textarea {
    width: 100%;
    min-height: 100px;
    max-width: 600px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    padding: 10px;
    font-size: 13px;
    resize: vertical;
    background-color: rgba(195, 13, 35, 0.05);
}

/* ==== Honeypot Styles ==== */
.honeypot {
    display: none !important;
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.honeypot input {
    width: 0;
    height: 0;
    border: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
}

/* ==== Alert Styles ==== */
.alert {
    margin: 20px 0;
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert li {
    margin-bottom: 5px;
}

/* ==== Button Styles ==== */
.btn-submit {
    background-color: #c30d23;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
}

.btn-submit:hover {
    background-color: #a00b1e;
}

/* ==== Error Message Styles ==== */
.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
    display: block;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.form-group input.valid,
.form-group textarea.valid {
    border-color: #27ae60;
    background-color: #f8fff8;
}

/* ==== Contact Info Styles ==== */
.contact-info {
    margin-top: 40px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 5px;
}

.contact-explain ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-explain li {
    font-size: 12px;
    color: #696652;
    margin-bottom: 10px;
    line-height: 1.5;
}

.contact-content {
    margin-top: 20px;
}

.contact-content p {
    font-size: 12px;
    color: #696652;
    margin-bottom: 5px;
    line-height: 1.5;
}

/* ================== Responsive ============================= */

/* パンくず制御CSS */
@media (max-width: 768px) {
    .breadcrumb-wrapper.pc-only,
    .pc-only {
        display: none !important;
        visibility: hidden !important;
    }

    /* パンくず関連要素をすべて非表示 */
    .breadcrumb-nav,
    nav.breadcrumb-nav,
    header .breadcrumb-nav,
    header nav.breadcrumb-nav {
        display: none !important;
        visibility: hidden !important;
    }
}

@media (max-width: 1024px) {
    /* メインコンテンツ関連のみ */
}
@media (max-width: 1000px) {
    .card-container {
        flex-wrap: wrap;
    }
}
@media (max-width: 965px) {
    /* ======== New Page ====== */
    main input {
        width: 60%;
    }
    main .inputC {
        width: 60%;
    }
}
@media (max-width: 768px) {
    main {
        margin-top: 0;
    }
    /* ======== New Page ========= */
    main .container {
        background-color: #fafaf5;
        margin-bottom: 0;
    }
    main .form-group {
        flex-direction: column;
    }
    main input,
    main .inputC {
        width: 100%;
    }
    main .bBar {
        display: block;
    }
    main .pageT {
        text-align: center;
        box-shadow: unset;
        border: none;
        font-size: 20px;
        margin-bottom: 0px;
    }
    .card {
        width: 45%;
        min-width: 150px;
    }
    main .form-label {
        width: 100%;
        justify-content: space-between;
    }
    .card-container {
        margin-bottom: 0;
        padding-bottom: 50px;
        justify-content: space-around;
    }
    main .cardGT {
        width: 95%;
    }
    main .cardG{
        width: 95%;
        margin: 0 auto;
    }
    main .form-wrapper {
        padding-top: 20px;
        padding-bottom: 15px;
    }

    /* 建設予定地アコーディオンのモバイル対応 */
    .osaka-city-grid,
    .sakai-city-grid,
    .other-cities-grid,
    .toyono-gun-grid,
    .mishima-gun-grid,
    .kobe-city-grid,
    .hyogo-other-cities-grid,
    .kyoto-city-grid,
    .kyoto-other-cities-grid,
    .tsuzuki-gun-grid,
    .soraku-gun-grid,
    .kyotanba-town-grid,
    .yosa-gun-grid,
    .nara-cities-grid,
    .wakayama-cities-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5px 8px;
    }

    .city-header-cell {
        grid-column: 1 / -1;
        font-size: 15px;
        padding: 6px 0;
    }

    .osaka-city-grid .empty-cell,
    .sakai-city-grid .empty-cell,
    .kobe-city-grid .empty-cell,
    .kyoto-city-grid .empty-cell,
    .tsuzuki-gun-grid .empty-cell,
    .soraku-gun-grid .empty-cell,
    .yosa-gun-grid .empty-cell {
        display: none;
    }

    .checkbox-cell label {
        font-size: 14px;
        padding: 0;
        margin: 0;
    }
}
@media (max-width: 500px) {
    /* ==== New Page ==== */
    main .form-group {
        padding-inline: 0;
    }
    main .form-wrapper {
        padding-inline: 20px;
    }
}
