/* ================================================
   Do!Dojo! — Portal Stylesheet
   ================================================ */

* { box-sizing: border-box; }

:root {
    --dp: #1e3a5f;        /* primary navy */
    --da: #5ba8e0;        /* accent sky blue */
    --ds: #0f2440;        /* deep navy for dark sections */
    --dt: #f0f4f8;        /* light blue-gray bg */
    --dg: #7a90a8;        /* muted blue-gray */
}

body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    background: var(--dt);
    color: #222;
    line-height: 1.6;
}

/* === Portal Nav === */
.portal-header {
    background: var(--dp);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.portal-logo {
    color: white;
    font-weight: 900;
    font-size: 20px;
    text-decoration: none;
    letter-spacing: 0.04em;
}
.portal-logo span { color: var(--da); }
.portal-nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.portal-nav-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.05em;
    transition: color .2s;
}
.portal-nav-links a:hover { color: white; }

/* === Hero === */
.portal-hero {
    background: var(--dp);
    color: white;
    padding: 100px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.portal-hero::before {
    content: '武';
    position: absolute;
    font-size: 500px;
    font-weight: 900;
    color: rgba(255,255,255,0.03);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    line-height: 1;
}
.portal-hero-inner { max-width: 720px; margin: 0 auto; position: relative; }
.portal-hero-badge {
    display: inline-block;
    background: var(--da);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 4px 14px;
    border-radius: 2px;
    margin-bottom: 24px;
    text-transform: uppercase;
}
.portal-hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 900;
    margin: 0 0 16px;
    letter-spacing: 0.04em;
    line-height: 1.1;
}
.portal-hero h1 span { color: var(--da); }
.portal-hero-sub {
    font-size: 18px;
    color: #8fb3d9;
    margin: 0 0 40px;
    line-height: 1.7;
}
.portal-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Buttons === */
.btn-portal-main {
    background: var(--da);
    color: #fff;
    font-weight: 700;
    border: none;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
    transition: opacity .2s;
    display: inline-block;
}
.btn-portal-main:hover { opacity: .85; }
.btn-portal-sub {
    background: transparent;
    color: white;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,.3);
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
    display: inline-block;
}
.btn-portal-sub:hover { border-color: white; color: white; }

/* === Features === */
.features-section {
    background: white;
    padding: 80px 24px;
}
.section-inner { max-width: 1000px; margin: 0 auto; }
.section-eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--da);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.section-title {
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 48px;
    color: #111;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}
.feature-card {
    border-left: 3px solid var(--da);
    padding-left: 20px;
}
.feature-icon {
    font-size: 28px;
    margin-bottom: 12px;
}
.feature-card h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #111;
}
.feature-card p {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.7;
}

/* === Dojo List === */
.dojos-section {
    background: var(--dt);
    padding: 80px 24px;
}
.dojos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 0;
}
.dojo-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    border-top: 3px solid var(--da);
    transition: box-shadow .2s, transform .2s;
}
.dojo-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    transform: translateY(-2px);
}
.dojo-card-name {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #111;
}
.dojo-card-en {
    font-size: 11px;
    color: var(--dg);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.dojo-card-address {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}
.dojo-card-link {
    font-size: 12px;
    color: var(--da);
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* === News Feed === */
.feed-section {
    background: var(--ds);
    color: white;
    padding: 80px 24px;
}
.feed-section .section-title { color: white; }
.feed-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.feed-item {
    background: rgba(255,255,255,.05);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: background .2s;
}
.feed-item:hover { background: rgba(255,255,255,.1); }
.feed-dojo-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: var(--da);
    color: #fff;
    padding: 3px 8px;
    border-radius: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}
.feed-date {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
}
.feed-title {
    font-size: 14px;
    color: #ddd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.feed-empty {
    color: #666;
    font-size: 14px;
    padding: 24px 0;
}

/* === Register CTA === */
.register-section {
    background: var(--dp);
    padding: 80px 24px;
    text-align: center;
    border-top: 4px solid var(--da);
}
.register-section h2 {
    font-size: 32px;
    font-weight: 900;
    margin: 0 0 12px;
    color: #fff;
}
.register-section p {
    font-size: 16px;
    color: rgba(255,255,255,.6);
    margin: 0 0 32px;
}
.btn-register {
    background: var(--da);
    color: white;
    font-weight: 700;
    border: none;
    padding: 16px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    display: inline-block;
    transition: opacity .2s;
}
.btn-register:hover { opacity: .8; }

/* === Portal Footer === */
.portal-footer {
    background: var(--dp);
    color: #555;
    text-align: center;
    padding: 32px 24px;
    font-size: 12px;
    letter-spacing: 0.05em;
}
.portal-footer a { color: #777; text-decoration: none; }
.portal-footer a:hover { color: #aaa; }

/* === Responsive === */
@media (max-width: 600px) {
    .portal-nav-links { display: none; }
    .feed-item { flex-wrap: wrap; gap: 8px; }
    .feed-title { white-space: normal; }
}
