@charset "UTF-8";

:root {
    --primary-blue: #002b7a;
    --accent-red: #e60012;
    --text-main: #333333;
    --text-light: #757575;
    --bg-body: #ffffff;
    --bg-card: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: #e0e0e0;
    color: var(--text-main);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 1000px;
    background-color: var(--bg-body);
    min-height: 100vh;
    min-height: 100svh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* ================= Header ================= */
.app-header {
    background-color: #ffffff;
    padding: 15px 0 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.logo-img {
    max-width: 80%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

/* ================= Hero Banner ================= */
.hero-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ================= Main Content ================= */
.main-content {
    padding: 20px 15px;
    background-color: var(--bg-body);
    flex: 1;
}

.section-title-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-icon {
    font-size: 1.3rem;
}

.title-accent-marks {
    position: absolute;
    right: 0;
    bottom: -2px;
    display: flex;
    gap: 4px;
    background-color: var(--bg-body);
    padding-left: 8px;
}

.mark-red, .mark-blue {
    width: 8px;
    height: 23px;
    transform: skewX(-25deg);
}
.mark-red { background-color: var(--accent-red); }
.mark-blue { background-color: var(--primary-blue); }

/* ================= Sport List ================= */
.sport-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 0;
}
.sport-list > li {
    margin: 0;
    padding: 0;
    width: 100%;
}

.sport-item {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
    border: 1px solid #ebebeb;
    transition: background-color 0.2s, box-shadow 0.2s;
    width: 100%;
    min-width: 0;
}

@media (hover: hover) and (pointer: fine) {
    .sport-item:hover {
        background-color: #f5f6f8;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    }
}
.sport-item:active {
    background-color: #e8eaf0;
    transform: scale(0.98);
}

.sport-icon-wrap {
    flex: 0 0 38px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sport-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
}

.sport-name {
    flex: 0 0 90px; 
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.95rem;
    margin-left: 10px;
    letter-spacing: -0.2px;
    line-height: 1.25;
}

.sport-name-spaced {
    letter-spacing: 0.15em;
}

.sport-comment {
    flex: 1 1 auto;
    color: var(--text-main);
    font-size: 0.85rem;
    margin-right: 10px;
    font-weight: 500;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
}

.sport-time {
    flex: 0 0 auto;
    color: var(--text-light);
    font-size: 0.75rem;
    white-space: nowrap;
}

.time-icon {
    font-size: 0.8rem;
    color: #b0b0b0;
}

.sport-arrow {
    flex: 0 0 15px;
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: bold;
    text-align: right;
    margin-left: 8px;
}

.name-long {
    flex-basis: 110px;
    font-size: 0.85rem;
}

/* ================= Footer ================= */
.app-footer {
    background-color: var(--bg-body);
    padding: 25px 15px 35px;
    text-align: center;
    border-top: 1px solid #eaeaea;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.footer-separator {
    color: #dcdcdc;
    font-size: 0.75rem;
}

.copyright {
    color: #666666;
    font-size: 0.7rem;
    margin: 0;
    letter-spacing: 0.5px;
}

/* ================= レスポンシブ調整 (スマホ表示時) ================= */
@media (max-width: 600px) {
    .main-content {
        padding: 15px 10px;
    }

    .sport-item {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr) 20px;
        grid-template-rows: auto auto auto;
        column-gap: 8px;
        row-gap: 4px;
        align-items: center;
        padding: 12px 10px;
    }

    .sport-icon-wrap {
        grid-column: 1 / 2;
        grid-row: 1 / 4;
        align-self: center;
        flex: none;
    }

    .sport-name {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        margin-left: 0;
        flex: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

    .sport-comment {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        margin-right: 0;
        min-width: 0;
    }

    .sport-time {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
        flex: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        line-height: 1.2;
    }

    .sport-arrow {
        grid-column: 3 / 4;
        grid-row: 1 / 4;
        align-self: center;
        justify-self: end;
        margin-left: 0;
        flex: none;
    }
}
