@charset "UTF-8";
  
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;700&display=swap');

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

:root {
    --primary: #2E557A;
    --primary-light: #e8f4f9;
    --primary-dark: #1E3A57;
    --text: #2C2C2C;
    --text-light: #666666;
    --border: #D7DFE5;
    --bg: #F5F8FA;
    --white: #FFFFFF;
    --section-gap: 60px;
}
@media (min-width: 768px) {
    :root {
        --section-gap: 80px;
    }
}

html {
   font-size: 62.5%;
   scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 8rem;
}

body {
    width: 100%;
    height: 100%;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 1.6rem;
    line-height: 1.8;
}

/* ── HEADER ── */
header {
    background: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 24px;
    /* position: sticky;
    top: 0; */
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
header .logo {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: .08em;
}
/* .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    border: 0;
    background: transparent;
    padding: 4px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 999px;
}
.site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 24px;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: var(--primary-dark);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0,0,0,.2);
}
.site-nav.is-open {
    display: flex;
}
.site-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.3rem;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background .2s;
}
.site-nav a:hover { background: rgba(255,255,255,.2); }
.site-nav a.active { background: rgba(255,255,255,.25); font-weight: 700; }

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
    .site-nav {
        position: static;
        display: flex;
        flex-direction: row;
        gap: 4px;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }
    .site-nav a {
        margin-left: 8px;
        padding: 4px 12px;
    }
} */

/* ── HERO ── */
.hero {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    padding-bottom: 40px;
    z-index: 10;
}

/* heroが解除された後は通常フロー */
.hero.released {
    position: relative;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
    linear-gradient(160deg, rgba(74,174,204,.10) 0%, rgba(42,122,153,.12) 100%),
    url('/assets/images/hero-bg.png') center 47%/cover no-repeat;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #1076d46b 30%, rgba(245, 250, 252, 0.186) 100%);
}

h1,h2,h3 {
    line-height: 1.4;
}

/* ── ABOUT ── */
.about-section {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -80%);
    width: 80%;
    z-index: 2;
}
@media (min-width: 768px) {
    .about-section {
        transform: translate(-100%, -70%);
        width: 38%;
        max-width: 640px;
    }
}

.about-section .tag {
    font-size: 1.2rem;
    letter-spacing: .18em;
    color: var(--white);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
}
.about-section h2 {
    margin-bottom: 1.5em;
    font-family: 'Noto Serif JP', serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.4;
    letter-spacing: .04em;
}
@media (min-width: 768px) {
    .about-section h2 {
        font-size: 2.8rem;
    }
}
.about-text {
    height: 18rem;
    overflow: hidden;
    position: relative;
    color: var(--white);
    /* 下端フェード（まだ続きがある感を演出） */
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
/* 全文表示完了後はマスク解除 */
.about-text.fully-shown {
    mask-image: none;
    -webkit-mask-image: none;
}
.about-text-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding-bottom: 30px;
}
.about-text p {
    margin-bottom: 1.3em;
    font-size: 1.6rem;
    line-height: 2.4;
}
@media (min-width: 768px) {
    .about-text p {
        font-size: 1.8rem;
    }
}

/* ── MAIN CONTENT ── */
.main-content {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 24px var(--section-gap);
}

/* ── SECTION TITLE ── */
.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--primary-dark);
    border-left: 4px solid var(--primary);
    padding-left: 12px;
    margin: var(--section-gap) 0 30px;
    letter-spacing: .05em;
}

.section-title + p {
    margin-bottom: 1.6em;
    color: var(--primary-dark);
    font-size: 1.4rem;
    font-weight: 700;
}

/* ── SCHOLARSHIP OVERVIEW TABLE ── */
.overview-table {
    width: 100%;
    border-collapse: collapse;
}
.overview-table th,
.overview-table td {
    border: 1px solid var(--border);
    padding: 11px 16px;
    text-align: left;
    vertical-align: top;
}
.overview-table th {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: 700;
    width: 28%;
    white-space: nowrap;
}
.overview-table tr:nth-child(even) td { background: #fafeff; }

/* ── LIST SECTIONS ── */
.req-list, .seek-list, .criteria-list, .docs-list, .schedule-list, .obligation-list, .revoke-list, .privacy-list {
    list-style: none;
    padding: 0;
}
.req-list li, .seek-list li, .criteria-list li, .docs-list li,
.obligation-list li, .revoke-list li, .privacy-list li {
    padding: 7px 0 7px 20px;
    position: relative;
    font-size: 1.6rem;
    border-bottom: 1px dashed #dce8f0;
}
.req-list li::before, .seek-list li::before, .criteria-list li::before,
.obligation-list li::before, .revoke-list li::before,
.privacy-list li::before {
    content: '◆';
    color: var(--primary);
    font-size: 0.9rem;
    position: absolute;
    left: 2px;
    top: 10px;
}

.docs-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 0;
}
.docs-list li::before { 
    content: none;
}
.docs-list li span.num {
    color: var(--primary-dark);
    font-weight: 700;
    margin-right: 6px;
}

.li-text {
  flex: 1; /* テキストが伸縮してボタンを右端に押し出す */
  line-height: 1.5;
}
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .02em;
  background: var(--primary-light);
  border: 0.5px solid var(--primary);
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.dl-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* ── SCHEDULE ── */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
}
.schedule-table td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.schedule-table td:first-child {
    color: var(--primary-dark);
    font-weight: 700;
    width: 30%;
    white-space: nowrap;
}

/* ── APPLICATION PERIOD HIGHLIGHT ── */
.period-box {
    /* background: linear-gradient(135deg, #e3f4fa 0%, #eaf7ee 100%); */
    background: linear-gradient(135deg, #e8f4f9 0%, #f0f8f3 100%);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px 24px;
    font-size: 1.4rem;
    color: var(--text);
}
.period-box .date {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 6px;
}

/* ── APPLICATION METHOD ── */
.method-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 22px 24px;
}

.method-box dl {
    margin-top: .8em;
}
.method-box dl dd {
    font-size: 1.8rem;
    font-weight: 700;
}


/* ── CONTACT ── */
.contact-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 64px 10%;
    text-align: center;
    color: var(--white);
}
.contact-section h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 3rem;
    letter-spacing: .1em;
    font-weight: 700;
}
.contact-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-direction: column;
    align-items: center;
}
.contact-addr {
    margin: 34px auto 20px;
    opacity: .8;
    line-height: 1.9;
}
.contact-item .label {
    font-size: 1.2rem;
    letter-spacing: .2em;
    opacity: .75;
    margin-bottom: 4px;
}
.contact-item .value {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: .05em;
    line-height: 1.15;
}
/* .contact-item .value.mail {
    font-size: 1.8rem;
} */

/* ── FOOTER ── */
footer {
    position: relative;
    background: var(--primary-dark);
    color: rgba(255,255,255,.65);
    text-align: center;
    padding: 16px;
    letter-spacing: .05em;
}

footer .page-top {
    position: absolute;
    right: 3%;
    text-decoration: none;
}

footer .page-top span {
    display: block;
    position: relative;
    width: 1.4em;
    height: 1.4em;
}

/* 横線,上向き矢印 */
.page-top span::before,
.page-top span::after {
    content: "";
    position: absolute;
}

/* 横線 */
.page-top span::before {
    top: .1em;
    left: 50%;
    width: 1.4em;
    height: 2px;
    background: rgba(255,255,255,.65);
    transform: translateX(-50%);
}

/* 上向き矢印 */
.page-top span::after {
    top: .6em;
    left: 50%;
    width: 1em;
    height: 1em;
    border-top: 2px solid rgba(255,255,255,.65);
    border-right: 2px solid rgba(255,255,255,.65);
    transform: translateX(-50%) rotate(-45deg);
}

@media (max-width: 360px) {
    footer .page-top { 
        display: block;
        position: static;
        margin: .5em auto 1em;
    }

    footer .page-top span {
        left: 50%;
        transform: translateX(-50%);
    }
}

footer .page-top:hover { color: white; }

.footer-copyright {
    font-size: 1.28rem;
    line-height: 1.4;
}

/* ── SCHOLARSHIP CENTER HEADING ── */
.center-heading {
    text-align: center;
    font-family: 'Noto Serif JP', serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-dark);
    letter-spacing: .1em;
    padding: 80px 0 8px;
    position: relative;
}
.center-heading::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--primary);
    margin: 20px auto 0;
    border-radius: 2px;
}


/* ── PREPARATION ── */
.preparation {
    margin: 60px auto 30px;
    text-align: center;
    font-size: 1.8rem;
}