/*
Theme Name: HUYC Arkhe Child Theme
Theme URI: https://www.huyc.net
Description: 広島大学ヨット部しぶき会のカスタム子テーマ - 赤と白を基調としたデザイン
Author: Kazuaki
Version: 1.0.0
Template: arkhe
Text Domain: huyc-arkhe-child
*/

/* ===============================================
   カラー変数定義
   =============================================== */
:root {
    --huyc-primary-red: #c41e3a;
    --huyc-deep-red: #a01729;
    --huyc-light-red: #e63946;
    --huyc-accent-red: #dc143c;
    --huyc-white: #ffffff;
    --huyc-off-white: #f8f9fa;
    --huyc-light-gray: #e9ecef;
    --huyc-gray: #6c757d;
    --huyc-dark-gray: #343a40;
    --huyc-text-dark: #212529;
    --huyc-shadow: rgba(196, 30, 58, 0.1);
    --huyc-shadow-hover: rgba(196, 30, 58, 0.2);
}

/* ===============================================
   基本スタイル
   =============================================== */
body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: var(--huyc-text-dark);
    background-color: var(--huyc-off-white);
    line-height: 1.8;
}

a {
    color: var(--huyc-primary-red);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--huyc-deep-red);
    text-decoration: underline;
}

/* ===============================================
   ヘッダースタイル
   =============================================== */
.l-header {
    background: linear-gradient(135deg, var(--huyc-primary-red) 0%, var(--huyc-deep-red) 100%);
    box-shadow: 0 4px 12px var(--huyc-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.l-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* サイトロゴ・タイトル */
.c-siteLogo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.c-siteLogo__img img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.c-siteLogo__img:hover img {
    transform: scale(1.05);
}

.c-siteLogo__text {
    color: var(--huyc-white);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ナビゲーション */
.l-header__nav {
    display: flex;
    align-items: center;
}

.c-gnav__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.c-gnav__item {
    margin: 0;
}

.c-gnav__link {
    color: var(--huyc-white);
    padding: 0.75rem 1.25rem;
    display: block;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.c-gnav__link:hover,
.c-gnav__link.is-current {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ハンバーガーメニュー（モバイル） */
.c-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.c-hamburger__line {
    width: 28px;
    height: 3px;
    background-color: var(--huyc-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===============================================
   メインビジュアル・スライダー
   =============================================== */
.p-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.p-hero__slider {
    width: 100%;
    height: 100%;
}

.p-hero__slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.p-hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(196, 30, 58, 0.8) 0%, transparent 100%);
    padding: 2rem;
    color: var(--huyc-white);
}

.p-hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===============================================
   コンテンツエリア
   =============================================== */
.l-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.l-main {
    background-color: var(--huyc-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* ===============================================
   セクション見出し
   =============================================== */
.c-heading {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
    color: var(--huyc-primary-red);
    font-weight: 700;
}

.c-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--huyc-primary-red) 0%, var(--huyc-light-red) 100%);
    border-radius: 2px;
}

.c-heading--center {
    text-align: center;
}

.c-heading--center::after {
    left: 50%;
    transform: translateX(-50%);
}

h1.c-heading {
    font-size: 2.25rem;
}

h2.c-heading {
    font-size: 1.875rem;
}

h3.c-heading {
    font-size: 1.5rem;
}

/* ===============================================
   ニュース・記事一覧
   =============================================== */
.p-news {
    margin-bottom: 3rem;
}

.p-news__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.p-news__item {
    background-color: var(--huyc-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.p-news__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--huyc-shadow-hover);
}

.p-news__thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.p-news__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.p-news__item:hover .p-news__thumbnail img {
    transform: scale(1.1);
}

.p-news__content {
    padding: 1.5rem;
}

.p-news__date {
    color: var(--huyc-gray);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.p-news__category {
    display: inline-block;
    background-color: var(--huyc-primary-red);
    color: var(--huyc-white);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.p-news__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--huyc-text-dark);
    line-height: 1.6;
}

.p-news__excerpt {
    color: var(--huyc-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===============================================
   サイドバー
   =============================================== */
.l-sidebar {
    background-color: var(--huyc-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.c-widget {
    margin-bottom: 2rem;
}

.c-widget:last-child {
    margin-bottom: 0;
}

.c-widget__title {
    background-color: var(--huyc-primary-red);
    color: var(--huyc-white);
    padding: 0.75rem 1rem;
    margin: -1.5rem -1.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}

.c-widget__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.c-widget__item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--huyc-light-gray);
}

.c-widget__item:last-child {
    border-bottom: none;
}

.c-widget__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--huyc-text-dark);
    transition: all 0.3s ease;
}

.c-widget__link:hover {
    color: var(--huyc-primary-red);
    padding-left: 0.5rem;
    text-decoration: none;
}

/* 検索フォーム */
.c-searchForm {
    display: flex;
    gap: 0.5rem;
}

.c-searchForm__input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--huyc-light-gray);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.c-searchForm__input:focus {
    outline: none;
    border-color: var(--huyc-primary-red);
}

.c-searchForm__button {
    background-color: var(--huyc-primary-red);
    color: var(--huyc-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.c-searchForm__button:hover {
    background-color: var(--huyc-deep-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--huyc-shadow);
}

/* カレンダー */
.c-calendar {
    width: 100%;
    border-collapse: collapse;
}

.c-calendar th {
    background-color: var(--huyc-primary-red);
    color: var(--huyc-white);
    padding: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.c-calendar td {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid var(--huyc-light-gray);
    font-size: 0.875rem;
}

.c-calendar td.has-event {
    background-color: var(--huyc-light-red);
    color: var(--huyc-white);
    font-weight: 600;
    cursor: pointer;
}

.c-calendar td.today {
    background-color: var(--huyc-off-white);
    font-weight: 700;
}

/* ===============================================
   ボタン
   =============================================== */
.c-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--huyc-primary-red);
    color: var(--huyc-white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.c-btn:hover {
    background-color: var(--huyc-deep-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--huyc-shadow-hover);
    color: var(--huyc-white);
    text-decoration: none;
}

.c-btn--outline {
    background-color: transparent;
    color: var(--huyc-primary-red);
    border: 2px solid var(--huyc-primary-red);
}

.c-btn--outline:hover {
    background-color: var(--huyc-primary-red);
    color: var(--huyc-white);
}

.c-btn--large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.c-btn--block {
    display: block;
    width: 100%;
}

/* ===============================================
   フッター
   =============================================== */
.l-footer {
    background-color: var(--huyc-dark-gray);
    color: var(--huyc-white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.l-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.l-footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.l-footer__section h3 {
    color: var(--huyc-white);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--huyc-primary-red);
}

.l-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.l-footer__list li {
    margin-bottom: 0.5rem;
}

.l-footer__list a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.l-footer__list a:hover {
    color: var(--huyc-white);
    text-decoration: none;
}

.l-footer__info {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.l-footer__social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.l-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--huyc-white);
    transition: all 0.3s ease;
}

.l-footer__social a:hover {
    background-color: var(--huyc-primary-red);
    transform: translateY(-3px);
}

.l-footer__copy {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* ===============================================
   レスポンシブデザイン
   =============================================== */
@media screen and (max-width: 768px) {
    /* ヘッダー */
    .l-header__inner {
        padding: 1rem;
    }
    
    .c-siteLogo__text {
        font-size: 1.125rem;
    }
    
    .c-siteLogo__img img {
        height: 45px;
    }
    
    /* ナビゲーション */
    .c-hamburger {
        display: flex;
    }
    
    .c-gnav__list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--huyc-primary-red);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    
    .c-gnav__list.is-open {
        display: flex;
    }
    
    .c-gnav__link {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* メインビジュアル */
    .p-hero {
        height: 300px;
    }
    
    .p-hero__title {
        font-size: 1.5rem;
    }
    
    /* コンテンツ */
    .l-container {
        padding: 0 1rem;
    }
    
    .l-main {
        padding: 1.5rem;
    }
    
    /* ニュース一覧 */
    .p-news__list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* 見出し */
    h1.c-heading {
        font-size: 1.75rem;
    }
    
    h2.c-heading {
        font-size: 1.5rem;
    }
    
    h3.c-heading {
        font-size: 1.25rem;
    }
    
    /* フッター */
    .l-footer__content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .c-siteLogo__text {
        font-size: 1rem;
    }
    
    .c-siteLogo__img img {
        height: 40px;
    }
    
    .p-hero {
        height: 250px;
    }
    
    .p-hero__title {
        font-size: 1.25rem;
    }
    
    .c-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===============================================
   ユーティリティクラス
   =============================================== */
.u-text-center {
    text-align: center;
}

.u-text-red {
    color: var(--huyc-primary-red);
}

.u-bg-red {
    background-color: var(--huyc-primary-red);
}

.u-mt-1 { margin-top: 0.5rem; }
.u-mt-2 { margin-top: 1rem; }
.u-mt-3 { margin-top: 1.5rem; }
.u-mt-4 { margin-top: 2rem; }

.u-mb-1 { margin-bottom: 0.5rem; }
.u-mb-2 { margin-bottom: 1rem; }
.u-mb-3 { margin-bottom: 1.5rem; }
.u-mb-4 { margin-bottom: 2rem; }

.u-pt-1 { padding-top: 0.5rem; }
.u-pt-2 { padding-top: 1rem; }
.u-pt-3 { padding-top: 1.5rem; }
.u-pt-4 { padding-top: 2rem; }

.u-pb-1 { padding-bottom: 0.5rem; }
.u-pb-2 { padding-bottom: 1rem; }
.u-pb-3 { padding-bottom: 1.5rem; }
.u-pb-4 { padding-bottom: 2rem; }

/* ===============================================
   アニメーション
   =============================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.u-fadeIn {
    animation: fadeIn 0.6s ease-out;
}

/* スムーススクロール */
html {
    scroll-behavior: smooth;
}

/* フォーカススタイル */
*:focus {
    outline: 2px solid var(--huyc-primary-red);
    outline-offset: 2px;
}

/* 印刷用スタイル */
@media print {
    .l-header,
    .l-sidebar,
    .l-footer,
    .c-btn {
        display: none;
    }
    
    body {
        background-color: white;
    }
}