/*
Theme Name: GUSTRO 64
Description: 第64回群馬放射線腫瘍研究会のオリジナルテーマ。文章・画像は外観 > カスタマイズで編集できます。
Version: 1.0.4
Requires at least: 6.0
Requires PHP: 7.4
Author: 群馬放射線腫瘍研究会
Text Domain: gustro64
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root{--navy:#102a43;--blue:#005fcc;--ink:#243b53;--muted:#526577;--pale:#eef5fc;--line:#d5e2ef;--white:#fff}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:100px}
body{margin:0;color:var(--ink);background:var(--white);font-family:"Noto Sans JP","Yu Gothic",Meiryo,sans-serif;font-size:16px;line-height:1.8}
h1,h2,h3,p{margin:0}
h1,h2,h3{color:var(--navy);line-height:1.4}
h1{font-size:clamp(48px,4.4vw,60px);letter-spacing:.01em}
h2{font-size:clamp(32px,3vw,40px);margin-bottom:32px}
h3{font-size:20px;margin-bottom:16px}
p+p{margin-top:20px}
a{color:var(--blue);text-underline-offset:4px}
a:hover{text-decoration-thickness:2px}
button,input{font:inherit}
button,a,input{touch-action:manipulation}
:focus-visible{outline:3px solid var(--navy);outline-offset:4px}
img{display:block;max-width:100%;height:auto}
.skip{position:fixed;left:16px;top:-100px;background:#fff;padding:12px 20px;z-index:20}
.skip:focus{top:12px}
.site-header{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line)}
.header-inner{max-width:1360px;margin:auto;padding:14px 28px;display:flex;align-items:center;gap:24px}
.brand{font-size:15px;font-weight:700;line-height:1.5;text-decoration:none;color:var(--navy);margin-right:auto}
.brand span{display:block;font-size:12px;color:var(--muted)}
nav{display:flex;align-items:center;gap:20px}
nav>a:not(.button){font-size:14px;text-decoration:none;color:var(--ink)}
.menu-toggle{display:none;border:1px solid var(--line);background:#fff;border-radius:6px;padding:8px 12px;color:var(--navy)}
.button{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:64px;padding:12px 28px;border:1px solid var(--blue);border-radius:8px;background:var(--blue);color:#fff;text-align:center;text-decoration:none;font-weight:700;line-height:1.5;transition:transform .2s,background .2s}
.button small{font-size:14px;font-weight:400;color:inherit}
.button:hover{background:#004a9f;transform:scale(1.02);text-decoration:none}
.button:active{background:#003e85}
.button.secondary{background:#fff;color:var(--blue)}
.button.secondary:hover{background:var(--pale)}
.button.compact{font-size:14px;min-height:58px;padding:8px 18px}
.button:disabled,.button[aria-disabled="true"]{background:#e3e8ee;border-color:#c4ced8;color:#526577;cursor:not-allowed;transform:none}
.button[aria-disabled="true"]{pointer-events:none}
.container{max-width:1120px;margin:0 auto;padding:0 28px}
.section{position:relative;isolation:isolate;padding:96px 0;overflow:hidden}
.section::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--gustro-network, url("src/network.png")) right center/650px auto no-repeat;opacity:.035;pointer-events:none}
.section:nth-of-type(even)::before{background-position:left center}
.section.soft{background:var(--pale)}
.eyebrow{display:block;color:var(--blue);font-size:14px;font-weight:700;letter-spacing:.12em;margin-bottom:14px}
.hero{position:relative;isolation:isolate;width:100%;min-height:760px;overflow:hidden;background:#fff}
.hero-inner{max-width:1360px;min-height:760px;margin:auto;padding:100px 40px;display:grid;grid-template-columns:45% 55%;align-items:center}
.hero-copy{max-width:610px}
.hero h1 .edition{display:block;font-size:.65em;margin-bottom:12px}
.hero-details{margin:32px 0;display:grid;gap:12px;font-size:18px}
.hero-details p+p{margin:0}
.hero-visual{min-height:500px}
.hero-art{position:absolute;z-index:-1;right:-4%;top:-8%;width:60%;height:116%;background:var(--gustro-network, url("src/network.png")) center/cover no-repeat;opacity:.6;clip-path:polygon(14% 0,100% 0,100% 100%,0 100%);animation:float 12s ease-in-out infinite;pointer-events:none}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
.greeting::before{background-image:var(--gustro-network, url("src/network.png"));background-repeat:repeat;background-size:360px auto;opacity:.045}
.reading{max-width:820px;margin:auto}
.greeting .reading{padding:40px;background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:12px}
.signature{text-align:right;margin-top:32px;font-size:16px;font-weight:400}
.signature span{display:block}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}
table{width:100%;border-collapse:collapse;font-size:16px;text-align:left}
caption{padding:16px 20px;text-align:left;font-weight:700;color:var(--navy);background:#fff}
th,td{padding:18px 24px;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}
tbody tr:last-child th,tbody tr:last-child td{border-bottom:0}
th{font-weight:600;color:var(--navy);background:var(--pale)}
.overview-table th{width:24%;min-width:100px}
.overview-table td{background:#fff}
.section-action{margin-top:32px;display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.note{font-size:14px;color:var(--muted)}
.call{max-width:820px}
.rules{padding-left:24px;margin:24px 0 32px}
.rules li+li{margin-top:14px}
.deadline{padding:18px 24px;border-left:4px solid var(--blue);background:#fff;margin-bottom:28px}
.pending{display:inline-block;font-size:14px;color:var(--muted);border:1px solid var(--line);border-radius:4px;padding:3px 10px}
.program-table{min-width:560px}
.program-table thead th{background:var(--navy);color:#fff;font-size:15px}
.program-table td{background:#fff;padding:40px 24px;text-align:center}
.program-download{margin-top:28px;padding:28px;border:1px solid var(--line);border-radius:12px;background:#fff;display:grid;grid-template-columns:1fr auto;align-items:center;gap:24px}
.program-download h3{margin-bottom:10px}
.divider{height:44px;position:relative;isolation:isolate;background:#fff}
.divider::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--gustro-divider, url("src/divider.svg")) center/100% 100% no-repeat;pointer-events:none}
.lecture{padding:64px 0}
.lecture h2{font-size:28px;margin-bottom:24px}
.lecture-content{border-left:3px solid var(--line);padding-left:24px;max-width:900px}
.lecture-title{font-size:20px;font-weight:600;line-height:1.7;margin-bottom:18px}
.lecture-name{font-size:18px;font-weight:600;margin-bottom:4px}
.lecture-affiliation{font-size:16px}
.reception{background:var(--navy);color:#fff}
.reception::before{opacity:.07}
.reception h2,.reception h3{color:#fff}
.reception .eyebrow{color:#b8d8ff}
.two-column{display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:start}
.reception .table-wrap{border-color:#526577}
.reception table th{background:rgba(255,255,255,.07);color:#fff;width:28%}
.reception table td{background:transparent}
.reception th,.reception td{border-color:#526577}
.reception .button{background:#fff;color:var(--navy);border-color:#fff}
.reception .button:hover{background:#dcecff}
.reception .note{color:#d5e2ef}
.reception-info{padding:28px;background:rgba(255,255,255,.06);border:1px solid #526577;border-radius:12px}
.map{width:100%;height:380px;border:1px solid var(--line);border-radius:12px;background:var(--pale)}
address{font-style:normal;margin:0 0 24px}
.venue-title{font-size:20px;font-weight:600}
.parking{padding:24px;border-left:3px solid var(--blue);background:var(--pale);margin-top:28px}
.notices{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.notice{background:#fff;border:1px solid var(--line);border-top:3px solid var(--blue);border-radius:10px;padding:28px}
.notice.wide{grid-column:1/-1}
.notice p{margin-bottom:14px}
.notice p:last-child{margin-bottom:0}
.notice ul{margin:16px 0;padding-left:22px}
.poster-layout{display:grid;grid-template-columns:300px 1fr;gap:64px;align-items:start}
.poster{margin:0}
.poster img{width:100%;border:1px solid var(--line);border-radius:8px}
.poster figcaption{margin-top:12px;font-size:14px;color:var(--muted)}
.contact{margin-top:36px;padding-top:28px;border-top:1px solid var(--line)}
.email{overflow-wrap:anywhere}
footer{background:var(--navy);color:#fff;padding:40px 0}
.footer-inner{display:flex;justify-content:space-between;gap:24px;align-items:center}
footer p{font-size:14px}
footer a{color:#fff;font-size:14px}
.portrait{aspect-ratio:1;object-fit:cover;border-radius:50%}
.case-image{aspect-ratio:1;object-fit:cover;border-radius:24px}
.reveal{opacity:1}
.js-motion .reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s ease}
.js-motion .reveal.visible{opacity:1;transform:none}
@media(max-width:1100px){nav{gap:12px}nav>a:not(.button){font-size:13px}.header-inner{padding:12px 20px}.two-column{gap:32px}}
@media(max-width:768px){
html{scroll-padding-top:90px}
.header-inner{padding:12px 20px;flex-wrap:wrap;gap:12px}
.brand{font-size:14px}.brand span{font-size:12px}
.menu-toggle{display:block}
nav{display:none;width:100%;flex-direction:column;align-items:stretch;padding:12px 0;gap:0}
nav.open{display:flex}
nav>a:not(.button){padding:10px 0;font-size:16px}
.container{padding:0 20px}
.section{padding:64px 0}
h1{font-size:clamp(32px,6vw,40px)}
h2{font-size:28px;margin-bottom:24px}
.hero,.hero-inner{min-height:620px}
.hero-inner{display:grid;grid-template-columns:1fr;padding:76px 20px;align-content:center}
.hero-copy{max-width:100%}
.hero-visual{display:none}
.hero-art{width:100%;right:-35%;opacity:.6}
.hero-details{font-size:16px;margin:28px 0}
.hero-copy .button{width:100%;max-width:340px}
.two-column,.poster-layout,.program-download,.notices{grid-template-columns:1fr;gap:24px}
.poster-layout{gap:32px}.poster{width:240px;max-width:100%;margin:auto}
.notice.wide{grid-column:auto}
.greeting .reading{padding:24px 20px}
.signature{text-align:left;font-size:16px}
th,td{padding:14px 12px}
.overview-table th{width:28%;min-width:80px}
.section-action{align-items:stretch;flex-direction:column;gap:16px}
.section-action .button{width:100%}
.program-download{padding:24px}
.program-download .button{width:100%}
.lecture{padding:56px 0}.lecture h2{font-size:26px}.lecture-title{font-size:18px}
.map{height:300px}
.footer-inner{flex-direction:column;align-items:flex-start}
}
@media(prefers-reduced-motion:reduce){
html{scroll-behavior:auto}
.hero-art{animation:none}
.button{transition:none}
.button:hover{transform:none}
.js-motion .reveal{opacity:1;transform:none;transition:none}
}

body.admin-bar .site-header{top:32px}
@media(max-width:782px){body.admin-bar .site-header{top:46px}}
@media(max-width:600px){body.admin-bar .site-header{position:relative;top:0}}
.entry-content{max-width:820px;margin:auto}
.entry-content img{height:auto}
.entry-content h2{margin-top:32px}

/* Program time column: target the actual PHP-generated cells, at all widths. */
#program table.program-table { table-layout: auto !important; }
#program table.program-table col.program-time-col { width: 9rem; }
#program table.program-table > thead > tr > th.program-time,
#program table.program-table > tbody > tr > td.program-time {
    width: 9rem !important;
    min-width: 9rem !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    flex-shrink: 0;
}
#program table.program-table .program-time-value {
    display: inline-block;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    flex-shrink: 0;
}

/* Hero redesign only. Lower sections retain their existing styles. */
#top.hero{background:linear-gradient(120deg,#fff 60%,#f6faff);min-height:760px;isolation:isolate}
#top .hero-inner{max-width:1360px;min-height:760px;padding:72px 40px;grid-template-columns:minmax(0,44fr) minmax(0,56fr);gap:36px}
#top .hero-copy{min-width:0;max-width:580px}
#top .hero-edition{color:#102a43;font-size:22px;font-weight:600;letter-spacing:.12em;margin:0 0 20px}
#top h1{color:#102a43;font-family:"Yu Mincho","Hiragino Mincho ProN",Meiryo,serif;font-size:clamp(44px,4vw,58px);font-weight:700;line-height:1.42;letter-spacing:.03em;margin:0}
#top .hero-details{font-size:18px;gap:18px;margin:36px 0 30px;border-left:2px solid #d5e2ef;padding-left:22px}
#top .hero-date{font-size:22px;font-weight:600;color:#102a43;line-height:1.65}
#top .hero-time{display:block;font-size:19px;font-weight:400;margin-top:3px}
#top .hero-venue{line-height:1.75}
#top .hero-fee{font-size:17px}
#top .hero-visual{display:flex;min-width:0;min-height:0;align-items:center;align-self:stretch;margin:0;position:relative}
#top .hero-network-image{display:block;width:100%;height:100%;min-height:540px;max-height:660px;object-fit:cover;object-position:72% center;opacity:.88;mask-image:linear-gradient(to right,transparent,#000 12%,#000 96%,transparent);-webkit-mask-image:linear-gradient(to right,transparent,#000 12%,#000 96%,transparent)}
@media(min-width:769px) and (max-width:1100px){
#top .hero-inner{grid-template-columns:minmax(0,52fr) minmax(0,48fr);padding:64px 28px;gap:24px;min-height:720px}
#top.hero{min-height:720px}
#top h1{font-size:44px}
#top .hero-network-image{min-height:500px;object-position:76% center}
}
@media(max-width:768px){
#top.hero{min-height:0}
#top .hero-inner{grid-template-columns:minmax(0,1fr);min-height:0;padding:56px 20px 0;gap:32px}
#top .hero-edition{font-size:18px;margin-bottom:16px}
#top h1{font-size:clamp(32px,7vw,40px);line-height:1.45;letter-spacing:.02em}
#top .hero-details{font-size:16px;gap:16px;margin:28px 0;padding-left:18px}
#top .hero-date{font-size:20px}
#top .hero-time{font-size:17px}
#top .hero-fee{font-size:16px}
#top .hero-copy .button{width:100%;max-width:360px}
#top .hero-visual{display:block;min-height:0;width:100%;order:2}
#top .hero-network-image{min-height:0;height:auto;max-height:none;aspect-ratio:16/9;object-fit:cover;object-position:70% center;opacity:.82;mask-image:linear-gradient(to bottom,transparent,#000 12%,#000 88%,transparent);-webkit-mask-image:linear-gradient(to bottom,transparent,#000 12%,#000 88%,transparent)}
}

/* Unified title and three application actions. */
#top .hero-edition,#top h1{font-family:"Yu Mincho","Hiragino Mincho ProN",Meiryo,serif}
#top .hero-actions{display:flex;align-items:stretch;gap:12px;margin-top:0}
#top .hero-actions .button{font-size:14px;min-width:0;padding:14px 12px;flex:1 1 0;min-height:76px;max-width:none}
#top .hero-actions .button small{font-size:12px;line-height:1.5}
@media(min-width:769px){
#top h1{white-space:nowrap;word-break:keep-all;overflow-wrap:normal;font-size:clamp(28px,3.35vw,48px);letter-spacing:.015em}
#top .hero-copy{max-width:none}
}
@media(min-width:769px) and (max-width:1100px){
#top .hero-actions{flex-wrap:wrap}
#top .hero-actions .button{flex:1 1 145px}
}
@media(max-width:768px){
#top h1{white-space:normal;word-break:normal;overflow-wrap:anywhere;font-size:clamp(32px,7vw,40px);letter-spacing:.015em}
#top .hero-actions{flex-direction:column;gap:12px}
#top .hero-actions .button{width:100%;max-width:none;flex:auto;font-size:16px;min-height:64px;padding:12px 20px}
#top .hero-actions .button small{font-size:14px}
}
.site-footer{padding:64px 0 32px}
.site-footer .footer-organizer{font-size:17px;font-weight:600;margin-bottom:16px}
.site-footer .footer-information p{line-height:1.9}
.site-footer .footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid #526577;padding-top:24px;margin-top:36px}
.site-footer .footer-copyright{font-size:13px;overflow-wrap:anywhere;margin:0}
.privacy-page .privacy-inner{max-width:880px;margin:auto}
.privacy-page h1{font-size:clamp(30px,3vw,40px);margin-bottom:40px;overflow-wrap:anywhere}
.privacy-page .entry-content{max-width:none}
.privacy-page .entry-content h2{font-size:24px;margin:40px 0 16px;line-height:1.5}
.privacy-page .entry-content ul{padding-left:24px;margin:20px 0}
.privacy-page .entry-content li+li{margin-top:10px}
.privacy-page .entry-content a{overflow-wrap:anywhere}
@media(max-width:768px){
.site-footer{padding:48px 0 28px}
.site-footer .footer-bottom{flex-direction:column;align-items:flex-start;gap:20px}
.privacy-page .entry-content h2{font-size:22px}
}

/* Participant PDFs: equal-sized buttons; other sections unchanged. */
#program .program-download{grid-template-columns:minmax(0,1fr) minmax(0,560px);align-items:center}
#program .participant-download-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}
#program .participant-download-actions .button{width:100%;min-width:0;min-height:80px;height:100%;padding:14px 16px;border-radius:8px;line-height:1.5}
#program .participant-download-actions .button span{font-size:16px}
#program .participant-download-actions .button small{font-size:14px}
@media(max-width:1024px){#program .program-download{grid-template-columns:minmax(0,1fr)}}
@media(max-width:768px){#program .participant-download-actions{grid-template-columns:minmax(0,1fr);gap:16px}}
