/*
Theme Name: Shintairiku Reform
Theme URI: http://example.com/
Description: Custom theme for Shintairiku Reform
Author: Antigravity
Author URI: http://example.com/
Version: 1.0
*/

:root {
    /* Colors - Shintairiku Theme */
    --color-primary: #0095d9;
    /* Sky Blue */
    --color-primary-dark: #007bb5;
    --color-accent: #f08300;
    /* Orange */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-sub: #f4f8fa;
    --color-border: #dddddd;

    /* Typography */
    --font-base: 'Noto Sans JP', sans-serif;
    --font-accent: 'Noto Serif JP', serif;
    --font-eng: 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* Spacing & Layout */
    --width-inner: 1100px;
    --header-height: 80px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

a:hover {
    opacity: 0.7;
}

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

ul {
    list-style: none;
}

/* =========================================
   Common Utility Classes (Homage)
   ========================================= */
.common_inner {
    max-width: var(--width-inner);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.common-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.common-flex-start {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
}

.common-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.common_ttl {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    font-family: var(--font-accent);
}

.common_ttl .eng {
    display: block;
    font-size: 14px;
    color: var(--color-primary);
    font-family: var(--font-eng);
    margin-bottom: 5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.common-btn-page {
    text-align: center;
    margin-top: 30px;
}

.common-btn-page a {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 50px;
    font-weight: 700;
    position: relative;
    background: white;
}

.common-btn-page a:hover {
    background: var(--color-primary);
    color: white;
    opacity: 1;
}

/* =========================================
   Header
   ========================================= */
.header {
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hd_top_link {
    background: var(--color-bg-sub);
    text-align: right;
    padding: 5px 20px;
}

.hd_top_link ul {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    font-size: 12px;
}

.hd_contents {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
    height: var(--header-height);
}

.header-logo img {
    height: 40px;
    width: auto;
}

.header-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-tel {
    text-align: right;
}

.header-tel__number {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.header-tel__number .note {
    font-size: 10px;
    color: #333;
    margin-left: 5px;
    vertical-align: middle;
}

.header-tel__note {
    font-size: 10px;
    display: block;
    color: #666;
}

.nav_list {
    display: flex;
    gap: 20px;
}

.nav_list .list_item a {
    font-weight: 700;
    font-size: 14px;
    color: #333;
    padding: 10px 0;
    display: block;
}

.nav_list .list_item a:hover {
    color: var(--color-primary);
}

/* Mobile Menu Trigger */
.header_sp_btn {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.menu__line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #333;
    transition: 0.3s;
}

.menu__line--top {
    top: 0;
}

.menu__line--center {
    top: 9px;
}

.menu__line--bottom {
    bottom: 0;
}

/* =========================================
   Main Content
   ========================================= */
.main {
    padding-top: calc(var(--header-height) + 30px);
    /* Adjust for fixed header */
}

/* Hero (FV) */
.fv {
    width: 100%;
    margin-bottom: 40px;
}

.fv img {
    width: 100%;
    height: auto;
    display: block;
}

/* Banners */
.lp_bnr {
    max-width: 1000px;
    width: 90%;
    margin: 20px auto;
    text-align: center;
}

.lp_bnr img {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.about-textarea {
    width: 45%;
}

.about-textarea .txt {
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-img {
    width: 50%;
}

.about-img img {
    border-radius: 8px;
}

/* Renovation Section */
.renovation {
    background: var(--color-bg-sub);
    padding: 80px 0;
}

.renovation .txt {
    text-align: center;
    margin-bottom: 40px;
}

.renovation-list {
    gap: 20px;
}

.renovation-list__item {
    width: calc(25% - 15px);
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: 0.3s;
}

.renovation-list__item:hover {
    transform: translateY(-5px);
}

.renovation-list__item .wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.renovation-list__item .img {
    height: 150px;
    background: #eee;
}

.renovation-list__item .textarea {
    padding: 20px;
    text-align: center;
}

.renovation-list__item .ttl {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 16px;
}

.renovation-list__item .ttl b {
    color: var(--color-primary);
    font-size: 18px;
}

/* Works Section */
.common-works-wrap {
    max-width: 100%;
    margin: 80px 0;
    padding: 0 0 0 5%;
    /* Left padding only to align title */
    overflow: hidden;
    background-color: #f0f8ff;
    /* Light blue background like reference */
    padding-top: 60px;
    padding-bottom: 60px;
}

.common-works-wrap .ttl-area {
    width: 25%;
    padding-right: 40px;
    padding-left: 20px;
}

.common-works-wrap .slide-area {
    width: 75%;
    position: relative;
}

.slide-works-list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 40px;
    padding-right: 5%;
    /* Right padding for scroll end */
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.slide-works-list::-webkit-scrollbar {
    display: none;
}

.slide-works-list__item {
    min-width: 320px;
    width: 320px;
    background: white;
    border-radius: 0;
    /* Square corners as per some modern designs, or keep slightly rounded? Reference has square images */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    transition: 0.3s;
}

.slide-works-list__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.slide-works-list__item .img {
    height: 220px;
    background: #ddd;
    overflow: hidden;
}

.slide-works-list__item .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.slide-works-list__item:hover .img img {
    transform: scale(1.05);
}

.slide-works-list__item .content {
    padding: 20px;
}

.slide-works-list__item .ttl {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
    min-height: 3em;
    /* Align heights */
}

.slide-works-list__item .desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slide-works-list__item .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.slide-works-list__item .tags span {
    font-size: 10px;
    border: 1px solid #ddd;
    padding: 2px 8px;
    color: #666;
    background: #fff;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary);
    /* Blue */
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.slider-nav:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav::before {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 3px solid white;
    border-right: 3px solid white;
    display: block;
}

.slider-prev {
    left: -25px;
    /* Overlap boundary */
    transform: translateY(-50%) rotate(-135deg);
}

.slider-prev:hover {
    transform: translateY(-50%) scale(1.1) rotate(-135deg);
}

.slider-next {
    right: 20px;
    transform: translateY(-50%) rotate(45deg);
}

.slider-next:hover {
    transform: translateY(-50%) scale(1.1) rotate(45deg);
}

@media (max-width: 768px) {
    .common-works-wrap {
        padding: 40px 0;
    }

    .common-works-wrap .ttl-area {
        width: 100%;
        padding: 0 20px;
        margin-bottom: 30px;
        text-align: center;
    }

    .common-works-wrap .slide-area {
        width: 100%;
        padding-left: 20px;
    }

    .slide-works-list__item {
        min-width: 280px;
        width: 280px;
    }

    .slider-nav {
        display: none;
        /* Hide arrows on mobile, use swipe */
    }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    /* Hidden by default, shown on SP via utility class or media query */
    flex-direction: column;
}

.mobile-bottom-nav__popup {
    position: absolute;
    top: -50px;
    left: 10px;
    background: #f08300;
    color: white;
    padding: 8px 30px 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: popupBounce 2s infinite;
}

.mobile-bottom-nav__popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    border-top: 8px solid #f08300;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

.mobile-bottom-nav__popup .close-btn {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-bottom-nav__popup .close-btn::before,
.mobile-bottom-nav__popup .close-btn::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 2px;
    background: white;
}

.mobile-bottom-nav__popup .close-btn::before {
    transform: rotate(45deg);
}

.mobile-bottom-nav__popup .close-btn::after {
    transform: rotate(-45deg);
}

@keyframes popupBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.mobile-bottom-nav__buttons {
    display: flex;
    width: 100%;
    height: 70px;
}

.mobile-bottom-nav__buttons a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    gap: 10px;
    transition: 0.3s;
}

.mobile-bottom-nav__buttons .btn-line {
    background-color: #06C755;
    /* LINE Green */
}

.mobile-bottom-nav__buttons .btn-consult {
    background-color: #0095D9;
    /* Sky Blue */
}

.mobile-bottom-nav__buttons .icon img {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    display: block;
}

.mobile-bottom-nav__buttons .text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.mobile-bottom-nav__buttons .text .sub {
    font-size: 10px;
    opacity: 0.9;
}

.mobile-bottom-nav__buttons .text .main {
    font-size: 15px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* Adjust footer margin to prevent overlap */
    .footer {
        padding-bottom: 80px;
    }
}

/* Event Section */
.common-event-wrap {
    padding: 80px 0;
    background: #fff;
}

.event-list {
    gap: 20px;
}

.event-list__item {
    width: calc(25% - 15px);
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.event-thumb {
    height: 150px;
    background: #eee;
}

.event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-textarea {
    padding: 15px;
}

.event-cat span {
    background: var(--color-accent);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 2px;
    margin-right: 5px;
}

.event-ttl {
    font-size: 14px;
    font-weight: 700;
    margin: 10px 0;
    line-height: 1.5;
}

.event-date {
    font-size: 11px;
    color: #666;
}

/* Voice Section */
.top-voice {
    padding: 80px 0;
    background: var(--color-bg-sub);
}

.voice-list {
    gap: 30px;
}

.voice-list__item {
    width: calc(33.333% - 20px);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.voice-list__item .img {
    height: 200px;
    background: #ddd;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.voice-list__item .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.voice-list__item .ttl {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--color-primary);
}

/* Works Filter */
.works-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.works-filter-btn {
    padding: 10px 25px;
    border: 1px solid #ddd;
    border-radius: 30px;
    background: white;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.works-filter-btn:hover,
.works-filter-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Contact Section */
.contact {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

.contact-btn {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: 15px 50px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(240, 131, 0, 0.3);
}

.contact-btn:hover {
    background: #d07200;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-inner {
    max-width: var(--width-inner);
    margin: 0 auto;
    padding: 0 20px;
}

.flex-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.flex-nav__item {
    width: 23%;
}

.flex-nav__item dt {
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

.flex-nav__item dd ul li,
.flex-nav__item ul li {
    margin-bottom: 10px;
}

.flex-nav__item a {
    font-size: 13px;
    color: #ccc;
}

.flex-nav__item a:hover {
    color: white;
}

.footer_bottom {
    border-top: 1px solid #555;
    padding-top: 30px;
    text-align: center;
}

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

.footer-txt {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
}

.footer-copy {
    font-size: 10px;
    color: #666;
}

@media (max-width: 768px) {
    .header-menu {
        gap: 10px;
    }

    .header-tel {
        display: none;
    }

    .header_sp_btn {
        display: block;
    }

    .flex-nav__item {
        width: 48%;
        margin-bottom: 30px;
    }
}