/* top.css - front-page styles */


/* メインビジュアルの文字アニメーション（トップページのみ） */

.typewriter-text {
    margin-bottom: 2%;
}

.typewriter-line {
    margin: 0;
    font-size: clamp(60px, 4.68vw, 100px);
    font-weight: bold;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    color: #fff;
    display: block;
    padding: clamp(4px, 0.31vw, 8px) 0;
    border-right: 3px solid transparent;
    min-height: 1.2em;
    position: relative;
}

.typewriter-line span {
    opacity: 0;
    animation: fadeInChar 0.1s ease-in forwards;
}

.typewriter-line:nth-child(2) span {
    animation-delay: 3s;
}

.typewriter-line:nth-child(2) {
    margin-top: 0;
}

.typewriter-description {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}


/* タイプライターアニメーション */

@keyframes fadeInChar {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes blink-caret {
    from,
    to {
        border-color: transparent;
    }
    50% {
        border-color: #fff;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* ページ全体のアニメーション（トップページのみ） */

body.home {
    opacity: 0 !important;
    transition: opacity 1s ease-out;
}

body.home.is-loaded {
    opacity: 1 !important;
}


/* メインビジュアル */

.top-main-visual {
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    margin-left: 100px;
    /* border: 2px solid #0A324C; */
    border-bottom-left-radius: clamp(60px, 4.68vw, 100px);
    /* for vertical text */
}


/* 背景画像切り替え用のスタイル */

.top-main-visual__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.top-main-visual__bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
    border-bottom-left-radius: clamp(60px, 4.68vw, 100px);
}

.top-main-visual__bg-image--active {
    opacity: 1;
}

.top-main-visual__bg-image[data-image="1"] {
    background-image: url('../images/common/bg-top_suito2.jpg');
}

.top-main-visual__bg-image[data-image="2"] {
    background-image: url('../images/common/bg-top_suito3.jpg');
}

.top-main-visual__bg-image[data-image="3"] {
    background-image: url('../images/common/bg-top_suito4.jpg');
}


/* スマホ時（480px以下）の2番目画像切り替え */

@media (max-width: 480px) {
    .top-main-visual__bg-image[data-image="2"] {
        background-image: url('../images/common/bg-top_suito5sp.jpg');
    }
}

.top-main-visual__content {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    /* width: 100%; */
    width: -webkit-fill-available;
    padding: 0 60px;
    z-index: 2;
    position: absolute;
    bottom: 23%;
}

.top-main-visual__catch h1 {
    margin: 0;
    font-size: clamp(60px, 4.68vw, 100px);
    font-weight: bold;
    line-height: 1.3;
    /* text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); */
    background: #fff;
    color: #333;
    display: inline;
    padding: clamp(4px, 0.31vw, 8px) 0;
}

.top-main-visual__catch p {
    font-size: clamp(14px, 1.09vw, 24px);
    line-height: 1.8;
    color: #fff;
    text-shadow: 1px 1px 1px rgb(0, 0, 0, 0.1);
}

.top-main-visual__sidebtns {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* 追随表示用のスタイル */

.top-main-visual__sidebtns--fixed {
    position: fixed;
    right: -200px;
    display: flex;
    /* 初期状態では画面外に配置 */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(1px);
    padding: 20px 0 16px;
    border-radius: 16px 0 0 16px;
    /* box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1); */
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transition: right 0.3s ease-out;
}

.top-main-visual__sidebtns--fixed.is-visible {
    right: 0;
    /* 表示時は画面右端に */
}

.top-main-visual__sidebtns--fixed .top-main-visual__btn {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: clamp(24px, 1.8vw, 44px) clamp(16px, 1.25vw, 32px);
    margin-bottom: 16px;
    white-space: nowrap;
    border-radius: 20px 0 0 20px
}

.top-main-visual__sidebtns--fixed .top-main-visual__btn:last-child {
    margin-bottom: 0;
    display: none;
}

.top-main-visual__btn {
    display: block;
    padding: clamp(16px, 1.25vw, 32px) clamp(24px, 1.8vw, 44px);
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: clamp(18px, 1.4vw, 32px);
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.top-main-visual__btn:hover {
    transform: translateY(-2px);
}

.top-main-visual__btn--estimate {
    background: #0A324C;
    color: #fff;
    z-index: 999;
}

.top-main-visual__btn-image {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    z-index: 1;
    opacity: 0;
    transition: all 0.2s ease-out;
}


/* 他のページ（.page-main-visual）でのボタン画像位置調整 */

.page-main-visual .top-main-visual__btn-image {
    left: 70%;
    top: 60%;
    transform: translate(-50%, -50%);
}


/* fixed-bottom-buttons内のボタン画像位置調整 */

.fixed-bottom-buttons .top-main-visual__btn-image {
    position: absolute;
    left: 70%;
    top: 50%;
    transform: translate(-0%, -5%);
    z-index: 1000;
}

.top-main-visual__btn-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}


/* 481px以上でのホバー効果 */

@media (min-width: 481px) {
    .top-main-visual__btn-image {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 998;
    }
    .top-main-visual__btn--estimate:hover+.top-main-visual__btn-image {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(-80px);
    }
}


/* 480px以下でのスクロール効果 */

@media (max-width: 480px) {
    .top-main-visual__btn-image {
        left: 70%;
        transform: translate(-0%, -5%);
        z-index: 1000;
    }
    .top-main-visual__btn-image.is-visible {
        opacity: 1;
        transform: translate(-0%, 5%) translateY(-60px);
    }
    /* fixed-bottom-buttons内のボタン画像のスクロール効果 */
    .fixed-bottom-buttons .top-main-visual__btn-image.is-visible {
        opacity: 1;
        transform: translate(-0%, 5%) translateY(-60px);
    }
}

.top-main-visual__btn--estimate span {
    font-size: clamp(14px, 1.09vw, 24px);
    font-weight: normal;
}

.top-main-visual__btn--contact {
    background: #00B900;
    color: #fff;
    display: none;
}

.top-main-visual__btn--contact span {
    font-size: clamp(14px, 1.09vw, 24px);
    font-weight: normal;
}

.top-main-visual__vertical-copy {
    position: fixed;
    left: 50px;
    top: 75%;
    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;
}

.top-main-visual__news {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 89%;
    /* max-width: 800px; */
    z-index: 2;
}

.top-main-visual__news--sp {
    display: none;
}

.top-main-visual__news-item {
    background: rgba(255, 255, 255, 0.9);
    padding: clamp(16px, 1.25vw, 32px) clamp(24px, 1.8vw, 44px);
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.top-main-visual__news-item a {
    font-size: clamp(16px, 1.25vw, 32px);
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    position: relative;
    transition: opacity 0.3s ease;
}

.top-main-visual__news-item:hover a {
    opacity: 0.7;
}

.top-main-visual__news-arrow {
    margin-left: auto;
    font-size: clamp(16px, 1.25vw, 32px);
    color: #333;
    transition: transform 0.3s ease;
}

.top-main-visual__news-item:hover .top-main-visual__news-arrow {
    transform: translateX(8px);
}

.top-main-visual__news-date {
    font-size: clamp(16px, 1.25vw, 32px);
    font-weight: bold;
    margin-right: 16px;
}

.top-main-visual__deco {
    position: absolute;
    bottom: -30px;
    right: 5%;
    width: 150px;
    z-index: 3;
}

.top-main-visual__deco svg {
    display: none;
}

.top-main-visual__deco::after {
    /* content: '🖌️'; */
    /*仮のブラシ*/
    font-size: 50px;
    position: absolute;
    right: 0;
    bottom: 0;
}


/* 私たちについて */

.top-about {
    padding: clamp(80px, 6.2vw, 160px) 0 clamp(200px, 15.6vw, 350px);
    background: transparent;
}

.top-about__inner {
    /* max-width: 1200px; */
    margin-left: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(64px, 5vw, 120px);
}

.top-about__content {
    flex: 1;
    /* max-width: 600px; */
}

.top-about__title {
    margin-bottom: 32px;
}

.top-about__title-en {
    display: block;
    font-size: clamp(16px, 1.25vw, 32px);
    font-weight: normal;
    color: #888;
    margin-bottom: 8px;
}

.top-about__title-ja {
    display: block;
    font-size: clamp(28px, 2.1vw, 40px);
    font-weight: bold;
    color: #222;
}

.top-about__catch {
    font-size: clamp(36px, 2.8vw, 72px);
    font-weight: bold;
    line-height: 1.8;
    margin-bottom: 24px;
    color: #222;
}

.top-about__text {
    font-size: clamp(16px, 1.25vw, 32px);
    line-height: 2.3;
    margin-bottom: 40px;
    color: #222;
    font-weight: 600;
}

.top-about__btn-wrap {
    text-align: left;
}

.top-about__btn {
    display: inline-block;
    background: #fff;
    color: #0A324C;
    text-decoration: none;
    padding: 16px 48px;
    border: solid 2px #0A324C;
    border-radius: 32px;
    font-size: clamp(18px, 1.4vw, 32px);
    font-weight: bold;
    transition: background 0.3s;
}

.top-about__btn:hover {
    background: #0A324C;
    color: #fff;
}

.top-about__image {
    flex: 1;
    /* max-width: 480px; */
}

.top-about__image img {
    width: 100%;
    height: auto;
    border-radius: clamp(48px, 3.7vw, 96px) 0 0 clamp(48px, 3.7vw, 96px);
}


/* 動画コンテナと動画のスタイル */

.top-about__video-container {
    display: flex;
    flex-direction: column;
    gap: clamp(50px, 3.9vw, 90px);
    width: 100%;
    height: auto;
}

.top-about__video {
    width: 80%;
    height: auto;
    border-radius: clamp(4px, 0.31vw, 8px);
}

.top-about__video--left {
    width: 60%;
}

.top-about__video--right {
    margin-left: 20%;
}


/* スマホ対応 */

@media (max-width: 768px) {
    .top-about__video-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .top-about__video--left,
    .top-about__video--right {
        position: static;
        width: 100%;
    }
    .top-about__video--left {
        width: 60%;
    }
}


/* サービス一覧 */

.top-toryou-icon {
    position: relative;
}

.top-toryou-icon img {
    position: absolute;
    top: -3rem;
}


/* 480px以下での調整 */

@media (max-width: 480px) {
    .top-toryou-icon img {
        position: absolute;
        bottom: -4rem;
        right: -7rem;
    }
}

.top-service {
    padding: 64px 0;
    position: relative;
    /* overflow: hidden; */
}

.top-service__inner {
    width: 75%;
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.top-service__inner::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -200px;
    width: 150%;
    height: 150%;
    background: url('../images/common/service-bg.jpg') no-repeat center/cover;
    transform: rotate(2deg);
    z-index: -1;
    opacity: 0.5;
}

.top-service__title {
    text-align: center;
    margin-bottom: 40px;
}

.top-service__title-en {
    display: block;
    font-size: clamp(16px, 1.25vw, 32px);
    font-weight: normal;
    color: #888;
    margin-bottom: 8px;
}

.top-service__title-ja {
    display: block;
    font-size: clamp(28px, 2.1vw, 40px);
    font-weight: bold;
    color: #222;
}

.top-service__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(48px, 3.7vw, 96px);
    margin-top: clamp(48px, 3.7vw, 96px);
}

.top-service__item {
    /* background: #fff; */
    border-radius: 24px;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); */
    /* padding: 24px; */
    display: flex;
    flex-direction: column;
}

.top-service__item img {
    width: 100%;
    height: clamp(300px, 23.4vw, 500px);
    object-fit: cover;
    /* border: 2px solid #0A324C; */
    margin-bottom: clamp(32px, 2.5vw, 48px);
    /* 不規則な形のベース */
    clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
    box-shadow: 6px 6px 6px 0px rgba(0, 0, 0, 0.4);
}


/* 1つ目のサービス画像 - 5角形風（家の形） */

.top-service__item:nth-child(1) img {
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}


/* 2つ目のサービス画像 - 5角形風（家の形、角度変更） */

.top-service__item:nth-child(2) img {
    clip-path: polygon(45% 0%, 95% 35%, 85% 100%, 15% 100%, 5% 35%);
}


/* 3つ目のサービス画像 - 5角形風（家の形、角度変更） */

.top-service__item:nth-child(3) img {
    clip-path: polygon(55% 0%, 100% 42%, 78% 100%, 22% 100%, 0% 42%);
}


/* 4つ目のサービス画像 - 5角形風（家の形、角度変更） */

.top-service__item:nth-child(4) img {
    clip-path: polygon(40% 0%, 90% 40%, 80% 100%, 20% 100%, 10% 40%);
}

.top-service__label {
    font-size: clamp(28px, 2.1vw, 40px);
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
}

.top-service__desc {
    font-size: clamp(16px, 1.25vw, 32px);
    line-height: 2.3;
    color: #666;
    margin-bottom: 24px;
    font-weight: 600;
}

.top-service__link {
    margin-top: auto;
    text-align: right;
}

.top-service__link a {
    display: inline-flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-size: clamp(16px, 1.25vw, 32px);
    font-weight: bold;
}

.top-service__arrow {
    margin-left: 8px;
    display: inline-flex;
    transition: transform 0.3s;
}

.top-service__link a:hover .top-service__arrow {
    transform: translateX(4px);
}


/* 施工事例 */

.top-works {
    position: relative;
    padding: 120px 0 0;
    background-image: url('../images/common/takamatsu.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* パララックス効果 */
}

.top-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    /* 少し暗くして文字を読みやすく */
}

.top-works__inner {
    width: 85%;
    /* max-width: 1200px; */
    margin: 0 0 0 auto;
    padding: clamp(60px, 4.68vw, 100px);
    background: #fff;
    border-top-left-radius: clamp(36px, 2.8vw, 72px);
    border-bottom-left-radius: 0;
    /* box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); */
    position: relative;
    z-index: 1;
    text-align: center;
}

.top-works__title {
    margin-bottom: 40px;
    text-align: left;
}

.top-works__title-en {
    display: block;
    font-size: clamp(16px, 1.25vw, 32px);
    font-weight: normal;
    color: #888;
    margin-bottom: 8px;
}

.top-works__title-ja {
    display: block;
    font-size: clamp(28px, 2.1vw, 40px);
    font-weight: bold;
    color: #222;
}

.top-works__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
    text-align: left;
}

.top-works__item a {
    text-decoration: none;
    display: block;
    background: #fff;
    border-radius: 16px;
    box-shadow: 8px 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    color: inherit;
}

.top-works__item a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.top-works__item-image img,
.top-works__item-image .wp-post-image {
    width: 100%;
    height: clamp(150px, 11.7vw, 300px);
    object-fit: cover;
    display: block;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
}

.top-works__item-content {
    padding: clamp(16px, 1.25vw, 32px);
}

.top-works__item-cat {
    display: inline-block;
    background: #1ab3a3;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: clamp(14px, 1.09vw, 24px);
    margin-bottom: 12px;
}

.top-works__item-title {
    font-size: clamp(16px, 1.25vw, 32px);
    color: #222;
    font-weight: bold;
    line-height: 1.5;
    margin: 0;
}

.top-works__btn-wrap {
    margin-top: 40px;
}

.top-works__btn {
    display: inline-block;
    background: #fff;
    color: #1a2a3a;
    text-decoration: none;
    padding: clamp(16px, 1.25vw, 32px) clamp(48px, 3.7vw, 96px);
    border: solid 2px #1a2a3a;
    border-radius: 32px;
    font-size: clamp(18px, 1.4vw, 32px);
    font-weight: bold;
    transition: background 0.3s;
}

.top-works__btn:hover {
    background: #1a2a3a;
    color: #fff;
}

.top-works__deco {
    display: none;
}


/* Responsive */

@media (max-width: 1024px) {
    .top-works__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .top-works {
        padding: 80px 16px;
    }
    .top-works__inner {
        padding: 40px 20px;
    }
    .top-works__list {
        grid-template-columns: 1fr;
    }
}


/* 仮：小物SVG */

.top-main-visual__deco svg,
.top-service__deco svg,
.top-news__deco svg,
.top-works__deco svg {
    opacity: 0.5;
}


/* トップページでは全ページ共通お問い合わせセクションを非表示 */

body.home .contact-section {
    display: none;
}


/* お問い合わせ */

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

.top-contact__inner {
    /* max-width: 1200px; */
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    border-top: solid 2px #1a4b6e;
    border-bottom: solid 2px #1a4b6e;
    height: 500px;
}

.top-contact__image {
    flex: 1;
    max-width: 50%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.top-contact__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-contact__content {
    flex: 1;
    padding: 64px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #0A324C;
    /* background: linear-gradient(135deg, #3a7db8 0%, #5bb6e6 100%); */
    border-left: solid 2px #0A324C;
    /* border-radius: 24px; */
}

.top-contact__title {
    margin-bottom: 32px;
}

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

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

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

.top-contact__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;
    /* width: 100%; */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.top-contact__btn:hover {
    transform: translateY(-2px);
}

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

.top-hake-icon {
    position: relative;
}

.top-hake-icon img {
    position: absolute;
    bottom: -70px;
    left: 100px;
    z-index: 998;
}


/* 480px以下での調整 */

@media (max-width: 480px) {
    .top-hake-icon img {
        position: absolute;
        bottom: -80px;
        left: -10px;
        z-index: 998;
    }
}


/* メディアクエリ（タブレット・スマホ用は後で記述） */

@media (max-width: 960px) {
    /* タブレット用 */
    .top-about__inner {
        padding: 0 24px;
        flex-direction: column-reverse;
        gap: 40px;
    }
    .top-about__content {
        max-width: 100%;
    }
    .top-about__image {
        max-width: 100%;
    }
    .top-about__catch {
        font-size: 2rem;
    }
    .top-contact {
        margin-top: 64px;
    }
    .top-contact__inner {
        flex-direction: column;
    }
    .top-contact__image {
        max-width: 100%;
        height: 300px;
        align-items: stretch;
    }
    .top-contact__inner {
        height: auto;
        min-height: auto;
    }
    .top-contact__content {
        padding: 48px 24px;
    }
    .top-service__inner {
        padding: 0 16px;
    }
    .top-service__list {
        gap: 24px;
    }
    .top-service__item {
        padding: 16px;
    }
    .top-main-visual__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
        padding: 0 40px;
    }
    .top-main-visual__catch b {
        font-size: 2.8rem;
    }
    .top-main-visual__news {
        width: 90%;
    }
}

@media (max-width: 767px) {
    /* --- メインビジュアル --- */
    .top-main-visual {
        margin-left: 0;
        padding: 0 1.5rem;
        height: 80vh;
    }
    .top-main-visual__content {
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        padding: 0;
    }
    .top-main-visual__catch b {
        font-size: 2.2rem;
        text-align: center;
    }
    .top-main-visual__sidebtns {
        flex-direction: row;
        gap: 1rem;
    }
    .top-main-visual__btn {
        padding: 1rem 1.5rem;
    }
    .top-main-visual__news {
        width: 100%;
        bottom: 20px;
        padding: 0 1rem;
    }
    .top-main-visual__news--sp {
        display: block;
        /* position: absolute; */
        bottom: 20px;
        left: 50%;
        /* transform: translateX(-50%); */
        width: auto;
        /* padding: 0 1rem; */
        z-index: 2;
    }
    .top-main-visual__news {
        display: none;
    }
    .top-main-visual__news-item {
        padding: 0.8rem 1.2rem;
    }
    .top-main-visual__news-date {
        font-size: 0.9rem;
    }
    .top-main-visual__news-title {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .top-main-visual__vertical-copy {
        /* display: none; */
        /* スマホでは非表示 */
    }
    /* スマホ用のtop-contact調整 */
    .top-contact__inner {
        height: auto;
        min-height: auto;
    }
    .top-contact__image {
        height: 250px;
    }
    /* --- 私たちについて --- */
    .top-about {
        padding: 4rem 1.5rem;
    }
    .top-about__inner {
        flex-direction: column;
        margin-left: 0;
        gap: 2.5rem;
    }
    .top-about__title-ja {
        font-size: 1.5rem;
    }
    .top-about__catch {
        font-size: 1.8rem;
    }
    .top-about__text {
        font-size: 0.95rem;
    }
    .top-about__btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
    .top-about__image img {
        border-radius: 16px;
        /* 角丸を全方向に */
    }
    /* --- サービス一覧 --- */
    .top-service {
        padding: 4rem 0;
    }
    .top-service__list {
        flex-direction: column;
        gap: 2rem;
    }
    .top-service__inner::before {
        transform: rotate(0deg);
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        opacity: 0.1;
    }
    .top-service__inner {
        width: 100%;
        padding: 0 1.5rem;
    }
    /* --- 施工事例 --- */
    .top-works {
        padding: 4rem 1.5rem;
    }
    .top-works::before {
        background: #f8f8f8;
        /* パララックスを無効化 */
    }
    .top-works__inner {
        margin-left: 0;
    }
    .top-works__list {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    /* --- お問い合わせ --- */
    .top-contact {
        padding: 4rem 1.5rem 8rem;
    }
    .top-contact__inner {
        flex-direction: column;
        margin-left: 0;
        gap: 2.5rem;
    }
    .top-contact__image {
        display: none;
        /* スマホでは非表示にしてシンプルに */
    }
    .top-contact__content {
        text-align: center;
        width: 100%;
    }
    .top-contact__title-ja {
        font-size: 1.5rem;
    }
    .top-contact__text {
        text-align: left;
    }
    .top-contact__btn {
        width: 100%;
    }
}

.top-main-visual__sidebtns-wrap {
    margin-top: auto;
    padding-top: 40px;
}


/* その他の塗装セクション専用 */

.service-section--fullwidth .service-section__inner {
    width: 80%;
    margin: 0 auto;
}

.about-greeting__images--a {
    display: flex;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.about-greeting__images--a>div {
    flex: 1 1 0;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.about-greeting__images--a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 480px) {
    /* トップページでは全ページ共通固定ボタンを非表示 */
    body.home .fixed-bottom-buttons {
        display: none;
    }
    /* --- メインビジュアル --- */
    .top-main-visual {
        position: relative;
        display: flex;
        align-items: center;
        color: #fff;
        margin-left: 100px;
        /* border: 2px solid #0A324C; */
        border-top-right-radius: clamp(32px, 2.5vw, 48px);
        border-bottom-right-radius: clamp(32px, 2.5vw, 48px);
        border-bottom-left-radius: clamp(32px, 2.5vw, 48px);
    }
    .top-main-visual {
        margin-left: 0;
        padding: 0 1rem;
        height: 80vh;
    }
    .top-main-visual {
        /* background-image: url(../images/common/top-image.jpg); */
        background-size: cover;
        /* background-position: center; */
        background-repeat: no-repeat;
        background-position: left center;
    }
    .main-visual,
    .top-main-visual {
        height: 75vh;
        /* min-height: 600px; */
        width: 90%;
        /* padding-left: 120px; */
        margin-left: 50px;
    }
    .top-main-visual__content {
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        padding: 0;
        bottom: 15%;
    }
    .top-main-visual__catch b {
        font-size: clamp(15px, 8vw, 36px);
        font-weight: 600;
        line-height: 1;
        text-align: left;
        text-shadow: none;
        background: transparent;
        color: #fff;
        display: table;
    }
    .top-main-visual__catch p {
        width: 100%;
        font-size: clamp(8px, 2.8vw, 15px);
        font-weight: 600;
        line-height: 1.8;
    }
    .top-main-visual__sidebtns {
        flex-direction: row;
        gap: 1rem;
    }
    .top-main-visual__btn {
        padding: 1rem 1.5rem;
    }
    .top-main-visual__news {
        width: 100%;
        bottom: 20px;
        padding: 0 1rem;
    }
    .top-main-visual__news--sp {
        display: block;
    }
    .top-main-visual__news {
        display: none;
    }
    .top-main-visual__news-item {
        padding: 16px;
        margin-top: 25px;
        margin-left: 50px;
        border-radius: 20px 0 0 20px;
    }
    .top-main-visual__news-date {
        font-size: 13px;
    }
    .top-main-visual__news-title {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .top-main-visual__vertical-copy {
        position: fixed;
        left: 25px;
        top: 75%;
        transform: translateY(-50%) rotate(-90deg);
        transform-origin: left center;
        color: #1a2a3a;
        font-size: 10px;
        letter-spacing: 0.2em;
        white-space: nowrap;
        z-index: 999;
        font-weight: 600;
    }
    .top-service__desc {
        font-size: 15px;
        line-height: 2.3;
        color: #666;
        margin-bottom: 24px;
        font-weight: 600;
    }
    /* --- 私たちについて --- */
    .top-about {
        padding: 2rem 1rem 2rem 50px;
    }
    .top-about__inner {
        flex-direction: column;
        margin-left: 0;
        gap: 2.5rem;
        padding: 0;
    }
    .top-about__title-ja {
        font-size: 1.5rem;
    }
    .top-about__catch {
        font-size: 1.8rem;
    }
    .top-about__text {
        font-size: 0.95rem;
    }
    .top-about__btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
    .top-about__btn-wrap {
        text-align: left;
        width: 100%;
        display: flex;
    }
    .top-about__image img {
        border-radius: 16px;
        /* 角丸を全方向に */
    }
    /* --- サービス一覧 --- */
    .top-service {
        padding: 2rem 1rem 2rem 50px;
    }
    .top-service__list {
        display: grid;
        grid-template-columns: 1fr;
        /* ← ここをautoから1frに */
        gap: 1rem;
    }
    .top-service__item {
        width: 100%;
        /* 念のため追加 */
        box-sizing: border-box;
    }
    .top-service__inner::before {
        transform: rotate(0deg);
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        opacity: 0.1;
    }
    .top-service__inner {
        width: 100%;
        padding: 0;
    }
    .top-service__item {
        padding: 0;
    }
    /* --- 施工事例 --- */
    .top-works {
        padding: 16px 16px 16px 50px;
    }
    .top-works__title {
        margin-bottom: 20px;
        text-align: center;
    }
    .top-works::before {
        background: #f8f8f8;
        /* パララックスを無効化 */
    }
    .top-works__inner {
        width: 100%;
        padding: 1rem 0;
        margin-left: 0;
        border-radius: 32px;
    }
    .top-works__list {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    /* --- お問い合わせ --- */
    .top-contact {
        padding: 0;
    }
    .top-contact__title {
        margin-bottom: 0;
    }
    .top-contact__inner {
        flex-direction: column-reverse;
        margin-left: 0;
        gap: 0;
    }
    .top-contact__image {
        display: block;
        /* スマホでは非表示にしてシンプルに */
        max-width: fit-content;
        height: 100%;
    }
    .top-contact__content {
        padding: 1rem 0 2rem;
        text-align: center;
        width: 100%;
    }
    .top-contact__title-ja {
        font-size: 1.5rem;
    }
    .top-contact__text {
        padding: 1rem;
        text-align: left;
        margin-bottom: 0;
    }
    .top-contact__btn {
        font-size: 18px;
        width: 90%;
        padding: 1rem 0;
    }
    .top-main-visual__sidebtns {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 60px;
        z-index: 1001;
        flex-direction: row !important;
        justify-content: center;
        gap: 0;
        background: rgba(255, 255, 255, 0);
        /* box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08); */
        /* margin: 0 auto; */
        padding: 0.5rem 0;
    }
    .top-main-visual__btn {
        flex: 1 1 0;
        margin: 0 0.5rem;
        min-width: 0;
        font-size: 1rem;
        padding: 1rem 0.5rem;
        line-height: 1;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    }
    /* 480px以下での固定ボタンの色設定 */
    .top-main-visual__btn--estimate {
        background: #0A324C;
        color: #fff;
        z-index: 999;
    }
    .top-main-visual__btn--contact {
        background: #00B900;
        color: #fff;
    }
    .top-main-visual__news-item a {
        font-size: clamp(16px, 1.25vw, 32px);
        display: flex;
        align-items: baseline;
        flex-direction: column;
        text-decoration: none;
        color: #333;
        gap: 5px;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    /* トップページでは全ページ共通固定ボタンを非表示 */
    body.home .fixed-bottom-buttons {
        display: none;
    }
    /* 追随表示を無効化（全ページ共通） */
    .top-main-visual__sidebtns--fixed {
        display: none !important;
    }
}