/* ==========================================================================
   K-1 TASK FORCE  共通スタイル
   1. 変数・リセット   2. 共通パーツ   3. ヘッダー   4. ヒーロー
   5. セクション       6. 各ページ     7. フッター   8. スマホ対応
   ========================================================================== */

/* 1. 変数・リセット ------------------------------------------------------- */
:root {
    --ink: #111412;
    --dark: #0c0f0d;
    --bg: #ecece9;
    --surface: #f6f6f3;
    --muted: #6a706c;
    --line: rgba(17, 20, 18, 0.14);
    --line-light: rgba(255, 255, 255, 0.18);
    --accent: #2e8b57;
    --accent-light: #7fd3a2;

    --font-jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
    --font-en: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

    --header-h: 76px;
    --wrap: 1120px;
    --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-jp);
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.02em;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* 2. 共通パーツ ----------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.label {
    display: block;
    font-family: var(--font-en);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.9em;
    min-width: 190px;
    padding: 1.05em 2em;
    border: 1px solid currentColor;
    font-family: var(--font-en);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn::after { content: "→"; letter-spacing: 0; transition: transform 0.3s; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn:hover::after { transform: translateX(4px); }
.btn--light { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn--light::after { color: var(--accent-light); }
.btn--light:hover { background: var(--accent-light); border-color: var(--accent-light); color: var(--dark); }
.btn--light:hover::after { color: inherit; }
.btn--jp { font-family: var(--font-jp); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: none; }

.tag {
    display: inline-block;
    padding: 0.25em 0.9em;
    border: 1px solid var(--line);
    font-family: var(--font-en);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    line-height: 1.6;
    color: var(--muted);
}
.tag--award { border-color: var(--accent); background: var(--accent); color: #fff; }

.date {
    font-family: var(--font-en);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
}

/* スクロールで浮かび上がる演出（JSが無効でも内容は表示される） */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* 3. ヘッダー ------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    color: #fff;
    transition: background-color 0.4s, color 0.4s, border-color 0.4s;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    color: var(--ink);
    background: rgba(236, 236, 233, 0.86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}
.site-header__inner {
    height: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-logo { display: block; flex-shrink: 0; }
.site-logo img { height: 46px; width: auto; }
.site-logo .logo-dark { display: none; }
.site-header.is-scrolled .logo-dark { display: block; }
.site-header.is-scrolled .logo-light { display: none; }

.site-nav { display: flex; gap: 2.4rem; }
.site-nav a {
    position: relative;
    padding: 0.4em 0;
    font-family: var(--font-en);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
}
.site-nav a span { display: none; }
.site-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header:not(.is-scrolled) .site-nav a::after { background: var(--accent-light); }
.site-header:not(.is-scrolled) .site-nav a[aria-current="page"] { color: var(--accent-light); }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 1.5px;
    margin: 6px auto;
    background: currentColor;
    transition: transform 0.3s, opacity 0.3s;
}

/* 4. ヒーロー ------------------------------------------------------------- */
.hero, .page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background-color: var(--dark);
    background-image:
        radial-gradient(60% 80% at 82% 20%, rgba(46, 139, 87, 0.38), transparent 70%),
        radial-gradient(50% 70% at 10% 100%, rgba(46, 139, 87, 0.16), transparent 70%);
}
/* 六角形（ハニカム）の地紋 */
.hero::before, .page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='146' viewBox='0 0 84 146'%3E%3Cpath d='M42 1l41 24v48L42 97 1 73V25zM42 97v48M1 73L-41 97M83 73l42 24' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 84px 146px;
    opacity: 0.07;
    -webkit-mask-image: linear-gradient(100deg, transparent 25%, #000 85%);
    mask-image: linear-gradient(100deg, transparent 25%, #000 85%);
}
.hero > .wrap, .page-hero > .wrap { position: relative; z-index: 2; }

/* トップ：背景写真のスライドショー（4枚 × 7秒 = 28秒で一巡） */
.hero__slides, .hero__slides span { position: absolute; inset: 0; }
.hero__slides span {
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: hero-slide 28s linear infinite;
}
.hero__slides span:nth-child(1) { animation-delay: -1.4s; }
.hero__slides span:nth-child(2) { animation-delay: 5.6s; }
.hero__slides span:nth-child(3) { animation-delay: 12.6s; }
.hero__slides span:nth-child(4) { animation-delay: 19.6s; }
@keyframes hero-slide {
    0% { opacity: 0; transform: scale(1); }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; transform: scale(1.07); }
    100% { opacity: 0; transform: scale(1.07); }
}
/* 写真の上にかける暗いフィルター（文字を読みやすくする） */
.hero::before {
    z-index: 1;
    background-image:
        linear-gradient(90deg, rgba(8, 11, 9, 0.88) 0%, rgba(8, 11, 9, 0.7) 50%, rgba(8, 11, 9, 0.42) 100%),
        linear-gradient(0deg, rgba(8, 11, 9, 0.5) 0%, transparent 35%);
    background-size: auto;
    opacity: 1;
    -webkit-mask-image: none;
    mask-image: none;
}

.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 80px; }
.hero > .wrap { width: 100%; }
.hero__eyebrow {
    display: block;
    margin-bottom: 1.8rem;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--accent-light);
}
.hero__eyebrow::before { content: ""; display: inline-block; width: 2.4em; height: 1px; margin-right: 1em; vertical-align: middle; background: currentColor; }
.hero h1 em { font-style: normal; color: var(--accent-light); }
.hero h1 { font-size: clamp(1.7rem, 8.4vw, 4rem); font-weight: 700; line-height: 1.3; letter-spacing: 0.04em; }
.hero__lead { max-width: 34em; margin-top: 2rem; font-size: 0.95rem; color: rgba(255, 255, 255, 0.82); }
.hero__note { margin-top: 0.8rem; font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 3rem; }
.hero__scroll {
    position: absolute;
    z-index: 2;
    right: var(--gutter); bottom: 0;
    padding-bottom: 72px;
    font-family: var(--font-en);
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    writing-mode: vertical-rl;
    color: rgba(255, 255, 255, 0.6);
}
.hero__scroll::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 56px; background: var(--accent-light); }

.page-hero { padding: calc(var(--header-h) + 88px) 0 64px; }
.page-hero .label { color: var(--accent-light); margin-bottom: 0.9rem; }
.page-hero .label::before { content: ""; display: inline-block; width: 2.4em; height: 1px; margin-right: 1em; vertical-align: middle; background: currentColor; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: 0.06em; line-height: 1.4; }
.page-hero p { max-width: 38em; margin-top: 1.2rem; font-size: 0.92rem; color: rgba(255, 255, 255, 0.78); }

/* 5. セクション ----------------------------------------------------------- */
.section { padding: 112px 0; }
.section + .section { padding-top: 0; }
.section__head { margin-bottom: 3rem; }
.section__head .label { margin-bottom: 0.8rem; }
.section__head h2, .split__head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: 0.05em; line-height: 1.5; }
.section__more { margin-top: 3.5rem; text-align: center; }

/* 左に見出し・右に本文の2カラム */
.split { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding-top: 40px; border-top: 1px solid var(--ink); }
.split__head .label { margin-bottom: 0.8rem; }
.split__body > * + * { margin-top: 1.4em; }
.split__body .lead { font-size: 1.2rem; font-weight: 700; line-height: 1.8; letter-spacing: 0.04em; }

/* お問い合わせへの誘導帯 */
.cta { padding: 96px 0; color: #fff; background: var(--dark); text-align: center; }
.cta .label { color: var(--accent-light); margin-bottom: 1rem; }
.cta h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: 0.06em; }
.cta p { max-width: 40em; text-wrap: balance; margin: 1.2rem auto 2.4rem; font-size: 0.92rem; color: rgba(255, 255, 255, 0.78); }

/* 6. 各ページ ------------------------------------------------------------- */

/* トップ：最新の活動（日付・種別・タイトルの一覧） */
.news-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a {
    display: grid;
    grid-template-columns: 150px 84px 1fr 24px;
    align-items: baseline;
    gap: 16px;
    padding: 1.5rem 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s;
}
.news-list a::after { content: "→"; color: var(--muted); transition: transform 0.3s; }
.news-list a:hover { background: rgba(255, 255, 255, 0.5); }
.news-list a:hover::after { transform: translateX(4px); }
.news-list .tag { justify-self: start; }
.news-list__title { font-size: 0.95rem; line-height: 1.7; }

/* 活動実績 */
.activity-list { min-height: 60vh; border-bottom: 1px solid var(--line); }
.activity-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 44px;
    padding: 44px 0;
    border-top: 1px solid var(--line);
    scroll-margin-top: calc(var(--header-h) + 8px);
}
.activity-item__thumb { aspect-ratio: 4 / 3; overflow: hidden; background: #dddcd7; }
.activity-item__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.activity-item:hover .activity-item__thumb img { transform: scale(1.04); }
.activity-item__thumb--empty { display: grid; place-items: center; }
.activity-item__thumb--empty img { width: 42%; height: auto; object-fit: contain; opacity: 0.16; }
.activity-item:hover .activity-item__thumb--empty img { transform: none; }
.activity-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 0.9rem; }
.activity-item__title { font-size: 1.22rem; font-weight: 700; line-height: 1.6; letter-spacing: 0.03em; }
.activity-item__place { display: flex; align-items: baseline; gap: 0.5em; margin-top: 0.6rem; font-size: 0.82rem; color: var(--muted); }
.activity-item__place::before {
    content: "";
    flex-shrink: 0;
    width: 0.8em; height: 0.8em;
    border: 1.5px solid var(--accent);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg) translateY(-0.1em);
}
.activity-item__text { margin-top: 1rem; white-space: pre-line; font-size: 0.92rem; color: #333835; }
.activity-item__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 1.4rem; }
.text-link {
    display: inline-flex;
    gap: 0.6em;
    padding-bottom: 0.2em;
    border-bottom: 1px solid currentColor;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: color 0.3s;
}
.text-link::after { content: "↗"; }
.text-link--internal::after { content: "→"; }
.text-link:hover { color: var(--accent); }

/* メンバー */
.member-group + .member-group { margin-top: 80px; }
.member-group__head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--ink); }
.member-group__head h2 { font-size: 1.3rem; letter-spacing: 0.08em; }
.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.member-card { padding: 28px 0; border-bottom: 1px solid var(--line); }
.member-card__name { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1.5; }
.member-card__kana { font-size: 0.7rem; letter-spacing: 0.14em; color: var(--muted); }
.member-card__info { margin-top: 0.9rem; white-space: pre-line; font-size: 0.84rem; line-height: 1.7; color: #333835; }
.member-card__lab { margin-top: 0.5rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); }

/* 代表紹介 */
.profile { display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: start; }
.profile__photo { aspect-ratio: 1; overflow: hidden; background: #dddcd7; }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile__role { font-size: 0.82rem; letter-spacing: 0.1em; color: var(--muted); }
.profile__name { margin-top: 0.6rem; font-size: 2rem; font-weight: 700; letter-spacing: 0.1em; line-height: 1.4; }
.profile__name-en { display: block; margin-top: 0.3rem; font-family: var(--font-en); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.profile__body { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.profile__body p + p { margin-top: 1.2em; }

/* お問い合わせ */
.contact { max-width: 760px; margin: 0 auto; text-align: center; }
.contact__mail { margin: 3rem 0; padding: 3rem 1.5rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.contact__mail a {
    display: inline-block;
    margin: 0.6rem 0;
    font-family: var(--font-en);
    font-size: clamp(1.15rem, 4.4vw, 1.9rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.3s;
}
.contact__mail a:hover { color: var(--accent); }
.contact__note { font-size: 0.8rem; color: var(--muted); }
.contact__sns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 2rem; }

/* 7. フッター ------------------------------------------------------------- */
.site-footer { padding: 72px 0 36px; color: rgba(255, 255, 255, 0.78); background: var(--dark); }
.cta + .site-footer { border-top: 1px solid var(--line-light); }
.site-footer__top { display: flex; justify-content: space-between; gap: 48px; }
.site-footer__brand img { height: 64px; width: auto; }
.site-footer__brand p { margin-top: 1.2rem; font-size: 0.8rem; line-height: 1.8; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 14px 56px; align-content: start; margin: 0; padding: 0; list-style: none; }
.site-footer__nav a { font-family: var(--font-en); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-decoration: none; color: #fff; }
.site-footer__nav a span { margin-left: 1em; font-family: var(--font-jp); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.08em; color: var(--accent-light); opacity: 0.8; }
.site-footer__nav a:hover { color: var(--accent-light); }
.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--line-light);
    font-family: var(--font-en);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
}
.site-footer__sns { display: flex; align-items: center; gap: 24px; }
.site-footer__sns a { text-decoration: none; }
.site-footer__sns a { color: var(--accent-light); }
.site-footer__sns a:hover { color: #fff; }
.site-footer__sns img { width: 40px; height: 40px; border-radius: 50%; }

/* 8. スマホ対応 ----------------------------------------------------------- */
@media (max-width: 900px) {
    :root { --gutter: 24px; --header-h: 64px; }
    .site-logo img { height: 38px; }

    .nav-toggle { display: block; position: relative; z-index: 2; }
    .site-logo { position: relative; z-index: 2; }
    .site-nav {
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        gap: 0;
        padding: var(--header-h) var(--gutter) 40px;
        background: var(--dark);
        color: #fff;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }
    .site-nav a { padding: 1.3rem 0; border-bottom: 1px solid var(--line-light); font-size: 0.9rem; }
    .site-nav a::after { display: none; }
    .site-nav a span { display: inline; margin-left: 1.2em; font-family: var(--font-jp); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--accent-light); opacity: 0.8; }
    .nav-open { overflow: hidden; }
    .nav-open .site-nav { opacity: 1; visibility: visible; }
    .site-header:not(.is-scrolled) .site-nav a[aria-current="page"], .site-nav a[aria-current="page"] { color: var(--accent-light); }
    .nav-open .site-header { color: #fff; background: none; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .nav-open .site-header .logo-light { display: block; }
    .nav-open .site-header .logo-dark { display: none; }
    .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    .section { padding: 72px 0; }
    .hero__scroll { display: none; }
    .hero::before { background-image: linear-gradient(0deg, rgba(8, 11, 9, 0.8), rgba(8, 11, 9, 0.62)); }
    .page-hero { padding: calc(var(--header-h) + 56px) 0 44px; }
    .split { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
    .split__body .lead { font-size: 1.05rem; }

    .news-list a { grid-template-columns: auto 1fr 20px; gap: 6px 14px; padding: 1.2rem 0; }
    .news-list__title { grid-column: 1 / 3; grid-row: 2; }
    .news-list a::after { grid-column: 3; grid-row: 1 / 3; align-self: center; }

    .activity-item { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
    .activity-item__thumb--empty { display: none; }
    .activity-item__title { font-size: 1.08rem; }

    .member-group + .member-group { margin-top: 56px; }
    .member-grid { grid-template-columns: 1fr 1fr; gap: 0 20px; }
    .profile { grid-template-columns: 1fr; gap: 32px; }
    .profile__photo { max-width: 320px; }
    .profile__name { font-size: 1.6rem; }

    .site-footer__top { flex-direction: column; }
    .site-footer__nav { grid-template-columns: 1fr; }
    .site-footer__bottom { flex-direction: column-reverse; align-items: flex-start; }
}
@media (max-width: 520px) {
    .member-grid { grid-template-columns: 1fr; }
    .btn { min-width: 0; flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
    .hero__slides span { animation: none; }
    .hero__slides span:first-child { opacity: 1; }
}
