/* ==================================================================
   村井園芸 TOP（front-page）
   静的HTML <style> からヘッダー/フッター以外を移植
   Tailwind ユーティリティは CDN（inc/enqueue.php）で補完
   画像パス: url(../img/top/...)
   ================================================================== */

/* ===== 共通設定 ===== */

/* cube-base の既定リセット `p, li, dd, button { text-align: justify }` は
   静的HTMLモック（Tailwind の text-center / text-left を親から継承）と相性が悪いため、
   front-page 配下だけ継承に戻す。Tailwind の .text-* ユーティリティ（詳細度 0,1,0）には負けるので
   個別指定は従来どおり効く。 */
:where(#main) p,
:where(#main) li,
:where(#main) dd,
:where(#main) button {
    text-align: inherit;
}

/* ===== HTML直書き style="" からの移行分 ===== */

/* コンセプト見出し（h1〜h6 の line-height:1.6 既定を上書き） */
#concept .concept-layout h2 {
    line-height: 1.7 !important;
}

/* 実績カード（rounded-2xl の 16px を 8px に上書き） */
#works .grid > div,
#works .grid > div > img {
    border-radius: 8px;
}

/* 事業案内：対応できる工事アイコン */
.business-check-icon {
    width: 20px;
    height: 20px;
}

/* お知らせサムネイル */
.news-thumb {
    border-radius: 4px;
}

@keyframes fvTextDance {

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

    12% {
        transform: translateY(-0.18em);
    }

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

@keyframes fvSlideFade {
    0% {
        opacity: 0;
    }

    5%,
    33.333% {
        opacity: 1;
    }

    38.333%,
    100% {
        opacity: 0;
    }
}

@keyframes fvCatchCharFade {
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

body {
    background-color: #ffffff;
    position: relative;
    z-index: -2;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    /* 静的HTMLでは <body class="font-sans ... leading-[1.8]"> で付与していた分をここで補う */
    font-family: "Noto Sans JP", "游ゴシック Medium", "Yu Gothic Medium", YuGothic, "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    background-color: #ffffff;
    /* 静的HTMLの <html class="scroll-smooth"> 相当 */
    scroll-behavior: smooth;
}

#works,
#company,
#contact {
    background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('../img/top/bg-texture.png');
    background-attachment: fixed, fixed;
    background-position: center, center;
    background-repeat: no-repeat, repeat;
    background-size: cover, auto;
}

#strengths,
#business {
    position: relative;
    background: rgb(16, 104, 22);
}

.works-section-background,
.previous-section-background {
    background-color: #ffffff;
    background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('../img/top/bg-texture.png');
    background-attachment: fixed, fixed;
    background-position: center, center;
    background-repeat: no-repeat, repeat;
    background-size: cover, auto;
}

#contact>div>div>div:first-child>div:last-child>.header-button-fill-up:hover>p {
    border-bottom-color: #106816;
}

.arrow-swap-button {
    position: relative;
    overflow: hidden;
    justify-content: flex-start !important;
}

.arrow-swap-button .arrow-swap-label,
.arrow-swap-button .arrow-swap-out,
.arrow-swap-button .arrow-swap-in {
    transition: transform 0.35s ease, opacity 0.25s ease;
}

.arrow-swap-button .arrow-swap-out {
    margin-left: auto;
}

.arrow-swap-button .arrow-swap-in {
    position: absolute;
    left: 1rem;
    opacity: 0;
    transform: translateX(-2rem);
}

.arrow-swap-button:hover .arrow-swap-out {
    opacity: 0;
    transform: translateX(2rem);
}

.arrow-swap-button:hover .arrow-swap-in {
    opacity: 1;
    transform: translateX(0);
}

.arrow-swap-button:hover .arrow-swap-label {
    transform: translateX(3rem);
}

@keyframes newsArrowWrap {
    0% {
        left: calc(100% - 2rem);
        opacity: 1;
    }

    42% {
        left: 100%;
        opacity: 0;
    }

    43% {
        left: -2rem;
        opacity: 0;
    }

    100% {
        left: 0;
        opacity: 1;
    }
}

body,
.text-gray-600,
.text-gray-700,
.text-gray-800,
.text-gray-900 {
    color: #333333;
}

@keyframes concept-slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes recruit-slide-up {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50%);
    }
}

@keyframes recruit-slide-down {
    from {
        transform: translateY(-50%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes recruit-slide-mobile-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes recruit-slide-mobile-right {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

/* Shared section width */
#strengths>div,
#works>div,
#business>div,
#company>div,
#news>div,
#contact>div {
    width: min(90%, 1535px) !important;
    max-width: none !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
	gap: 20px;
}

/* Shared vertical section padding on every viewport */
#concept,
#strengths,
#works,
#business,
#company,
#recruit,
#news,
#contact {
    padding-top: clamp(56px, 6.8vw, 130px);
    padding-bottom: clamp(56px, 6.8vw, 130px);
}

/* ===== ファーストビュー ===== */

.fv-catchcopy {
    opacity: 0;
    line-height: 1.4 !important;
}

.fv-catchcopy.is-ready {
    opacity: 1;
}

.fv-catchcopy-char {
    display: inline-block;
    opacity: 0;
    transform: translateX(-10px);
    filter: blur(4px);
    animation: fvCatchCharFade 0.65s ease-out forwards;
    animation-delay: calc(0.2s + var(--char-index) * 0.045s);
}

.fv-catchcopy-dance {
    animation:
        fvCatchCharFade 0.65s ease-out forwards,
        fvTextDance 3.2s ease-in-out infinite;
    animation-delay:
        calc(0.2s + var(--char-index) * 0.045s),
        calc(1.2s + var(--char-index) * 0.1s);
}

.fv-slideshow {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #ffffff url('../img/top/fv.jpg') center / cover no-repeat;
}

.fv-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: fvSlideFade 18s ease-in-out infinite;
}

.fv-slide:nth-child(1) {
    animation-delay: 0s;
}

.fv-slide:nth-child(2) {
    animation-delay: 6s;
}

.fv-slide:nth-child(3) {
    animation-delay: 12s;
}

.fv-slide picture,
.fv-slide img {
    display: block;
    width: 100%;
    height: 100%;
}

.fv-slide img {
    object-fit: cover;
}

.fv-concept-stack {
    position: relative;
}

#fv {
    position: sticky;
    top: 0;
    z-index: 0;
    height: 100vh;
    height: 100svh;
}

/* ===== コンセプト ===== */

#concept {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background-image: linear-gradient(135deg, #e8ece9, rgba(29, 183, 40, 0.2), #e8ece9);
}

#concept::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("../img/top/concept-bg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.2;
    pointer-events: none;
}

#concept>* {
    position: relative;
    z-index: 1;
}

.concept-slider {
    width: 100%;
    overflow-x: clip;
    overflow-y: visible;
}

.concept-section {
    position: relative;
    isolation: isolate;
    overflow: visible;
}

.concept-section>* {
    position: relative;
    z-index: 1;
}

.marker {
    color: inherit;
    background-color: transparent;
    background-image: linear-gradient(transparent 58%, #EBD1D9 58%);
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 0 100%;
    padding: 0 0.08em;
    transition: background-size 0.9s ease-out;
}

.marker.is-visible {
    background-size: 100% 100%;
}

.concept-slider-track {
    display: flex;
    width: max-content;
    animation: concept-slide 45s linear infinite;
}

.concept-slide-set {
    display: flex;
    align-items: flex-end;
    gap: 40px;
    padding-right: 40px;
}

.concept-slide-label {
    display: flex;
    flex: none;
    align-items: flex-end;
    height: auto;
    color: #106816;
    transform: translateY(8px);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(28px, 3.5vw, 56px);
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.concept-slide-brand {
    color: #106816;
}

.concept-slide-engei {
    margin-left: 0.3em;
}

.concept-slide {
    width: clamp(64px, 6vw, 88px);
    aspect-ratio: 1 / 1;
    flex: none;
    overflow: hidden;
}

.concept-slide-roof-round {
    border-radius: 50% 50% 0 0;
}

.concept-slide-roof-gable {
    clip-path: polygon(50% 0, 100% 34%, 100% 100%, 0 100%, 0 34%);
}

.concept-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== 3つの強み ===== */

#strengths,
#strengths p {
    color: #FFFFFF;
}

.strength-arc-label {
    position: relative;
    padding-top: 86px;
}

.strength-roof-round::before {
    content: "";
    position: absolute;
    top: 25px;
    left: 50%;
    width: min(320px, 92%);
    height: 142px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    clip-path: inset(0 0 50% 0);
    transform: translateX(-50%);
    pointer-events: none;
}

.strength-roof-gable::before {
    content: "";
    position: absolute;
    top: 25px;
    left: 50%;
    width: 92%;
    height: 66px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 66'%3E%3Cpath d='M1 65 L150 1 L299 65' fill='none' stroke='%23ffffff' stroke-width='1' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    transform: translateX(-50%);
    pointer-events: none;
}

.strength-roof-multiple::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 50%;
    width: 92%;
    height: 62px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 62'%3E%3Cpath d='M1 60 Q50 2 99 60 Q148 2 197 60 Q246 2 299 60' fill='none' stroke='%23ffffff' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    transform: translateX(-50%);
    pointer-events: none;
}

/* Strength cards use grid gaps instead of inner card padding */
#strengths>div>.grid {
    gap: 1rem;
}

#strengths>div>.grid>div {
    padding: 0;
}

/* ===== 事業案内 ===== */

.business-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 2.5rem;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: 0;
}

.business-heading {
    position: relative;
    margin-bottom: 2.5rem;
    text-align: left;
}

#business .business-layout {
    position: relative;
    z-index: 1;
}

.business-item {
    width: 100%;
    min-width: 0;
}

.business-visual {
    display: block;
}

.business-service-label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
}

#business,
#business .business-work-list svg {
    color: #FFFFFF;
}

#business [id^="business-panel-"] {
    border-color: rgba(255, 255, 255, 0.5);
}

#business .business-work-box {
    background-color: rgba(255, 255, 255, 0.1);
}

.business-item-content {
    margin-left: 0;
}

.business-work-list li::marker {
    content: "";
}

/* ===== 会社概要 ===== */

.company-layout {
    display: block;
    width: 100%;
}

.company-content {
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
}

/* ===== 採用情報 ===== */

#recruit {
    background-image: linear-gradient(to top, #e8ece9 10%, #1DB728 65%);
}

.recruit-photo-slider {
    width: 100%;
    height: 612px;
    overflow: hidden;
}

.recruit-photo-column {
    overflow: hidden;
}

.recruit-photo-track {
    display: flex;
    flex-direction: column;
    gap: 24px;
    will-change: transform;
}

.recruit-photo-track--up {
    animation: recruit-slide-up 24s linear infinite;
}

.recruit-photo-track--down {
    transform: translateY(-50%);
    animation: recruit-slide-down 24s linear infinite;
}

.recruit-photo-set {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.recruit-photo-set img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 8px;
}

/* ===== お知らせ ===== */

#news {
    position: relative;
    background-color: #e8ece9;
    box-shadow: 0 100px 0 #e8ece9;
}

#news::before,
#news::after {
    content: "";
    position: absolute;
    top: -32px;
    z-index: 2;
    width: 32px;
    height: 32px;
    background-color: #e8ece9;
}

#news::before {
    left: 0;
    -webkit-mask-image: radial-gradient(circle 32px at 32px 0, transparent 98%, #000 100%);
    mask-image: radial-gradient(circle 32px at 32px 0, transparent 98%, #000 100%);
}

#news::after {
    right: 0;
    -webkit-mask-image: radial-gradient(circle 32px at 0 0, transparent 98%, #000 100%);
    mask-image: radial-gradient(circle 32px at 0 0, transparent 98%, #000 100%);
}

.news-arrow-swap {
    position: absolute;
    right: -3rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    overflow: hidden;
    border-radius: 9999px;
}

.news-arrow-swap-in,
.news-arrow-swap-out {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease, opacity 0.25s ease, color 0.3s ease;
}

.news-arrow-swap-in {
    opacity: 0;
    transform: translateX(-2rem);
}

.group:hover .news-arrow-swap-out {
    opacity: 0;
    transform: translateX(2rem);
}

.group:hover .news-arrow-swap-in {
    opacity: 1;
    transform: translateX(0);
}

.news-card-arrow-in {
    position: absolute;
    left: -3rem;
    top: 50%;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translate(-2rem, -50%);
    transition: transform 0.35s ease, opacity 0.25s ease, color 0.3s ease;
}

.group:hover .news-card-arrow-in {
    opacity: 1;
    transform: translate(0, -50%);
}

.news-external-arrow {
    position: absolute;
    left: calc(100% - 2rem);
    top: 50%;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
}

.group:hover>.news-external-arrow {
    animation: newsArrowWrap 0.55s ease forwards;
}

#news ul {
    width: 100%;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
}

/* ===== お問い合わせ ===== */

#contact {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 0;
    -webkit-clip-path: ellipse(150vw 1600px at 50% 1600px);
    clip-path: ellipse(150vw 1600px at 50% 1600px);
}

#contact>div>div {
    flex-direction: column;
    align-items: center;
}

#contact>div>div>div:first-child {
    width: 100%;
    max-width: 1000px;
    text-align: center;
}

#contact>div>div>div:first-child>div:first-child,
#contact>div>div>div:first-child>p {
    text-align: center;
}

#contact>div>div>div:first-child>div:last-child {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 1rem;
    max-width: 1000px;
    margin-right: auto;
    margin-left: auto;
}

#contact>div>div>div:first-child>div:last-child>div {
    display: grid;
    grid-template-rows: 32px 58px;
    align-content: center;
    justify-items: center;
    gap: 0.5rem;
    margin-top: 0;
    padding-top: 12px;
    padding-bottom: 16px;
    height: 100%;
    text-align: center;
}

#contact>div>div>div:first-child>div:last-child>div {
    display: grid;
    grid-template-rows: 32px 58px;
    align-content: center;
    justify-items: center;
    gap: 0.5rem;
    margin-top: 0;
    padding-top: 12px;
    padding-bottom: 16px;
    height: 100%;
    text-align: center;
    position: relative;
}

#contact>div>div>div:first-child>div:last-child>div>a {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    display: block;
}

#contact>div>div>div:first-child>div:last-child>div>p {
    width: 100%;
    font-size: 13px;
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
    transition: border-color 0.3s ease;
}

#contact>div>div>div:first-child>div:last-child>div>div {
    display: grid;
    grid-template-rows: 32px 20px;
    align-items: center;
    justify-items: center;
    text-align: center;
}

#contact>div>div>div:last-child {
    width: 100%;
    max-width: 1000px;
}

/* ========================================
   メディアクエリ：(prefers-reduced-motion: reduce)
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    /* ===== ファーストビュー ===== */

    .fv-catchcopy {
        opacity: 1;
    }

    .fv-catchcopy-char {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none;
    }

    /* ===== コンセプト ===== */

    .marker {
        background-size: 100% 100%;
        transition: none;
    }

    .concept-slider-track {
        animation: none;
    }

    /* ===== 採用情報 ===== */

    .recruit-photo-track--up,
    .recruit-photo-track--down {
        animation: none;
    }

    /* フッター（.footer-image-track: animation none）は common.css 側に集約 */
}

/* ==================================================================
   レスポンシブ（cube-base に合わせて desktop-first / max-width で統一）
   基準 = PC（1025px 以上）。
   以降 @media (max-width: 1024px) → @media (max-width: 767px) の順で上書き。
   （元のモックは min-width で記述。境界値は 768 / 1024 で同じ位置。）
   ================================================================== */

/* ===== PC 基準レイアウト（旧 min-width:1025 / min-width:768 を無条件化） ===== */

/* --- コンセプト --- */
#concept>div:first-child {
    width: min(80%, 1200px);
}

.concept-layout>div:last-child {
    width: 50%;
    margin-top: clamp(64px, 6vw, 100px);
    margin-right: 0;
    margin-left: auto;
}

#concept {
    padding-bottom: 0 !important;
}

/* --- 3つの強み --- */
#strengths>div>.grid {
    grid-template-columns: repeat(3, minmax(0, 30%));
    justify-content: space-between;
}

/* --- 事業案内 --- */
#business {
    overflow: clip;
}

#business .business-heading {
    position: sticky;
    top: 112px;
    align-self: start;
    height: max-content;
    z-index: 2;
}

.business-layout {
    display: grid;
    grid-template-columns: max-content minmax(0, 1000px);
    justify-content: space-between;
}

.business-heading>div {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.25rem;
}

.business-heading p {
    writing-mode: vertical-rl;
}

.business-heading h2 {
    writing-mode: vertical-rl;
    letter-spacing: 0.15em;
}

.business-item {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 2.5rem;
}

.business-grid {
    gap: 3.5rem;
}

/* --- 会社概要 --- */
#company .company-layout>.mb-10 {
    margin-bottom: 0;
    position: sticky;
    top: 112px;
    align-self: start;
    width: max-content;
    z-index: 2;
}

#company .company-layout {
    display: block;
    width: 100%;
}

#company .company-content {
    width: 100%;
    max-width: clamp(750px, 41.6vw, 800px);
    margin-left: auto;
}

#company table th,
#company table td {
    padding-right: 0;
    padding-left: 0;
}

/* --- 採用情報 --- */
#recruit {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


/* ================= @media (max-width: 1024px)：タブレット ================= */
@media screen and (max-width: 1024px) {
    /* --- 共通：見出し --- */
    #concept h2,
    #strengths h2,
    #works h2,
    #business h2,
    #company h2,
    #recruit h2,
    #news h2,
    #contact h2 {
        font-size: 24px;
    }

    /* --- コンセプト（PC基準を 1024px 以下へ戻す） --- */
    #concept>div:first-child {
        width: 90%;
		padding-inline: 0;
    }

    .concept-layout>div:last-child {
        width: 100%;
        margin-top: 30px;
        margin-left: auto;
    }

    #concept {
        padding-bottom: clamp(56px, 6.8vw, 130px) !important;
    }

    /* --- 実績 --- */
    #works .grid {
        gap: 12px;
    }

    #works .group p {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.5;
    }

    /* --- 事業案内（PC基準の sticky / clip を解除） --- */
    #business {
        overflow: hidden;
    }

    #business .business-heading {
        position: relative;
        top: auto;
        align-self: auto;
        height: auto;
        z-index: auto;
    }

    #business .business-visual {
        margin-bottom: 24px !important;
    }

    .business-item {
        gap: 1.5rem;
    }

    /* --- 会社概要（PC基準の sticky グリッドを解除） --- */
    #company .company-layout>.mb-10 {
        margin-bottom: 2.5rem;
        position: static;
        top: auto;
        align-self: auto;
        width: 100%;
        z-index: auto;
    }

    /* --- 採用情報 --- */
    #recruit>div>.grid {
        gap: 32px;
    }

    #recruit h3 {
        font-size: 18px;
        white-space: nowrap;
    }

    /* --- お問い合わせ --- */
    #contact .contact-hours-break {
        display: block;
    }

    #contact>div>div>div:first-child>div:last-child>div>div {
        row-gap: 8px;
    }

    #contact>div>div>div:first-child>div:last-child>div>div>p:last-child {
        margin-top: 0;
    }

    #contact>div>div>div:first-child>div:last-child>div {
        padding-bottom: 28px;
    }

    #contact>div>div>div:first-child>div:last-child>div>p {
        padding-bottom: 8px;
    }
}


/* ================= @media (max-width: 767px)：スマホ ================= */
@media screen and (max-width: 767px) {
    /* == PC / タブレット基準をスマホ用へ戻す（旧 min-width 記述の巻き戻し） == */
    #strengths>div>.grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        justify-content: normal;
    }

    .concept-layout>div:last-child {
        width: auto;
        margin-top: 0;
        margin-left: 0;
    }

    #works .grid {
        gap: 1rem;
    }

    #works .group p {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .business-layout {
        display: block;
    }

    .business-heading>div {
        display: block;
    }

    .business-heading p,
    .business-heading h2 {
        writing-mode: horizontal-tb;
    }

    .business-heading h2 {
        letter-spacing: normal;
    }

    #business .business-heading {
        margin-right: 0;
    }

    .business-item {
        display: block;
    }

    .business-grid {
        gap: 2.5rem;
    }

    #recruit {
        padding-top: 56px !important;
    }

    #recruit h3 {
        font-size: 20px;
        white-space: normal;
    }

    #contact .contact-hours-break {
        display: none;
    }

    /* ===== 共通設定 ===== */

    #concept,
    #strengths,
    #works,
    #business,
    #company,
    #recruit,
    #news,
    #contact {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    #concept>div:first-child,
    #strengths>div,
    #works>div,
    #business>div,
    #company>div,
    #recruit>div,
    #news>div,
    #contact>div {
        padding-right: 0;
        padding-left: 0;
    }

    #concept h2,
    #strengths h2,
    #works h2,
    #business h2,
    #company h2,
    #recruit h2,
    #news h2,
    #contact h2 {
        font-size: 24px;
    }

    #works,
    #company,
    #contact {
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.8),
                rgba(255, 255, 255, 0.8)),
            url("../img/top/bg-texture-sp.png");

        background-attachment: fixed, fixed;
        background-position: center top, center top;
        background-repeat: no-repeat, repeat-y;
        background-size: cover, 100% auto;
    }

    /* ===== ファーストビュー ===== */

    /* FV */
    #fv>.absolute.z-10.bottom-40 {
        bottom: 5%;
        right: 5%;
    }

    .fv-catchcopy-break {
        display: block;
    }

    /* ===== コンセプト ===== */

    #concept>div:first-child {
        width: 90%;
    }

    #concept {
        padding-bottom: 0rem !important;
    }

    .concept-layout>div:last-child p {
        font-size: 16px;
    }

    .concept-slide-label {
        transform: none;
    }

    /* ===== 3つの強み ===== */

    #strengths>div>.grid {
        gap: 1.5rem;
    }

    /* ===== 実績 ===== */

    .works-section-background,
    #works,
    #company,
    #contact {
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.8),
                rgba(255, 255, 255, 0.8)),
            url("../img/top/bg-texture-sp.png");

        background-attachment: fixed, fixed;
        background-position: center top, center top;
        background-repeat: no-repeat, repeat-y;
        background-size: cover, 100% auto;
    }

    #works .border-t.border-dashed {
        padding-top: 16px;
    }

    /* ===== 事業案内 ===== */

    #business .business-visual {
        margin-bottom: 24px;
    }

    #business .business-item-content {
        margin-top: 0;
    }

    #business .business-item-content h3 {
        font-size: 18px;
    }

    /* ===== 会社概要 ===== */

    #company table th {
        padding-top: 20px;
        padding-bottom: 4px;
    }

    #company table td {
        padding-top: 4px;
        padding-bottom: 20px;
    }

    #company table th,
    #company table td {
        padding-right: 0;
        padding-left: 0;
    }

    #company .company-content>div:last-child {
        min-height: 0;
        aspect-ratio: 3 / 2;
    }

    /* ===== 採用情報 ===== */

    #recruit {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        padding-bottom: 0;
    }

    .recruit-photo-slider {
        height: auto;
        overflow: hidden;
    }

    .recruit-photo-track,
    .recruit-photo-set {
        flex-direction: row;
    }

    .recruit-photo-track {
        width: max-content;
    }

    .recruit-photo-track--up {
        animation: recruit-slide-mobile-left 24s linear infinite;
    }

    .recruit-photo-track--down {
        transform: translateX(-50%);
        animation: recruit-slide-mobile-right 24s linear infinite;
    }

    #recruit>div>.grid,
    #recruit .recruit-photo-track,
    #recruit .recruit-photo-set {
        gap: 12px;
    }

    #recruit>div>.grid>.text-center {
        order: 1;
    }

    #recruit .recruit-photo-slider:first-child {
        order: 2;
    }

    #recruit .recruit-photo-slider:last-child {
        order: 3;
    }

    #recruit .recruit-photo-set img {
        width: min(58vw, 240px);
    }

    #recruit>div>.grid>.text-center>.mt-16 {
        margin-top: 24px;
    }

    #recruit>div>.grid>.text-center {
        margin-bottom: 32px;
    }


    /* ここまでした */
    /* ===== お知らせ ===== */

    #news li>article {
        width: 100%;
        padding-bottom: 4rem;
    }

    #news li>article img {
        height: auto;
    }

    #news .mb-10>div,
    #news h2 {
        text-align: left;
    }

    #news li>article {
        gap: 1rem;
    }

    #news>div>.mb-10 {
        padding-bottom: 0;
    }

    #news::before,
    #news::after {
        display: none;
        content: none;
    }

    /* ===== お問い合わせ ===== */
    #contact {
        -webkit-clip-path: none;
        clip-path: none;
        background: transparent;
        isolation: isolate;
    }

    #contact::before,
    #contact::after {
        content: "";
        position: absolute;
        left: 50%;
        z-index: -1;
        width: 300vw;
        background-color: #ffffff;
        background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('../img/top/bg-texture-sp.png');
        background-attachment: fixed, fixed;
        background-position: center, center;
        background-repeat: no-repeat, no-repeat;
        background-size: cover, cover;
        pointer-events: none;
    }

    #contact::before {
        top: 0;
        height: 300vw;
        border-radius: 50%;
        transform: translateX(-50%);
    }

    #contact::after {
        top: 34px;
        bottom: 0;
        transform: translateX(-50%);
    }

    #contact>div>div>div:first-child>div:last-child {
        grid-template-columns: 1fr;
    }

    #contact>div>div>div:first-child>p {
        margin-bottom: 32px;
    }

    #contact>div>div>div:last-child>div:first-child {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    #contact input[type="text"],
    #contact input[type="email"],
    #contact input[type="tel"],
    #contact textarea {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    #contact form input[type="radio"]+span {
        white-space: nowrap;
    }

    #contact form .flex.flex-wrap {
        gap: 16px;
    }

    /* フッター（.footer-image-* / .footer-reveal / .footer-roof-divider）は common.css 側に集約 */
}
