/* === Skip link (accessibility) === */
.skip-link {
    position: absolute;
    top: -48px;
    left: 0;
    background: #0066cc;
    color: white;
    padding: 10px 18px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 9999;
    border-radius: 0 0 4px 0;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* === Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul, ol {
    padding-left: 1.5em;
}

/* === Base === */
body {
    font-family: 'Hiragino Kaku Gothic Pro', 'Meiryo', sans-serif;
    line-height: 1.8;
    color: #333;
    background: #f5f5f5;
}

/* === Header === */
header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-top {
    background: #0066cc;
    padding: 10px 0;
}

.header-top-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: right;
    color: white;
    font-size: 0.85rem;
}

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

.logo h1 {
    font-size: 1.8rem;
    color: #0066cc;
    font-weight: 600;
}

.logo a {
    text-decoration: none;
}

/* === Hamburger menu === */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #0066cc;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* === Navigation === */
.main-nav {
    background: white;
    border-top: 1px solid #e0e0e0;
    border-bottom: 3px solid #0066cc;
}

.main-nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
}

.main-nav a {
    padding: 18px 15px;
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.main-nav a:hover {
    background: #f0f8ff;
    color: #0066cc;
}

.main-nav a.active {
    background: #f0f8ff;
    color: #0066cc;
    border-bottom: 3px solid #0066cc;
}

/* === Important Notice Bar (full-width, below header) === */
.important-notice-bar {
    background: #fff8f0;
    border-top: 3px solid #ff6b00;
    border-bottom: 3px solid #ff6b00;
}

.important-notice-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.important-notice-label {
    display: inline-block;
    background: #ff6b00;
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 3px;
    line-height: 1.4;
}

.important-notice-bar .important-notice-content {
    font-size: 0.92rem;
    line-height: 1.7;
}

.important-notice-bar .important-notice-content a {
    color: #c62828;
    text-decoration: underline;
    font-weight: 600;
}

/* === Breadcrumb === */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 5px;
    color: #999;
}

/* === Common page elements === */
.page-title {
    font-size: 2rem;
    color: #0066cc;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #0066cc;
}

/* === Homepage layout === */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* === Generic container (other pages) === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* === Inner page shared styles === */
.content-wrapper {
    background: white;
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.section {
    margin-bottom: 35px;
}

.section h2 {
    font-size: 1.3rem;
    color: #0066cc;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 5px solid #0066cc;
}

.section p {
    margin-bottom: 12px;
    line-height: 1.9;
    font-size: 0.95rem;
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid #0066cc;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.info-box h3 {
    color: #0066cc;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.info-box ol,
.info-box ul {
    padding-left: 1.5em;
}

.back-link {
    display: inline-block;
    margin-top: 10px;
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* 内ページ共通テーブル */
.content-wrapper table,
.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.content-wrapper th,
.content-wrapper td,
.table-wrapper th,
.table-wrapper td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
    vertical-align: top;
}

.content-wrapper th,
.table-wrapper th {
    background: #f0f8ff;
    font-weight: 600;
    color: #0066cc;
}

.table-wrapper tbody tr:nth-child(even) {
    background: #f9f9f9;
}

/* カードグリッド */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.card {
    background: #f8fbff;
    border: 1px solid #d0e4f5;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.card h3 {
    font-size: 1.05rem;
    color: #0066cc;
    margin-bottom: 8px;
}

.card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 8px;
}

.card a {
    color: #0066cc;
    font-size: 0.88rem;
    text-decoration: none;
    font-weight: 500;
}

.card a:hover {
    text-decoration: underline;
}

/* 警告・注意ボックス */
.alert-box {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.alert-box h3 {
    color: #721c24;
    margin-top: 0;
    font-size: 1.05rem;
}

.alert-box ul {
    padding-left: 20px;
    margin: 10px 0;
}

.alert-box li {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

/* === Procedures section === */
.procedures-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.8rem;
    color: #0066cc;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #0066cc;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* site-icon: SVGアイコン共通スタイル */
.site-icon {
    display: inline-block;
    width: 1.3em;
    height: 1.3em;
    vertical-align: -0.2em;
    flex-shrink: 0;
}

/* ダウンロードボタンの前置きアイコン（SVG background） */
.download-btn::before {
    content: '';
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23dbeafe'/%3E%3Cpath d='M7 4L14 4L17 7L17 20L7 20Z' fill='none' stroke='%231a6db5' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M14 4L14 7L17 7' fill='none' stroke='%231a6db5' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cline x1='9' y1='11' x2='15' y2='11' stroke='%231a6db5' stroke-width='1.3' stroke-linecap='round'/%3E%3Cline x1='9' y1='14' x2='15' y2='14' stroke='%231a6db5' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 0.35em;
}

.download-btn-venue::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23d1fae5'/%3E%3Crect x='10' y='5' width='4' height='14' rx='1' fill='%232a7a4f'/%3E%3Crect x='5' y='10' width='14' height='4' rx='1' fill='%232a7a4f'/%3E%3C/svg%3E");
}

.download-btn.disabled::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23dbeafe'/%3E%3Crect x='7' y='6' width='10' height='13' rx='1' fill='none' stroke='%231a6db5' stroke-width='1.5'/%3E%3Crect x='10' y='4' width='4' height='4' rx='1' fill='none' stroke='%231a6db5' stroke-width='1.4'/%3E%3Cline x1='9' y1='11.5' x2='15' y2='11.5' stroke='%231a6db5' stroke-width='1.2' stroke-linecap='round'/%3E%3Cline x1='9' y1='14.5' x2='15' y2='14.5' stroke='%231a6db5' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

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

.procedure-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.procedure-card:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 15px rgba(0,102,204,0.2);
    transform: translateY(-5px);
}

.procedure-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.procedure-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 8px;
}

.procedure-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

/* === News section === */
.news-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.news-item:last-of-type {
    border-bottom: none;
}

.news-item:hover {
    background: #f8fbff;
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 4px;
}

.news-date {
    color: #888;
    font-size: 0.88rem;
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 2px;
}

.news-category {
    flex-shrink: 0;
    display: inline-block;
    padding: 2px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 3px;
    min-width: 65px;
    text-align: center;
}

.cat-health   { background: #e3f2fd; color: #1565c0; }
.cat-benefit  { background: #e8f5e9; color: #2e7d32; }
.cat-info     { background: #fff3e0; color: #e65100; }
.cat-important{ background: #fce4ec; color: #c62828; }

.news-link {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.6;
}

.news-link:hover {
    color: #0066cc;
    text-decoration: underline;
}

.news-badge {
    display: inline-block;
    background: #ff6b00;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-left: 5px;
}

.news-new {
    display: inline-block;
    background: #ff1744;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
    .news-new { animation: none; }
}

.news-more {
    text-align: center;
    margin-top: 20px;
}

.news-more a {
    display: inline-block;
    padding: 10px 40px;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.news-more a:hover {
    background: #0052a3;
}

/* === Sidebar === */
.sidebar-banner {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.sidebar-banner a {
    display: block;
    text-decoration: none;
}

/* === こころとからだカード === */
.kokoro-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.kokoro-card:hover {
    background: linear-gradient(135deg, #2e7d32, #388e3c);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.kokoro-card-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.kokoro-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.kokoro-card-sub {
    font-size: 0.8rem;
    margin-top: 2px;
    opacity: 0.8;
}

/* === Footer === */
footer {
    background: #2c3e50;
    color: white;
    padding: 40px 20px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section a {
    display: block;
    color: #ddd;
    text-decoration: none;
    padding: 5px 0;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 0.85rem;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .main-nav {
        display: none;
        border-top: none;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav-content {
        flex-direction: column;
        justify-content: flex-start;
    }

    .main-nav a {
        padding: 14px 20px;
        border-bottom: 1px solid #eee;
        white-space: normal;
    }

    .important-notice-bar-inner {
        flex-direction: column;
        gap: 8px;
    }

    .news-item {
        flex-wrap: wrap;
        gap: 6px 10px;
    }

    .news-link {
        flex-basis: 100%;
        font-size: 0.9rem;
    }

    .home-container {
        grid-template-columns: 1fr;
    }

    .procedures-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .content-wrapper {
        padding: 20px;
    }

    /* M1: Page title */
    .page-title {
        font-size: 1.5rem;
    }

    /* M5: Logo */
    .logo h1 {
        font-size: 1.3rem;
    }

    /* M7: Footer padding */
    footer {
        padding: 30px 16px 20px;
    }

    /* M4: Table horizontal scroll */
    .content-wrapper table,
    .table-wrapper table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* M6: Accordion touch targets */
    .accordion-header {
        padding: 16px 14px;
    }

    .accordion-body {
        padding: 15px 14px;
    }

    /* M9: Section headings */
    .section h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    /* M1: Page title smaller */
    .page-title {
        font-size: 1.25rem;
    }

    /* M5: Logo smaller */
    .logo h1 {
        font-size: 1.05rem;
    }

    /* M3: iOS input zoom prevention */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px;
    }

    /* M9: Section headings smaller */
    .section h2 {
        font-size: 1.05rem;
    }

    .section h3 {
        font-size: 0.95rem;
    }

    /* Breadcrumb text size */
    .breadcrumb {
        font-size: 0.78rem;
    }
}
