/* ============================================
   東京都医療安全推進地方会 - レスポンシブ対応
   responsive.css
   ============================================ */

/* ------------------------------------------
   ブレークポイント定義
   ------------------------------------------
   Desktop  : 1100px以上（デフォルト）
   Tablet   : 768px〜1099px
   Mobile   : 767px以下
   Mobile S : 480px以下
   ------------------------------------------ */

/* ==========================================
   TABLET（768px〜1099px）
   ========================================== */
@media (max-width: 1099px) {

    /* コンテナ */
    .container {
        padding: 0 20px;
    }

    /* ヘッダー */
    .header-logo .name-ja {
        font-size: 1.35rem;
    }

    .header-info-text strong {
        font-size: 1rem;
    }

    /* ナビゲーション */
    .nav-list a {
        font-size: 0.78rem;
        padding: 0 4px;
    }

    /* ヒーロー */
    .hero {
        height: auto;
    }

    .hero-catch {
        font-size: 2rem;
    }

    .hero-text {
        padding: 0 40px;
    }

    /* 情報グリッド：2列 */
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* テーブル */
    .table-basic th {
        width: 160px;
    }
}

/* ==========================================
   MOBILE（767px以下）
   ========================================== */
@media (max-width: 767px) {

    /* ── ヘッダー ── */
    .site-header {
        padding: 12px 0;
        position: relative;
    }

    .site-header .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        padding: 0 20px;
    }

    .header-logo .name-ja {
        font-size: 1.1rem;
    }

    .header-logo .name-en {
        display: none;
    }

    .header-info {
        display: none;
    }

    .header-info-row {
        justify-content: flex-start;
    }

    .header-info-text strong {
        font-size: 0.95rem;
    }

    .header-info-address {
        font-size: 0.72rem;
    }

    /* ── ナビゲーション ── */
    .site-nav {
        display: none;
        height: auto;
        background-color: transparent;
        box-shadow: none;
    }

    .site-nav .container {
        flex-direction: column;
        height: auto;
        position: relative;
        padding: 0;
        background-color: var(--green-dark);
    }

    /* ハンバーガーボタン表示 */
    .hamburger {
        display: flex;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        background: transparent;
        border: none;
        z-index: 101;
    }

    .hamburger:hover {
        background: transparent;
        border: none;
    }

    .hamburger span {
        background-color: var(--green-dark);
    }

    /* ハンバーガーボタン：ヘッダーに配置 */
    .site-header .hamburger {
        display: flex;
    }

    /* ナビリスト：縦並びドロワー */
    .site-nav {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0);
        height: auto;
        z-index: 99;
        padding: 0;
        pointer-events: none;
    }

    .site-nav.is-open {
        background-color: rgba(0, 0, 0, 0.3);
        pointer-events: auto;
    }

    .site-nav.is-open .container {
        display: block;
    }

    .site-nav .container {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        padding: 0;
        background-color: var(--green-dark);
        border-radius: 0;
        z-index: 100;
        overflow-y: auto;
    }

    .nav-list {
        flex-direction: column;
        height: auto;
        max-height: none;
        overflow: visible;
        transition: none;
        width: 100%;
        flex: none;
    }

    .nav-list li {
        flex: none;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        width: 100%;
    }

    .nav-list li::before {
        display: none;
    }

    .nav-list a {
        justify-content: flex-start;
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    /* ハンバーガー → ✕ アニメーション */
    .hamburger.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

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

    .hamburger.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* ── ヒーロー ── */
    .hero {
        height: auto;
    }

    .hero-text {
        padding: 0 24px;
    }

    .hero-catch {
        font-size: 1.5rem;
    }

    .hero-sub {
        font-size: 0.88rem;
    }

    /* ── セクション ── */
    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.2rem;
    }

    /* ── 新着情報：縦並び ── */
    .news-section .container {
        grid-template-columns: 1fr;
    }

    .news-block {
        padding: 20px;
    }

    .news-list li {
        flex-direction: column;
        gap: 4px;
    }

    /* ── CTAカード ── */
    .cta-cards {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 16px 18px;
        gap: 12px;
    }

    .cta-card-icon {
        font-size: 1.6rem;
    }

    .cta-card-title {
        font-size: 0.95rem;
    }

    .cta-card-period {
        font-size: 0.7rem;
    }

    /* ── 情報グリッド：2列 ── */
    .info-grid {
        grid-template-columns: repeat(2, 1fr);

    }

    .info-card {
        padding: 20px 12px;
    }

    .info-card-icon {
        font-size: 1.6rem;
    }

    .info-card-title {
        font-size: 0.9rem;
    }

    .info-card-desc {
        font-size: 0.78rem;
    }

    /* ── ページヘッダー ── */
    .page-header {
        padding: 24px 0;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    /* ── テーブル：縦並び ── */
    .table-basic thead {
        display: none;
    }

    .table-basic tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid var(--gray-border);
        border-radius: var(--radius-md);
        overflow: hidden;
    }

    .table-basic th,
    .table-basic td {
        display: block;
        width: 100%;
        border: none;
        border-bottom: 1px solid var(--gray-border);
        padding: 10px 16px;
    }

    .table-basic th {
        background-color: var(--green-light);
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .table-basic tr:nth-child(even) td {
        background-color: var(--white);
    }

    /* ── ボタン ── */
    .btn {
        width: 100%;
        display: block;
        text-align: center;
        padding: 14px 16px;
    }

    /* ── フッター ── */

    .footer-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
        padding-bottom: 30px;
    }

    .footer-logo {
        flex: 0 0 auto;
        width: 100%;
    }

    .footer-logo .name-ja {
        font-size: 1.1rem;
    }

    .footer-nav {
        grid-column: 1;
        grid-row: 2;
        margin-top: 0;
    }

    .footer-contact {
        border-left: none;
        border-top: 3px solid rgba(255, 255, 255, 0.2);
        padding: 20px;
        margin-top: 10px;
    }

    .footer-contact-title {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .footer-contact-info {
        font-size: 0.8rem;
        line-height: 1.6;
    }

    .footer-nav ul {
        gap: 8px 16px;
    }

    .footer-contact {
        padding: 12px 16px;
    }

    .footer-contact-org p {
        font-size: 0.8rem;
    }
}

/* ==========================================
   MOBILE S（480px以下）
   ========================================== */
@media (max-width: 480px) {

    /* ヒーロー */
    .hero {
        height: auto;
    }

    .hero-catch {
        font-size: 1.25rem;
    }

    .hero-sub {
        font-size: 0.82rem;
        margin-top: 8px;
    }

    /* 情報グリッド：1列 */
    .info-grid {
        grid-template-columns: 1fr;
    }

    /* ヘッダーバッジ */
    .header-badge {
        font-size: 0.68rem;
        padding: 2px 8px;
    }

    /* ページヘッダー */
    .page-header h1 {
        font-size: 1.2rem;
    }

    /* セクション余白 */
    .section {
        padding: 32px 0;
    }
}