/* content.css - コンテンツパーツ（フォーム・FAQ・サイドバー・ページ固有） */

/* ========================================
   ページ内共通パーツ
======================================== */
/* 法人概要テーブル */
.info-table {
  width: 100%;
  border-collapse: collapse;
}
.info-table th {
  background: #f0f0f0;
  border: 1px solid #b9b9b9;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  width: 180px;
  vertical-align: top;
}
.info-table td {
  border: 1px solid #b9b9b9;
  padding: 12px 16px;
  font-size: 15px;
  color: #333;
  vertical-align: top;
}
/* FAQ */
.faq-item {
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.faq-q {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
}
.faq-q-badge {
  background: #3848a8;
  color: white;
  font-weight: 700;
  font-size: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.faq-q p {
  font-weight: 700;
  font-size: 17px;
}
.faq-a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 24px 20px 48px;
}
.faq-a-badge {
  background: #767676;
  color: white;
  font-weight: 700;
  font-size: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.faq-a p {
  font-size: 15px;
  color: #444;
  line-height: 1.8;
}
/* サイドバー */
.sidebar-title {
  font-weight: 700;
  font-size: 18px;
  color: #11323b;
  margin-bottom: 8px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px;
  border-bottom: 1px solid #d0d0d0;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  transition: color 0.2s, padding-left 0.2s;
}
.sidebar-item:hover {
  color: #11323b;
  padding-left: 12px;
}
.sidebar-item:hover .sidebar-icon {
  background: #91280b;
  transform: translateX(3px);
}
.sidebar-icon {
  width: 22px;
  height: 22px;
  background: #11323b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
/* フォーム共通 */
.form-card {
  border-radius: 16px;
  padding: 40px;
  background: #edf7ff;
  border: 2px solid #3d4d89;
}
.form-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(61, 77, 137, 0.25);
}
.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 240px;
  flex-shrink: 0;
  font-size: 15px;
  color: #333;
  padding-top: 10px;
}
.form-label.no-pad {
  padding-top: 0;
}
.form-required {
  background: #c0392b;
  color: white;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
}
.form-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #c0cce0;
  border-radius: 6px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: #333;
  background: white;
  outline: none;
}
.form-input:focus {
  border-color: #11323b;
}
.form-textarea {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #c0cce0;
  border-radius: 6px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: #333;
  background: white;
  resize: vertical;
  outline: none;
}
.form-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 0 8px;
  font-size: 14px;
  color: #444;
}
.form-submit-wrap {
  text-align: center;
  padding-top: 16px;
}
.form-submit-btn {
  background: #2a3a8a;
  color: white;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  padding: 14px 80px;
  border-radius: 500px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.form-submit-btn:hover {
  opacity: 0.85;
}
/* ページ送り（ページネーション） */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  border: none;
  background: #e8e8e8;
  color: #333;
  transition: background 0.2s;
}
.page-btn.active {
  background: #11323b;
  color: white;
}
.page-btn:hover:not(.active) {
  background: #d0d0d0;
}
/* プロジェクトdivider */
.section-divider {
  width: 60px;
  height: 3px;
  background: #11323b;
  margin: 0 auto 24px;
}
/* ========================================
   ページ固有スタイル
======================================== */

/* project.html */
/* アコーディオン */
        .accordion-header { cursor: pointer; text-align: center; padding-bottom: 24px; }
        .accordion-body { display: none; }
        .accordion-content { background: #d6ead0; border-radius: 12px; padding: 40px; }
        .accordion-summary { font-size: 15px; color: #333; line-height: 1.8; margin-bottom: 30px; }
        .accordion-col { display: flex; gap: 40px; align-items: flex-start; }
        .accordion-col-text { flex: 1; }
        .accordion-col-text p { font-size: 15px; color: #333; line-height: 1.8; margin-bottom: 14px; }
        .accordion-photos { width: 360px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
        .accordion-photos .photo-item { aspect-ratio: 4/3; }
        .accordion-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 24px;
            border-radius: 500px;
            background: #91280b;
            color: white;
            font-size: 14px;
            letter-spacing: 0.05em;
            margin-top: 8px;
            cursor: pointer;
        }
        .accordion-arrow { display: inline-block; transition: transform 0.3s; }
        .accordion-section { margin-bottom: 60px; }
        .accordion-section:last-child { margin-bottom: 0; }
        .section-subtitle { font-family: 'Noto Serif JP', serif; font-weight: 700; font-size: 22px !important; color: #333; line-height: 1.4; margin-bottom: 16px; }

        @media (max-width: 768px) {
            .accordion-col { flex-direction: column; }
            .accordion-photos { width: 100%; }
        }

/* about.html */
.iide-banner {
            display: flex;
            justify-content: center;
            padding: 40px 0;
        }
        .iide-banner-inner {
            max-width: 725px;
            width: 100%;
            height: 220px;
            position: relative;
            overflow: hidden;
        }
        .iide-banner-inner img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .iide-banner-overlay {
            position: absolute;
            inset: 0;
            background: rgba(17,50,59,0.55);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 0 40px;
        }
        .iide-banner-overlay p { color: white; line-height: 1.8; }
        .iide-banner-title { font-family: 'Noto Serif JP', serif; font-weight: 700; font-size: 26px; margin-bottom: 10px; }
        .iide-banner-desc { font-size: 15px; margin-bottom: 20px; }

        .history-table { width: 100%; border-collapse: collapse; }
        .history-table td { border: 1px solid #b9b9b9; padding: 12px 16px; font-size: 15px; color: #333; }
        .history-table td:first-child { background: #f0f0f0; width: 180px; }

        .policy-h2 { font-family: 'Noto Serif JP', serif; font-weight: 700; font-size: 18px; color: #111; margin: 36px 0 10px; }
        .policy-body { font-size: 14px; color: #333; line-height: 1.9; }
        .policy-body li { margin-left: 1.5em; }

        @media (max-width: 768px) {
            .iide-banner-inner { height: 160px; }
            .iide-banner-title { font-size: 20px; }
        }

/* news.html */
.news-layout { display:flex; gap:50px; align-items:flex-start; padding:60px 0; }
        .news-main-area { flex:1; min-width:0; }
        .news-sidebar { width:200px; flex-shrink:0; }
        @media(max-width:768px){ .news-layout{flex-direction:column;} .news-sidebar{width:100%;} }

/* news-detail.html */
.detail-layout { display:flex; gap:60px; align-items:flex-start; padding:60px 0; }
        .detail-main { flex:1; min-width:0; }
        .detail-sidebar { width:200px; flex-shrink:0; }
        .detail-thumb { width:100%; aspect-ratio:16/9; background:#e0e0e0; border-radius:10px; overflow:hidden; display:flex; align-items:center; justify-content:center; margin:24px 0; }
        .detail-thumb svg { opacity:0.5; }
        .related-section { background:#f0f0f0; padding:60px 0; }
        @media(max-width:768px){ .detail-layout{flex-direction:column;} .detail-sidebar{width:100%;} }

/* event.html */
.news-layout { display:flex; gap:50px; align-items:flex-start; padding:60px 0; }
        .news-main-area { flex:1; min-width:0; }
        .news-sidebar { width:200px; flex-shrink:0; }
        @media(max-width:768px){ .news-layout{flex-direction:column;} .news-sidebar{width:100%;} }

/* event-detail.html */
.detail-layout { display:flex; gap:60px; align-items:flex-start; padding:60px 0; }
        .detail-main { flex:1; min-width:0; }
        .detail-sidebar { width:200px; flex-shrink:0; }
        .detail-thumb { width:100%; aspect-ratio:16/9; background:#e0e0e0; border-radius:10px; overflow:hidden; display:flex; align-items:center; justify-content:center; margin:24px 0; }
        .detail-thumb svg { opacity:0.5; }
        .related-section { background:#f0f0f0; padding:60px 0; }
        @media(max-width:768px){ .detail-layout{flex-direction:column;} .detail-sidebar{width:100%;} }

/* ========================================
   画像モーダル
======================================== */
.map-clickable {
    cursor: zoom-in;
    transition: opacity 0.2s;
}
.map-clickable:hover { opacity: 0.85; }

.img-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.img-modal.open { display: flex; }

.img-modal-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}
.img-modal-inner img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}
.img-modal-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 36px;
    height: 36px;
    background: #11323b;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}
.img-modal-close:hover { background: #91280b; }
.img-modal-close:hover { background: #91280b; }

/* ========================================
   Our Credo
======================================== */
.credo-block {
    margin-top: 48px;
    padding: 40px 48px;
    background: #11323b;
    color: #fff;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}
.credo-block::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
}
.credo-block::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50%;
}
.credo-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.credo-en {
    font-family: 'Genos', sans-serif;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: #fff;
    margin-bottom: 6px;
}
.credo-ja {
    font-size: 20px;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.08em;
}
.credo-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 40px;
}
.credo-list li {
    font-size: 17px;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.credo-num {
    font-family: 'Genos', sans-serif;
    font-size: 18px;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .credo-block {
        padding: 28px 24px;
        margin-top: 28px;
    }
    .credo-en {
        font-size: 24px;
    }
    .credo-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ========================================
   賛助会員ブロック
======================================== */
.sanjo-block {
    margin-top: 48px;
    padding: 40px 48px;
    background: #f8f8f6;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.sanjo-section {
    margin-bottom: 32px;
}
.sanjo-section:last-child {
    margin-bottom: 0;
}
.sanjo-heading {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    font-weight: 700;
    color: #11323b;
    border-left: 4px solid #11323b;
    padding-left: 12px;
    margin-bottom: 12px;
}
.sanjo-subheading {
    font-size: 15px;
    font-weight: 700;
    color: #11323b;
    margin-bottom: 10px;
    padding-left: 4px;
}
.sanjo-text {
    font-size: 15px;
    color: #444;
    line-height: 1.9;
}
.sanjo-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
    font-size: 15px;
}
.sanjo-table th,
.sanjo-table td {
    padding: 10px 16px;
    border: 1px solid #ccc;
    line-height: 1.8;
    vertical-align: top;
}
.sanjo-table th {
    background: #11323b;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    width: 120px;
}
.sanjo-table td {
    color: #444;
    background: #fff;
}
.sanjo-note {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin-top: 4px;
}
.sanjo-flow {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.sanjo-flow-step {
    background: #11323b;
    color: #fff;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 4px;
    white-space: nowrap;
}
.sanjo-flow-arrow {
    font-size: 20px;
    color: #11323b;
    font-weight: 700;
}

@media (max-width: 768px) {
    .sanjo-block {
        padding: 24px 20px;
        margin-top: 32px;
    }
    .sanjo-flow {
        flex-direction: column;
        align-items: flex-start;
    }
    .sanjo-flow-arrow {
        transform: rotate(90deg);
    }
}
