/*
Theme Name: 交流会のストーリー
Author: 交流会プロ
Description: 全国の交流会主催者を取材する「交流会のストーリー」専用テーマ。
Version: 1.1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: story-kouryukai
*/
@font-face {
  font-family: Story Allura;
  src: url("assets/fonts/Allura-Regular.ttf") format("truetype");
  font-display: swap;
}
:root {
  --ink: #171c20;
  --muted: #525a5a;
  --line: #d3d5cf;
  --paper: #fff;
  --yellow: #f5ed29;
  --cream: #f6f5ef;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif CJK JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font: 100%/1.65 var(--sans);
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box }
body, figure, h1, h2, h3, p { margin: 0 }
a { color: var(--ink); text-decoration: none }
a:visited { color: var(--ink) }
button { cursor: pointer; font: inherit }
:where(a, button):focus-visible { outline: 3px solid #07459a; outline-offset: 4px }
.wrap { max-width: 1200px; width: calc(100% - 112px); margin-inline: auto }
.skip { position: absolute; z-index: 10; left: 16px; top: -120px; padding: 12px; background: #fff; color: #171c20 }
.skip:focus-visible { top: 10px }
.site-head { background: #fff; border-top: 3px solid var(--ink) }
.masthead { display: flex; align-items: center; justify-content: space-between; min-height: 87px; gap: 16px }
.brand { display: inline-flex; gap: 17px; align-items: center; font: 700 25px/1.2 var(--serif); letter-spacing: .1em }
.brand small { display: block; margin-top: 4px; font: 650 10px/1.5 var(--sans); letter-spacing: .22em }
.monogram { display: inline-block; position: relative; isolation: isolate; font: italic 45px/.96 Georgia, serif; letter-spacing: -.13em; padding: 0 7px 0 1px }
.monogram::after, .under::after, .hero-wordmark::after { content: ""; position: absolute; z-index: -1; background: var(--yellow); pointer-events: none; inset: auto -2% -.01em; height: .18em; transform: rotate(-3deg); clip-path: polygon(0 34%, 15% 17%, 73% 0, 98% 8%, 100% 40%, 92% 75%, 17% 100%, 2% 88%) }
.partner-tag { font-size: 13px; font-weight: 650; border-bottom: 1px solid var(--ink); padding: 3px 0 }
.menu-button { display: none }
.desktop-nav { border-block: 1px solid var(--line) }
.nav-inner { display: flex; justify-content: center }
.nav-inner a { position: relative; flex: 1; max-width: 260px; display: grid; place-content: center; grid-auto-flow: column; gap: 6px; color: var(--ink); background: #fff; border-inline-start: 1px solid var(--line); min-height: 51px; font-size: 14px }
.nav-inner .nav-partner { grid-auto-flow: row; text-align: center; gap: 0; line-height: 1.4 }
.nav-partner small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .04em }
.nav-inner a:last-child { border-inline-end: 1px solid var(--line) }
.nav-inner a[aria-current]::after { content: ""; position: absolute; inset: auto 22% -1px; height: 4px; background: var(--yellow) }
.nav-inner a:hover, .nav-inner a:focus-visible, .nav-inner a:active { background: var(--cream); color: var(--ink) }
.hero { max-width: 1510px; margin: 0 auto; position: relative; padding-top: clamp(25px,4.7vw,72px) }
.hero-wordmark { position: relative; z-index: 1; isolation: isolate; width: fit-content; margin: 0 0 -.22em max(5%, calc((100% - 1200px) / 2)); color: var(--ink); font: 400 clamp(78px,9vw,147px)/.85 "Story Allura", cursive; letter-spacing: -.04em; transform: rotate(-4deg); pointer-events: none }
.hero-wordmark::after { inset: auto 4% .02em 7%; height: .065em; transform: rotate(0deg) }
.hero-body { margin-left: max(5%, calc((100% - 1200px) / 2)); display: grid; grid-template-columns: minmax(290px,.76fr) minmax(0,1.55fr); align-items: center }
.hero-copy { padding: 49px 22px 15px 0 }
h1 { font: 650 clamp(27px,3vw,48px)/1.6 var(--serif); letter-spacing: .055em }
.hero-copy p { max-width: 365px; margin-top: 17px; font-size: 18px; line-height: 1.9; text-wrap: pretty }
.line-link { display: inline-flex; gap: 1.2em; align-items: center; padding: 8px 0 6px; border-bottom: 1px solid currentColor; font-size: 14px; font-weight: 700; background: transparent }
.hero .line-link { margin-top: 26px }
.line-link:hover, .line-link:focus-visible, .line-link:active, .partner-tag:hover, .partner-tag:focus-visible, .partner-tag:active { color: #353f2d; box-shadow: inset 0 -5px var(--yellow) }
.hero-picture { min-width: 0; position: relative; background: #dfddd3; clip-path: polygon(6% 0,100% 0,100% 100%,0 100%,0 15%) }
.hero-photo-link { display: block; position: relative; background: #dfddd3 }
.hero-photo-link:focus-visible { outline-offset: -8px }
.hero-picture img { display: block; width: 100%; height: auto; aspect-ratio: 1.47; object-fit: cover; object-position: center 52% }
.hero-caption { position: absolute; bottom: 0; right: 0; padding: 6px 13px; background: white; color: var(--ink); font-size: 12px; font-weight: 600 }
.interviews { padding-block: clamp(65px,7.5vw,120px) clamp(58px,7.5vw,106px) }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px }
.section-head small, .section-label { display: block; margin-bottom: 8px; font: 650 14px/1.65 var(--sans); letter-spacing: .08em }
.section-head h2 { font: 500 clamp(44px,5.8vw,84px)/.98 Georgia, serif; letter-spacing: -.055em }
.under { position: relative; isolation: isolate; display: inline-block }
.under::after { inset: auto 0 -.03em; height: .12em; transform: rotate(-1deg) }
.section-head p { font-size: 18px; line-height: 1.8; margin: 0 0 0 auto }
.cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 36px 23px }
.cards article { min-width: 0; border-bottom: 1px solid var(--line) }
.cards a { display: block; padding-bottom: 18px; color: var(--ink); background: #fff }
.card-portrait { width: 100%; aspect-ratio: 1.20; display: grid; place-items: center; overflow: hidden; background: #f2f1ed }
.card-portrait img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain }
.place { display: inline-block; margin: 15px 0 8px; padding-inline-start: 9px; border-left: 3px solid #b8a700; font-size: 12px; font-weight: 700; letter-spacing: .085em; line-height: 1.1 }
.cards h3 { font: 650 clamp(17px,1.55vw,23px)/1.55 var(--serif); letter-spacing: .015em; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2 }
.cards a:hover h3,.cards a:focus-visible h3,.cards a:active h3 { text-decoration: underline; text-underline-offset: .18em }
.card-by { margin-top: 12px; font-size: 15px; font-weight: 700 }
.card-affiliation { margin-top: 3px; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.partner { padding-block: clamp(45px,6.5vw,92px); background: var(--cream); border-top: 1px solid var(--line) }
.partner-inner { display: grid; grid-template-columns: .9fr 1.35fr; gap: 40px }
.partner-title h2 { font: 650 clamp(29px,3.4vw,52px)/1.55 var(--serif); letter-spacing: .05em }
.partner-title h2 > span { display: inline-block }
.partner-copy p { line-height: 1.95; font-size: 18px; margin-bottom: 1em }
.partner-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px }
.solid-link, .solid-link:visited { display: inline-flex; align-items: center; gap: 22px; padding: 12px 18px; background: var(--ink); color: #fff; border: 1px solid var(--ink); font-size: 14px; font-weight: 650 }
.solid-link:hover, .solid-link:focus-visible, .solid-link:active { background: var(--yellow); color: var(--ink) }
footer { display: flex; align-items: center; gap: 20px 36px; padding-block: 38px; font-size: 13px }
.footer-brand { margin-right: auto; font: 650 20px var(--serif); letter-spacing: .075em }
footer a { text-decoration: underline; text-underline-offset: 4px }
dialog { color: var(--ink); border: 1px solid var(--line); padding: 20px 24px; background: #fff }
dialog::backdrop { background: rgba(10,15,17,.42) }
.menu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px }
.menu-head h2 { font: 700 20px var(--serif) }
.close-menu { padding: 7px; background: #fff; color: var(--ink); border: 0 }
dialog nav a { display: block; padding: 14px 2px; border-bottom: 1px solid var(--line); background: #fff; color: var(--ink) }
dialog nav a:hover,dialog nav a:focus-visible,dialog nav a:active,.close-menu:hover,.close-menu:focus-visible,.close-menu:active { background: var(--cream); color: var(--ink) }
body:has(dialog[open]) { overflow: hidden }
@media(max-width: 980px){
  .wrap { width: calc(100% - 72px) }
  .hero-copy p { font-size: 18px }
  .cards { gap: 30px 16px }
}
@media(max-width: 760px){
  .wrap { width: calc(100% - 36px) }
  .masthead { min-height: 69px; border-bottom: 1px solid var(--line) }
  .brand { font-size: 21px; gap: 10px }
  .brand small { font-size: 8px }
  .monogram { font-size: 38px }
  .desktop-nav, .partner-tag { display: none }
  .menu-button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; color: var(--ink); background: #fff; border: 1px solid var(--ink); border-radius: 24px; font-size: 12px; font-weight: 650 }
  .menu-button:hover, .menu-button:active, .menu-button:focus-visible { background: var(--cream); color: var(--ink) }
  dialog { width: 100%; max-width: none; max-height: 85dvh; position: fixed; inset: auto 0 0; margin: 0; border-radius: 16px 16px 0 0; padding-bottom: max(20px,env(safe-area-inset-bottom)) }
  .hero { padding-top: 25px }
  .hero-wordmark { font-size: clamp(53px,12vw,84px); margin: 0 auto -.055em 5.8% }
  .hero-body { display: flex; flex-direction: column; margin: 0 }
  .hero-picture { order: -1; margin-left: 7%; align-self: stretch }
  .hero-picture img { height: auto; aspect-ratio: 1.47; object-position: center 52% }
  .hero-caption { font-size: 11px }
  .hero-copy { width: calc(100% - 40px); padding: 19px 0 0 }
  h1 { font-size: clamp(26px,6vw,36px); letter-spacing: .03em; line-height: 1.5 }
  .hero-copy p { max-width: 36em; margin-top: 9px; line-height: 1.75 }
  .hero .line-link { margin-top: 10px }
  .interviews { padding-block: 50px }
  .section-head { display: block; margin-bottom: 18px }
  .section-head h2 { font-size: 43px }
  .section-head p { margin: 14px 0 0; line-height: 1.65 }
  .section-head small,.section-label { font-size: 13px; margin-bottom: 6px }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 14px }
  .place { margin-top: 12px }
  .card-portrait { aspect-ratio: 1.15 }
  .card-by { margin-top: 8px; font-size: 14px }
  .card-affiliation { font-size: 12px }
  .cards a { padding-bottom: 13px }
  .partner-inner { display: block }
  .partner-title { margin-bottom: 18px }
  .partner-links { gap: 12px 18px }
  footer { flex-wrap: wrap; padding-block: 28px; gap: 13px 20px }
  .footer-brand { flex-basis: 100% }
}
.site-head .nav-inner {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
}
.site-head .nav-inner a {
  display: block;
  align-content: center;
  text-align: center;
  max-width: none;
  min-height: 58px;
  padding: 8px 3px;
  line-height: 1.5;
  word-break: keep-all;
}
.site-head .nav-inner .nav-partner small { margin-top: 1px }
dialog[open] { overflow-y: auto }
.story-region-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding: 14px 0;
  margin-bottom: 28px;
  border-block: 1px solid var(--line);
}
.story-region-filter[hidden], .cards article[hidden] { display: none }
.story-region-filter label { font-size: 15px; font-weight: 650 }
.story-region-filter select {
  font: inherit;
  padding: 6px 10px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #939992;
  border-radius: 0;
  min-width: 10em;
}
.story-region-filter select:focus-visible { outline: 3px solid #07459a; outline-offset: 3px }
.story-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
.story-info { display: grid; grid-template-columns: .9fr 1.35fr; gap: 40px; padding-block: clamp(45px,6.5vw,92px); border-top: 1px solid var(--line) }
.story-info h2 { font: 650 clamp(27px,2.8vw,42px)/1.5 var(--serif); letter-spacing: .035em }
.story-info p { line-height: 1.95; font-size: 18px }
.story-info p + p, .story-info .line-link { margin-top: 1em }
@media (min-width:761px) and (max-width:900px) {
  .site-head .nav-inner { width: calc(100% - 28px) }
  .site-head .nav-inner a { font-size: 13px }
}
@media (max-width:760px) {
  .masthead { gap: 8px }
  .brand { gap: 6px; font-size: clamp(18px,5vw,21px); letter-spacing: .025em; white-space: nowrap }
  .story-info { display: block }
  .story-info h2 { margin-bottom: 16px }
  .story-region-filter { gap: 8px 12px }
  #menu-sheet nav a { padding-block: 12px; min-height: 44px }
}
@media (max-width:360px) {
  .masthead.wrap { width: calc(100% - 24px) }
  .masthead .monogram { font-size: 30px }
  .masthead .menu-button { padding-inline: 8px }
}

.interior { padding-block: 70px; min-height: 44vh; font-size: 18px; overflow-wrap: anywhere }
.interior h1 { margin-bottom: .6em }
.interior p + p { margin-top: 1em }
.interior a { text-decoration: underline }
.hero.hero-type .hero-body { display:block; margin-inline:auto; width:min(1200px,90%) }
.hero.hero-type .hero-copy { padding:42px 0 18px; max-width:760px }
.hero.hero-type .hero-copy p { max-width:none }
.cards.cards-type article { border-top: 2px solid var(--ink) }
