/*
	SHINE custom theme — overrides Massively (main.css)
	Dark / glass / cyan→violet gradient
*/

:root {
	--bg: #070b14;
	--surface: rgba(13, 19, 35, 0.78);
	--surface-solid: #0d1323;
	--surface-2: rgba(255, 255, 255, 0.035);
	--border: rgba(148, 163, 184, 0.14);
	--border-strong: rgba(148, 163, 184, 0.28);
	--text: #c3cddc;
	--heading: #f3f6fb;
	--muted: #8a96a8;
	--accent: #22d3ee;
	--accent-2: #818cf8;
	--accent-3: #c084fc;
	--grad: linear-gradient(120deg, #22d3ee 0%, #818cf8 55%, #c084fc 100%);
	--glow: 0 0 0 1px rgba(129, 140, 248, 0.35), 0 10px 40px -10px rgba(34, 211, 238, 0.45);
	--font-sans: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
	--font-display: "Montserrat", "Noto Sans JP", sans-serif;
}

/* ---------- Base ---------- */

html { scroll-behavior: smooth; }

body {
	background: var(--bg);
}

body, input, select, textarea {
	color: var(--text);
	font-family: var(--font-sans);
	font-weight: 400;
	letter-spacing: 0.02em;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--heading);
	font-family: var(--font-display);
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: none;
}

p { line-height: 2; }

a {
	color: var(--accent);
	border-bottom: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover { color: var(--accent-3) !important; }

strong, b { color: var(--heading); }

hr { border-bottom: 1px solid var(--border); }

::selection { background: rgba(129, 140, 248, 0.45); color: #fff; }

/* ---------- Background ---------- */

#wrapper > .bg {
	background-color: var(--bg);
	background-image:
		radial-gradient(60rem 40rem at 15% 10%, rgba(34, 211, 238, 0.22), transparent 60%),
		radial-gradient(50rem 40rem at 90% 30%, rgba(192, 132, 252, 0.22), transparent 60%),
		linear-gradient(180deg, rgba(7, 11, 20, 0.45) 0%, rgba(7, 11, 20, 0.85) 55%, var(--bg) 100%),
		url("../../images/back003.jpg");
	background-size: auto, auto, auto, cover;
	background-position: center, center, center, top center;
	background-repeat: no-repeat;
}

#wrapper.fade-in:before { background: var(--bg); }

/* subtle tech grid */
#wrapper:after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: -1;
	background-image:
		linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
	mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

/* ---------- Intro (hero) ---------- */

#intro h2 {
	font-family: var(--font-display);
	font-size: clamp(2.5rem, 7vw, 5.5rem);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.01em;
	text-transform: none;
	background: var(--grad);
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent !important;
	animation: shine-gradient 8s ease-in-out infinite alternate;
	filter: drop-shadow(0 8px 40px rgba(99, 102, 241, 0.35));
}

#intro p {
	font-size: 1.05rem;
	letter-spacing: 0.25em;
	color: rgba(243, 246, 251, 0.85);
	font-style: normal;
}

#intro .button.icon.solo {
	box-shadow: inset 0 0 0 1px var(--border-strong);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	animation: shine-bounce 2.4s ease-in-out infinite;
}
#intro .button.icon.solo:hover {
	box-shadow: var(--glow);
	color: var(--accent) !important;
}

@keyframes shine-gradient {
	from { background-position: 0% 50%; }
	to   { background-position: 100% 50%; }
}
@keyframes shine-bounce {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(8px); }
}

/* ---------- Header / logo ---------- */

#header .logo {
	font-family: var(--font-display);
	font-weight: 900;
	letter-spacing: 0.35em;
	padding: 1rem 1.6rem 1rem 2rem;
	border-width: 2px !important;
	border-color: rgba(255, 255, 255, 0.8);
	background: rgba(7, 11, 20, 0.35);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
#header .logo:hover {
	border-color: var(--accent) !important;
	color: var(--accent) !important;
	box-shadow: var(--glow);
}

/* ---------- Nav ---------- */

#nav {
	background: rgba(13, 19, 35, 0.55);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid var(--border);
	border-bottom: none;
	border-radius: 14px 14px 0 0;
}

#nav ul.links {
	font-family: var(--font-sans);
	font-weight: 600;
	letter-spacing: 0.12em;
}
#nav ul.links li a { font-size: 0.85rem; position: relative; }
#nav ul.links li a:hover { background-color: rgba(255, 255, 255, 0.05); }

#nav ul.links li.active { background: transparent; }
#nav ul.links li.active a { color: var(--heading); }
#nav ul.links li.active a:after,
#nav ul.links li a:hover:after {
	content: "";
	position: absolute;
	left: 1.5rem;
	right: 1.5rem;
	bottom: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--grad);
}
#nav ul.links li.active a:hover { color: var(--accent) !important; }

#nav ul.icons li a.icon:hover:before { color: var(--accent); }

/* Mobile nav */
#navPanelToggle,
#navPanelToggle.alt {
	background: rgba(13, 19, 35, 0.8);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: var(--heading);
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	font-family: var(--font-sans);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
#navPanelToggle.alt:hover { background: var(--surface-solid); }

#navPanel {
	background: var(--surface-solid);
	color: var(--text);
	border-left: 1px solid var(--border);
}
#navPanel .links li { border-top: 1px solid var(--border); }
#navPanel .links li a { color: var(--heading); font-family: var(--font-sans); font-weight: 600; }
#navPanel .close:hover { color: var(--heading); }

/* ---------- Main panel ---------- */

#main {
	background: var(--surface);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border: 1px solid var(--border);
	border-radius: 0 0 14px 14px;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

#main > * { border-top: 1px solid var(--border); }

#main > .post header.major h1,
#main > .post header.major h2 {
	font-family: var(--font-display);
	font-weight: 900;
	text-transform: none;
	letter-spacing: 0.04em;
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
#main > .post header.major h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
#main > .post header.major h3 { font-size: 1.75rem; line-height: 1.5; }
#main > .post header.major h3 a { color: var(--heading); }

#main > .post h2 {
	font-size: 0.85rem;
	letter-spacing: 0.4em;
	color: var(--accent);
	margin-bottom: 2.5rem;
}
#main > .post h2:before {
	content: "";
	display: inline-block;
	width: 2.5rem;
	height: 2px;
	margin-right: 1rem;
	vertical-align: middle;
	background: var(--grad);
}

/* Images */
.image img {
	border-radius: 10px;
	transition: transform 0.6s cubic-bezier(.2, .7, .2, 1), filter 0.6s ease;
}
.image.main, .image.fit { overflow: hidden; border-radius: 10px; }
.image.main img { filter: saturate(1.05) contrast(1.05); }
.image:before { display: none; }

/* ---------- Service cards ---------- */

#main > .posts {
	gap: 1.25rem;
	padding: 3rem;
}
#main > .posts > * {
	width: calc(50% - 0.625rem);
}
#main > .posts > article,
#main > .posts > article:nth-child(n) {
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface-2);
	padding: 2.25rem;
	text-align: left;
	position: relative;
	overflow: hidden;
	transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}
#main > .posts > article:before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 2px;
	background: var(--grad);
	opacity: 0;
	transition: opacity 0.35s ease;
}
#main > .posts > article:hover {
	transform: translateY(-6px);
	border-color: rgba(129, 140, 248, 0.45);
	background: rgba(255, 255, 255, 0.055);
	box-shadow: 0 24px 50px -20px rgba(34, 211, 238, 0.35);
}
#main > .posts > article:hover:before { opacity: 1; }
#main > .posts > article:hover .image img { transform: scale(1.06); }

#main > .posts > article header h2,
#main > .posts > article header h3 {
	font-size: 1.15rem;
	line-height: 1.4;
	letter-spacing: 0.06em;
	margin-bottom: 1.25rem;
}
#main > .posts > article header a { color: var(--heading); }
#main > .posts > article .image.fit img { aspect-ratio: 16 / 9; object-fit: cover; }
#main > .posts > article p { font-size: 0.9rem; color: var(--text); }
#main > .posts > article .actions.special { justify-content: flex-start; }

@media screen and (max-width: 736px) {
	#main > .posts { padding: 1.25rem; }
	#main > .posts > * { width: 100%; }
	#main > .posts > article,
	#main > .posts > article:nth-child(n) { padding: 1.5rem; }
}

/* ---------- Buttons ---------- */

input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
	font-family: var(--font-sans);
	font-weight: 700;
	letter-spacing: 0.15em;
	border-radius: 999px;
	color: var(--heading) !important;
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--border-strong);
	transition: box-shadow 0.25s ease, background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover,
.button:hover {
	background: rgba(129, 140, 248, 0.12);
	box-shadow: var(--glow);
	color: #fff !important;
	transform: translateY(-1px);
}

input[type="submit"],
.button.primary,
.button.large {
	background: var(--grad);
	background-size: 160% auto;
	box-shadow: 0 10px 30px -10px rgba(129, 140, 248, 0.7);
	color: #0b1020 !important;
}
#footer input[type="submit"] { color: #0b1020 !important; }

input[type="submit"]:hover,
.button.primary:hover,
.button.large:hover {
	background: var(--grad);
	background-position: 100% 50%;
	color: #0b1020 !important;
}

/* ---------- Forms ---------- */

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
select,
textarea {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border-strong);
	border-radius: 10px;
	color: var(--heading);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
	border-color: var(--accent-2);
	box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25);
}

label {
	color: var(--muted);
	font-family: var(--font-sans);
	font-weight: 600;
	letter-spacing: 0.15em;
}

/* ---------- Lists (実績) ---------- */

#main > .post ul:not(.actions):not(.icons) {
	list-style: none;
	padding-left: 0;
	margin-bottom: 3rem;
}
#main > .post ul:not(.actions):not(.icons) li {
	position: relative;
	padding: 0.7rem 0 0.7rem 1.6rem;
	border-bottom: 1px dashed var(--border);
	line-height: 1.6;
}
#main > .post ul:not(.actions):not(.icons) li:before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.3rem;
	width: 7px;
	height: 7px;
	border-radius: 2px;
	background: var(--grad);
	transform: rotate(45deg);
}
#main > .post .row h3 {
	font-size: 1.1rem;
	letter-spacing: 0.08em;
	padding-left: 0.9rem;
	border-left: 3px solid var(--accent);
	margin-bottom: 1rem;
	scroll-margin-top: 2rem;
}
#main > .post .row h3:target { color: var(--accent); }

/* ---------- Timeline (沿革) ---------- */

#main > .post > span.date {
	display: block;
	position: relative;
	margin: 0;
	padding: 0 0 0.75rem 2.25rem;
	border-left: 2px solid var(--border-strong);
	color: var(--heading);
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.08em;
	background: none;
	text-transform: none;
}
#main > .post > span.date:before {
	content: "";
	position: absolute;
	left: -8px;
	top: 0.2rem;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--grad);
	box-shadow: 0 0 0 4px var(--surface-solid), 0 0 18px rgba(34, 211, 238, 0.6);
}
#main > .post > span.date + p {
	margin: 0;
	padding: 0 0 2.5rem 2.25rem;
	border-left: 2px solid var(--border-strong);
	color: var(--text);
}

/* ---------- Table (会社概要) ---------- */

.table-wrapper {
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
}
table { margin-bottom: 0; }
table tbody tr,
table tbody tr:nth-child(2n + 1) {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--border);
}
table tbody tr:last-child { border-bottom: 0; }
table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
table td { padding: 1.25rem 1.5rem; line-height: 1.9; vertical-align: top; }
table td:first-child {
	width: 28%;
	color: var(--muted);
	font-weight: 600;
	letter-spacing: 0.12em;
	background: rgba(255, 255, 255, 0.025);
	white-space: nowrap;
}

@media screen and (max-width: 736px) {
	table td { display: block; width: 100% !important; padding: 0.75rem 1rem; }
	table td:first-child { padding-bottom: 0.25rem; background: none; }
}

/* ---------- Footer ---------- */

#footer {
	background: var(--surface-solid);
	color: var(--muted);
	border: 1px solid var(--border);
	border-radius: 14px;
	margin-top: 2rem;
	overflow: hidden;
}
#footer > section { border-color: var(--border) !important; }
#footer h3 {
	color: var(--heading);
	font-family: var(--font-sans);
	font-weight: 700;
	letter-spacing: 0.15em;
	font-size: 0.8rem;
}
#footer a { color: var(--text); }
#footer a:hover { color: var(--accent) !important; }
#footer .split.contact > section { border-color: var(--border) !important; }
#footer ul.icons.alt li .icon:before { box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text); }
#footer ul.icons.alt li a.icon:hover:before { box-shadow: var(--glow); color: var(--accent); }

#copyright {
	color: var(--muted);
	font-family: var(--font-sans);
	font-weight: 500;
	letter-spacing: 0.2em;
}
#copyright a { color: var(--heading); }
