/* =======================================================
   CORPORATE PORTFOLIO (style.css)
   特徴：ブルー基調、王道、高信頼性、Z型レイアウト
======================================================= */
:root {
    --color-primary: #004d99;
    /* 信頼のコーポレートブルー */
    --color-primary-light: #e6f0fa;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-gray: #f8f9fa;
    --font-en: 'Montserrat', sans-serif;
    --font-ja: 'Noto Sans JP', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-ja);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.8;
    padding-top: 80px;
    /* 固定ヘッダーの高さ */
}

a {
    color: inherit;
    text-decoration: none;
}

li {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 4%;
}

.container-small {
    max-width: 800px;
}

.section {
    padding: 100px 0;
}

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

.bg-gray {
    background-color: var(--color-gray);
}

.section-title {
    font-family: var(--font-en);
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 50px;
    letter-spacing: 0.1em;
}

.section-title span {
    display: block;
    font-family: var(--font-ja);
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 5px;
    font-weight: bold;
}

.bg-placeholder {
    background: #d0dbe6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-family: var(--font-en);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary:hover {
    opacity: 0.8;
    box-shadow: 0 5px 15px rgba(0, 77, 153, 0.3);
}

.btn-secondary {
    display: inline-block;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 12px 40px;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
    background: #fff;
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: #fff;
}

.link-arrow {
    color: var(--color-primary);
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

.link-arrow::after {
    content: '\f0da';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 5px;
    transition: 0.3s;
}

.link-arrow:hover::after {
    transform: translateX(5px);
}

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

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 4%;
}

.logo a {
    font-family: var(--font-en);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo span {
    font-weight: 500;
    color: var(--color-text);
}

.gnav ul {
    display: flex;
    gap: 30px;
}

.gnav a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
}

.gnav a:hover {
    color: var(--color-primary);
}

.hamburger {
    display: none;
}

/* Hero */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: right center;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 31, 63, 0.9) 0%, rgba(0, 31, 63, 0) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: #fff;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.4;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-family: var(--font-en);
    font-size: 1.2rem;
    letter-spacing: 0.05em;
}

/* Vision */
.vision-lead {
    font-size: 1.2rem;
    line-height: 2.2;
    font-weight: 500;
}

/* Service (Z-layout) */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 50px;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.service-item.reverse {
    flex-direction: row-reverse;
}

.service-img {
    flex: 1;
    height: 300px;
    border-radius: 4px;
    overflow: hidden;
}

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

.service-text {
    flex: 1;
}

.service-text h4 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.service-text p {
    margin-bottom: 20px;
    color: var(--color-text-light);
}

/* Works */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.work-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    display: block;
}

.work-card:hover {
    box-shadow: 0 10px 20px rgba(0, 77, 153, 0.1);
    transform: translateY(-5px);
    border-color: transparent;
}

.work-img {
    height: 200px;
    overflow: hidden;
}

.work-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.work-card:hover .work-img img {
    transform: scale(1.05);
}

.work-body {
    padding: 25px;
}

.category {
    display: inline-block;
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 10px;
}

.work-body h4 {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.company-name {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-align: right;
}

/* Contact Form */
.contact {
    background: linear-gradient(135deg, #003366 0%, #004d99 100%);
    color: #fff;
}

.contact-header {
    margin-bottom: 40px;
}

.contact-header h3 {
    font-family: var(--font-en);
    font-size: 2.2rem;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
}

.custom-form {
    background: #fff;
    padding: 50px;
    border-radius: 8px;
    color: var(--color-text);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 25px;
}

.form-group.row {
    display: flex;
    gap: 20px;
}

.form-group.row .col {
    flex: 1;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.required {
    background: #e51d20;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: #fafafa;
    transition: 0.3s;
}

.custom-form input:focus,
.custom-form textarea:focus {
    border-color: var(--color-primary);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.radio-wrap {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    cursor: pointer;
}

.privacy-agree {
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.privacy-agree a {
    color: var(--color-primary);
    text-decoration: underline;
}

.btn-submit {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 15px 60px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #003366;
}

/* Footer */
.footer {
    background: #222;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #444;
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-info {
    flex: 1;
}

.footer-logo {
    font-family: var(--font-en);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-info p {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-nav {
    display: flex;
    gap: 60px;
}

.nav-col h4 {
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.nav-col li {
    margin-bottom: 10px;
}

.nav-col a {
    color: #aaa;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-col a:hover {
    color: #fff;
}

.footer-bottom {
    font-size: 0.8rem;
    color: #666;
}

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

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

/* Responsive */
@media (max-width: 768px) {

    .gnav,
    .header-contact {
        display: none;
    }

    .hamburger {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        z-index: 101;
        cursor: pointer;
    }

    .hamburger span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--color-text);
        transition: 0.3s;
        border-radius: 2px;
    }

    .hamburger span:nth-child(1) {
        top: 0;
    }

    .hamburger span:nth-child(2) {
        top: 9px;
    }

    .hamburger span:nth-child(3) {
        bottom: 0;
        top: 18px;
    }

    .hamburger.active span:nth-child(1) {
        top: 9px;
        transform: rotate(45deg);
    }

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

    .hamburger.active span:nth-child(3) {
        top: 9px;
        transform: rotate(-45deg);
    }

    .sp-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        z-index: 100;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: 0.3s;
        pointer-events: none;
    }

    .sp-nav.active {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }

    .sp-nav ul {
        text-align: center;
    }

    .sp-nav li {
        margin-bottom: 25px;
    }

    .sp-nav a {
        font-weight: bold;
        font-size: 1.2rem;
        color: var(--color-primary);
    }

    .sp-nav a.btn-primary {
        display: inline-block;
        padding: 15px 40px;
        margin-top: 15px;
        color: #fff;
    }

    .hero::after {
        width: 100%;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .service-item,
    .service-item.reverse {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .service-img {
        height: 200px;
        width: 100%;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .form-group.row {
        flex-direction: column;
        gap: 25px;
    }

    .custom-form {
        padding: 30px 20px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 40px;
    }
}
/* PC\SPj[\id\̖h~j */
@media (min-width: 769px) { .sp-nav, .hamburger { display: none !important; } }

