@charset "UTF-8";
@import url("grid.css");
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New&family=Zen+Maru+Gothic:wght@700&display=swap');

/* ========================================
   CSS変数定義
======================================== */
:root {
    --base-color: #333;
    --link-color: #85C8AF;
    --linkhover-color: #999;
    --back-color: #ffffff;
    --border-color: #ccc;
    --white-color: #fff;
    --nav-color: #333;
    --green-color: #8fbc8f;
    --brown-color: #EDA185;
    --gray-color: #f5ede4;
    --accent-orange: #eda185;
    --accent-blue: #749ECB;
    --accent-red: #bb5548;
    --gold-color: #d0af4c;
    --contact-bg: #e4ecf5;
}

/* ========================================
   ベーススタイル
======================================== */
body {
    background: var(--white-color);
    color: var(--base-color);
}

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

/* 画像フェードインアニメーション */
img.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

img.fade-in.visible {
    opacity: 1;
}

a {
    display: block;
    color: var(--link-color);
    text-decoration-line: none;
}

a:hover {
    color: var(--linkhover-color);
}

h2 {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--link-color);
}

mark {
    color: var(--accent-orange);
    background-color: transparent;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.button {
    margin: 1rem;
}

.grecaptcha-badge {
    visibility: hidden;
}

/* ========================================
   ヘッダー
======================================== */
.header {
    display: flex;
    flex-direction: row;
    padding: 2rem 0 0 0;
    margin-bottom: 2rem;
}

.sitetitle {
    font-size: 3.0rem;
}

.sitetitle img {
    max-width: 70%;
}

.header-box {
    margin-left: auto;
    margin-top: 8px;
}

.contact-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    text-decoration: none;
    background-color: var(--accent-blue);
    color: var(--white-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    white-space: nowrap;
    z-index: 9999;
}

.contact-button i {
    font-size: 24px;
}

.contact-button .text {
    font-size: 20px;
    font-weight: bold;
}

.contact-button:hover {
    opacity: 0.9;
    color: var(--white-color);
}

.contact-phone {
    font-size: 25px;
}

.contact-detail a {
    font-size: 22px;
}

/* ========================================
   ナビゲーション
======================================== */
.spnavi {
    display: none;
}

nav ul {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    list-style: none;
    margin: 1rem 0 0 0;
}

nav li {
    flex: 1 0 auto;
}

nav li a {
    text-decoration: none;
    text-align: center;
    width: 100%;
    padding: 0.5rem;
    color: var(--nav-color);
}

nav a:hover {
    background-color: var(--back-color);
}

/* ========================================
   メイン画像
======================================== */
#mainimg {
    width: 100%;
}

#mainimg h1 {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 2;
    text-align: center;
    font-size: 60px;
    font-family: "Zen Maru Gothic", serif;
    font-weight: bold;
    color: var(--white-color);
    text-shadow: 4px 4px 4px #666;
}

/* ========================================
   メインコンテンツ
======================================== */
main {
    margin: 5rem 0 0 0;
}

section {
    padding: 5rem 0;
}

.brown-back {
    background-color: var(--gold-color);
    background-size: cover;
}

/* ========================================
   キャッチコピー
======================================== */
.catch {
    text-align: center;
    line-height: 1.7;
}

.center {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-quote {
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--base-color);
    margin: 2rem auto;
    text-decoration: underline;
    text-decoration-color: var(--accent-orange);
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
    padding: 0 20px;
}

/* ========================================
   ニュース
======================================== */
.news {
    margin: 0 auto;
    max-width: 980px;
    padding: 2rem;
}

.news-list {
    list-style: none;
}

.news-list .item,
.news-list .item p {
    margin-bottom: 0;
}

.news-list .item a {
    display: flex;
    flex-wrap: wrap;
    color: var(--nav-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.news-list .item:first-child a {
    border-top: 1px solid var(--border-color);
}

.news-list .item .date {
    min-width: 120px;
    color: var(--link-color);
}

.news-list .item a:hover .title {
    color: var(--base-color);
}

/* ========================================
   補助金
======================================== */
.hojo-area {
    background-color: var(--gray-color);
    border-radius: 10px;
    padding: 24px;
}

.subsection-note {
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.hojo-area img {
    object-fit: cover;
    padding: 16px;
    max-width: 30%;
}

/* ========================================
   まち紹介
======================================== */
section.town {
    padding: 0;
}

.town .col {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 8px 8px 20px 0 rgba(0, 0, 0, .03);
}

.town .col .text {
    font-size: 1.5rem;
}

.town .col h3 {
    text-align: center;
    font-size: 2rem;
    font-weight: 500;
    color: var(--base-color);
}

.place-icon {
    margin-right: 8px;
    font-size: 1.8rem;
}

.town .col .img {
    padding: 10px;
}

.town img {
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* ========================================
   区画
======================================== */
.naraha-map {
    max-width: 100%;
    max-height: 420px;
    margin-bottom: 3rem;
    border-radius: 10px;
}

.kukaku {
    display: flex;
    align-items: stretch;
}

.kukaku-image-area {
    background-color: var(--gray-color);
    max-width: 500px;
    margin: 20px;
    padding: 16px;
    border-radius: 10px;
}

.kukaku-image-area img {
    object-fit: cover;
    margin-bottom: 16px;
    max-height: 300px;
    max-width: 420px;
    border-radius: 10px;
}

.kukaku-image-area img:last-child {
    margin-bottom: 0;
}

/* ========================================
   物件概要
======================================== */
.gaiyo {
    background-color: var(--gray-color);
    margin-bottom: 0;
}

.gaiyo table {
    background: #fff;
    padding: 70px 90px 85px;
}

.gaiyo-area {
    display: flex;
    justify-content: center;
}

/* ========================================
   お問い合わせ
======================================== */
.contact {
    background-color: var(--contact-bg);
    margin-bottom: 0;
}

.contact-area {
    display: flex;
    justify-content: center;
}

.btn--orange,
a.btn--orange {
    color: #fff;
    background-color: var(--accent-red);
    padding: 4px;
    width: 220px;
    margin: 0 auto;
    border-radius: 4px;
}

.btn--orange:hover {
    opacity: 0.9;
}

.contact-form-wrapper {
    width: 100%;
    background-color: transparent;
    text-align: center;
}

.message-box {
    padding: 20px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.error-box {
    background-color: #ffe6e6;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
}

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

.success-box {
    background-color: #e6f7f0;
    border: 1px solid var(--link-color);
    color: #333;
    text-align: center;
    font-size: 18px;
    padding: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: normal;
    font-size: 16px;
    color: var(--base-color);
    text-align: center;
}

.form-group .required {
    color: var(--accent-red);
    font-weight: normal;
    margin-left: 4px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 50%;
    padding: 12px 16px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    background-color: #fff;
    font-family: inherit;
    transition: none;
    box-sizing: border-box;
    display: block;
    margin: 0 auto;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    outline: none;
    border: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.6;
}

.form-submit {
    text-align: center;
    margin-top: 40px;
}

.submit-button {
    background-color: var(--accent-blue);
    color: var(--white-color);
    border: none;
    border-radius: 10px;
    padding: 0 50px;
    font-size: 18px;
    font-weight: normal;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.submit-button:hover {
    opacity: 0.9;
    color: var(--white-color);
}

.submit-button:active {
    opacity: 1;
}

.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ========================================
   フッター
======================================== */
footer {
    background-color: var(--back-color);
    background-size: cover;
    padding: 5rem 0;
}

footer h4 {
    position: relative;
    padding-bottom: 1rem;
    width: 100%;
    border-bottom: 2px solid var(--border-color);
}

footer h4::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 70px;
    height: 2px;
    background-color: var(--link-color);
}

/* ========================================
   固定ボタン
======================================== */
.mobile-contact-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: auto;
    height: 50px;
    padding: 0 20px;
    border-radius: 10px;
    background-color: var(--accent-blue);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 9998;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.mobile-contact-button i {
    font-size: 18px;
}

.mobile-contact-button .text {
    font-size: 14px;
    font-weight: bold;
}

.mobile-contact-button:hover {
    opacity: 0.9;
    color: var(--white-color);
}

/* ========================================
   電話リンク
======================================== */
a.tel {
    display: inline-block;
}

/* ========================================
   ページトップへ戻るボタン
======================================== */
#pagetop {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: block;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    background: var(--white-color);
    border: 1px solid var(--linkhover-color);
    padding-top: 30px;
    text-align: center;
    text-decoration: none;
    opacity: 0.8;
    border-radius: 10px;
}

#pagetop::after {
    content: "";
    display: block;
    border-top: 2px solid var(--base-color);
    border-right: 2px solid var(--base-color);
    width: 25%;
    height: 25%;
    top: 45%;
    left: 0;
    right: 0;
    margin: auto;
    position: absolute;
    transform: rotate(-45deg);
}

#pagetop:hover {
    opacity: 0.5;
}

/* ========================================
   下層ページ
======================================== */
.subimg {
    height: 350px;
    background: url('../img/subimg.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    margin-bottom: 2rem;
}

.subimg h1 {
    height: 350px;
    line-height: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    text-shadow: 1px 2px 3px var(--link-color);
    margin: 0;
}

.breadcrumb {
    margin: 0 0 1em 0;
    padding: 0;
}

.breadcrumb li {
    list-style-type: none;
}

.breadcrumb li a {
    display: inline-block;
    color: var(--link-color);
}

/* ========================================
   レスポンシブ: PC (768px以上)
======================================== */
@media screen and (min-width: 768px) {
    /* ナビゲーション */
    #open,
    #close {
        display: none !important;
    }

    #navi {
        display: block !important;
    }

    /* まち紹介（アコーディオン無効化） */
    .town-accordion-item {
        background-color: var(--gray-color);
        padding: 20px;
    }

    .town-accordion-title {
        cursor: default;
        padding: 0;
        background-color: transparent;
        display: block;
        color: var(--base-color);
    }

    .accordion-arrow {
        display: none;
    }

    .town-accordion-content {
        display: block !important;
    }

    .town .col {
        background: var(--gray-color);
        box-shadow: 8px 8px 20px 0 rgba(0, 0, 0, .03);
    }

    .town .col h3 {
        margin-bottom: 20px;
    }

    .town .col .text {
        padding: 10px;
    }

    /* 固定ボタン非表示 */
    .mobile-contact-button {
        display: none;
    }

    /* 電話リンク無効化 */
    a[href*="tel:"] {
        pointer-events: none;
        cursor: default;
    }
}

/* ========================================
   レスポンシブ: スマホ (768px以下)
======================================== */
@media screen and (max-width: 768px) {
    /* ヘッダー */
    .header {
        flex-direction: column;
        margin-bottom: 10px;
    }

    .header-box {
        display: none;
    }

    .header #open,
    #close {
        position: absolute;
        top: 25px;
        right: 12px;
    }

    /* ナビゲーション */
    nav ul {
        flex-direction: column;
    }

    .header li {
        padding-top: 0;
    }

    #open {
        display: block;
        background: url(../img/button.png);
        background-repeat: no-repeat;
        background-size: contain;
        width: 50px;
        height: 50px;
        border: none;
        position: absolute;
        top: 25px;
        right: 12px;
    }

    #close {
        display: block;
        background: url(../img/button2.png);
        background-repeat: no-repeat;
        background-size: contain;
        width: 50px;
        height: 50px;
        border: none;
        position: absolute;
        top: 25px;
        right: 12px;
    }

    #navi {
        display: none;
    }

    .spnavi {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 15px;
        text-decoration: none;
        background-color: var(--link-color);
        color: var(--white-color);
    }

    .spnavi a {
        display: inline-block;
        color: var(--white-color);
    }

    .spnavi a:hover {
        opacity: 0.9;
        background-color: var(--link-color);
        color: var(--white-color);
    }

    .spnavi::after {
        content: '';
        width: 10px;
        height: 10px;
        border-top: 2px solid var(--white-color);
        border-right: 2px solid var(--white-color);
        transform: rotate(45deg);
    }

    /* メイン画像 */
    #mainimg h1 {
        height: 250px;
        font-size: 40px;
    }

    /* 見出し */
    h2 {
        font-size: 2rem;
    }

    /* セクション */
    section {
        padding: 2rem 0;
    }

    /* キャッチコピー */
    .container.center {
        margin-bottom: 0;
    }

    .hero-quote {
        margin-top: 0;
    }

    /* ニュース */
    .news-list .item .title {
        margin-top: 1em;
    }

    /* 補助金 */
    .hojo-area img {
        padding: 6px;
        max-width: 140px;
    }

    /* まち紹介 */
    .town-intro {
        font-size: 14px;
    }

    .town .col {
        margin: 12px 0;
        background: var(--gray-color);
        box-shadow: none;
    }

    .town .col h3 {
        margin-bottom: 0;
        font-size: 1.6rem;
    }

    .town .col .img {
        margin-top: 0;
        padding: 10px 30px;
    }

    .town .col .text {
        padding: 10px 0;
    }

    .town-accordion-item {
        margin: 12px 0;
        background-color: var(--gray-color);
        border-radius: 10px;
        overflow: hidden;
    }

    .town-accordion-item p {
        padding: 0 20px;
    }

    .town-accordion-title {
        cursor: pointer;
        padding: 15px;
        background-color: transparent;
        border-radius: 0;
        margin: 0;
        margin-bottom: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1.6rem;
        color: var(--base-color);
    }

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

    .town-accordion-item.active .accordion-arrow {
        transform: rotate(180deg);
    }

    .town-accordion-content {
        display: none;
        overflow: hidden;
    }

    .town-accordion-item.active .town-accordion-content {
        display: block;
    }

    /* 区画 */
    .kukaku {
        display: block;
    }

    .kukaku-intro {
        margin-bottom: 3rem;
    }

    .kukaku-image-area img {
        max-width: 100%;
    }

    .nakaman {
        width: 100%;
        height: auto;
        margin: 0;
    }

    .akakona {
        width: 100%;
        height: auto;
        margin: 24px 0 0 0;
    }

    p {
        font-size: 16px;
    }

    /* お問い合わせ */
    .contact-form-wrapper {
        padding: 10px 20px 100px;
    }

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

    .form-group label {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form textarea {
        width: 100%;
        font-size: 16px;
        padding: 10px 12px;
    }

    .submit-button {
        padding: 0 40px;
        font-size: 16px;
    }

    .message-box {
        padding: 15px;
        margin-bottom: 20px;
        font-size: 15px;
    }

    .success-box {
        font-size: 16px;
        padding: 20px;
    }
}
