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

html {
    scroll-behavior: smooth;
}

/* これをCSSの冒頭に貼り付け */
html,
body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

* {
    /* max-width: 100% !important; */
    box-sizing: border-box !important;
    word-wrap: break-word !important;
}


.bg-beige {
    background-color: #f7f3f0;
}

.bg-navy {
    background-color: #002244;
    color: #fff;
}

.bg-white {
    background-color: #fff;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: 1.2s ease-out;
}

.fade-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: 1.5s ease-out;
}

.fade-right-delay {
    opacity: 0;
    transform: translateX(50px);
    transition: 1.5s ease-out;
    transition-delay: 0.5s;
}

.is-visible {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
    visibility: visible !important;
}

/* --- Header --- */
.header-nav {
    width: 100%;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    color: #002244;
    font-size: 1.1rem;
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #002244;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
}

#nav-check,
.nav-btn {
    display: none;
}

/* --- FV (iOS iPhone SE対策) --- */
.hero-parallax {
    width: 100%;
    height: 100vh;
    height: 100svh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/hero-bg.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media screen and (min-width: 1025px) {
    .hero-parallax {
        background-attachment: fixed;
    }
}

.catch-copy {
    color: #fff;
    font-size: 3rem;
    text-align: center;
    font-family: "Hiragino Mincho ProN", serif;
    line-height: 1.6;
}

/* --- Section Design --- */
.section {
    padding: 120px 0;
    text-align: center;
}

.section-title-standard {
    margin-bottom: 80px;
    text-align: center;
    color: #002244;
    font-size: 1rem;
}

.section-title-standard.white {
    color: #fff;
}

.section-title-standard .en {
    display: block;
    font-family: "Hiragino Mincho ProN", serif;
    font-size: 5.5rem;
    font-weight: bold;
    opacity: 0.08;
    line-height: 1;
    margin-bottom: -30px;
}

/* --- ABOUT Premium Profile --- */
.section-title-wrap {
    position: relative;
    text-align: center;
    margin-bottom: 100px;
}

.en-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    font-size: 8rem;
    font-family: "Hiragino Mincho ProN", serif;
    font-weight: bold;
    color: #002244;
    opacity: 0.03;
    white-space: nowrap;
}

.section-title-main {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
    color: #002244;
    letter-spacing: 0.2em;
}

.about-container {
    display: flex;
    align-items: stretch;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.about-visual {
    flex: 1;
    position: relative;
    z-index: 2;
}

.image-frame {
    position: relative;
    width: 100%;
    padding-top: 125%;
    overflow: hidden;
    box-shadow: 20px 20px 0 #ffcc00;
}

.image-frame img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vertical-name {
    position: absolute;
    bottom: -20px;
    left: -40px;
    writing-mode: vertical-rl;
    font-family: serif;
    color: #ffcc00;
    font-size: 0.9rem;
    letter-spacing: 0.5em;
    opacity: 0.6;
}

.about-card-premium {
    flex: 1.4;
    margin-left: -60px;
    margin-top: 60px;
    position: relative;
    z-index: 3;
}

.card-inner {
    background: #fff;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.ceo-name {
    font-size: 2.2rem;
    color: #002244;
    font-family: "Hiragino Mincho ProN", serif;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    display: inline-block;
}

.block-title {
    font-size: 0.7rem;
    color: #ffcc00;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 15px;
}

.history-list dt {
    font-size: 0.8rem;
    font-weight: bold;
    color: #002244;
    margin-top: 15px;
}

.history-list dd {
    font-size: 0.9rem;
    color: #555;
    padding-left: 1em;
}

.message-quote {
    background: #f9f9f9;
    border-left: 4px solid #ffcc00;
    padding: 25px;
    margin: 40px 0;
    font-weight: bold;
    color: #002244;
    font-size: 1rem;
}

.personal-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.personal-list li {
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 5px;
}

.personal-list li span {
    display: block;
    font-size: 0.65rem;
    color: #999;
}

.message-area-overlap {
    background: #fff;
    padding: 50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    text-align: left;
    max-width: 1000px;
    margin: 80px auto;
}

.message-title {
    font-family: "Hiragino Mincho ProN", serif;
    font-size: 2.4rem;
    color: #002244;
    margin-bottom: 25px;
}

/* --- SERVICE / CASE --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-item {
    background: #fff;
    color: #333;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.service-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-text {
    padding: 40px 30px;
    text-align: left;
}

.service-text h3 {
    font-size: 1.25rem;
    color: #002244;
    margin-bottom: 18px;
}

.case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.case-box {
    background: #f4f4f4;
    padding: 30px;
    text-align: left;
    border-left: 5px solid #002244;
}

/* --- COMPANY (見切れ対策) --- */
.company-card {
    background: #fff;
    padding: 60px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.company-list dt {
    float: left;
    width: 160px;
    clear: both;
    font-weight: bold;
    color: #002244;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.company-list dd {
    padding: 15px 0 15px 160px;
    border-bottom: 1px solid #eee;
    word-break: break-all;
}

.map-container {
    width: 100%;
    margin-top: 40px;
    border: 1px solid #ddd;
    line-height: 0;
}

#safe-tel {
    font-size: 1.3rem;
    font-weight: bold;
    color: #002244;
}

.tel-warning {
    font-size: 0.7rem;
    color: #d32f2f;
    font-weight: bold;
    margin-top: 5px;
}

.footer {
    padding: 50px;
    background: #002244;
    color: #fff;
    text-align: center;
}

.button-container {
    text-align: center;
    margin-top: 60px;
}

.consult-button {
    display: inline-block;
    background-color: #ffcc00;
    color: #000000;
    width: 30%;
    max-width: 500px;
    padding: 22px 0;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    border-radius: 0px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    line-height: 1;
}

/* マウスを乗せた時の動き（おまけ） */
.consult-button:hover {
    opacity: 0.8;
}

/* --- SP対応 --- */
@media (max-width: 768px) {
    .nav-btn {
        display: block;
        width: 30px;
        height: 30px;
        position: relative;
        z-index: 1100;
        cursor: pointer;
    }

    .nav-btn span,
    .nav-btn span::before,
    .nav-btn span::after {
        content: "";
        display: block;
        height: 2px;
        width: 25px;
        background: #002244;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: 0.3s;
    }

    .nav-btn span::before {
        top: -8px;
        left: 0;
    }

    .nav-btn span::after {
        top: 8px;
        left: 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        transition: 0.4s;
    }

    #nav-check:checked~.nav-links {
        left: 0;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
        padding-top: 100px;
    }

    .about-container {
        flex-direction: column;
    }

    .about-card-premium {
        margin-left: 0;
        margin-top: -40px;
        width: 95%;
        margin-inline: auto;
    }

    .card-inner {
        padding: 30px 20px;
    }

    .company-card {
        padding: 30px 15px;
    }

    .company-list dt {
        float: none;
        width: 100%;
        padding-bottom: 5px;
        border-bottom: none;
    }

    .company-list dd {
        padding: 0 0 15px 0;
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .fade-left,
    .fade-right-delay {
        transform: translateY(30px);
        transition-delay: 0s;
    }

    .service-grid,
    .case-grid {
        grid-template-columns: 1fr;
    }

    .en-bg {
        font-size: 3.5rem;
    }

    .catch-copy {
        font-size: 1.8rem;
    }

    .section-title-standard .en {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -55%);
        font-size: 8rem;
        font-family: "Hiragino Mincho ProN", serif;
        font-weight: bold;
        font-size: 3em
    }


    .image-frame {
        box-shadow: none !important;
    }

    .vertical-name {
        display: none !important;
    }

.consult-button {
    display: inline-block;
    background-color: #ffcc00;
    color: #000000;
    width: auto; 
    min-width: 300px;
    padding: 22px 60px; 
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    border-radius: 0px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    line-height: 1;
}

.button-container {
    text-align: center;
    width: 100%;
}

}