/*
Theme Name: EQLIO
Theme URI: https://eqlio.studio/
Author: EQLIO Studio
Author URI: https://eqlio.studio/
Description: 映像・モーション・グラフィック制作スタジオ「EQLIO」のオリジナルテーマ。青→紫→ピンクのブランドグラデーションを基調にした、余白広め・静謐なミニマルランディングページ。スクロール連動の演出付き。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eqlio
*/

/* ===== Reset / Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #FBFAFC;
  color: #26222E;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: rgba(160,120,210,0.22); }

/* ===== Keyframes ===== */
@keyframes orbDrift { 0%,100%{transform:translate(0,0) scale(1);} 33%{transform:translate(5%,-6%) scale(1.1);} 66%{transform:translate(-5%,5%) scale(0.94);} }
@keyframes sparkle  { 0%,100%{opacity:.65;transform:scale(1) rotate(0deg);} 50%{opacity:1;transform:scale(1.3) rotate(25deg);} }
@keyframes scrollDot{ 0%{transform:translateY(0);opacity:0;} 25%{opacity:1;} 100%{transform:translateY(36px);opacity:0;} }
@keyframes floatY   { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-12px);} }
@keyframes revealUp { from{opacity:0;transform:translateY(40px);} to{opacity:1;transform:translateY(0);} }

/* ===== Interaction states (base styling stays inline for portability) ===== */
.eq-nav-link:hover { color: #26222E !important; }
.eq-nav-cta:hover  { transform: translateY(-2px) !important; box-shadow: 0 10px 28px rgba(160,120,210,.42) !important; }
.eq-btn-primary:hover { transform: translateY(-3px) !important; box-shadow: 0 16px 40px rgba(160,120,210,.46) !important; }
.eq-btn-ghost:hover   { gap: 15px !important; color: #8A6FA8 !important; }
.eq-card { transition: transform .5s cubic-bezier(.16,.74,.3,1), box-shadow .5s ease, border-color .5s ease; }
.eq-card:hover { transform: translateY(-8px) !important; box-shadow: 0 24px 50px rgba(160,120,210,.16) !important; border-color: rgba(168,120,201,.3) !important; }
.eq-btn-outline:hover { border-color: #A878C9 !important; color: #8A6FA8 !important; }
.eq-input:focus { border-bottom-color: #A878C9 !important; }
.eq-input::placeholder { color: #BCB6C4; opacity: 1; }
.eq-foot-link:hover { color: #8A6FA8 !important; }
.eq-x:hover { color: #fff !important; background: #26222E !important; border-color: #26222E !important; }

/* ===== Service card slideshow ===== */
.eq-slide {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; background-size: cover; background-position: center; background-repeat: no-repeat;
	opacity: 0; transition: opacity 1.2s ease; z-index: 1;
}
.eq-slide.is-active { opacity: 1; }
.eq-slide-scrim {
	position: absolute; inset: 0; z-index: 2; pointer-events: none;
	background: linear-gradient(0deg, rgba(14,11,20,.55), rgba(14,11,20,0) 58%);
}

/* ===== FAQ accordion ===== */
details.eq-faq summary { list-style: none; cursor: pointer; outline: none; }
details.eq-faq summary::-webkit-details-marker { display: none; }
details.eq-faq[open] .eq-faq-icon { transform: rotate(45deg); }

/* ===== Admin bar offset for the fixed nav ===== */
@media screen and (min-width: 783px) { body.admin-bar [data-nav] { top: 32px; } }
@media screen and (max-width: 782px) { body.admin-bar [data-nav] { top: 46px; } }

/* ===== Mobile layout ===== */
@media (max-width: 680px) {
	nav[data-nav] { padding-left: 18px !important; padding-right: 12px !important; }
	nav[data-nav] img { height: 40px !important; }
	[data-navtoggle] { display: flex !important; }
	nav[data-nav] [data-navlinks] {
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: rgba(251,250,252,0.97);
		backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
		border-bottom: 1px solid rgba(38,34,46,.08);
		padding: 6px 24px 22px;
		max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
		transition: max-height .4s ease, opacity .3s ease;
	}
	nav[data-nav][data-open] [data-navlinks] { max-height: 70vh; opacity: 1; pointer-events: auto; }
	nav[data-nav] [data-navlinks] a { padding: 15px 2px !important; font-size: 15px !important; }
	nav[data-nav] [data-navlinks] a.eq-nav-cta { margin-top: 14px; text-align: center; color: #fff !important; }
}

/* ===== Contact Form 7 styling (matches the design) ===== */
.eq-cf7 .wpcf7-form p { margin: 0 0 26px; }
.eq-cf7 label { display: block; font-size: 12px; letter-spacing: .14em; color: #8A8494; line-height: 1.8; }
.eq-cf7 .wpcf7-form-control-wrap { display: block; width: 100%; }
.eq-cf7 input[type="text"],
.eq-cf7 input[type="email"],
.eq-cf7 input[type="tel"],
.eq-cf7 input[type="url"],
.eq-cf7 input[type="number"],
.eq-cf7 input[type="date"],
.eq-cf7 select,
.eq-cf7 textarea {
	display: block; width: 100%; box-sizing: border-box;
	border: none; border-bottom: 1px solid rgba(38,34,46,.18);
	border-radius: 0; -webkit-appearance: none; appearance: none;
	background: transparent; padding: 12px 2px; font-size: 16px; font-family: inherit;
	color: #26222E; outline: none; transition: border-color .3s; margin-top: 6px;
}
.eq-cf7 input:focus, .eq-cf7 select:focus, .eq-cf7 textarea:focus { border-bottom-color: #A878C9; }
.eq-cf7 textarea { resize: vertical; min-height: 120px; }
.eq-cf7 .wpcf7-submit {
	display: block; width: auto; margin: 20px auto 0; cursor: pointer; border: none; color: #fff;
	font-size: 15px; letter-spacing: .06em; padding: 17px 52px; border-radius: 100px;
	background: linear-gradient(100deg,#3076E3,#A878C9,#F2A4CB);
	box-shadow: 0 10px 30px rgba(160,120,210,.32); transition: transform .35s, box-shadow .35s;
	-webkit-appearance: none; appearance: none;
}
.eq-cf7 .wpcf7-submit:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(160,120,210,.46); }
.eq-cf7 .wpcf7-spinner { margin: 12px auto 0; display: block; }
.eq-cf7 .wpcf7-response-output { margin: 20px 0 0 !important; padding: 14px 18px !important; border-radius: 8px; font-size: 13px; line-height: 1.7; }
.eq-cf7 .wpcf7-not-valid-tip { font-size: 12px; color: #d6557f; margin-top: 6px; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
