/* 一般社団法人DTFC — 紫×白、Dロゴの斜めラインを基調にしたスタイル */
:root {
  --purple: #5E1A6B;
  --purple-dark: #3A0E44;
  --purple-deep: #2A0B33;
  --purple-ink: #1C0722;
  --lavender: #F4EEF6;
  --lilac: #E4CFEC;
  --lilac-mid: #C9A6D6;
  --line: #E7DCEB;
  --text: #1E1424;
  --text-sub: #4A3A52;
  --text-mute: #6E5A77;
  --white: #FFFFFF;
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --font-en: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --gutter: max(24px, env(safe-area-inset-left, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-jp); color: var(--text); background: var(--white); line-height: 1.7; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { color: var(--purple); }
a:hover { color: var(--purple-dark); }
:focus-visible { outline: 3px solid var(--lilac-mid); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.en { font-family: var(--font-en); font-style: italic; font-weight: 800; letter-spacing: .01em; }

/* ---------- header ---------- */
.site-header { background: var(--purple-dark); color: var(--white); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand img { width: 48px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-size: 11px; letter-spacing: .2em; }
.brand-text b { font-family: var(--font-en); font-style: italic; font-weight: 800; font-size: 28px; letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; letter-spacing: .08em; }
.nav a { color: var(--white); text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--lilac-mid); color: var(--white); }
.nav .btn { border-bottom: 0; }
.nav .btn-white, .nav .btn-white:hover { color: var(--purple-dark); }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.5); color: var(--white); font: inherit; font-size: 13px; padding: 8px 14px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 28px; font-weight: 700; text-decoration: none; transform: skewX(-14deg); transition: background .2s, color .2s; }
.btn > span { transform: skewX(14deg); display: inline-flex; gap: 10px; align-items: center; }
.btn-white { background: var(--white); color: var(--purple-dark); }
.btn-white:hover { background: var(--lilac); color: var(--purple-dark); }
.btn-purple { background: var(--purple); color: var(--white); }
.btn-purple:hover { background: var(--purple-dark); color: var(--white); }
.nav .btn { min-height: 40px; padding: 0 20px; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--purple-deep); color: var(--white); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 45%; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(42,11,51,.92) 0%, rgba(42,11,51,.72) 40%, rgba(42,11,51,.12) 75%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 110px; background: var(--white); clip-path: polygon(0 100%, 100% 20%, 100% 100%); }
.hero .wrap { position: relative; z-index: 1; padding-block: 110px 190px; display: flex; flex-direction: column; gap: 26px; }
.eyebrow { display: flex; gap: 12px; align-items: center; font-family: var(--font-en); font-weight: 600; letter-spacing: .3em; font-size: 15px; color: var(--lilac); }
.eyebrow::before { content: ""; width: 40px; height: 2px; background: currentColor; }
.hero h1 { margin: 0; font-size: clamp(56px, 9vw, 132px); line-height: .88; }
.hero p { margin: 0; max-width: 30em; font-size: 20px; line-height: 1.8; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.slogan { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; border: 1px solid rgba(255,255,255,.5); padding: 10px 18px; font-size: 14px; }
.slogan em { font-style: normal; color: var(--lilac); letter-spacing: .1em; }
.slogan strong { font-size: 18px; letter-spacing: .1em; }

/* ---------- page hero (sub pages) ---------- */
.page-hero { position: relative; background: var(--purple-deep); color: var(--white); overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-hero .wrap { position: relative; padding-block: 90px 110px; display: flex; flex-direction: column; gap: 8px; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; background: var(--white); clip-path: polygon(0 100%, 100% 25%, 100% 100%); }
.page-hero h1 { margin: 0; font-size: clamp(48px, 7vw, 96px); line-height: .95; }
.page-hero p { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .15em; }
.crumbs { font-size: 13px; color: var(--lilac); }
.crumbs a { color: var(--lilac); }

/* ---------- section headings ---------- */
.sec { padding-block: 96px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 40px; }
.sec-title { display: flex; flex-direction: column; gap: 4px; }
.sec-title .en { font-size: clamp(48px, 6vw, 72px); line-height: 1; color: var(--purple); }
.sec-title span:last-child { font-size: 15px; font-weight: 700; letter-spacing: .15em; color: var(--text-sub); }
.on-dark .sec-title .en, .on-dark .sec-title span:last-child { color: var(--white); }
.more { font-weight: 700; letter-spacing: .1em; text-decoration: none; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 4px solid var(--purple); }
.stat { padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .label { font-size: 13px; letter-spacing: .15em; color: var(--text-mute); }
.stat .value { font-family: var(--font-en); font-style: italic; font-weight: 800; font-size: 64px; line-height: 1; color: var(--purple); font-variant-numeric: tabular-nums; }
.stat .value small { font-family: var(--font-jp); font-style: normal; font-size: 24px; font-weight: 700; }
.stat .value.jp { font-family: var(--font-jp); font-style: normal; font-weight: 900; font-size: 34px; line-height: 1.25; }
.stat .note { font-size: 14px; color: var(--text-sub); }

/* ---------- about ---------- */
.bg-lavender { background: var(--lavender); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.split > * { min-width: 0; }
.split h2 { margin: 0 0 20px; font-size: 30px; line-height: 1.5; font-weight: 900; }
.split p { margin: 0 0 24px; line-height: 2; color: #3A2D41; max-width: 34em; }
.slant-img { position: relative; }
.slant-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); }
.slant-img::after { content: ""; position: absolute; right: 4%; bottom: -18px; width: 38%; height: 14px; background: var(--purple); transform: skewX(-28deg); }

/* ---------- cards ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.card { display: flex; flex-direction: column; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.card .thumb { overflow: hidden; aspect-ratio: 16/10; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card .kicker { font-family: var(--font-en); font-style: italic; font-weight: 700; font-size: 15px; letter-spacing: .2em; color: var(--lilac-mid); }
.card .title { font-size: 18px; font-weight: 700; line-height: 1.6; }
.dark { background: var(--purple-deep); color: var(--white); }
.dark a { color: var(--white); }

/* news */
.news-meta { display: flex; gap: 12px; align-items: center; }
.date { font-family: var(--font-en); font-weight: 600; font-size: 18px; letter-spacing: .08em; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.tag { font-size: 12px; padding: 2px 10px; background: var(--lavender); color: var(--purple); }
.tag.solid { background: var(--purple); color: var(--white); }
.news .card .thumb { aspect-ratio: 3/2; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: center; padding: 24px 0; text-decoration: none; color: var(--text); }
.news-list a:hover .t { color: var(--purple); }
.news-list img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.news-list .t { font-size: 17px; font-weight: 700; line-height: 1.6; margin-top: 6px; }

/* legacy */
.legacy { position: relative; background: var(--purple); color: var(--white); overflow: hidden; }
.legacy::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-62deg, transparent 0 120px, rgba(255,255,255,.06) 120px 122px); }
.legacy .wrap { position: relative; }
.legacy h2 { margin: 0 0 20px; font-size: 28px; font-weight: 900; }
.ob-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.ob-list li { border-left: 3px solid var(--lilac); padding-left: 16px; display: flex; flex-direction: column; gap: 4px; }
.ob-list strong { font-size: 20px; }
.ob-list span { font-size: 14px; color: var(--lilac); line-height: 1.7; }
.legacy p { margin: 0; color: #F3E9F7; line-height: 1.9; }

/* community */
.lane { background: var(--lavender); padding: 32px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lane .k { font-family: var(--font-en); font-style: italic; font-weight: 700; font-size: 16px; letter-spacing: .2em; color: var(--purple); }
.lane h3 { margin: 0; font-size: 22px; font-weight: 900; }
.lane p { margin: 0; line-height: 1.9; color: #3A2D41; }

/* partners */
.tier { display: flex; flex-direction: column; gap: 20px; margin-bottom: 48px; }
.tier-head { display: flex; align-items: center; gap: 16px; }
.tier-head .en { font-size: 26px; letter-spacing: .06em; color: var(--purple-dark); }
.tier-head::after { content: ""; flex: 1; height: 2px; background: var(--purple); transform: skewX(-30deg); }
.top-partner { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 24px; border: 1px solid var(--line); text-decoration: none; color: var(--text-sub); }
.top-partner img { width: min(520px, 100%); height: auto; transition: transform .3s; }
.top-partner:hover img { transform: scale(1.03); }
.slot { aspect-ratio: 3/1; border: 1px dashed var(--lilac-mid); background: var(--lavender); display: flex; align-items: center; justify-content: center; color: var(--text-mute); font-size: 14px; }
.slot-partner { flex-direction: column; gap: 2px; text-decoration: none; background: var(--white); border: 1px solid var(--line); color: var(--purple-dark); text-align: center; padding: 8px; transition: border-color .2s; }
.slot-partner:hover { border-color: var(--purple); color: var(--purple-dark); }
.slot-partner { aspect-ratio: auto; min-height: 60px; }
.slot-partner img { height: 64px; width: auto; transition: transform .3s; }
.slot-partner:hover img { transform: scale(1.04); }
.slot-partner .pn { font-size: 13px; font-weight: 700; line-height: 1.4; }
.slot-partner .pe { font-family: var(--font-en); font-style: italic; font-weight: 700; font-size: 13px; letter-spacing: .08em; color: var(--text-mute); }
.slots-small { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }

/* CTA */
.cta { position: relative; background: var(--purple-deep); color: var(--white); overflow: hidden; }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cta::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 80px; background: var(--white); clip-path: polygon(0 0, 100% 0, 0 100%); z-index: 1; }
.cta .wrap { position: relative; z-index: 1; padding-block: 140px 110px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.cta h2 { margin: 0; font-size: 28px; font-weight: 900; line-height: 1.5; }
.cta p { margin: 0; max-width: 36em; color: #F3E9F7; line-height: 1.9; }

/* article / content pages */
.prose { max-width: 820px; }
.prose h2 { font-size: 24px; font-weight: 900; margin: 56px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--purple); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 32px 0 10px; color: var(--purple); }
.prose p { line-height: 2; margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 1.3em; line-height: 2; }
.lead { font-size: 18px; font-weight: 700; line-height: 1.9; }
.dl { display: grid; grid-template-columns: 180px minmax(0, 1fr); border-top: 1px solid var(--line); margin: 0 0 24px; }
.dl dt, .dl dd { margin: 0; padding: 16px 12px; border-bottom: 1px solid var(--line); line-height: 1.8; }
.dl dt { font-weight: 700; color: var(--purple); background: var(--lavender); }
.member-list { columns: 2; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
.member-list li { padding: 2px 0; }
.box { background: var(--lavender); padding: 24px 28px; margin: 24px 0; }
.box p:last-child { margin-bottom: 0; }
.copy-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mail { font-size: 20px; font-weight: 700; user-select: all; }
.copy-btn { font: inherit; font-size: 13px; padding: 8px 14px; border: 1px solid var(--purple); background: var(--white); color: var(--purple); cursor: pointer; }
.copy-btn:hover { background: var(--lavender); }
.back { display: inline-block; margin-bottom: 24px; text-decoration: none; font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { background: var(--purple-ink); color: var(--lilac); }
.site-footer .wrap.top { padding-block: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer address { font-style: normal; font-size: 14px; line-height: 1.9; margin-top: 16px; }
.f-nav { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 12px 40px; font-size: 14px; align-content: start; }
.f-nav a { color: var(--white); text-decoration: none; }
.f-nav a:hover { text-decoration: underline; color: var(--white); }
.social { display: flex; gap: 14px; margin-top: 18px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); color: var(--white); border-radius: 50%; }
.social a:hover { background: rgba(255,255,255,.12); color: var(--white); }
.social svg { width: 18px; height: 18px; }
.copyright { border-top: 1px solid var(--purple-dark); padding-block: 18px; font-size: 12px; letter-spacing: .08em; color: #B89BC4; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--purple-dark); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav .btn { margin-top: 12px; justify-content: center; }
}
@media (max-width: 860px) {
  .stats, .grid3, .grid2, .split { grid-template-columns: minmax(0, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .sec { padding-block: 72px; }
  .hero .wrap { padding-block: 80px 150px; }
  .hero p { font-size: 17px; }
  .hero::before { background: linear-gradient(180deg, rgba(42,11,51,.55) 0%, rgba(42,11,51,.85) 100%); }
  .hero > img { object-position: 70% 40%; }
  .eyebrow { font-size: 12px; letter-spacing: .2em; }
  .news-list a { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
  .dl { grid-template-columns: minmax(0, 1fr); }
  .dl dt { border-bottom: 0; padding-bottom: 6px; }
  .member-list { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card .thumb img, .top-partner img { transition: none; }
}
