/* =============================================
   variables
   ============================================= */
:root {
    --color-black: #000;
    --color-white: #fff;
    --color-bg-light: #fffcf5;
    --color-green-100: #c5d8b5;
    --color-green-300: #4daa6e;
    --color-green-400: #009d2e;
    --color-green-600: #006930;
    --color-green-700: #004200;
    --color-green-900: #002600;
    --color-gray-400: #868686;
    --color-gray-700: #545454;
    --color-gray-800: #464646;
    --color-gray-900: #2f2f2f;
    --color-slate-400: #748974;
    --color-slate-600: #3a564b;
    --color-slate-700: #2f4c43;
    --color-slate-800: #2d3b28;
    --color-slate-900: #1e2f28;

    --font-base: 'Zen Kaku Gothic New', sans-serif;
    --font-en: 'Montserrat', sans-serif;

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 700;
    --fw-black: 900;

    --container-max: 1200px;
    --container-pad: 80px;
    --transition: 0.3s ease;
}

/* =============================================
   base
   ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

:target {
    scroll-margin-top: 80px;
}

body {
    font-family: var(--font-base);
    background-color: var(--color-white);
    color: var(--color-black);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    font-weight: var(--fw-bold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* =============================================
   layout
   ============================================= */

/* container */
.l-container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* header */
.l-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: var(--color-white);
    height: 80px;
}

.l-header__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 80px;
    padding: 15px 5%;
}

.l-header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.l-header__logo-img {
    height: 50px;
    width: auto;
}

.l-header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.l-header__nav-list {
    display: flex;
    gap: 1.6rem;
}

.l-header__nav-item a {
    letter-spacing: 0.05em;
    position: relative;
}

.l-header__nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-green-300);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}

.l-header__nav-item a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.l-header__hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 15px;
    cursor: pointer;
    z-index: 101;
    background: none;
    border: none;
    outline: none;
}

.l-header__hamburger span {
    display: block;
    width: 32px;
    height: 2px;
    background: var(--color-black);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.l-header__hamburger.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.l-header__hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.l-header__hamburger.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.l-header__drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    background-color: var(--color-white);
}

.l-header__drawer.is-open {
    opacity: 1;
    pointer-events: auto;
}

.l-header__drawer-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.l-header__drawer-list a {
    font-size: 1.25rem;
    font-weight: var(--fw-bold);
}

.l-header__drawer-parent {
    font-size: 1.25rem;
    font-weight: var(--fw-bold);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.l-header__drawer-parent::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.l-header__drawer-item--has-sub.is-open .l-header__drawer-parent::after {
    transform: rotate(180deg);
}

.l-header__drawer-sub {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.l-header__drawer-item--has-sub.is-open .l-header__drawer-sub {
    display: flex;
}

.l-header__drawer-sub a {
    font-size: 1rem;
    font-weight: var(--fw-bold);
    color: #666;
}

/* ドロップダウン */
.l-header__nav-item--has-dropdown {
    position: relative;
}

.l-header__dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-white);
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 100;
    white-space: nowrap;
}

.l-header__nav-item--has-dropdown:hover .l-header__dropdown {
    opacity: 1;
    pointer-events: auto;
}

.l-header__dropdown li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.l-header__dropdown li a:hover {
    background-color: #f5f5f5;
}

.l-header__dropdown li a::after {
    display: none;
}

/* footer */
.l-footer {
    background: var(--color-green-900);
    padding: 3rem var(--container-pad) 2rem;
}

.l-footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 0 40px 3rem;
    border-bottom: 1px solid var(--color-slate-400);
    margin-bottom: 1.5rem;
}

.l-footer__brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.l-footer__brand-logo img {
    height: 60px;
}

.l-footer__companies {
    color: var(--color-white);
    font-size: 1.2rem;
}

.l-footer__nav-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.l-footer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem 3rem;
}

.l-footer__nav-item a {
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
}

.l-footer__external-icon {
    width: 14px;
    height: auto;
    flex-shrink: 0;
}

.l-footer__nav-item a:hover {
    opacity: 0.7;
}

.l-footer__nav-item--sub a {
    padding-left: 1rem;
    position: relative;
}

.l-footer__nav-item--sub a::before {
    content: '-';
    position: absolute;
    left: 0;
}

.l-footer__bottom {
    text-align: center;
}

.l-footer__copyright {
    font-size: 0.75rem;
    color: var(--color-white);
    font-family: var(--font-en);
    letter-spacing: 0.03em;
}

/* =============================================
   components
   ============================================= */

/* headings */
.c-section__heading {
    position: relative;
    margin-left: auto;
    width: fit-content;
    height: 8rem;
    z-index: 2;
}

.c-section__heading.is-center {
    margin-inline: auto;
    height: 6rem;
}

.c-section__heading-area {
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
}

.c-section__heading-img {
    height: 100%;
    width: auto;
}

/* lead */
.c-section__lead {
    font-size: 36px;
    font-weight: var(--fw-black);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--color-green-100);
}

/* buttons */
.c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background-color: var(--color-slate-700);
    color: var(--color-white);
    padding: 18px 45px;
    border: 1px solid var(--color-white);
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.c-btn__text {
    font-size: 18px;
    letter-spacing: 0.05em;
}

.c-btn__arrow {
    width: 44px;
    height: 12px;
    background: url('../images/common/btn-arrow.svg') no-repeat center center / contain;
}

.c-btn:hover {
    background-color: var(--color-slate-800);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.c-btn--contact {
    background-color: var(--color-gray-900);
    opacity: 1;
}

/* badges & icons */
.c-tel-badge {
    display: inline-block;
    background: var(--color-slate-800);
    color: var(--color-white);
    font-weight: var(--fw-bold);
    padding: 0.25rem 0.5rem;
    letter-spacing: 0.1em;
    margin-right: 0.8rem;
    line-height: 1;
    border-radius: 2px;
}

/* pagetop */
.c-pagetop {
    text-decoration: none;
    display: inline-block;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.c-pagetop__circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 60px;
    height: 60px;
    background-color: var(--color-white);
    border: 2px solid var(--color-green-600);
    border-radius: 50%;
}

.c-pagetop__icon {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 15px solid var(--color-green-600);
}

.c-pagetop__text {
    font-size: 12px;
    line-height: 1;
}

/* CF7 */
.form-group {
    background-color: #dbe6db;
    padding: 40px 7%;
    margin-bottom: 32px;
}

.form-group > label {
    display: block;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 12px;
}

.form-group .wpcf7-radio .wpcf7-list-item {
    display: inline-block;
    margin-right: 16px;
    margin-bottom: 8px;
}

.wpcf7 [class*="group"] > div,
.wpcf7 .wpcf7-form-control-wrap + div {
    border-top: 2px solid #e0e0e0;
    padding-top: 24px;
    margin-top: 8px;
}

.wpcf7 label {
    display: block;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 25px;
    margin-bottom: 6px;
    color: #333;
}

.wpcf7 label:has(+ .wpcf7-form-control) {
    color: #333;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="email"]:focus {
    border-color: #4a90e2;
    outline: none;
}

.wpcf7 textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    min-height: 120px;
    transition: border-color 0.2s;
}

.wpcf7 textarea:focus {
    border-color: #4a90e2;
    outline: none;
}

.wpcf7 .wpcf7-radio .wpcf7-list-item,
.wpcf7 .wpcf7-checkbox .wpcf7-list-item {
    display: inline-block;
    margin-right: 16px;
    margin-bottom: 8px;
}

.form-group .wpcf7-list-item label {
    font-weight: 500;
    font-size: 1.2rem;
    margin-top: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.wpcf7 .wpcf7-list-item input[type="radio"],
.wpcf7 .wpcf7-list-item input[type="checkbox"] {
    margin-right: 6px;
    accent-color: #4a90e2;
    width: 17px;
    height: 17px;
}

.wpcf7 input[type="file"] {
    display: block;
    margin-top: 4px;
    font-size: 14px;
}

.wpcf7 input[type="submit"] {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 32px auto 0;
    padding: 20px;
    background: #2f2f2f;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.wpcf7 input[type="submit"]:hover {
    background: #2d3b28;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.wpcf7 .wpcf7-not-valid-tip {
    color: #e00;
    font-size: 13px;
    margin-top: 4px;
}

.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid {
    border-color: #e00;
}

.wpcf7 input[type="file"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.wpcf7 input[type="file"]::file-selector-button {
    padding: 8px 16px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-right: 12px;
    transition: background 0.2s;
}

.wpcf7 input[type="file"]::file-selector-button:hover {
    background: #e0e0e0;
}

[data-class="wpcf7cf_group"] {
    max-width: 700px;
    margin: 0 auto;
}

/* メインスライダー */
.slider-main {
    margin-bottom: 10px;
}

.slider-main img {
    width: 100%;
    height: 330px;
    object-fit: cover;
}

/* サムネイルスライダー */
.slider-thumbs {
    margin: 0 -5px;
}

.slider-thumbs .slick-slide {
    padding: 0 5px;
    box-sizing: border-box;
}

.slider-thumbs img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.slider-thumbs .slick-current img {
    opacity: 1;
    outline: 2px solid #4daa6e;
}

.p-find-land-desc__inner {
    display: flex;
    justify-content: space-between;
    margin: 80px 0 60px;
}

.p-find-land-desc__ctt,
.p-find-land-desc__slider {
    width: 47%;
}

.p-find-land-desc__ctt div {
    display: flex;
    align-items: flex-start;
    gap: 5%;
    margin-top: 25px;
}

.p-find-land-desc__ctt div:first-of-type {
    margin-top: 0;
}

.p-find-land-desc__ctt div dt {
    width: 150px;
    padding: 3px 10px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #dbe6db;
}

.p-find-land-desc__btn {
    margin: 70px 0 100px;
}

.p-find-land-desc__btn a {
    display: block;
    text-align: center;
    width: 100%;
    max-width: 300px;
    margin: 32px auto 0;
    padding: 20px;
    background: #2f2f2f;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.p-find-land-desc__btn a:hover {
    background: #2d3b28;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* =============================================
   utility
   ============================================= */
.u-br-pc {
    display: block;
}

.u-br-tab {
    display: block;
}

.is-filled {
    background-color: var(--color-bg-light);
}

/* =============================================
   responsive
   ============================================= */

@media (max-width: 1024px) {
    :root {
        --container-pad: 5vw;
    }

    .c-section__lead {
        color: var(--color-green-600);
    }

    .l-header__nav {
        gap: 1.25rem;
    }

    .l-footer__inner {
        grid-template-columns: auto;
        justify-content: center;
        gap: 2.5rem;
        padding-inline: 0;
    }

    .l-footer__nav-wrapper {
        grid-template-columns: repeat(2, auto);
        gap: 4rem;
        justify-content: start;
    }
}

@media (max-width: 980px) {
    .l-header__inner {
        align-items: center;
    }

    .l-header__nav {
        display: none;
    }

    .l-header__hamburger {
        display: flex;
    }

    .l-header__drawer {
        display: flex;
    }

    .c-btn {
        padding-inline: 20px;
    }

    .c-btn__text {
        font-size: 16px;
    }

    .u-br-pc {
        display: none;
    }
}

@media (max-width: 768px) {
    .c-section__heading {
        height: 5rem;
    }

    .p-find-land-desc__inner {
        flex-direction: column-reverse;
        gap: 30px;
        margin: 30px 0 30px;
    }

    .p-find-land-desc__ctt,
    .p-find-land-desc__slider {
        width: 100%;
    }

    .p-find-land-desc__ctt div {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }

    .p-find-land-desc__ctt div dt {
        width: 100%;
    }

    .p-find-land-desc__btn {
        margin: 40px 0 100px;
    }

    .slider-main img {
        height: 230px;
    }

    .slider-thumbs img {
        height: 60px;
    }

    .form-group {
        padding: 40px 5%;
    }

    .wpcf7 .wpcf7-list-item label {
        font-weight: 500;
        font-size: 1rem;
        margin-top: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 580px) {
    :root {
        --container-pad: 20px;
    }

    .u-br-tab {
        display: none;
    }

    .c-section__lead {
        font-size: 24px;
    }

    .l-header__logo-img {
        height: 40px;
    }

    .l-footer__nav-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .c-section__heading {
        height: 4rem;
    }

    .c-btn {
        min-width: 100%;
        justify-content: center;
    }
}