/*
Theme Name: 柏水会 異業種交流協議会
Description: 異業種交流協議会 柏水会 公式サイトテーマ
Text Domain: dai3sui.com
*/

:root {
  --ink: #0d3447;
  --ink-2: #1c5a70;
  --water: #2f8f9d;
  --mist: #e6f1f0;
  --paper: #f3f7f5;
  --line: #cddddd;
  --text: #1d3440;
  --muted: #3d5461;
  --accent: #dd6a26;
  --accent-deep: #bf4d14;
  --f-serif: "Shippori Mincho", "Noto Serif JP", "Noto Serif CJK JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-sans: "Zen Kaku Gothic New", "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --radius: 4px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 18px;
  color: var(--text);
  background: var(--paper);
  line-height: 1.95;
  letter-spacing: .03em;
  /* フッターを常に画面下部へ */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-footer { margin-top: auto; }
a { color: var(--ink-2); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--f-serif); color: var(--ink); line-height: 1.5; letter-spacing: .06em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }


.logo-leaf {
  display: inline-block; flex: 0 0 auto; width: 26px; height: 30px; background: var(--ink-2);
  -webkit-mask: url(assets/leaf.svg) center / contain no-repeat; mask: url(assets/leaf.svg) center / contain no-repeat;
}
.badge-recruit {
  display: inline-block; background: var(--accent-deep); color: #fff; font-weight: 700;
  padding: 3px 16px; border-radius: 999px; font-size: 16px; letter-spacing: .1em; line-height: 1.8;
}
.more { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--accent-deep); letter-spacing: .08em; }
.more::after {
  content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg);
  transition: transform .2s;
}
a:hover > .more::after, a:hover .more::after { transform: translateX(4px) rotate(45deg); }
.seal { display: block; width: 104px; height: 104px; color: #c4411a; transform: rotate(-9deg); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 250, 249, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; pointer-events: none;
  background: url(assets/seigaiha-band.svg);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.site-title { margin: 0; line-height: 1.3; }
.site-title a { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.site-title .st-text { display: block; }
.site-title small { display: block; font-size: 13px; font-weight: 500; letter-spacing: .22em; color: var(--muted); }
.site-title .st-main { display: block; font-family: var(--f-serif); font-size: 26px; font-weight: 800; letter-spacing: .14em; }

.global-nav { display: flex; align-items: center; gap: 22px; }
.global-nav ul { list-style: none; display: flex; gap: 6px 26px; margin: 0; padding: 0; flex-wrap: wrap; align-items: center; }
.global-nav li a {
  text-decoration: none; color: var(--ink); font-size: 16px; font-weight: 700; letter-spacing: .12em; padding: 4px 0;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 2px no-repeat; transition: background-size .25s;
}
.global-nav li a:hover, .global-nav .current-menu-item > a { background-size: 100% 2px; }
.nav-toggle, .nav-backdrop { display: none; }

/* ---- スマホ: ハンバーガー + ドロップダウンパネル ---- */
@media (max-width: 999px) {
  .site-header .wrap { flex-wrap: nowrap; }
  .site-title .st-main { font-size: 23px; }

  .ks-js .nav-toggle {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    flex: 0 0 auto; width: 46px; height: 46px; padding: 0; cursor: pointer;
    border: 1px solid var(--line); border-radius: 12px; background: #fff;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); }
  .nav-toggle[aria-expanded="true"] span { background: #fff; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* JSなしの場合は縦積みで常時表示 */
  .global-nav { flex-direction: column; align-items: stretch; gap: 0; flex-basis: 100%; }
  .global-nav ul { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; }
  .global-nav li { border-bottom: 1px solid var(--line); }
  .global-nav li a {
    display: flex; align-items: center; justify-content: space-between; background-image: none;
    padding: 17px 4px; font-size: 19px; letter-spacing: .1em; font-family: var(--f-serif);
  }
  .global-nav li a::after {
    content: ""; width: 8px; height: 8px; margin-right: 6px; flex: 0 0 auto;
    border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg);
  }
  .global-nav li a:active { background-color: var(--mist); }
  .global-nav .badge-recruit { display: block; text-align: center; margin-top: 18px; padding: 11px; font-size: 18px; border-radius: 6px; }

  /* JSありの場合: ヘッダー直下に開くパネル */
  .ks-js .global-nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 1;
    max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto;
    padding: 4px 22px 22px; background: #f8fbfa; border-top: 1px solid var(--line);
    box-shadow: 0 16px 28px rgba(13, 52, 71, .22);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .22s, transform .22s, visibility 0s .22s;
  }
  .ks-js .global-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .22s, transform .22s; }
  .ks-js .nav-backdrop {
    display: block; position: absolute; top: 100%; left: 0; right: 0; height: 100vh; z-index: 0;
    background: rgba(13, 52, 71, .45); opacity: 0; visibility: hidden; transition: opacity .22s, visibility 0s .22s;
  }
  .ks-js .nav-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .22s; }
  body.nav-open { overflow: hidden; }
}

/* ---------- hero(フルワイド) ---------- */
.hero { position: relative; margin-top: 10px; }
.hero-visual { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.hero-img { display: block; width: 100%; height: 270px; object-fit: cover; object-position: 50% 50%; background: #cfd8de; }
.rp { position: absolute; width: 720px; height: 720px; pointer-events: none; z-index: 1; }
.rp-a { left: -380px; top: -250px; }
.rp-b { right: -420px; top: auto; bottom: -400px; }
.rp-c { display: none; }
.rp circle {
  fill: none; stroke-width: 1.4; transform-box: fill-box; transform-origin: center;
  animation: ks-ripple 1.9s cubic-bezier(.16, .8, .24, 1) both; animation-delay: calc(var(--i) * 110ms + 120ms);
}
@keyframes ks-ripple { from { transform: scale(.15); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.hero-wrap { order: -1; position: relative; z-index: 2; padding: 40px 22px 34px; }
.hero-panel { position: relative; max-width: 560px; margin: 0 auto; }
.hero-lead { display: flex; gap: 22px; align-items: flex-start; }
.hero-title { margin: 0; display: flex; flex-direction: row-reverse; gap: 16px; align-items: flex-start; color: var(--ink); }
.ht-sub, .ht-main { display: block; -webkit-writing-mode: vertical-rl; writing-mode: vertical-rl; font-family: var(--f-serif); }
.ht-sub { font-size: 17px; font-weight: 600; letter-spacing: .42em; color: var(--ink-2); padding-top: 8px; }
.ht-main { font-size: 66px; font-weight: 800; letter-spacing: .14em; line-height: 1.08; }
.hero-side { padding-top: 6px; }
.hero-copy { margin: 0 0 20px; font-size: 18px; line-height: 2; color: var(--text); max-width: 16em; text-wrap: pretty; }
.seal { width: 88px; height: 88px; }

/* タブレット*/
@media (min-width: 700px) {
  .hero-img { height: clamp(320px, 42vw, 440px); object-position: 50% 50%; }
  .hero-wrap { padding: 52px 40px 44px; }
  .hero-panel { max-width: 1080px; }
  .ht-main { font-size: 80px; }
  .seal { width: 104px; height: 104px; }
  .hero-lead { gap: 34px; }
  .rp-a { left: -300px; top: -230px; }
}

/* PC */
@media (min-width: 1100px) {
  .hero-visual { display: block; height: clamp(450px, 31vw, 640px); }
  .hero-img { position: absolute; inset: 0; height: 100%; object-position: 50% 50%; }
  .hero-wrap { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 0 0 clamp(24px, 3.2vw, 72px); order: 0; pointer-events: none; }
  .hero-panel {
    pointer-events: auto; margin: 0; max-width: none; padding: 34px 40px 32px 36px;
    background: rgba(243, 247, 245, .9) url(assets/paper.svg); border: 1px solid var(--line);
    box-shadow: 0 26px 44px -20px rgba(13, 52, 71, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  }
  .hero-panel::before {
    content: ""; position: absolute; top: -15px; left: 50%; width: 104px; height: 28px; margin-left: -52px; transform: rotate(-3deg);
    background: rgba(150, 205, 212, .75) url(assets/seigaiha-light.svg);
    clip-path: polygon(0 0, 4% 14%, 0 28%, 4% 42%, 0 56%, 4% 70%, 0 84%, 3% 100%, 100% 100%, 96% 84%, 100% 70%, 96% 56%, 100% 42%, 96% 28%, 100% 14%, 97% 0);
  }
  .ht-main { font-size: clamp(64px, 5.6vw, 92px); }
  .hero-lead { gap: 26px; }
  .hero-copy { max-width: 13.5em; }
  .rp-a { left: -330px; top: auto; bottom: -330px; }
  .rp-b { right: -380px; top: -420px; bottom: auto; }
  .rp-c { display: block; right: 30%; bottom: -520px; }
}

/* ---------- sections ---------- */
.section { position: relative; padding: 76px 0; background: var(--paper); }
.section.bg-water { background: var(--mist); }
.section-title { display: flex; align-items: center; gap: 14px; margin: 0 0 34px; font-size: 30px; font-weight: 700; letter-spacing: .12em; }
.section-title::before {
  content: ""; flex: 0 0 auto; width: 32px; height: 32px; background: var(--water);
  -webkit-mask: url(assets/wave-icon.svg) center / contain no-repeat; mask: url(assets/wave-icon.svg) center / contain no-repeat;
}
@media (max-width: 859px) { .section { padding: 52px 0; } .section-title { font-size: 26px; margin-bottom: 26px; } }

/* 基本方針・役員体制・会員一覧 */
.about-list { display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--ink); }
.about-item {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px;
  padding: 26px 6px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line);
  transition: background-color .2s;
}
.about-item:hover { background-color: rgba(255, 255, 255, .7); }
.about-item h3 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: .14em; }
.about-item p { margin: 0; grid-column: 1; font-size: 16px; color: var(--muted); }
.go {
  display: block; grid-column: 2; grid-row: 1 / span 2; width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: 50%; position: relative;
  transition: background-color .2s, border-color .2s;
}
.go::after {
  content: ""; position: absolute; left: 14px; top: 14px; width: 9px; height: 9px;
  border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg); transition: border-color .2s;
}
.about-item:hover .go, .result-card:hover .go { background: var(--accent-deep); border-color: var(--accent-deep); }
.about-item:hover .go::after, .result-card:hover .go::after { border-color: #fff; }
@media (min-width: 860px) {
  .about-list { grid-template-columns: repeat(3, 1fr); }
  .about-item { display: block; padding: 34px 30px 36px; border-bottom: 0; border-left: 1px solid var(--line); }
  .about-item:first-child { border-left: 0; padding-left: 6px; }
  .about-item h3 { font-size: 30px; margin-bottom: 8px; }
  .about-item p { min-height: 3.6em; }
  .about-item .go { margin-top: 18px; }
}

/* 次回の予定(切符) */
.event-list { display: grid; gap: 22px; }
.event-list.cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.ticket { display: block; text-decoration: none; color: var(--text); filter: drop-shadow(0 10px 14px rgba(13, 52, 71, .16)); transition: transform .2s; }
.ticket:hover { transform: translateY(-3px); }
.ticket-in {
  display: flex; min-height: 100%; background: #fff;
  -webkit-mask: radial-gradient(circle 10px at 104px 0, #0000 98%, #000) 0 0 / 100% 51% no-repeat, radial-gradient(circle 10px at 104px 100%, #0000 98%, #000) 0 100% / 100% 51% no-repeat;
  mask: radial-gradient(circle 10px at 104px 0, #0000 98%, #000) 0 0 / 100% 51% no-repeat, radial-gradient(circle 10px at 104px 100%, #0000 98%, #000) 0 100% / 100% 51% no-repeat;
}
.ticket-date {
  flex: 0 0 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 18px 6px; background: var(--mist); color: var(--ink); border-right: 2px dashed rgba(13, 52, 71, .28); font-family: var(--f-serif);
}
.is-next .ticket-date { background: var(--ink); color: #fff; border-right-color: rgba(255, 255, 255, .45); }
.td-y { font-size: 14px; letter-spacing: .12em; opacity: .75; line-height: 1.4; }
.td-m { font-size: 17px; font-weight: 700; line-height: 1.5; }
.td-d { font-size: 50px; font-weight: 800; line-height: 1.05; letter-spacing: 0; }
.td-w { font-size: 15px; letter-spacing: .1em; margin-top: 4px; }
.td-tbd { font-size: 17px; font-weight: 700; line-height: 1.6; }
.ticket-body { flex: 1 1 auto; min-width: 0; padding: 20px 22px 18px; }
.ticket-tag { display: inline-block; margin-bottom: 4px; padding: 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .12em; color: #fff; background: var(--accent-deep); }
.ticket-title { display: block; margin: 0 0 8px; font-family: var(--f-serif); font-size: 22px; font-weight: 700; line-height: 1.5; color: var(--ink); letter-spacing: .05em; }
.ticket-meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0 0 8px; font-size: 16px; line-height: 1.7; }
.ticket-meta dt { font-weight: 700; color: var(--ink-2); }
.ticket-meta dd { margin: 0; color: var(--text); }
@media (min-width: 860px) { .event-list.cols .ticket.is-next { grid-column: 1 / -1; } }
.more-row { margin: 28px 0 0; }
.more-row a { text-decoration: none; }

/* お知らせ */
.news-list { border-top: 2px solid var(--ink); }
.news-item {
  display: grid; grid-template-columns: 7.5em 1fr auto; align-items: center; gap: 0 18px; padding: 20px 6px;
  text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); transition: background-color .2s;
}
.news-item::after { content: ""; width: 8px; height: 8px; margin-right: 6px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }
.news-item:hover { background-color: rgba(255, 255, 255, .7); }
.news-date { font-family: var(--f-serif); font-weight: 700; letter-spacing: .08em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.news-title { font-size: 18px; line-height: 1.7; }
.news-new { display: inline-block; margin-right: 10px; padding: 0 8px; font-size: 14px; font-weight: 700; letter-spacing: .08em; color: #fff; background: var(--accent-deep); vertical-align: 1px; }
.news-date-single { margin: 0 0 20px; font-family: var(--f-serif); font-weight: 700; color: var(--ink-2); letter-spacing: .08em; }
.navigation.pagination { margin-top: 36px; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.navigation.pagination .page-numbers { min-width: 40px; padding: 6px 14px; text-align: center; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: #fff; }
.navigation.pagination .page-numbers.current { color: #fff; background: var(--ink); border-color: var(--ink); }
@media (max-width: 719px) {
  .news-item { grid-template-columns: 1fr auto; gap: 0 12px; padding: 16px 4px; }
  .news-date { grid-column: 1; font-size: 16px; }
  .news-title { grid-column: 1; }
  .news-item::after { grid-column: 2; grid-row: 1 / span 2; }
}

/* 事業実績 */
.result-links { display: grid; gap: 20px; grid-template-columns: 1fr; }
.result-card {
  position: relative; display: block; text-decoration: none; padding: 34px 88px 32px 30px; color: var(--ink);
  background: #fff url(assets/paper.svg); border: 1px solid var(--ink); transition: transform .2s;
}
.result-card:hover { transform: translateY(-3px); }
.result-card h3 { margin: 0 0 4px; font-size: 34px; font-weight: 800; letter-spacing: .14em; }
.result-card .fy-span { display: block; white-space: nowrap; font-size: 15px; }
.result-card p { margin: 0; font-size: 16px; color: var(--muted); }
.result-card .go { position: absolute; right: 24px; bottom: 24px; }
.result-card.is-now { background: var(--ink) url(assets/seigaiha-dark.svg); color: #fff; border-color: var(--ink); }
.result-card.is-now h3 { color: #fff; }
.result-card.is-now p { color: rgba(255, 255, 255, .8); }
.result-card.is-now .go { border-color: #fff; }
.result-card.is-now .go::after { border-color: #fff; }
.result-card.is-now:hover .go { background: var(--accent-deep); border-color: var(--accent-deep); }
@media (min-width: 720px) { .result-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 719px) {
  .result-card { padding: 26px 78px 26px 22px; }
  .result-card h3 { font-size: 26px; letter-spacing: .1em; }
  .result-card .go { right: 18px; bottom: auto; top: 50%; margin-top: -20px; }
}

/* ---------- 下層ページ ---------- */
.page-head { position: relative; overflow: hidden; margin-top: 10px; padding: 56px 0 50px; color: #fff; background: var(--ink) url(assets/seigaiha-dark.svg); }
.page-head::after {
  content: ""; position: absolute; right: 6%; top: -20px; width: 150px; height: 175px; background: #fff; opacity: .1; transform: rotate(20deg);
  -webkit-mask: url(assets/leaf.svg) center / contain no-repeat; mask: url(assets/leaf.svg) center / contain no-repeat;
}
.page-head h1 { position: relative; z-index: 1; margin: 0; color: #fff; font-size: 36px; font-weight: 800; letter-spacing: .18em; }
.page-body { padding: 36px 0 72px; }
.page-body .entry { max-width: 820px; }
.page-body .entry h2 { margin: 2em 0 .8em; padding-bottom: .4em; font-size: 26px; border-bottom: 1px solid var(--line); }
.breadcrumb { margin-bottom: 26px; font-size: 15px; color: var(--muted); }
.breadcrumb a { color: var(--ink-2); }
.member-table { width: 100%; border-collapse: collapse; background: rgba(255, 255, 255, .7); }
.member-table th, .member-table td { padding: 12px 14px; text-align: left; font-size: 16px; border-bottom: 1px solid var(--line); }
.member-table thead th { background: var(--ink); color: #fff; font-weight: 700; letter-spacing: .1em; border-bottom: 0; }
.member-table tbody tr:hover { background: var(--mist); }
.meta-box { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin: 0 0 28px; padding: 18px 22px; background: #fff; border-left: 4px solid var(--accent); }
.meta-box dt { font-weight: 700; color: var(--ink-2); }
.meta-box dd { margin: 0; }
.empty { margin: 0; padding: 22px; color: var(--muted); background: rgba(255, 255, 255, .7); border: 1px dashed var(--line); }

/* ---------- footer ---------- */
.site-footer { position: relative; padding: 52px 0 40px; color: #d6eaee; text-align: center; background: var(--ink) url(assets/seigaiha-dark.svg); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: url(assets/seigaiha-band.svg); }
.site-footer .footer-in { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-name { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-family: var(--f-serif); font-size: 22px; font-weight: 700; letter-spacing: .16em; color: #fff; }
.footer-name .logo-leaf { background: #fff; width: 22px; height: 26px; }
.footer-copy { margin: 0; font-size: 14px; letter-spacing: .1em; opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  .rp circle { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* 会員名簿 */
.member-roster td { vertical-align: top; }
@media (max-width: 899px) {
	.member-roster thead { display: none; }
	.member-roster, .member-roster tbody, .member-roster tr, .member-roster td { display: block; width: 100%; }
	.member-roster tr { padding: 10px 4px; border-bottom: 2px solid var(--ink); }
	.member-roster td { border: 0; padding: 4px 10px; font-size: 17px; }
	.member-roster td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
	.member-roster td:empty { display: none; }
}
