/* 第21回 日本病院前救急診療医学会 総会・学術集会 */

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root { --navy-dark: #0a1628; --navy-mid: #0d1d36; --navy-light: #122644; --white: #ffffff; --accent-blue: #003355; --font-mincho: 'Zen Old Mincho', serif; --font-gothic: 'Noto Sans JP', sans-serif; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { font-family: var(--font-gothic); font-size:clamp(0.875rem,1.4vw,1rem); color: rgba(255, 255, 255, 0.9); background:var(--navy-dark); -webkit-font-smoothing: antialiased; line-height: 2; overflow-x: clip; letter-spacing: 0.04rem; }
.bg-video-wrap { position: sticky; top: 0; margin-top:clamp(6rem,12vw,12rem); height: 100vh; margin-bottom: calc(-100vh - clamp(6rem,12vw,12rem)); width: 100%; z-index: 0; overflow: hidden; pointer-events: none; opacity: 0.4; transition: opacity 0.5s ease-in-out; }
.bg-video-wrap.is-stuck { opacity: 0.15; }
.bg-video { width: 100%; height: 100%; object-fit: cover; object-position:80% center; }
body::after { /*content: ''; position: fixed; inset: 0; z-index: 0; background: var(--navy-dark); opacity: 0.65; pointer-events: none;*/ }
@media (prefers-reduced-motion: reduce) {
  .bg-video-wrap { display: none; }
  .mobile-menu-bg { display: none; }
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background: var(--navy-dark) url('../img/light-trails02.webp') 80% center / cover no-repeat;
    pointer-events: none;
  }
  .mobile-menu { background: var(--navy-dark) url('../img/light-trails02.webp') 80% center  / cover no-repeat; }
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

p { margin-bottom:2rem; }
hr { border:none; border-bottom:1px solid #fff8; }
.clearfix { clear:both; }

.anchor { height:10rem; margin-top:-10rem; position:relative; z-index:-10; width:1px; }
.sticky { position:sticky; top:10rem; }


/* Side Navigation (PC) */
.side-nav { position: fixed; top: 0; right: 1rem; z-index: 10000; display: flex; flex-flow: row wrap; align-items: flex-start; gap: 0.3rem; padding-top: 1rem; height: auto; }
.side-nav a { display: flex; flex-flow:row wrap; align-items: center; padding:0.75rem 0.25rem; transition: opacity 0.3s; writing-mode: vertical-rl; font-family: var(--font-mincho); letter-spacing: 0.1rem; color: var(--navy-dark); font-weight: 400; line-height:1.5; }
.side-nav a:hover { opacity: 0.7; }
.side-nav.is-scrolled a { background: rgba(255,255,255,0.95);  box-shadow: 0 1px 4px rgba(0,0,0,0.15); transition: background 0.3s, box-shadow 0.3s; }


/* Hamburger (Mobile) */
.hamburger { display: none; position: fixed; top: 1rem; right: 1rem; z-index: 10002; width: 3rem; height: 3rem; background: rgba(10, 22, 40, 0.3); border:0;  border-radius: 5px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; backdrop-filter: blur(8px); }
.hamburger .line { display: block; width: 22px; height: 1.5px; background-color: var(--white); transition: transform 0.3s, opacity 0.3s; }
.hamburger.is-active .line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-active .line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-active .line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Fixed Header */
.fixed-header { position: fixed; display: flex; align-items: center; top: 0; left: 0; width: 100%; z-index: 9999; backdrop-filter: blur(0.5rem); padding: 0.75rem clamp(1.5rem, 5vw, 3rem); transform: translateY(-100%); transition: transform 0.4s ease; min-height: 5rem; }
.fixed-header::after { content: ""; position: absolute; inset:0; z-index:-1; background: rgba(10, 22, 40, 0.6); mix-blend-mode: multiply; }
.fixed-header.is-visible { transform: translateY(0); }
.fixed-header .title { font-family: var(--font-mincho); font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.4; color: var(--white); margin: 0; text-decoration: none; display: block; }
.fixed-header .f_s { font-size: 0.75em; }

/* Mobile Menu */
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 10001; background: transparent; overflow: hidden; align-items: center; justify-content: center; }
.mobile-menu-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.mobile-menu-bg img { width: 100%; height: 100%; object-fit: cover; object-position:80% center; }
.mobile-menu::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(10, 22, 40, 0.8); backdrop-filter: blur(0.2rem); }
.mobile-menu.is-open { display: flex; flex-direction: column; }
.mobile-menu .inner { position: relative; z-index: 2; display: flex; flex-flow: column wrap; align-items: flex-start; margin-bottom: 8rem; max-width: 20rem; }
.mobile-menu .heli { position: absolute; top: 0.5rem; left: 0; width: clamp(15rem, 40vw, 20rem); z-index: 2; opacity: 0.5; pointer-events: none; mix-blend-mode: screen; }
.mobile-menu .car { position: absolute; bottom: 2rem; right:0; width: clamp(15rem, 50vw, 30rem); z-index: 2; opacity: 0.5; pointer-events: none; mix-blend-mode: screen; }
.mobile-menu .title { font-family: var(--font-mincho); font-size: 1.5rem; color: var(--white); text-align: left; line-height: 1.3; letter-spacing: 0.1rem; margin-bottom: 2rem; }
.mobile-menu .title .edition { font-size: 1rem; }
.mobile-menu .title .dates { display: block; font-size: 1.25rem; letter-spacing: 0.05rem; margin-top: 0.5rem; }
.mobile-menu .title .dates .y { font-size: 0.75em; }
.mobile-menu .nav { display: flex; flex-flow:row wrap; align-items: flex-start; width: 100%; }
.mobile-menu .link { display: block; font-family: var(--font-mincho); font-size: 1.125rem; letter-spacing: 0.1rem; padding: 0.25rem; color: var(--white); transition: opacity 0.3s; writing-mode: vertical-rl; }
.mobile-menu .link:hover { opacity: 0.6; }

/* HERO SECTION */
.hero { position: relative; z-index: 1; width: 100%; min-height: auto; padding-bottom: clamp(4rem, 12vw, 8rem); }
.hero_bg { position: absolute; inset: 0; z-index: 0; }
.hero_bg .left { position: absolute; top: 0; left: 0; width: 50%; height:clamp(24rem,50vw,48rem); min-height: 30vw; background: url('../img/hero.webp') left top 40% / 200% auto no-repeat; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 14vw)); -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 14vw)); 
-webkit-mask-image: linear-gradient(-165deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 50%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0) 100%); 
mask-image: linear-gradient(-165deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 50%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0) 100%); }
.hero_bg .right { position: absolute; top: 0; right: 0; width: 50%; height:clamp(24rem,50vw,48rem); min-height: 30vw; background: url('../img/hero.webp') right top 40% / 200% auto no-repeat; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14vw), 0 100%); -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14vw), 0 100%); 
-webkit-mask-image: linear-gradient(165deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 50%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0) 100%); 
mask-image: linear-gradient(165deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 50%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0) 100%); }

/* Hero content */
.hero_content { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; max-width: 90rem; margin: 0 auto; padding: clamp(15rem,20vw,20rem) clamp(1.5rem,5vw,3rem) 0  clamp(1.5rem,5vw,3rem);  }
.hero_content > .left { flex: 0 1 auto; }
.hero_title { position: relative; text-shadow: clamp(1px,0.3vw,2px) clamp(1px,0.3vw,2px) clamp(1px,0.3vw,2px) var(--navy-dark);  margin-bottom: clamp(1rem, 2.8vw, 1.75rem); }
.hero_title .edition { font-family: var(--font-mincho); color: var(--white); margin-bottom: -0.15rem; line-height: 1.2; }
.hero_title .edition .pre, .hero_title .edition .suf { font-size: clamp(1.1rem, 2vw, 2rem); }
.hero_title .edition .num { font-size: clamp(1.6rem, 3.2vw, 3.2rem); font-weight: 400; }
.hero_title .title { font-family: var(--font-mincho); font-size: clamp(2rem, 5vw, 4rem); font-weight: 400; color: var(--white); letter-spacing:0.1rem; line-height: 1.25; display: flex; flex-flow: column wrap; align-items: flex-start; justify-content: center; }
.hero_title .title .dot { font-size: clamp(1.2rem, 4vw, 2.8rem); vertical-align: middle; }
.hero_title .title span { display: flex; flex-flow: row wrap; align-items: center; }
.hero_title .title br { display: none;  }

/* Dates */
.hero_dates { display: flex; gap: clamp(0.75rem, 5vw, 3rem); line-height: 1.5; letter-spacing: normal; }
.hero_dates .item { display: flex; flex-direction: column; position: relative; }
.hero_dates .item + .item::before { content: ''; position: absolute; left: calc(clamp(0.75rem, 5vw, 3rem) / -2); top: 37%; height: 60%; width: 1px; background: rgba(255, 255, 255, 0.9); }
.hero_dates .numbers { display: flex; align-items: baseline; color: var(--white); font-family: var(--font-mincho); }
.hero_dates .year { font-size: clamp(0.75rem, 2.4vw, 1.5rem); }
.hero_dates .dot { font-size: clamp(0.75rem, 2.4vw, 1.5rem); margin: 0 1px; }
.hero_dates .month { font-size: clamp(1.6rem, 6vw, 4rem); line-height: 1; }
.hero_dates .day { font-size: clamp(1.6rem, 6vw, 4rem); line-height: 1; }
.hero_dates .weekday { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-gothic); font-size: clamp(0.75rem, 1.8vw, 1.25rem); font-weight: 600; color: var(--accent-blue); background: rgba(255, 255, 255, 0.9); width: clamp(1.25rem, 3vw, 1.75rem); height: clamp(1.25rem, 3vw, 1.75rem); border-radius: 50%; margin-left: 5px; align-self: center; margin-top: clamp(0.75rem,2vw,1.6rem); }
.hero_dates .label { font-family: var(--font-mincho); font-size: clamp(0.75rem, 2vw, 1.25rem); color: var(--white); margin-top: 2px; }

/* Theme (vertical text) - 3列の白帯・下揃え */
.hero_theme { display: flex; flex-direction: row-reverse; align-items: flex-end; gap: clamp(0.5rem, 2vw, 2rem); font-family: var(--font-mincho); font-size: clamp(1.25rem, 4vw, 3rem); color: var(--navy-dark); align-self: flex-end;  white-space: nowrap; }
.hero_theme .col { writing-mode: vertical-rl; background: #fff; padding:clamp(0.6rem, 1.6vw, 1rem) clamp(0.4rem, 1.2vw, 0.75rem); border-radius: 0; line-height: 1; letter-spacing: 0; }
.theme-dot { font-size: clamp(0.75rem, 2vw, 2.25rem); line-height: 1; }

/* Vehicle images */
.vehicles { position: relative; z-index: 1; width: 100%; max-width: 93rem; margin: 0 auto; height: 0; pointer-events: none; mix-blend-mode: screen; }
.vehicles .heli { position: absolute; z-index: 1; width: clamp(18rem, 40vw, 36rem); bottom: clamp(-2rem, -3vw, -1rem); left: 48%; transform: translateX(-25%); }
.vehicles .car { position: absolute; z-index: 2; width: clamp(18rem, 40vw, 36rem); top: clamp(-8rem, -10vw, -5rem); right: -1rem; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-mincho); margin-bottom:clamp(0.75rem,1.6vw,1rem); line-height:1.5; font-weight: 400; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 2rem);  }
h4 { font-size:clamp(1.125rem, 2.5vw, 1.5rem); }
h5 { font-size:clamp(1rem, 2vw, 1.25rem); }

section { margin:0 auto  clamp(2.5rem,8vw,8rem) auto; max-width: 90rem; position: relative; padding:0 clamp(1.5rem,5vw,3rem); z-index: 5; }
section h2 { font-weight: 500; color: var(--white); letter-spacing: 0.1rem; margin-bottom: clamp(0.75rem, 2.4vw, 1.5rem); position: relative; display: inline-block; line-height: 1.25; }
section .inner {  display: flex; flex-flow: row wrap;justify-content: space-between; }


/* NEWS SECTION */
.news { }
.news .heading-side { flex: 0 0 auto; min-width: clamp(120px, 15vw, 200px); }
.news .list { display: flex; flex-direction: column; min-height:7rem; }
.news .item { display: flex; align-items: baseline; gap: clamp(1rem, 3vw, 2rem); padding:0.75rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); transition: opacity 0.3s; font-size: clamp(0.875rem, 1.6vw, 1rem);  }
.news .item:first-child { border-top: 1px solid rgba(255, 255, 255, 0.2); }
.news .item:hover { opacity: 0.65; }
.news .date { color: rgba(255, 255, 255, 0.5); flex-shrink: 0; min-width: 5.5rem; }
.news .text { margin-bottom:0; }


/* GREETING SECTION */
.greeting {  }
.greeting .w75 { display: flex; flex-flow: row nowrap; align-items: flex-start; gap:clamp(1.25rem,4vw,2.5rem);}
.greeting .profile { display: flex; flex-flow: row wrap; justify-content: space-between; align-items: flex-end; width: 12rem; min-width: 12rem; }
.greeting .profile-info { flex-grow: 1; }
.greeting .photo { width: 100%; overflow: hidden; max-width: 12rem; }
.greeting .photo  img { width: 100%; height: auto; object-fit: cover; }
.greeting .role { font-family: var(--font-mincho); font-size: clamp(0.8125rem, 1.6vw, 1rem); margin-bottom: 0; }
.greeting .name { font-size: clamp(1.125rem, 2.4vw, 1.4rem); letter-spacing: 0.2rem; }
.greeting .aff {  font-size: clamp(0.75rem, 1.4vw, 0.875rem); line-height: 1.8; }

.greeting .text { flex-grow: 1 }



/* FOOTER */
.footer { border-top: 1px solid rgba(255, 255, 255, 0.2); padding: 1.5rem; position: relative; z-index: 5; }
.footer .inner { margin: 0 auto; text-align: center; }
.footer .text {  font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); margin-bottom: 0; }

.pagetop { position:fixed; bottom:0; right:0; width: 3rem; font-size:0.875rem; height:7.5rem; padding-top:0.75rem; border-radius: 1rem 0 0 0; text-decoration: none; writing-mode:vertical-rl; z-index:10000; color:#fff; display: flex; flex-flow: column nowrap; justify-content: center; }
.pagetop::before { content:"TOP"; text-shadow:1px 1px 0 rgba(0,0,0,0.8); }
.pagetop::after { content:""; position:absolute; top:1rem; left:1.5rem; bottom:0; margin-top:2rem; border-right:1px solid #fff; box-shadow:1px 0 0 rgba(0,0,0,0.8); }
.pagetop:hover { opacity: 0.7; }


/* DOWNLOAD LIST */
.exhib h3, .sponsor h3 { margin-bottom: 0.25rem; }
.exhib .dl-list, .sponsor .dl-list { margin-top: 0.5rem; }
.dl-list { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.dl-item { display: inline-flex; align-items: center; gap: 0.5rem; padding:0.75rem; border: 1px solid rgba(255,255,255,0.3); border-radius: 5px; transition: background 0.3s, border-color 0.3s; font-size: clamp(0.8125rem, 1.6vw, 1rem); line-height: 1.5; }
.dl-item:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.dl-icon { display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; letter-spacing:0; padding: 0.2rem 0.5rem; border-radius: 2rem; line-height: 1; }
.dl-icon:has(+ .dl-name) { background: #c39b; color: #fff; }
.dl-item[download] .dl-icon { background: #099b; }
.dl-name { color: rgba(255,255,255,0.9); }

.sightseeing-link { gap: 1rem; padding: 1rem; }
.sightseeing-link .tottori-icon { flex-shrink: 0; width: clamp(7rem, 12vw, 7rem); height: auto; opacity: 0.9; }
.sightseeing-link .large { font-size: clamp(1.25rem,2.4vw,1.5rem); font-weight: 500; }
.sightseeing-link .small { font-size: clamp(0.75rem,1.4vw,0.875rem); opacity: 0.85; }

.date-large { font-size: clamp(1.125rem,2.4vw,1.4rem); font-weight: 400; }
.date-xl { font-size: clamp(1.5rem,4vw,2.25rem); font-family: var(--font-mincho); letter-spacing: 0.05rem; margin-right: 0.25rem; }
.date-xl + .date-small { margin-right: 1rem; }
.date-small { font-size: 0.8rem; }

.fee-num { font-size: clamp(1.125rem,2rem,1.25rem); font-weight: 500; }

.tel { font-size: 1.25rem; font-weight: 500; color: inherit; text-decoration: none; pointer-events: none; }
.fax { font-size: 1.25rem; font-weight: 500; color: inherit; text-decoration: none; pointer-events: none; }

/*-- TABLE/ --*/
caption { text-align:left; margin-bottom:10px; }

table { border-collapse:collapse; width:100%; margin:0 0 2rem 0; }
table th, table td { padding:clamp(0.5rem, 1.6vw, 1rem); line-height:1.5; vertical-align:top; }

.table01 { border-bottom:1px dashed rgba(0, 38, 33, 0.1); }
.table01 th, .table01 td { border-top:1px dashed rgba(0,0,0,0.1); }
.table01 thead th { }
.table01 th {text-align:left; }
.table01 td { }

.table02 { border-bottom:1px solid rgba(255, 255, 255, 0.2); }
.table02 th, .table02 td { border-top:1px solid rgba(255, 255, 255, 0.2); }
.table02 thead th, .table02 thead td, .deco-tb thead th, .deco-tb thead td { background:rgba(10,22,40,0.5); }
.table02 th { text-align:left; background:rgba(255,255,255,0.05); vertical-align:top; /*font-weight:normal;*/ }
.table02 td { }
.table02 th.tr, .table02 td.tr { width:auto; text-align: right;}

.table03 { background:rgba(255,255,255,0.5); border-spacing: 0; border:1px solid rgba(0,0,0,0.1); }
.table03 th, .table03 td { border-right:1px dashed rgba(0,0,0,0.1); border-bottom:1px solid rgba(0,0,0,0.1); vertical-align: top; }
.table03 thead th { background:rgba(10,22,40,0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.table03 thead td { background:rgba(0,0,0,0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.table03 tbody tr:last-of-type th, .table03 tbody tr:last-of-type td { border-bottom: none; }
.table03 tbody th { text-align:left; border:1px solid #ddd; background:rgba(0,153,238,0.05); color:#025; }
.table03 tbody td { border:1px solid #ddd; letter-spacing:normal; }

.table03 th.vm, .table03 td.vm, .table03 tr.vm th, .table03 tr.vm td { vertical-align: middle; }



/* RESPONSIVE - Tablet */
@media (max-width: 960px) {
.hero_bg .left, .hero_bg .right { height:clamp(18rem,57vw,34rem); }

  /* Vehicle images */
.vehicles { height:25vw; }
.vehicles .heli { position: absolute; z-index: 1; width: clamp(13rem, 50vw, 30rem); bottom:auto; top: clamp(-8rem, -12vw, -4rem); left: 25%; transform: translateX(-25%); }
.vehicles .car { width: clamp(13rem, 50vw, 30rem); top:-1rem; right: 0; }

.news .list { min-height:inherit; }

 section h2 { display: flex; align-items: center; gap: 1rem; }
 section h2::after { content: ''; flex: 1; min-width: 3rem; height: 4px; -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0) 100%); mask-image: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0) 100%); background: linear-gradient(to bottom, #e87ea1 0%, #e87ea1 40%, transparent 40%, transparent 60%, #7ec8e8 60%, #7ec8e8 100%); }

.greeting .w75 { flex-flow: row wrap; }
.greeting .profile { width: 100% !important; gap:1.5rem; }
.greeting .photo { max-width: 8rem; }

}




/* RESPONSIVE - Mobile */
@media (max-width: 640px) {
.side-nav { display: none; }
.hamburger { display: flex; }
.anchor { height:6rem; margin-top:-6rem; }
.sticky { position:sticky; top:6rem; }

.hero_content { padding-top: clamp(10rem,40vw,20rem); }
.hero_bg .left, .hero_bg .right { height:clamp(18rem,65vw,34rem); }


 .hero_title .title { font-size: clamp(1.4rem, 7vw, 2rem); flex-direction: column; }
 .hero_title .title br { display: block; }
 .hero_title .edition .pre, .hero_title .edition .suf { font-size: clamp(0.8rem, 3.5vw, 1rem); }
 .hero_title .edition .num { font-size: clamp(1.2rem, 5vw, 1.6rem); }


 .hero_dates .month, .hero_dates .day { font-size: clamp(1.4rem, 8vw, 2.5rem); }
 .hero_dates .year { font-size: clamp(0.7rem, 3vw, 1rem); }
 .hero_dates .label { font-size: clamp(0.6875rem, 2.8vw, 0.85rem); white-space: nowrap; }

 .tel { pointer-events: auto; color: var(--white); text-decoration: underline; }

}

@media (max-width: 480px) {
.hero_content { padding-top: clamp(9rem,20vw,20rem); }
.hero_content .left { margin-left: -0.5rem; }
.hero_content .hero_theme { margin-right: -0.5rem; }
.hero_dates .item:nth-child(1) .label { letter-spacing: -0.05rem; }

 .hero_dates .numbers { flex-wrap: wrap; }
 .hero_dates .year { width: 100%; }
 .hero_dates .year + .dot { display: none; }
}

