/*
Theme Name: OBAKE
Theme URI: https://studio-obake.com/
Author: studio OBAKE
Description: Studio OBAKE official WordPress theme.
Version: 2.5.1
Text Domain: obake
*/

:root{
	--navy:#394b65;
	--ink:#383838;
	--cream:#fffaf4;
	--line:#ddd;
	--header-h:88px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
	margin:0;
	color:var(--ink);
	background:#fff;
	font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","Hiragino Kaku Gothic ProN","Yu Gothic",YuGothic,Arial,sans-serif;
	font-weight:400;
	letter-spacing:.08em;
}
body.has-fixed-player{padding-bottom:92px}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}

/* Header: TOPでは最初は透明、スクロール後に固定ヘッダー化 */
.site-header{
	position:absolute;
	top:0;left:0;right:0;
	z-index:1000;
	color:#fff;
	background:transparent;
	transition:background-color .25s ease,box-shadow .25s ease;
}
.site-header.is-fixed{
	position:fixed;
	background:var(--navy);
	box-shadow:0 2px 12px rgba(0,0,0,.08);
}
.header-inner{
	width:min(1100px,92%);
	min-height:var(--header-h);
	margin:auto;
	display:flex;
	align-items:center;
	justify-content:space-between;
	position:relative;
}
.site-logo{
	display:block;
	width:min(170px,42vw);
	opacity:0;
	visibility:hidden;
	transform:translateY(-4px);
	transition:opacity .22s ease,transform .22s ease,visibility .22s ease;
}
.site-header.is-fixed .site-logo{
	opacity:1;
	visibility:visible;
	transform:none;
}
.site-logo img{width:100%;max-height:48px;object-fit:contain;object-position:left center}
.menu-toggle{
	width:32px;height:30px;border:0;background:none;padding:5px;
	display:flex;flex-direction:column;justify-content:space-between;cursor:pointer;
}
.menu-toggle span{height:2px;width:100%;background:#fff;border-radius:2px}
.site-nav{
	position:absolute;right:0;top:var(--header-h);
	display:none;flex-direction:column;
	background:var(--navy);min-width:210px;padding:14px 22px;
	box-shadow:0 8px 20px rgba(0,0,0,.12)
}
.site-nav.is-open{display:flex}
.site-nav a{padding:12px 0;font-size:13px;letter-spacing:.18em}

/* Hero */
.hero{
	min-height:530px;background:var(--navy);color:#fff;
	display:flex;flex-direction:column;align-items:center;justify-content:center;
	text-align:center;padding:105px 20px 65px;
}
.hero-image{width:min(230px,55vw);margin-bottom:18px}
.hero-image img{width:100%;aspect-ratio:1/1;object-fit:contain}
.hero-brand{width:min(330px,72vw);margin:2px auto 10px}
.hero-brand img{width:100%;max-height:82px;object-fit:contain}
.hero>p{font-size:8px;margin:0 0 24px;letter-spacing:.08em}
.hero-links{display:flex;gap:10px;align-items:center}
.hero-links a{
	width:34px;height:34px;border-radius:50%;
	display:grid;place-items:center;background:#fff;color:var(--navy);
	transition:transform .18s ease,opacity .18s ease;
}
.hero-links a:hover{transform:translateY(-2px);opacity:.92}
.hero-links a svg{width:17px;height:17px;display:block}
.hero-links .youtube-link{background:#ff0000;color:#fff}
.hero-links .x-link{background:#000;color:#fff}
.hero-links .contact-link{background:#fff;color:var(--navy)}

.intro{text-align:center;padding:95px 20px 65px}
.intro-image{width:150px;margin:0 auto 20px}
.intro p{font-size:13px;line-height:2.25;letter-spacing:.04em}
.section{max-width:760px;margin:auto;padding:50px 20px 100px}
.section h2{
	text-align:center;font-size:25px;font-weight:400;
	letter-spacing:.32em;margin:0 0 70px;
}
.work-item{text-align:center;margin-bottom:110px}
.work-item img{width:min(410px,80vw);height:250px;object-fit:contain;margin:0 auto 16px}
.work-item h3{font-size:18px;font-weight:400;letter-spacing:.13em;margin:0 0 7px}
.work-item p{font-size:11px;margin:0 0 13px;letter-spacing:.05em}
.button{display:inline-block;background:#444;color:#fff;padding:7px 18px;font-size:8px;letter-spacing:.18em}
.contact{padding-top:35px;padding-bottom:100px}
.contact-image{width:180px;margin:0 auto 35px}
.contact-form{width:min(430px,90%);margin:auto}
.contact-form label{display:block;margin-bottom:14px;text-align:left;width:100%}
.contact-form input,.contact-form textarea{
	width:100%;border:1px solid #999;background:var(--cream);
	padding:11px;font:inherit;font-size:12px;letter-spacing:.05em
}
.contact-form textarea{height:120px;resize:vertical}
.contact-form button{display:block;margin:18px auto 0;border:0;background:#444;color:#fff;padding:8px 22px;font-size:8px;letter-spacing:.18em}
.contact-form button:disabled{opacity:1;cursor:default}
.form-note{text-align:center;font-size:9px;letter-spacing:0;color:#888}

/* 固定ページテンプレート */
.page-main{padding-top:var(--header-h);min-height:70vh}
.page-shell{width:min(960px,90%);margin:0 auto;padding:70px 0 110px}
.page-title{text-align:center;font-size:25px;font-weight:400;letter-spacing:.26em;margin:0 0 60px}
.page-content{font-size:14px;line-height:2;letter-spacing:.04em}
.page-content>*:first-child{margin-top:0}
.page-content img{height:auto}

/* Footer & fixed MP3 player */
.site-footer{text-align:center;padding:55px 20px 30px}
.site-footer p{font-size:8px;margin:18px 0 0;letter-spacing:.03em}
.fixed-player-wrap{
	position:fixed;
	left:50%;
	bottom:50px;
	transform:translateX(-50%);
	z-index:950;
	width:min(520px,90%);
}
.music-player{display:block;width:100%;height:32px}
.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Contact Form 7 */
.contact-form .wpcf7-form p{margin:0;text-align:left}
.contact-form .wpcf7-form-control-wrap{display:block;margin-bottom:14px}
.contact-form .wpcf7 input[type="text"],
.contact-form .wpcf7 input[type="email"],
.contact-form .wpcf7 textarea{width:100%;border:1px solid #999;background:var(--cream);padding:11px;font:inherit;font-size:12px;letter-spacing:.05em}
.contact-form .wpcf7 textarea{height:120px;resize:vertical}
.contact-form .wpcf7 input[type="submit"]{display:block;margin:18px auto 0;border:0;background:#444;color:#fff;padding:8px 22px;font-size:8px;letter-spacing:.18em;cursor:pointer}
.contact-form .wpcf7-not-valid-tip,.contact-form .wpcf7-response-output{font-size:9px;letter-spacing:0}

/* reCAPTCHA: badgeを非表示にする場合はGoogle指定の注記をフォーム付近に表示 */
.grecaptcha-badge{visibility:hidden!important}
.contact-form .wpcf7-form .recaptcha-notice{
	display:block;
	margin:10px 0 0;
	text-align:center;
	font-size:8px;
	line-height:1.7;
	letter-spacing:0;
	color:#888;
}
.contact-form .wpcf7-form .recaptcha-notice a{text-decoration:underline}

@media (max-width:799px){
	:root{--header-h:76px}
	.hero{min-height:500px;padding-top:92px}
	.fixed-player-wrap{bottom:50px}
	.page-shell{padding-top:55px}
}

/* OBAKE RADIO / MUSIC page */
.music-page-shell{width:min(900px,90%);margin:0 auto;padding:70px 0 115px}
.music-page-title{margin-bottom:55px}
.obake-radio{text-align:center;margin:0 auto 105px}
.radio-visual{width:min(760px,100%);margin:0 auto 18px;background:var(--navy);overflow:hidden}
.radio-visual img{width:100%;height:auto;max-height:500px;object-fit:cover;margin:auto}
.obake-radio h2,.discography h2{font-size:25px;font-weight:400;letter-spacing:.12em;margin:0 0 14px}
.radio-description{font-size:12px;line-height:1.8;letter-spacing:.05em;margin:0 0 28px}
.radio-player-wrap{width:min(520px,86%);margin:0 auto}
.obake-radio .music-player{display:block;width:100%;height:32px}
.radio-empty{font-size:11px;color:#888}
.discography{padding-top:0}
.discography h2{text-align:center;letter-spacing:.28em;margin-bottom:38px}
.page-music .page-content{width:min(760px,100%);margin:0 auto}

/* WORKS submenu */
.nav-item-has-children{position:relative}
.nav-parent-link{display:block}
.sub-menu{display:none;position:absolute;right:100%;top:0;min-width:180px;background:var(--navy);padding:8px 18px;box-shadow:0 8px 20px rgba(0,0,0,.12)}
.nav-item-has-children:hover>.sub-menu,.nav-item-has-children:focus-within>.sub-menu{display:flex;flex-direction:column}
.sub-menu a{font-size:11px;padding:9px 0;white-space:nowrap}

/* v2.2: fixed player removed from all pages */
body.has-fixed-player{padding-bottom:0}
.fixed-player-wrap{display:none}

@media (max-width:799px){
	.music-page-shell{padding-top:55px}
	.obake-radio{margin-bottom:80px}
	.radio-visual{width:100%}
	.obake-radio h2,.discography h2{font-size:22px}
	.radio-description{font-size:11px}
	.sub-menu{position:static;display:flex;flex-direction:column;min-width:0;background:transparent;box-shadow:none;padding:0 0 4px 16px}
	.sub-menu a{font-size:10px;padding:7px 0}
}


/* GHOSTS / 怖くないおばけ図鑑 */
.ghosts-page-shell{width:min(1040px,90%);margin:0 auto;padding:70px 0 115px}
.ghosts-intro{width:min(760px,100%);margin:-25px auto 55px;text-align:center}
.ghost-archive{
	display:grid;
	grid-template-columns:repeat(3,minmax(0,1fr));
	gap:56px 34px;
	align-items:start;
}
.ghost-card{text-align:center;margin:0}
.ghost-image-button{
	display:block;width:100%;margin:0;padding:0;border:0;background:transparent;
	cursor:zoom-in;
}
.ghost-card-image{
	display:block;width:100%;height:auto;object-fit:contain;margin:0 auto;
	transition:opacity .18s ease,transform .18s ease;
}
.ghost-image-button:hover .ghost-card-image{opacity:.92;transform:translateY(-2px)}
.ghost-card-title{font-size:15px;font-weight:400;line-height:1.7;letter-spacing:.08em;margin:15px 0 0}
.ghost-empty{text-align:center;font-size:12px;color:#888}
body.ghost-lightbox-open{overflow:hidden}
.ghost-lightbox[hidden]{display:none}
.ghost-lightbox{position:fixed;inset:0;z-index:3000;display:grid;place-items:center;padding:28px}
.ghost-lightbox-backdrop{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:rgba(20,25,32,.82);cursor:zoom-out}
.ghost-lightbox-dialog{position:relative;z-index:1;max-width:min(900px,92vw);max-height:92vh;display:flex;flex-direction:column;align-items:center}
.ghost-lightbox-image{display:block;max-width:100%;max-height:82vh;width:auto;height:auto;object-fit:contain;box-shadow:0 8px 32px rgba(0,0,0,.2)}
.ghost-lightbox-title{margin:13px 0 0;color:#fff;font-size:13px;letter-spacing:.08em;text-align:center}
.ghost-lightbox-close{position:absolute;right:-42px;top:-8px;width:34px;height:34px;border:0;background:transparent;color:#fff;font-size:32px;line-height:1;cursor:pointer;font-weight:200}

@media (max-width:799px){
	.ghosts-page-shell{padding-top:55px}
	.ghost-archive{grid-template-columns:repeat(2,minmax(0,1fr));gap:38px 18px}
	.ghost-card-title{font-size:13px;margin-top:11px}
	.ghost-lightbox{padding:18px}
	.ghost-lightbox-dialog{max-width:94vw}
	.ghost-lightbox-image{max-height:80vh}
	.ghost-lightbox-close{right:0;top:-42px}
}
@media (max-width:480px){
	.ghost-archive{grid-template-columns:1fr;gap:52px}
	.ghost-card{width:min(420px,100%);margin:0 auto}
}

/* v2.4.0: TOP CONTACT spacing */
.contact h2{margin-bottom:35px}

/* ANIMATION: random single-player archive */
.animation-page-shell{width:min(1040px,92%);margin:0 auto;padding:70px 0 115px}
.animation-intro{width:min(760px,100%);margin:-25px auto 55px;text-align:center}
.animation-random{width:min(820px,100%);margin:0 auto;text-align:center}
.animation-current-title{min-height:58px;margin:0 auto 24px;text-align:center}
.animation-title-ja{font-size:20px;line-height:1.5;letter-spacing:.08em;color:#333}
.animation-title-en{margin-top:3px;font-size:12px;line-height:1.5;letter-spacing:.12em;color:#777}
.animation-title-en[hidden]{display:none}
.animation-random-player-wrap{width:100%;background:#111;line-height:0}
.animation-random-player{display:block;width:100%;aspect-ratio:1480/1080;background:#111;object-fit:contain}
.animation-next-button{appearance:none;margin:25px auto 0;padding:11px 28px;border:1px solid #333;background:#fff;color:#333;font:inherit;font-size:12px;letter-spacing:.08em;cursor:pointer;transition:background .2s ease,color .2s ease}
.animation-next-button:hover,.animation-next-button:focus-visible{background:#333;color:#fff}
.animation-next-button.is-ready{font-weight:600}
.animation-empty{text-align:center;font-size:12px;color:#888}

/* CHARACTERS archive */
.characters-page-shell{width:min(820px,90%);margin:0 auto;padding:70px 0 115px}
.characters-intro{width:min(720px,100%);margin:-25px auto 55px;text-align:center}
.character-archive{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:105px 70px;align-items:end}
.character-card{text-align:center;min-width:0}
.character-image-wrap{height:230px;display:flex;align-items:flex-end;justify-content:center;margin:0 auto 18px}
.character-card-image{display:block;max-width:100%;max-height:230px;width:auto;height:auto;object-fit:contain;margin:auto auto 0}
.character-name-en{font-size:18px;font-weight:400;line-height:1.2;letter-spacing:.02em;margin:0 0 4px}
.character-name-ja{font-size:12px;line-height:1.4;letter-spacing:.06em;margin:0}
.character-empty{text-align:center;font-size:12px;color:#888}

@media (max-width:799px){
	.animation-page-shell,.characters-page-shell{padding-top:55px}
	.character-archive{grid-template-columns:repeat(2,minmax(0,1fr));gap:70px 34px}
	.character-image-wrap{height:190px}
	.character-card-image{max-height:190px}
}
@media (max-width:480px){
	.character-archive{grid-template-columns:repeat(2,minmax(0,1fr));gap:55px 20px}
	.character-image-wrap{height:150px;margin-bottom:13px}
	.character-card-image{max-height:150px}
	.character-name-en{font-size:15px}
	.character-name-ja{font-size:10px}
}
