/* --- 基本リセット --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body.type-corporate {
    font-family: "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Arial, sans-serif;
    background-color: #0f172a; /* slate-900 */
    color: white;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* --- ヘッダー --- */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: white;
}

/* ナビゲーション（PC） */
.nav { display: flex; gap: 2rem; align-items: center; }
.nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.nav a:hover, .nav a.active { color: white; }
.nav-cta {
    background: #2563eb;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    color: white !important;
}
.nav-cta:hover { background: #1d4ed8; }

/* スマホ用メニューボタン */
.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 60;
}
.menu-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: white;
    transition: 0.3s;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .menu-btn { display: flex; }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #1e293b;
        flex-direction: column;
        padding: 6rem 2rem;
        transition: 0.3s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        align-items: flex-start;
    }
    .nav.active { right: 0; }
    .nav a { font-size: 1.2rem; width: 100%; padding: 1rem 0; border-bottom: 1px solid #334155; }
    .nav-cta { background: none; color: #60a5fa !important; padding: 1rem 0; }
    
    .menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .menu-btn.open span:nth-child(2) { opacity: 0; }
    .menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
}

/* --- トップページ：ヒーローセクション --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 0 4rem; /* ヘッダー被り防止 */
}

.bg-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: #1e293b;
    opacity: 0.2;
    transform: skewX(-12deg) translateX(5rem);
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 768px) { .hero-content { grid-template-columns: 1fr 1fr; } }

.sub-title {
    display: block;
    color: #60a5fa;
    font-weight: bold;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}
.main-title { font-size: 2.5rem; font-weight: bold; line-height: 1.2; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .main-title { font-size: 3.75rem; } }

.gradient-text {
    background: linear-gradient(to right, #60a5fa, #67e8f9);
    -webkit-background-clip: text;
    color: transparent;
}
.description { color: #94a3b8; font-size: 1.125rem; margin-bottom: 2rem; }

/* ボタン共通 */
.btn-group { display: flex; gap: 1rem; }
.btn {
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
    text-align: center;
}
.btn.primary { background-color: #2563eb; color: white; box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3); }
.btn.primary:hover { background-color: #3b82f6; transform: translateY(-2px); }
.btn.secondary { border: 1px solid #475569; color: #cbd5e1; }
.btn.secondary:hover { background-color: #1e293b; color: white; }
.full-width { width: 100%; }

/* 画像エリア */
.image-group { position: relative; }
.image-glow {
    position: absolute; inset: -1rem;
    background: linear-gradient(to right, #2563eb, #06b6d4);
    border-radius: 0.5rem; opacity: 0.3; filter: blur(20px);
}
.image-group img {
    position: relative; width: 100%; height: auto;
    border-radius: 0.5rem; border: 1px solid #334155;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* --- 下層ページ用デザイン --- */
.page-header {
    background-color: #1e293b;
    padding: 8rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid #334155;
}
.page-header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.page-header p { color: #94a3b8; }

/* お問い合わせフォーム */
.contact-section { padding: 4rem 0; }
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #1e293b;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #334155;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: #cbd5e1; font-size: 0.9rem; }
.required {
    background: #ef4444; color: white; font-size: 0.7rem;
    padding: 2px 6px; border-radius: 3px; margin-left: 5px; vertical-align: middle;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.8rem;
    background: #0f172a;
    border: 1px solid #334155;
    color: white;
    border-radius: 4px;
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: #2563eb;
}

/* --- 汎用セクション設定 --- */
.section-padding { padding: 5rem 0; }
.bg-dark { background-color: #162032; /* 少し明るい紺色 */ }
.center-title { text-align: center; font-size: 2rem; margin-bottom: 3rem; font-weight: bold; }

/* --- プライバシーポリシー / 文章ページ --- */
.policy-section { padding: 4rem 0; background: #0f172a; }
.text-content {
    max-width: 800px;
    margin: 0 auto;
    background: #1e293b;
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid #334155;
}
.text-content h3 {
    border-left: 4px solid #2563eb;
    padding-left: 1rem;
    margin: 2.5rem 0 1rem;
    font-size: 1.25rem;
    color: white;
}
.text-content p { margin-bottom: 1.5rem; color: #cbd5e1; line-height: 1.8; }
.text-content ul { margin-bottom: 1.5rem; padding-left: 1.5rem; color: #cbd5e1; }
.text-content li { margin-bottom: 0.5rem; }
.address-box {
    background: #0f172a;
    padding: 1.5rem;
    border-radius: 4px;
    font-family: monospace;
}

/* --- 会社概要ページ --- */
.message-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 768px) {
    .message-grid { grid-template-columns: 1fr 1fr; }
}

.message-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.message-text .sub-head { color: #2563eb; font-weight: bold; margin-bottom: 0.5rem; letter-spacing: 2px; }
.message-text .main-head { font-size: 2rem; margin-bottom: 1.5rem; line-height: 1.4; }
.message-text p { color: #94a3b8; margin-bottom: 2rem; }
.ceo-name { border-top: 1px solid #334155; padding-top: 1rem; }
.ceo-name span { display: block; font-size: 0.8rem; color: #64748b; }
.ceo-name strong { font-size: 1.2rem; }

.company-data {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid #334155;
}
.data-row {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #334155;
    padding: 1.5rem 0;
}
@media (min-width: 768px) {
    .data-row { flex-direction: row; align-items: baseline; }
}
.data-row dt {
    font-weight: bold;
    color: #60a5fa;
    width: 100%;
    margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
    .data-row dt { width: 30%; margin-bottom: 0; }
}
.data-row dd { width: 100%; color: #e2e8f0; }
@media (min-width: 768px) { .data-row dd { width: 70%; } }

.map-section iframe {
    display: block;
    filter: grayscale(100%) invert(92%) contrast(83%);
}

/* --- フッター --- */
.footer {
    background-color: #020617;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #1e293b;
    margin-top: auto;
    color: #64748b;
    font-size: 0.8rem;
}

/* フッター内のリンク用スタイル */
.footer-links {
    margin-bottom: 1rem;
}
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    margin: 0 0.5rem;
    font-size: 0.85rem;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: white;
    text-decoration: underline;
}
/* --- 事業内容ページ (service.html) --- */

/* サービスグリッド */
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .service-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
    background: #1e293b;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border: 1px solid #334155;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    border-color: #60a5fa;
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: #0f172a;
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid #334155;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}
.service-card p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-list {
    list-style: none;
    padding: 0;
    border-top: 1px solid #334155;
    padding-top: 1rem;
}
.service-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    font-size: 0.9rem;
}
.service-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

/* プロセスフロー */
.center-desc {
    text-align: center;
    color: #94a3b8;
    margin-top: -2rem; /* タイトルのマージンを相殺 */
    margin-bottom: 4rem;
}

.process-flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .process-flow { grid-template-columns: repeat(4, 1fr); }
}

.process-step {
    position: relative;
    padding: 2rem;
    background: #0f172a;
    border-radius: 8px;
    border: 1px solid #334155;
}
.step-num {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: #1e293b; /* 背景に溶け込ませる */
    line-height: 1;
    margin-bottom: 0.5rem;
    -webkit-text-stroke: 1px #475569; /* 縁取り文字にする */
}
.process-step h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #60a5fa;
}
.process-step p {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* CTAセクション */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(to bottom, #0f172a, #1e293b);
}
.cta-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}
.cta-section p {
    color: #94a3b8;
    margin-bottom: 2.5rem;
}