/* ========================================
   統合CSS - Appleスタイル配色（洗練版）
   文字サイズと余白をAppleサイトのように小さく調整
   ======================================== */

/* ========================================
   1. 共通セクションスタイル
   ======================================== */

/* セクションブロック */
.section-block {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
}

.section-block:last-child {
    border-bottom: none;
}

/* セクションタイトル */
.section-title-blue,
.section-title {
    color: var(--color-ui-main);
    margin-bottom: 1.25rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid #d2d2d7;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.section-block h4 {
    color: var(--color-ui-main);
    font-size: 1.0625rem;
    margin: 1.5rem 0 0.75rem 0;
    padding-left: 0.875rem;
    border-left: 4px solid #0071e3;
    font-weight: 600;
}

/* ========================================
   2. ボタン（統合）
   ======================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 0.375rem 0;
    font-size: 0.9375rem;
}

.btn-primary {
    background: var(--color-green);
    color: white;
    box-shadow: 0 3px 10px rgba(0, 113, 227, 0.2);
}

.btn-primary:hover {
    background: var(--color-cyan);
    box-shadow: 0 5px 14px rgba(0, 113, 227, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6e6e73;
    color: white;
    box-shadow: 0 3px 10px rgba(110, 110, 115, 0.2);
}

.btn-secondary:hover {
    background: #86868b;
    box-shadow: 0 5px 14px rgba(110, 110, 115, 0.3);
    transform: translateY(-2px);
}

.btn-submit {
    background: #f59e0b;
    color: white;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.2);
    display: block;
}

.btn-submit:hover {
    background: #d97706;
    box-shadow: 0 5px 14px rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

.button-group {
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
}

.button-group-center {
    text-align: center;
    margin: 1.5rem 0;
}

/* ========================================
   3. ナビゲーション（アンカーリンク）
   ======================================== */

.section-anchor-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #d2d2d7;
}

.anchor-link {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    background:var(--color-ui-main);
    color: var(--color-wh);
    border: 1px solid #d2d2d7;
    font-size: 0.9375rem;
}

.anchor-link:hover {
    background: #0071e3;
    color: white;
    border-color: #0071e3;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 113, 227, 0.2);
}

/* ========================================
   4. 情報ボックス（統合）
   ======================================== */

.info-box {
    background: var(--color-ui-gr0);
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.25rem 0;
}

.info-box h5 {
    color: var(--color-ui-main);
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.info-box-accent {
    background: #fff3cd;
    border-left: 4px solid #f59e0b;
    padding: 1.25rem;
    margin: 1.25rem 0;
}

.info-box-accent h5 {
    color: #b45309;
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.important-note {
    background: #fff3cd;
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
    padding: 1.25rem;
    margin: 1.25rem 0;
}

.important-note p {
    margin: 0.375rem 0;
    line-height: 1.5;
    color: var(--color-ui-main);
    font-size: 0.9375rem;
}

.important-note p:last-child {
    margin-bottom: 0;
}

.important-note a {
    color: #0071e3;
    font-weight: 600;
    text-decoration: underline;
}

.important-note a:hover {
    color: #0077ed;
}

.important-note strong {
    color: #dc2626;
}

.deadline-note {
    background: #fee2e2;
    border-left: 4px solid #dc2626;
    padding: 1.25rem;
    margin: 1.25rem 0;
    color: #991b1b;
}

.deadline-note p {
    margin: 0;
    line-height: 1.5;
    color: var(--color-ui-main);
    font-size: 0.9375rem;
}

.deadline-note strong {
    color: #dc2626;
    font-size: 1.0625rem;
}

.reception-time {
    background: var(--color-ui-gr0);
    padding: 1.25rem;
    border-left: 4px solid #0071e3;
    margin: 1.25rem 0;
}

.reception-time p {
    margin: 0.375rem 0;
    color: var(--color-ui-main);
    font-size: 0.9375rem;
}

.reception-time strong {
    font-weight: 600;
}

/* ========================================
   5. 期間・日付表示
   ======================================== */

.period-box{
    background: var(--color-ui-gr0);
    padding: 1.5rem;
    border-left: 4px solid #0071e3;
    text-align: center;
}

.period-box {
    border: 1px solid #d2d2d7;
}

.period-date {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-ui-main);
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.01em;
}

.period-closed{
    font-size: 1.0625rem;
    font-weight: 600;
    color: #be123c;
    margin: 0;
}


/* ========================================
   6. テーブル（統合）
   ======================================== */

.custom-table,
.custom-table-multi-col,
.specs-table,
.overview-table {
    width: 100%;
}

.specs-table {
    margin: 1.25rem 0;
    border: 1px solid #d2d2d7;
}

.overview-table {
    margin-top: 1.5rem;
    border: 1px solid #d2d2d7;
}

.custom-table th,
.custom-table td,
.custom-table-multi-col td,
.specs-table th,
.specs-table td,
.overview-table th,
.overview-table td {
    border: 1px solid #d2d2d7;
    padding: 0.875rem;
    text-align: left;
}

.custom-table th,
.specs-table th,
.overview-table th {
    background-color: #f5f5f7;
    color: var(--color-ui-main);
}

.custom-table th {
    width: 30%;
}

.specs-table th {
    width: 30%;
}

.overview-table th {
    width: 20%;
}

.custom-table td,
.custom-table-multi-col td,
.specs-table td,
.overview-table td {
    color: var(--color-ui-main);
}

.specs-table td {
    background: white;
    font-weight: 500;
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
    border-bottom: none;
}

.custom-table-multi-col td {
    width: 33.33%;
}

.overview-table th,
.overview-table td {
    vertical-align: middle;
    border-bottom: 1px solid #d2d2d7;
}

.overview-table .person-info {
    display: flex;
    align-items: center;
}

.overview-table .person-info .name {
    font-weight: 500;
    margin-right: 1.25rem;
    color: var(--color-ui-main);
}

.overview-table .person-info .affiliation {
    color: #6e6e73;
    font-size: 0.875rem;
}

/* ========================================
   7. リスト
   ======================================== */

.section-block ul {
    list-style: none;
    padding-left: 0;
    margin: 0.875rem 0;
}

.section-block ul li {
    padding: 0.5rem 0 0.5rem 1.25rem;
    position: relative;
    line-height: 1.5;
    color: var(--color-ui-main);
    font-size: 0.9375rem;
}

.section-block ul li:before {
    content: "▸";
    color: #0071e3;
    position: absolute;
    left: 0;
    font-size: 1.0625rem;
}

.award-list {
    list-style: none;
    padding-left: 0;
}

.award-list li {
    background: var(--color-ui-gr0);
    border-left: 4px solid #0071e3;
    padding: 1.25rem;
    margin-bottom: 0.875rem;
}

.award-list li strong {
    color: var(--color-ui-main);
    display: block;
    margin-bottom: 0.375rem;
    font-size: 1rem;
}

/* ========================================
   8. フレックスレイアウト
   ======================================== */

.flex-container {
    display: flex;
    gap: 1.5rem;
    margin: 1.25rem 0;
}

.flex-item {
    flex: 1;
    min-width: 0;
}

.flex-item ol {
    padding-left: 1.25rem;
}

/* ========================================
   9. お問い合わせ・連絡先
   ======================================== */
.contact-box,
.contact-info {
    background: var(--color-ui-gr0);
    padding: 1.5rem;
    margin-top: 2.5rem;
}

.contact-info {
    border-left: 4px solid #0071e3;
}

.contact-box h4,
.contact-info .office-name {
    margin-top: 0;
    text-align: center;
    color: var(--color-ui-main);
    font-weight: 600;
    font-size: 1.0625rem;
}

.contact-info .office-name {
    font-size: 1rem;
    margin-top: 1.25rem;
    text-align: left;
}

.contact-box p,
.contact-info p {
    text-align: center;
    line-height: 1.5;
    color: var(--color-ui-main);
    font-size: 0.9375rem;
}

.contact-info p {
    margin: 0.625rem 0;
}

.office-name {
    font-weight: 600;
    margin-top: 1.25rem;
}

.email-address a,
.contact-info a {
    color: #0071e3;
    font-weight: 600;
    text-decoration: none;
}

.email-address a:hover,
.contact-info a:hover {
    text-decoration: underline;
}

.telework-note,
.contact-info .note {
    font-size: 0.8125rem;
    color: #6e6e73;
}

.contact-info .note {
    font-size: 0.875rem;
    margin-top: 1.25rem;
}

/* ========================================
   10. プライバシーポリシー
   ======================================== */

.privacy-policy {
    background: var(--color-ui-gr0);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #d2d2d7;
}

.privacy-policy p {
    margin-bottom: 0.875rem;
    line-height: 1.5;
    color: var(--color-ui-main);
    font-size: 0.9375rem;
}

.privacy-policy ul {
    margin: 0.875rem 0;
}

.privacy-policy ul li {
    padding: 0.375rem 0 0.375rem 1.25rem;
    color: var(--color-ui-main);
    font-size: 0.9375rem;
}

/* ========================================
   11. パンくずリスト
   ======================================== */

.breadcrumb {
    background:var(--color-wh);
    padding: 0.875rem;
    border-bottom: 1px solid #d2d2d7;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.breadcrumb a {
    color: var(--color-ui-main)
    text-decoration: none;
    font-size: 0.875rem;
}

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

.breadcrumb span {
    color: #86868b;
    margin: 0 0.375rem;
    font-size: 0.875rem;
}

/* ========================================
   12. ページタイトル
   ======================================== */

.page-title {
    background:var(--color-ui-gr1);
    color: var(--color-ui-main);
    padding: 1.5rem 1rem;
    text-align: center;

}

.page-title h2 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-ui-main);
    letter-spacing: -0.01em;
}

.page-title p {
    color: #6e6e73;
}

/* ========================================
   13. コンテンツセクション
   ======================================== */

.content-section {
    background: white;
    padding: 3rem 1rem;
}

/* ========================================
   14. 挨拶・プレジデント情報
   ======================================== */
.greeting-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #d2d2d7;
}

.greeting-header h3 {
    color: var(--color-ui-main);
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.greeting-header .subtitle {
    color: #86868b;
    font-size: 1rem;
}

.president-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--color-ui-gr0);
    border-radius: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.president-photo {
    flex-shrink: 0;
}

.president-photo img {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.president-details {
    flex: 1;
    min-width: 250px;
}

.president-details h4 {
    color: var(--color-ui-main);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    border: none;
    padding: 0;
}

.president-details .title {
    color: #0071e3;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.875rem;
}

.president-details .affiliation {
    color: #6e6e73;
    line-height: 1.5;
    font-size: 0.9375rem;
}

.greeting-content {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-ui-main);
}

.greeting-content p {
    margin-bottom: 1.25rem;
    text-indent: 1em;
}

.greeting-content p:first-of-type {
    margin-top: 0;
}

.theme-highlight {
    background: var(--color-ui-gr0);
    padding: 1.5rem;
    border-left: 4px solid #0071e3;
    margin: 1.5rem 0;
    text-align: center;
}

.theme-highlight h4 {
    color: var(--color-ui-main);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    border: none;
    padding: 0;
    letter-spacing: -0.01em;
}

.theme-highlight p {
    color: var(--color-ui-main);
    font-size: 1.0625rem;
    font-weight: 500;
    text-indent: 0;
}

.signature {
    text-align: right;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #d2d2d7;
}

.signature .date {
    color: #86868b;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.signature .name {
    color: var(--color-ui-main);
    font-size: 1.0625rem;
    font-weight: 600;
}

.signature .position {
    color: #6e6e73;
    margin-top: 0.375rem;
    font-size: 0.9375rem;
}

/* ========================================
   15. プログラム関連
   ======================================== */

.program-item {
    margin-bottom: 1.5rem;
}

.program-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-ui-main);
}

/* ========================================
   16. その他のユーティリティ
   ======================================== */

.highlight-red {
    color: #dc2626;
    font-weight: 600;
}

.small-text {
    font-size: 0.8125rem;
    color: #6e6e73;
    text-align: center;
    margin-top: 0.875rem;
}

.map-container {
    margin: 1.5rem 0;
}

/* ========================================
   18. アクセスページ専用スタイル
   ======================================== */

.headline_h2 {
    color: var(--color-ui-main);
    border-bottom: 2px solid var(--color-orange);
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

section h4 {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--color-bl1);
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
    border: none;
    padding: 0;
}

.flexbox {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.flex_item {
    flex: 1;
    min-width: 280px;
}

.flex_item img {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.set2 {
    flex: 1 1 calc(50% - 1rem);
}

.notes {
    background:var(--color-ui-gr0);
    padding: 1.5rem;
    margin-top: 1rem;
    line-height: 1.8;
}

ul.come {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

ul.come li {
    padding: 0.75rem 1rem 0.75rem 2rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid var(--color-bl1);
    margin-bottom: 0.5rem;
    position: relative;
    box-shadow: 0 2px 6px rgba(66, 153, 225, 0.1);
}

ul.come li:before {
    content: "●";
    position: absolute;
    left: 0.75rem;
    color: var(--color-bl1);
    font-size: 0.8rem;
}


/* ========================================
   19. レスポンシブ対応（統合）
   ======================================== */

@media (max-width: 768px) {
    /* セクション */
    .section-block {
        margin-bottom: 1.75rem;
        padding-bottom: 1.25rem;
        padding-top: 1.25rem;
    }

    .section-title-blue,
    .section-title {
        font-size: 1.125rem;
    }

    .section-block h4 {
        font-size: 1rem;
    }

    /* ナビゲーション */
    .section-anchor-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .anchor-link {
        width: 100%;
    }

    /* ボタン */
    .button-group {
        flex-direction: column;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        width: 100%;
        display: block;
    }

    /* 期間表示 */
    .period-date {
        font-size: 1.0625rem;
    }

    .period-closed{
        font-size: 0.9375rem;
    }

    .period-box {
        padding: 1.25rem 0.875rem;
    }

    /* 情報ボックス */
    .info-box,
    .info-box-accent,
    .important-note,
    .deadline-note,
    .reception-time {
        padding: 0.875rem;
    }

    /* テーブル */
    .custom-table-multi-col td,
    .specs-table th,
    .specs-table td,
    .overview-table th,
    .overview-table td {
        display: block;
        width: 100%;
        text-align: left;
    }

        .overview-table thead th{display: none;}

    .specs-table,
    .custom-table,
    .overview-table {
        font-size: 0.875rem;
    }

    .specs-table th,
    .overview-table th {
        border-bottom: none;
        padding-bottom: 0.5rem;
    }

    .specs-table td,
    .overview-table td {
        padding-top: 0.5rem;
        border-bottom: 1px solid #d2d2d7;
    }

    .specs-table tr:last-child td,
    .overview-table tr:last-child td {
        border-bottom: none;
    }

    .custom-table-multi-col td {
        border-bottom: none;
    }

    .custom-table-multi-col tr:last-child td:last-child {
        border-bottom: 1px solid #d2d2d7;
    }

    .custom-table-multi-col td:not(:last-child) {
        border-bottom: 1px solid #d2d2d7;
    }

    .overview-table .person-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .overview-table .person-info .name {
        margin-bottom: 0.25rem;
    }

    /* フレックス */
    .flex-container {
        flex-direction: column;
        gap: 0.875rem;
    }

    /* プレジデント情報 */
    .president-info {
        flex-direction: column;
        text-align: center;
    }

    .president-photo img {
        width: 150px;
        height: 200px;
    }

    .greeting-content {
        font-size: 0.9375rem;
    }

    .signature {
        text-align: center;
    }

    /* お問い合わせ */
    .privacy-policy,
    .contact-info,
    .contact-box {
        padding: 1.25rem 0.875rem;
    }

    .contact-info .office-name {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .section-title-blue,
    .section-title {
        font-size: 1.0625rem;
    }

    .period-box {
        padding: 0.875rem;
    }


    .btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }

    .specs-table,
    .custom-table,
    .overview-table {
        font-size: 0.8125rem;
    }

    .section-block ul li {
        padding-left: 1.0625rem;
        font-size: 0.875rem;
    }
}
