/* 電子マスカット トップページCSS */

:root {
    --ink: #222222;
    --muted: #424b5c;
    --purple: #6557a9;
    --purple-soft: #eeebf9;
    --line: #8995aa;
    --paper: #fff;
    --bg: #ffffff;
    --white: #ffffff;
    --project-number-color1: #6557a9;
    --project-number-color2: #c0c0ff;
    --project-border-color: #bcbaf1;
    --project-box-shadow: #293b6266;
    --side-panel-color: #fafaff;

    --gradation1: linear-gradient(180deg, #ffffff, #eeeeff);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Meiryo,"Hiragino Sans",sans-serif;
    font-weight: 400;
    line-height: 1.7;
}

a {
    color: inherit;
}

a:hover {
    color: var(--purple);
}

.site-shell {
    max-width: 1040px;
    margin: 0 auto;
    padding: 22px 22px 0;
}

.site-header {
    width: 95%;
    margin: 0 auto;
    border-bottom: 2px solid var(--line);
}

.header-inner {
    max-width: 1040px;
    padding: 24px 22px;
    margin: 0 auto;
}

.site-header h1 {
    margin: 0;
    line-height: 1;
}

.site-header img {
    display: block;
    width: 100%;
    max-width: 740px;
    height: auto;
    margin: 0 auto;
}

.header-copy {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 16px;
    margin: 0 0 14px;
    color: #555;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.header-decoration {
    position: absolute;
    right: 28px;
    top: 25px;
    opacity: .22;
    letter-spacing: 7px;
    font-size: 23px;
}

.eyebrow,.section-kicker,.side-kicker {
    margin: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .17em;
}

.eyebrow {
    color: #c9c5e9;
}

h1 {
    margin: 7px 0 0;
    font-size: clamp(29px,4vw,42px);
    line-height: 1.35;
    letter-spacing: .07em;
}

.header-dot {
    color: #b4a5ff;
}

.header-description {
    margin: 8px 0 0;
    color: #e2dff1;
    font-size: 13px;
}

.page-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 264px;
    gap: 24px;
    align-items: start;
}

main {
    min-width: 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
}

.section-kicker,.side-kicker {
    color: var(--purple);
}

h2 {
    margin: 3px 0 0;
    font-size: 22px;
    letter-spacing: .03em;
}

.count {
    padding: 4px 11px;
    border: 1px solid #dad5ef;
    border-radius: 30px;
    color: var(--purple);
    background: var(--purple-soft);
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
}

.section-intro {
    margin: 9px 0 18px;
    font-size: 13px;
    color: var(--muted);
}

.project-list {
    display: grid;
    gap: 12px;
}

.project {
    display: grid;
    grid-template-columns: 54px minmax(0,1fr);
    border: 2px solid var(--line);
    border-radius: 10px;
    background: var(--gradation1);
    overflow: hidden;
    transition: border-color .15s,box-shadow .15s;
}

.project:hover {
    border-color: var(--project-border-color);
    box-shadow: 0 4px 16px var(--project-box-shadow);
}

.project-number {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--project-number-color1);
    color: var(--project-number-color2);
    font-size: 21px;
    font-weight: 800;
    font-family: Arial,sans-serif;
    font-variant-numeric: tabular-nums;
}

.project-body {
    padding: 12px 15px 11px;
    min-width: 0;
}

.project h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

.project h3 a {
    color: #29365d;
    text-decoration: none;
}

.project h3 a:hover {
    color: var(--purple);
    text-decoration: underline;
}

.project p {
    margin: 3px 0 6px;
    font-size: 12.5px;
    line-height: 1.65;
    color: #56647a;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 14px;
    row-gap: 3px;
    font-size: 11px;
    color: #8991a1;
}

.project-meta time {
    font-variant-numeric: tabular-nums;
}

.support {
    color: var(--purple);
    text-decoration: none;
    font-weight: 700;
}

.support:hover {
    text-decoration: underline;
}

.sidebar {
    display: grid;
    gap: 15px;
}

.side-panel {
    padding: 20px;
    border: 2px solid var(--line);
    border-radius: 11px;
    background: var(--side-panel-color);
}

.side-panel h2 {
    font-size: 17px;
    margin: 4px 0 14px;
}

.side-links {
    display: grid;
}

.side-links a {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 0;
    border-top: 1px solid #cccccc;
    font-size: 13px;
    text-decoration: none;
}

.side-links a span {
    color: #b2a9d6;
}

.side-panel p:not(.side-kicker):not(.since) {
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted);
}

.midi-panel {
    background: var(--side-panel-color);
}

.midi-panel iframe {
    display: block;
    width: 100%;
    height: 277px;
    border: 1px solid #e1ddf2;
    border-radius: 8px;
    background: white;
}

.midi-panel .side-note {
    font-size: 10px !important;
}

.since {
    margin: 17px 0 0;
    color: var(--purple);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
}

.site-footer {
    width: 95%;
    margin: 0 auto;
    margin-top: 34px;
    border-top: 2px solid var(--line);
    color: #8c93a4;
    font-size: 12px;
}

.footer-inner {
    max-width: 240px;
    margin: 0 auto;
    padding: 23px 22px 35px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

@media (max-width:760px) {
    .site-shell {
        padding: 12px 12px 0;
    }
    .header-inner {
        padding: 18px 12px;
    }
    .page-layout {
        grid-template-columns: minmax(0,1fr);
        gap: 24px;
        margin-top: 24px;
    }
    .sidebar {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .midi-panel {
        grid-column: 1 / -1;
    }
    .midi-panel iframe {
        max-width: 340px;
    }
}

@media (max-width:480px) {
    .sidebar {
        grid-template-columns: 1fr;
    }
    .midi-panel {
        grid-column: auto;
    }
    .project {
        grid-template-columns: 43px minmax(0,1fr);
    }
    .project-number {
        font-size: 18px;
    }
    .project-body {
        padding: 11px;
    }
    .project h3 {
        font-size: 14px;
    }
    .section-heading h2 {
        font-size: 19px;
    }
    .header-decoration {
        display: none;
    }
}

/* 見出しはメイリオの太字を避け、BIZ UDPゴシックを優先 */
.project h3, .section-heading h2, .side-panel h2 {
    font-family: "BIZ UDPGothic","BIZ UDPゴシック",Meiryo,sans-serif;
    font-weight: 700;
}



/* AdSense共通 */
.ad-area {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 0;
}

/* サイドバー用 */
.ad-area-side {
    margin: 0;
}

/* 製作記事用 */
.ad-area-article {
    margin: 25px 0;
}
