@charset "UTF-8";
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #fff;
}

@media (max-width: 1540px) {
    .container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

.container {
    max-width: 1150px;
    margin-left: auto;
    margin-right: auto;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

:root {
    --c-bg: #ffffff;
    --c-text: #1a1a1a;
    --c-gray: #f8f8f8;
    --c-accent: #b91c1c;
    --c-border: #e5e5e5;
    --f-sans: 'Noto Sans JP', sans-serif;
    --f-serif: 'Noto Serif JP', serif;
    --w-content: 1000px;
    --header-h: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--f-sans);
    background-color: var(--c-bg);
    color: var(--c-text);
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
}


/* common */

.section-padding {
    padding-top: 50px;
    padding-bottom: 50px;
}

.text-serif {
    font-family: var(--f-serif);
}

.section-title {
    font-family: var(--f-serif);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 17px;
    text-align: center;
    line-height: 1.3;
}

.head-text {
    font-size: 1.4rem;
}

.text2 {
    font-size: 0.9rem;
    line-height: 1.7rem;
}

@media (max-width: 600px) {
    .head-text {
        font-size: 1.2rem;
    }
    .text2 {
        font-size: 0.8rem;
        line-height: 1.5rem;
    }
}

.section-title span {
    display: inline-block;
}

.section-subtitle {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 500;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3.5rem;
    background-color: var(--c-text);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid var(--c-text);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
}

.btn:hover {
    background-color: transparent;
    color: var(--c-text);
}

.btn-outline {
    background-color: transparent;
    color: var(--c-text);
    border: 1px solid var(--c-text);
    padding: 1rem 3rem;
}

.btn-outline:hover {
    background-color: var(--c-text);
    color: #fff;
}

.text {
    text-align: justify;
    margin: 0 auto;
    color: #666;
}


/* hero-area */


/* --- Hero Section --- */

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50vh;
    min-height: 700px;
    text-align: center;
    position: relative;
    background-color: #111;
    background-image: url(../images/fenix/image01.jpg);
    background-size: cover;
    background-position: center;
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
}

.hero .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: inline-block;
    padding: 8px 20px;
    margin-bottom: 30px;
    letter-spacing: 0.3em;
}

.hero-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 60px;
    letter-spacing: 0.1em;
    line-height: 1.1;
}

.hero-lead {
    text-align-last: left;
    font-size: 1rem;
}

@media (max-width: 900px) {
    .hero {
        min-height: 480px;
        height: 45vh;
    }
    .hero-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 16px;
    }
    .hero .section-subtitle {
        max-width: 100%;
        box-sizing: border-box;
        padding: 8px 12px;
        letter-spacing: 0.12em;
        font-size: 0.75rem;
        white-space: normal;
        line-height: 1.5;
    }
    .hero-title {
        font-size: clamp(1.6rem, 7vw, 2.6rem);
        letter-spacing: 0.04em;
        margin-bottom: 24px;
        word-break: break-word;
        overflow-wrap: anywhere;
        line-height: 1.25;
    }
}

@media (max-width: 480px) {
    .hero .section-subtitle {
        letter-spacing: 0.08em;
        font-size: 0.7rem;
        padding: 6px 10px;
    }
    .hero-title {
        font-size: clamp(1.35rem, 6.5vw, 1.9rem);
        letter-spacing: 0.02em;
    }
}


/* film */

.film .text {
    width: 85%;
}

.fenix-img {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.film img {
    width: 80%;
    margin-top: 30px;
    text-align: center;
}


/* Technology / Split Section */

.technology-section {
    background-color: var(--c-gray);
}

.split-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

@media (max-width: 900px) {
    .section-subtitle {
        margin-top: 30px;
    }
    .split-section {
        flex-direction: column-reverse;
    }
    .split-image {
        width: 85% !important;
    }
    .split-content {
        width: 85% !important;
    }
    .split-text {
        margin-bottom: 20px;
    }
    .split-content h3 span {
        display: inline-block;
    }
    .split-content h3 {
        text-align: center !important;
    }
}

@media (max-width: 600px) {
    .split-section {
        flex-direction: column-reverse;
    }
    .split-image {
        width: 100% !important;
    }
    .split-content {
        width: 100% !important;
    }
}

.split-image {
    width: 48%;
    position: relative;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.split-image img {
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
}

.split-image img:hover {
    transform: scale(1.03);
}

.split-content {
    width: 48%;
}

.split-content h3 {
    font-family: var(--f-serif);
    text-align: justify;
    margin-bottom: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.split-content p {
    color: #555;
}


/* Construction feasible */

.Construction {
    background-color: #fff;
}

.Construction .split-content {
    width: 100%;
}

.Construction h3 {
    text-align: center;
}

.Construction ul {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.Construction ul li {
    width: 31%;
    margin-top: 20px;
    position: relative;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.Construction ul li p {
    text-align: center;
    font-weight: bold;
    color: #fff;
    background-color: #2f2f2f;
    padding: 5px;
    font-size: 0.8rem;
}

.Construction ul li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.Construction ul li img:hover {
    transform: scale(1.03);
}

@media (max-width: 700px) {
    .Construction ul li {
        width: 48%;
    }
}

@media (max-width: 500px) {
    .Construction ul li {
        width: 100%;
    }
}


/* every-style */

.every-style .split-section {
    flex-direction: column-reverse;
}

.every-style h3 {
    text-align: center;
    line-height: 2.5rem;
}

.every-style .split-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.every-style .split-text {
    width: 80%;
    text-align: justify;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .every-style .split-text {
        width: 100%;
    }
}

.every-style .split-image {
    width: 70%;
}

.every-style .split-image img {
    height: auto;
}


/* film-type */

.film-type {
    background-color: #fff;
    margin-top: 20px;
}

.flim-type-box1 {
    padding: 40px;
    background-color: #f8f8f8;
}

.flim-type-box2 {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 40px;
    background-color: #f8f8f8;
}

@media (max-width: 900px) {
    .flim-type-box1 {
        padding: 17px;
    }
    .flim-type-box2 {
        padding: 17px;
    }
}


/* guard-image-text */

.guard-img {
    display: flex;
    align-items: center;
}

@media (max-width: 900px) {
    .guard-img-text .text {
        width: 100%;
    }
    .guard-img {
        flex-direction: column;
    }
    .guard-img-text .fenix-img img {
        width: 100%;
    }
}


/* guard-img-text-area" */

.guard-img-text-area .split-section {
    width: 80%;
    margin: 60px auto 0 auto;
}

@media (max-width: 900px) {
    .guard-img-text-area .split-section {
        width: 100%;
    }
}


/* cases / 施工事例 */

.cases-section {
    background-color: #f8f8f8;
    text-align: center;
}

.cases-lead {
    max-width: 720px;
    margin: 0 auto 24px;
    text-align: center;
    color: #555;
}

.cases-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    margin-bottom: 36px;
}

.cases-meta span {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: #333;
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
}

.cases-featured {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.cases-featured img {
    width: 100%;
    height: auto;
    aspect-ratio: 14 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.cases-featured:hover img {
    transform: scale(1.03);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.cases-grid li a {
    display: block;
    position: relative;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.cases-grid li img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.cases-grid li a:hover img {
    transform: scale(1.04);
}

.cases-grid li span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 8px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
    text-align: center;
}

@media (max-width: 900px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .cases-featured {
        margin-bottom: 18px;
    }
}

@media (max-width: 500px) {
    .cases-meta {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 24px;
    }
    .cases-grid {
        gap: 10px;
    }
    .cases-grid li span {
        font-size: 0.7rem;
        padding: 8px 4px;
    }
}


/* contact */

.contact-section {
    background-color: #111;
    color: #fff;
    text-align: center;
}

.contact-section .section-title {
    color: #fff;
}

.contact-section .section-subtitle {
    color: #888;
}

.contact-form input,
.contact-form textarea {
    background: #222;
    border: 1px solid #333;
    color: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #666;
    outline: none;
}

.contact-form .btn {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.contact-form .btn:hover {
    background: transparent;
    color: #fff;
}

.contact-section .container {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-description {
    text-align: center;
    margin-bottom: 3rem;
    color: #999;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: #888;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 2px;
}

.contact-form textarea {
    font-family: inherit;
}

.form-footer {
    text-align: center;
    margin-top: 1rem;
}

.contact-form .btn {
    width: 100%;
}

.fenix-contact-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
}
.fenix-contact-cta .btn {
    min-width: 240px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    letter-spacing: 0.08em;
}
.fenix-contact-cta .btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
}