/* Contact Page Styles */

body {
    margin: 0;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    /* ヘッダーの高さ + 余裕を持たせて調整 */
}


/* 特定のアンカーリンクでのスクロール位置調整 */

#house {
    scroll-margin-top: 120px;
}

#naisou {
    scroll-margin-top: 120px;
}

#others {
    scroll-margin-top: 120px;
}


/* PC */

@media (min-width: 1025px) {
    .main-visual {
        position: relative;
        width: 100%;
        height: 420px;
        background: #fff;
        display: flex;
        flex-direction: row;
    }
    .main-visual__logo {
        position: absolute;
        top: 32px;
        left: 32px;
        z-index: 10;
        width: 120px;
        height: 120px;
        background: #0a2a3a;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .main-visual__bg {
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
    }
    .main-visual__bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .main-visual__title {
        position: absolute;
        left: 50%;
        top: 45%;
        transform: translate(-50%, -50%);
        color: #fff;
        font-size: 2.5rem;
        font-weight: bold;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        z-index: 2;
    }
    .main-visual__estimate {
        position: absolute;
        right: 48px;
        bottom: 48px;
        z-index: 2;
    }
    .estimate-box {
        background: #f3eddf;
        border-radius: 16px;
        padding: 24px 32px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    .estimate-title {
        font-size: clamp(18px, 1.4vw, 32px);
        font-weight: bold;
        color: #1a2a3a;
        margin-bottom: 8px;
    }
    .estimate-desc {
        font-size: clamp(14px, 1.09vw, 24px);
        color: #333;
    }
    .main-visual__copyright {
        position: absolute;
        left: -60px;
        top: 50%;
        transform: rotate(-90deg) translateY(-50%);
        font-size: 0.95rem;
        color: #222;
        letter-spacing: 0.1em;
        z-index: 2;
    }
    .main-visual__breadcrumb {
        position: absolute;
        left: 32px;
        bottom: 16px;
        font-size: 1rem;
        color: #222;
        z-index: 2;
    }
    /* 横並び */
    .menu ul {
        display: flex;
        gap: 32px;
        justify-content: flex-end;
        align-items: flex-end;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .menu li {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .menu-icon {
        display: block;
        margin-bottom: 4px;
        width: 32px;
        height: 32px;
    }
    .menu-icon svg {
        width: 100%;
        height: 100%;
        display: block;
    }
    /* PC styles here */
}


/* Tablet */

@media (min-width: 768px) and (max-width: 1024px) {
    body.page-contact {
        /* Tablet styles here */
    }
}


/* Smartphone */

@media (max-width: 767px) {
    body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    }
    body.page-contact {
        /* Smartphone styles here */
    }
}


/* ヘッダー */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    padding: clamp(16px, 1.25vw, 32px) 0;
    transition: padding 0.3s ease;
}

.header--scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header__inner {
    width: 90%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}


/* ロゴ */

.site-branding {
    position: relative;
    margin-top: -36px;
}

.custom-logo-link {
    display: block;
    text-decoration: none;
    position: absolute;
}

.custom-logo {
    width: clamp(150px, 11.7vw, 300px);
    height: auto;
    display: block;
    transition: width 0.3s ease, margin-top 0.3s ease;
}

.header--scrolled .site-branding {
    margin-top: 0;
}

.header--scrolled .custom-logo-link {
    position: static;
}

.header--scrolled .custom-logo {
    width: 60px;
}


/* グローバルメニュー */

.header__nav {
    margin-left: auto;
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

.menu-item {
    text-align: center;
}

.menu-icon {
    display: block;
    margin: 0 auto 8px;
    width: clamp(28px, 2.1vw, 32px);
    height: clamp(28px, 2.1vw, 32px);
}


/* メニューアイコン */

.menu-icon svg {
    width: 32px;
    height: 32px;
}


/* アイコンのデザイン */

.menu-item:nth-child(1) .menu-icon svg {
    fill: none;
    stroke: #1a2a3a;
    stroke-width: 2;
}

.menu-item:nth-child(2) .menu-icon svg {
    fill: none;
    stroke: #1ab3a3;
    stroke-width: 2;
}

.menu-item:nth-child(3) .menu-icon svg {
    fill: none;
    stroke: #eab96b;
    stroke-width: 2;
}

.menu-item:nth-child(4) .menu-icon svg {
    fill: none;
    stroke: #1a2a3a;
    stroke-width: 2;
}

.menu-item:nth-child(5) .menu-icon svg {
    fill: none;
    stroke: #1ab3a3;
    stroke-width: 2;
}

.menu-item:nth-child(6) .menu-icon svg {
    fill: none;
    stroke: #eab96b;
    stroke-width: 2;
}

.menu-item a {
    color: #222;
    text-decoration: none;
    font-size: clamp(16px, 1.25vw, 32px);
    font-weight: 600;
    transition: color 0.3s;
}

.menu-item a:hover {
    color: #1ab3a3;
}

@media (max-width: 1024px) {
    body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    }
    .header {
        padding: 12px 0;
    }
    .site-branding {
        margin-top: -32px;
    }
    .custom-logo {
        width: 100px;
    }
    .menu {
        gap: 24px;
    }
}

@media (max-width: 960px) {
    body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    }
    .header {
        padding: 8px 0;
    }
    .site-branding {
        margin-top: -28px;
    }
    .custom-logo {
        width: 80px;
    }
}


/* メインビジュアル共通スタイル */

.main-visual,
.page-main-visual,
.top-main-visual {
    position: relative;
    width: 100%;
    background: #fff;
    display: flex;
}

.main-visual,
.top-main-visual {
    height: 80vh;
    min-height: 600px;
    width: calc(100% - 100px);
    /* padding-left: 120px; */
}

.top-main-visual {
    /* 背景画像はJavaScriptで切り替えるため、ここでは設定しない */
}

.page-main-visual {
    height: clamp(320px, 25vw, 550px);
    min-height: auto;
    padding-left: 120px;
    width: calc(100% - 100px);
}

.main-visual__vertical-copy,
.page-main-visual__vertical-copy {
    position: fixed;
    left: 50px;
    top: 80%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    color: #1a2a3a;
    font-size: clamp(12px, 0.93vw, 20px);
    letter-spacing: 0.2em;
    white-space: nowrap;
    z-index: 999;
    font-weight: 600;
}

.main-visual__bg,
.page-main-visual__bg {
    flex: 1;
    position: relative;
    background-image: url('../images/common/about-2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* border: 2px solid #1a2a3a; */
    border-bottom-left-radius: clamp(60px, 4.68vw, 100px);
}

.page-main-visual__title {
    position: absolute;
    left: 100px;
    bottom: 15%;
    color: #fff;
    font-size: clamp(36px, 2.8vw, 72px);
    font-weight: bold;
    z-index: 2;
    margin: 0;
    text-align: left;
    width: auto;
}

.page-main-visual__slug {
    position: absolute;
    left: 100px;
    bottom: 8%;
    color: #fff;
    font-size: clamp(16px, 1.2vw, 24px);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 2;
    margin: 0;
    opacity: 1;
    text-align: left;
    width: auto;
}


/* レスポンシブ対応 */

@media (max-width: 1024px) {
    .main-visual,
    .page-main-visual,
    .top-main-visual {
        padding-left: 80px;
    }
    .main-visual__vertical-copy,
    .page-main-visual__vertical-copy {
        left: 30px;
        font-size: 0.9rem;
    }
}

@media (max-width: 960px) {
    .main-visual,
    .top-main-visual {
        min-height: 450px;
    }
    .main-visual,
    .page-main-visual,
    .top-main-visual {
        padding-left: 60px;
    }
    .main-visual__vertical-copy,
    .page-main-visual__vertical-copy {
        left: 20px;
        font-size: 0.8rem;
    }
    .page-main-visual__title {
        font-size: 2rem;
    }
}


/* Breadcrumb */

.breadcrumb {
    font-size: clamp(14px, 1.09vw, 24px);
    /* max-width: 1200px; */
    margin: 0 0 0 auto;
    padding: clamp(16px, 1.25vw, 32px) clamp(32px, 2.5vw, 48px) clamp(16px, 1.25vw, 32px) 120px;
    /* background-color: #f8f8f8; */
    border-bottom: 1px solid #eee;
    font-weight: 600;
    width: 100;
    padding: clamp(16px, 1.25vw, 32px) 150px;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb>span>span {
    margin: 0 0.5em;
    color: #666;
}


/* --- ハンバーガーメニュー --- */

.header__hamburger {
    display: none;
    /* PCでは非表示 */
    position: relative;
    z-index: 1001;
    /* ナビゲーションより手前に */
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.header__hamburger span {
    display: block;
    position: absolute;
    left: 5px;
    width: 30px;
    height: 2px;
    background-color: #333;
    transition: transform 0.3s, top 0.3s, opacity 0.3s;
}

.header__hamburger span:nth-child(1) {
    top: 10px;
}

.header__hamburger span:nth-child(2) {
    top: 19px;
}

.header__hamburger span:nth-child(3) {
    top: 28px;
}


/* ハンバーガーメニューが開いた時のスタイル */

.header__hamburger.is-active span:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
}

.header__hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.is-active span:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
}

@media (max-width: 960px) {
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 20px 2rem 2rem;
        overflow-y: auto;
    }
    .header__nav.is-active {
        right: 0;
    }
    .header__nav .menu {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
    .header__nav .menu-item {
        width: 100%;
        text-align: center;
    }
    .header__nav .menu-item a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
        font-size: 1.1rem;
        font-weight: 600;
        width: 100%;
    }
    .header__nav .menu-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 8px;
    }
    .header__hamburger {
        display: flex;
    }
    .header__logo {
        position: relative;
        left: auto;
        transform: none;
    }
    .header__logo img {
        height: 40px;
    }
}


/* Privacy Policy Page Styles */

.privacy-policy {
    /* width: 75%; */
    /* max-width: 1200px; */
    margin: 0 auto;
    /* padding: 80px 24px; */
}

.privacy-policy__inner {
    width: 75%;
    margin: 0 auto;
    margin-bottom: 200px;
}

.privacy-policy__title {
    font-size: clamp(32px, 2.5vw, 48px);
    font-weight: bold;
    color: #1a2a3a;
    margin-bottom: 48px;
    text-align: center;
}

.privacy-policy__content {
    font-size: clamp(18px, 1.4vw, 32px);
    line-height: 2.3;
    font-weight: 600;
}

.privacy-policy__content p {
    font-size: clamp(16px, 1.25vw, 32px);
    margin-bottom: 24px;
}

.privacy-policy__content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .page-main-visual {
        height: 200px;
        min-height: auto;
        padding-left: 120px;
        width: auto;
        padding-left: 50px;
    }
    .breadcrumb {
        font-size: 8px;
        /* max-width: 1200px; */
        margin: 0 auto;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        padding-left: 50px;
        /* background-color: #f8f8f8; */
        border-bottom: 1px solid #eee;
        font-weight: 600;
    }
    .main-visual__bg,
    .page-main-visual__bg {
        flex: 1;
        position: relative;
        /* background-image: url(../images/common/top-image.jpg); */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        /* border: 2px solid #1a2a3a; */
        border-bottom-left-radius: 32px;
    }
    .page-main-visual__title {
        font-size: 1.3rem;
        white-space: nowrap;
        left: 30px;
        bottom: 50px;
    }
    .page-main-visual__slug {
        left: 30px;
        bottom: 35px;
        font-size: clamp(12px, 0.93vw, 20px);
    }
    .main-visual__vertical-copy,
    .page-main-visual__vertical-copy {
        left: 25px !important;
        font-size: 10px !important;
    }
    /* スマホでは見積もりボックスを非表示 */
    .main-visual__estimate {
        display: none;
    }
    /* 下部追従メニュー */
    .top-main-visual__btn--estimate span {
        font-size: 10px !important;
        font-weight: normal;
    }
    .top-main-visual__btn--contact span {
        font-size: 10px !important;
        font-weight: normal;
    }
    /* 下層ページの固定ボタンの色設定 */
    .top-main-visual__btn--estimate {
        background: #0A324C !important;
        color: #fff !important;
    }
    .top-main-visual__btn--contact {
        background: #00B900 !important;
        color: #fff !important;
    }
}


/* 全ページ共通お問い合わせセクション */

.contact-section {
    position: relative;
    background: linear-gradient(135deg, #3a7db8 0%, #5bb6e6 100%);
    color: #fff;
    padding: 0;
    margin-top: clamp(120px, 9.4vw, 200px);
}

.contact-section__inner {
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    border-top: solid 2px #1a4b6e;
    border-bottom: solid 2px #1a4b6e;
    height: 500px;
}

.contact-section__image {
    flex: 1;
    max-width: 50%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.contact-section__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-section__content {
    flex: 1;
    padding: 64px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #0A324C;
    border-left: solid 2px #0A324C;
}

.contact-section__title {
    margin-bottom: 32px;
}

.contact-section__title-en {
    display: block;
    font-size: clamp(16px, 1.25vw, 32px);
    font-weight: normal;
    opacity: 0.8;
    margin-bottom: 8px;
}

.contact-section__title-ja {
    display: block;
    font-size: clamp(28px, 2.1vw, 40px);
    font-weight: bold;
}

.contact-section__text {
    font-size: clamp(16px, 1.25vw, 32px);
    line-height: 2.3;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 600;
}

.contact-section__btn {
    display: inline-block;
    background: #fff;
    color: #1a4b6e;
    text-decoration: none;
    padding: 24px 48px 24px;
    border: solid 2px #1a4b6e;
    border-radius: 50px;
    font-size: clamp(20px, 1.56vw, 40px);
    font-weight: bold;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-section__btn:hover {
    transform: translateY(-2px);
}

.contact-section__btn-time {
    display: block;
    font-size: clamp(15px, 1.17vw, 28px);
    font-weight: normal;
    margin-top: 4px;
    opacity: 0.8;
    line-height: 1.1;
}


/* レスポンシブ対応 */

@media (max-width: 960px) {
    .contact-section {
        margin-top: 64px;
    }
    .contact-section__inner {
        flex-direction: column;
    }
    .contact-section__image {
        max-width: 100%;
        height: 300px;
    }
    .contact-section__content {
        padding: 48px 24px;
    }
}

@media (max-width: 767px) {
    .contact-section {
        padding: 0;
    }
    .contact-section__title {
        margin-bottom: 0;
    }
    .contact-section__inner {
        flex-direction: column-reverse;
        margin-left: 0;
        gap: 0;
    }
    .contact-section__image {
        display: block;
        max-width: fit-content;
        height: 100%;
    }
    .contact-section__content {
        padding: 1rem 0;
        text-align: center;
        width: 100%;
    }
    .contact-section__title-ja {
        font-size: 1.5rem;
    }
    .contact-section__text {
        padding: 1rem;
        text-align: left;
    }
    .contact-section__btn {
        font-size: 18px;
        width: 90%;
        padding: 1rem 0;
    }
}

@media (max-width: 450px) {
    .contact-section {
        padding: 0;
    }
    .contact-section__title {
        margin-bottom: 0;
    }
    .contact-section__inner {
        flex-direction: column-reverse;
        margin-left: 0;
        gap: 0;
    }
    .contact-section__image {
        display: block;
        max-width: fit-content;
        height: 100%;
    }
    .contact-section__content {
        padding: 1rem 0 3rem;
        text-align: center;
        width: 100%;
    }
    .contact-section__title-ja {
        font-size: 1.5rem;
    }
    .contact-section__text {
        padding: 1rem;
        text-align: left;
    }
    .contact-section__btn {
        font-size: 18px;
        width: 90%;
        padding: 1rem 0;
    }
}


/* 全ページ共通固定ボタン */

.fixed-bottom-buttons {
    display: none;
}


/* 全ページ共通アニメーションクラス */

.fade-in-element--up {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element--up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-element--blur {
    opacity: 0;
    filter: blur(2px);
    transition: opacity 1s ease-out, filter 1s ease-out;
}

.fade-in-element--blur.is-visible {
    opacity: 1;
    filter: blur(0);
}

.fade-in-element--delay-1 {
    transition-delay: 0.1s;
}

.fade-in-element--delay-2 {
    transition-delay: 0.2s;
}

.fade-in-element--delay-3 {
    transition-delay: 0.3s;
}

.fade-in-element--delay-4 {
    transition-delay: 0.4s;
}

.fade-in-element--delay-5 {
    transition-delay: 0.5s;
}

@media (max-width: 450px) {
    body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    }
    .fixed-bottom-buttons {
        display: flex;
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 60px;
        z-index: 1001;
        flex-direction: row;
        justify-content: center;
        gap: 0;
        background: rgba(255, 255, 255, 0);
        /* box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08); */
        padding: 0.5rem 0;
    }
    /* 固定ボタンが表示されるページで下部パディングを追加 */
    body:not(.home) {
        /* padding-bottom: 80px; */
    }
    .fixed-bottom-buttons__btn {
        flex: 1 1 0;
        margin: 0 0.5rem;
        min-width: 0;
        font-size: 1rem;
        padding: 1rem 0.5rem;
        line-height: 1;
        display: block;
        border-radius: 16px;
        text-align: center;
        text-decoration: none;
        font-weight: bold;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s;
    }
    .fixed-bottom-buttons__btn:hover {
        transform: translateY(-2px);
    }
    .fixed-bottom-buttons__btn--estimate {
        background: #0A324C;
        color: #fff;
    }
    .fixed-bottom-buttons__btn--estimate span {
        font-size: 10px;
        font-weight: normal;
    }
    .fixed-bottom-buttons__btn--contact {
        background: #00B900;
        color: #fff;
        display: none;
    }
    .fixed-bottom-buttons__btn--contact span {
        font-size: 10px;
        font-weight: normal;
    }
    .contact-section__text {
        font-size: clamp(16px, 1.25vw, 32px);
        line-height: 2.3;
        margin-bottom: 0px;
        opacity: 0.9;
        font-weight: 600;
    }
}