charset "UTF-8";

/* --- Base Settings --- */
:root {
    --navy: #0A1930;
    --silver: #A0A4B8;
    --light-gray: #F4F5F7;
    --text-black: #333333;
    --text-white: #ffffff;
    --font-mincho: 'Shippori Mincho', serif;
    --font-gothic: 'Noto Sans JP', sans-serif;
}

body {
    font-family: var(--font-gothic);
    color: var(--text-black);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-mincho);
    font-weight: 600;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-white { background-color: #fff; }
.bg-light { background-color: var(--light-gray); }
.bg-navy { background-color: var(--navy); }
.text-white { color: var(--text-white); }
.mt-50 { margin-top: 50px; }

.text-sm { font-size: 14px; line-height: 1.6; }

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo a {
    font-size: 24px;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 55px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-list li a {
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.en-sub {
    font-size: 10px;
    color: var(--silver);
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.btn-nav {
    background-color: var(--navy);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 2px;
}
.btn-nav:hover { background-color: #1a2f4d; }

/* --- Hero Section --- */
.hero {
    height: 90vh;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-color: #000;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideAnime 12s infinite;
}

.slide-item:nth-child(1) { opacity: 1; animation: slideAnimeFirst 12s infinite; }
.slide-item:nth-child(2) { animation-delay: 6s; }

@keyframes slideAnimeFirst {
    0% { opacity: 1; transform: scale(1); }
    40% { opacity: 1; }
    50% { opacity: 0; transform: scale(1.1); }
    90% { opacity: 0; }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes slideAnime {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; }
    40% { opacity: 1; }
    50% { opacity: 0; transform: scale(1.1); }
    100% { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 48, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-sub {
    font-size: 16px;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
    color: var(--silver);
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.hero-title-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.hero-logo-static {
    width: 100px;
    height: auto;
    filter: invert(1) grayscale(100%);
    mix-blend-mode: screen;
}

/* ▼▼▼ 修正箇所：PCでのフォントサイズを48pxから46pxへ変更 ▼▼▼ */
.hero-title {
    font-size: 46px;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    text-align: left;
}
/* ▲▲▲ 修正箇所 ▲▲▲ */

.hero-text { font-size: 14px; margin-bottom: 50px; opacity: 0.9; }

.btn-hero {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--silver);
    color: #fff;
    font-family: var(--font-mincho);
    font-size: 18px;
    letter-spacing: 0.1em;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}
.btn-hero:hover { background-color: var(--silver); color: var(--navy); }

/* --- Page Header (for subpages) --- */
.page-header {
    height: 300px;
    margin-top: 60px;
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.page-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 25, 48, 0.6);
}
.page-header h2 { position: relative; z-index: 1; color: #fff; font-size: 36px; text-align: center; }
.page-header .en-title { display: block; font-size: 14px; color: var(--silver); margin-top: 10px; }

/* --- Common Components --- */
.section-title { text-align: center; font-size: 32px; margin-bottom: 60px; color: var(--navy); }
.en-title { display: block; font-size: 14px; font-family: var(--font-gothic); color: var(--silver); margin-top: 10px; letter-spacing: 0.1em; }
.section-title.text-white .en-title { color: #aaa; }

/* --- Mission --- */
.mission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.mission-item { padding: 30px; border: 1px solid #eee; text-align: center; }
.mission-num { display: block; font-size: 40px; font-family: var(--font-mincho); color: var(--silver); margin-bottom: 10px; }
.mission-item h4 { font-size: 22px; margin-bottom: 15px; color: var(--navy); }

/* --- Strength Box --- */
.strength-box { background: var(--light-gray); padding: 60px; border-radius: 4px; }
.strength-head { font-size: 28px; text-align: center; margin-bottom: 20px; color: var(--navy); }
.strength-head-sm { font-size: 20px !important; line-height: 1.6; }
.strength-lead { text-align: center; max-width: 800px; margin: 0 auto 50px; }
.strength-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.strength-card { background: #fff; padding: 30px; border-left: 4px solid var(--navy); }
.strength-card h4 { font-size: 18px; margin-bottom: 15px; color: var(--navy); }

/* --- Profile (About) --- */
.profile-wrapper { display: flex; gap: 50px; align-items: flex-start; }
.profile-image { flex: 1; height: 350px; background-size: cover; background-position: center; box-shadow: 10px 10px 0 var(--navy); }
.profile-info { flex: 1.5; }
.profile-header { display: flex; align-items: center; gap: 40px; margin-bottom: 20px; border-bottom: 1px solid #ddd; padding-bottom: 20px; }
.profile-logo-mark { width: 100px; height: auto; }
.profile-name-box h4 { font-size: 24px; color: var(--navy); line-height: 1.4; margin: 0; }
.career-section { margin-bottom: 40px; background: var(--light-gray); padding: 20px; border-left: 4px solid var(--navy); }
.career-title { font-size: 18px; margin-bottom: 15px; color: var(--navy); border-bottom: 1px solid #ddd; padding-bottom: 5px; }
.career-list li { font-size: 15px; margin-bottom: 8px; position: relative; padding-left: 15px; }
.career-list li::before { content: "■"; font-size: 10px; color: var(--navy); position: absolute; left: 0; top: 5px; }
.outline-table { width: 100%; border-collapse: collapse; }
.outline-table th, .outline-table td { padding: 12px 0; border-bottom: 1px solid #ddd; text-align: left; font-size: 14px; }
.outline-table th { width: 120px; color: var(--navy); }

/* --- Flow --- */
.flow-wrapper { max-width: 800px; margin: 0 auto; }
.flow-item { display: flex; gap: 30px; align-items: flex-start; margin-bottom: 80px; }
.flow-item:last-child { margin-bottom: 0; }
.flow-num { background-color: var(--navy); color: #fff; width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; font-size: 20px; font-family: var(--font-mincho); flex-shrink: 0; border-radius: 50%; }
.flow-content h3 { font-size: 20px; margin-bottom: 10px; color: var(--navy); }

/* --- Service & Works Details --- */
.service-detail { display: flex; gap: 50px; margin-bottom: 80px; align-items: center; }
.service-detail.reverse { flex-direction: row-reverse; }
.service-img { flex: 1; min-height: 300px; height: 300px; background-size: cover; background-position: center; border-radius: 4px; flex-shrink: 0; width: 50%; }
.service-text { flex: 1; }
.service-text h3 { font-size: 24px; margin-bottom: 15px; color: var(--navy); border-bottom: 2px solid var(--silver); padding-bottom: 10px; display: inline-block; }
.badge { font-size: 12px; background: var(--light-gray); padding: 5px 10px; color: #666; display: inline-block; margin-bottom: 20px; }
.strength-lead { font-size: 16px; text-align: center; margin-bottom: 60px; line-height: 2; }

/* --- Contact & Footer --- */
.contact-form { max-width: 700px; margin: 0 auto; background: #fff; padding: 50px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 14px; color: #333; }
.required { color: #cc0000; font-size: 11px; margin-left: 5px; vertical-align: middle; }

.form-group input, 
.form-group textarea, 
.form-group select { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ddd; 
    box-sizing: border-box; 
    background-color: #fff;
    font-size: 16px;
    border-radius: 2px;
}

.btn-submit { background-color: var(--navy); color: #fff; border: none; padding: 15px 60px; font-size: 16px; cursor: pointer; }
.btn-secondary { display: inline-block; padding: 15px 40px; border: 1px solid var(--navy); color: var(--navy); transition: all 0.3s; }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.center-btn { text-align: center; }
.footer { background-color: var(--navy); color: #fff; text-align: center; padding: 30px 0; }
.footer-logo { font-family: var(--font-mincho); font-size: 20px; letter-spacing: 0.1em; }

@media (max-width: 768px) {
    .header-inner { flex-direction: column; }
    .nav-list { gap: 15px; margin-top: 10px; font-size: 12px; flex-wrap: wrap; justify-content: center; }
    
    /* ▼▼▼ 修正箇所：スマホでのフォントサイズを32pxから30pxへ変更 ▼▼▼ */
    .hero-title { font-size: 30px; }
    /* ▲▲▲ 修正箇所 ▲▲▲ */

    .hero-title-box { flex-direction: column; text-align: center; }
    .profile-wrapper, .service-detail, .service-detail.reverse, .flow-item { flex-direction: column; }
    .service-img { width: 100%; }
    .strength-box { padding: 30px; }
    .flow-item { gap: 20px; align-items: center; margin-bottom: 40px; }
}