/* =========================================
   Navigation
   ========================================= */
.site-nav {
    background-color: var(--primary);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: block;
    line-height: 0;
}

/* =========================================
   Image Styles
   ========================================= */

/* ヒーローメイン画像 */
.hero-main-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* セクションバナー（止めてはいけない通信） */
.section-banner-img {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 0 auto 30px;
    border-radius: 8px;
}

/* 各業界コラージュ */
.industries-img {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 0 auto 40px;
    border-radius: 8px;
}

/* 製品画像（ソリューションカード内） */
.product-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 12px 0 18px;
}

/* 業界カード画像（カード上部・カード全幅） */
.card-img {
    display: block;
    width: calc(100% + 56px); /* card padding 28px × 2 を相殺 */
    margin: -28px -28px 20px -28px;
    height: auto;
    border-radius: 8px 8px 0 0;
    object-fit: cover;
}

/* =========================================
   Variables & Reset
   ========================================= */
:root {
    --primary: #0a2540;
    --secondary: #1a4b77;
    --accent: #e8530a;
    --white: #ffffff;
    --light-gray: #f3f4f6;
    --mid-gray: #6b7280;
    --dark: #111827;
    --text: #374151;
    --border: #e5e7eb;
}

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

body {
    font-family: 'Noto Sans JP', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}

ul { list-style: none; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* =========================================
   Layout
   ========================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

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

/* =========================================
   Typography
   ========================================= */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
}

.section-title.text-white { color: var(--white); }

.text-center { text-align: center; }
.text-white  { color: var(--white); }
.text-alert  { color: var(--accent); }
.mb-2        { margin-bottom: 2rem; }
.mt-2        { margin-top: 2rem; }

.emotional-quote {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    border-left: 6px solid var(--accent);
    padding: 20px 30px;
    margin: 0 auto 30px;
    max-width: 700px;
    background: var(--light-gray);
    border-radius: 0 8px 8px 0;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    text-align: center;
    border: 2px solid transparent;
}

.btn:hover { opacity: 0.85; transform: translateY(-2px); }

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.cta-btn { min-width: 220px; }

/* =========================================
   Hero
   ========================================= */
.hero {
    background: linear-gradient(135deg, #0a2540 0%, #1a4b77 100%);
    color: var(--white);
    padding: 80px 0 60px;
}

.hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
}

.hero-text-area {
    flex: 1;
    max-width: 600px;
}

.hero-image-area {
    flex: 1;
    max-width: 500px;
}

.hero .subtitle {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.85);
}

.hero .main-title {
    font-size: 2.4rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

.hero .hero-text {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.hero-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.hero-box h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.feature-list li {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.cta-group {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

/* =========================================
   Cards & Grid
   ========================================= */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.card ul {
    padding-left: 1.2em;
    list-style: disc;
}

.card ul li {
    margin-bottom: 6px;
    color: var(--text);
}

.card p {
    color: var(--mid-gray);
    font-size: 0.95rem;
}

.dark-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 24px;
}

.dark-card h3 {
    color: var(--white);
    border-color: var(--accent);
}

.dark-card p {
    color: rgba(255, 255, 255, 0.8);
}

.badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    text-decoration: none;
    transition: opacity 0.2s;
}

a.badge:hover {
    opacity: 0.82;
}

.catchphrase {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

/* =========================================
   Table
   ========================================= */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th, td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

tr:nth-child(even) td { background: var(--light-gray); }
td.text-alert { color: var(--accent); }

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
    background: linear-gradient(135deg, #0a2540 0%, #1a4b77 100%);
    color: var(--white);
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.cta-section p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.85);
}

.cta-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* =========================================
   Visually Hidden（スクリーンリーダー専用）
   ========================================= */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 0 24px;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-copy {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* =========================================
   Image Placeholders
   ========================================= */
.img-placeholder {
    background-color: #d1d5db;
    color: #4b5563;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    border-radius: 8px;
    width: 100%;
    border: 2px dashed #9ca3af;
    box-sizing: border-box;
    padding: 20px;
    font-size: 0.95rem;
}

.img-placeholder span {
    display: block;
    font-size: 0.85rem;
    font-weight: normal;
    margin-top: 8px;
    color: #6b7280;
}

/* カード内の小さい画像プレースホルダー */
.card-img-placeholder {
    aspect-ratio: 16 / 9;
    margin: -28px -28px 20px -28px;
    border-radius: 8px 8px 0 0;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 2px dashed #9ca3af;
    font-size: 0.85rem;
}

/* ダークカード内のプレースホルダー */
.dark-card .img-placeholder {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
    border-color: rgba(255, 255, 255, 0.3);
}

.dark-card .img-placeholder span {
    color: #d1d5db;
}

/* ヒーローエリアのプレースホルダー（ダーク背景上） */
.hero-image-area .img-placeholder {
    background-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.35);
}

.hero-image-area .img-placeholder span {
    color: rgba(255, 255, 255, 0.65);
}

/* =========================================
   Contact Form
   ========================================= */
.contact-section {
    background: var(--light-gray);
    padding: 80px 0;
}

.contact-lead {
    color: var(--mid-gray);
    margin-bottom: 48px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 40px;
    align-items: start;
}

/* 左パネル */
.contact-info {
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    padding: 36px;
}

.contact-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    border-left: 4px solid var(--accent);
    padding-left: 12px;
    margin-bottom: 20px;
}

.contact-checklist {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-checklist li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    padding-left: 1.6em;
    position: relative;
    line-height: 1.6;
}

.contact-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.contact-response-info {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.contact-response-info strong {
    color: var(--white);
    display: block;
    margin-bottom: 6px;
}

/* 右パネル（フォームエリア） */
.contact-form-area {
    background: var(--white);
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* フォームグループ */
.form-group { margin-bottom: 20px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.required {
    color: var(--accent);
    font-size: 0.75rem;
    margin-left: 4px;
}

/* 入力フィールド共通 */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(26, 75, 119, 0.12);
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-input.is-valid,
.form-select.is-valid {
    border-color: #16a34a;
}

/* セレクトのカスタム矢印 */
.form-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpolyline points='1 1 6 6 11 1' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.7;
}

/* エラーメッセージ */
.form-error {
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: 4px;
    min-height: 1.2em;
}

/* チェックボックス */
.form-check-group { margin-top: 4px; }

.form-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.form-check {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--secondary);
}

.form-check-label span {
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.6;
}

.form-link {
    color: var(--secondary);
    text-decoration: underline;
}

/* 送信ボタン */
.btn-form-submit {
    display: block;
    width: 100%;
    background: var(--accent);
    color: var(--white);
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s;
    margin-top: 10px;
    font-family: inherit;
}

.btn-form-submit:hover:not(:disabled) {
    background-color: #c94508;
    transform: translateY(-1px);
}

.btn-form-submit:disabled {
    background: var(--mid-gray);
    cursor: not-allowed;
}

/* スパム対策 honeypot */
.form-honeypot {
    display: none !important;
}

/* 送信完了メッセージ */
.form-success {
    text-align: center;
    padding: 56px 24px;
}

.form-success-icon {
    width: 64px;
    height: 64px;
    background: #dcfce7;
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
}

.form-success-icon::after {
    content: "";
    display: block;
    width: 28px;
    height: 16px;
    border-left: 4px solid #16a34a;
    border-bottom: 4px solid #16a34a;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(-45deg);
}

.form-success h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.form-success p {
    color: var(--mid-gray);
    line-height: 1.8;
}

/* =========================================
   Responsive
   ========================================= */

/* ---- タブレット: 〜 900px ---- */
@media (max-width: 900px) {
    /* 余白を段階的に縮小 */
    .section      { padding: 60px 0; }
    .hero         { padding: 60px 0 40px; }
    .cta-section  { padding: 60px 0; }

    /* ヒーロー: 縦積みに切り替え */
    .hero-grid {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .hero-text-area,
    .hero-image-area  { max-width: 100%; }
    .hero .main-title { font-size: 1.9rem; }
    .hero-box         { text-align: left; }
    .cta-group        { justify-content: center; }

    /* タイポグラフィ */
    .section-title   { font-size: 1.7rem; margin-bottom: 30px; }
    .emotional-quote { font-size: 1.3rem; padding: 16px 20px; }
    .cta-section h2  { font-size: 1.5rem; }

    /* グリッド: 3列 → 2列（1列への移行はモバイルで） */
    .grid-3 { grid-template-columns: repeat(2, 1fr); }

    /* フッター */
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-copy { text-align: left; }

    /* お問い合わせフォーム */
    .contact-grid { grid-template-columns: 1fr; }
}

/* ---- モバイル: 〜 600px ---- */
@media (max-width: 600px) {
    /* コンテナの左右余白を詰める */
    .container { padding: 0 16px; }

    /* 余白をさらに縮小 */
    .section     { padding: 48px 0; }
    .hero        { padding: 48px 0 36px; }
    .cta-section { padding: 48px 0; }

    /* ヒーロー */
    .hero .main-title { font-size: 1.5rem; }
    .hero .subtitle   { font-size: 0.95rem; }
    .hero-box         { padding: 18px; }
    .hero-box h2      { font-size: 1.05rem; }

    /* タイポグラフィ */
    .section-title   { font-size: 1.4rem; margin-bottom: 24px; }
    .emotional-quote { font-size: 1.1rem; padding: 14px 16px; }
    .cta-section h2  { font-size: 1.3rem; }

    /* グリッド: 全て1列 */
    .grid-2,
    .grid-3 { grid-template-columns: 1fr; }

    /* カード */
    .card { padding: 20px; }
    /* card-img のネガティブマージンをカードの新padding(20px)に合わせる */
    .card-img {
        width: calc(100% + 40px);
        margin: -20px -20px 16px -20px;
    }

    /* ボタン: 縦並びで全幅 */
    .btn        { width: 100%; padding: 13px 20px; }
    .cta-btn    { min-width: unset; }
    .cta-group  { flex-direction: column; }
    .cta-grid   { flex-direction: column; align-items: center; }
    .cta-grid .btn { width: 100%; max-width: 360px; }

    /* テーブル: フォントと余白を縮小 */
    th, td { padding: 10px 12px; font-size: 0.85rem; }

    /* お問い合わせフォーム */
    .contact-section    { padding: 48px 0; }
    .contact-form-area,
    .contact-info       { padding: 24px 20px; }
    .form-row           { grid-template-columns: 1fr; gap: 0; }
}

/* ---- 極小サイズ: 〜 400px ---- */
@media (max-width: 400px) {
    .hero .main-title { font-size: 1.3rem; }
    .hero-box h2      { font-size: 0.95rem; }
    .section-title    { font-size: 1.2rem; }
    .emotional-quote  { font-size: 1rem; }
    th, td            { padding: 8px 10px; font-size: 0.8rem; }
}
