/*
Theme Name: StartHero（スタヒロ）
Description: スタヒロ専用テーマ（合同会社ハピオブのブランドデザイン）。機能は StartHero Core プラグインが提供します。
Version: 0.4.1
Requires at least: 6.5
Requires PHP: 8.1
Author: 合同会社ハピオブ
Text Domain: starthero
*/

:root {
	--ink: #2a2733;
	--purple: #3c276d;
	--magenta: #e40069;
	--teal: #007a96;
	--yellow: #fccf00;
	--soft: #f4f2fa;
	--line: #e4e1ec;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--soft); color: var(--ink); font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; font-size: 16px; line-height: 1.8; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--teal); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); box-shadow: 0 1px 0 var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 10px 20px; min-height: 68px; }
.site-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--purple); text-decoration: none; }
.site-logo__mark { width: 34px; height: 34px; display: block; }
.site-logo__text { font-size: 1.45rem; font-weight: 700; letter-spacing: .12em; }
.custom-logo { max-height: 44px; width: auto; display: block; }
.site-nav { display: flex; gap: 24px; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; padding: 6px 0; background: linear-gradient(var(--magenta), var(--magenta)) 0 100% / 0 2px no-repeat; transition: background-size .25s; }
.site-nav a:hover { background-size: 100% 2px; }
.site-actions { display: flex; align-items: center; gap: 12px; }
.site-btn { display: inline-flex; align-items: center; min-height: 40px; background: var(--purple); color: #fff; border-radius: 999px; padding: 0 20px; font-weight: 700; font-size: .88rem; text-decoration: none; white-space: nowrap; box-shadow: 0 6px 18px rgba(60, 39, 109, .18); }
.site-btn:hover { background: #2b1b52; color: #fff; }
.site-menu { position: relative; }
.site-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.site-menu summary:hover { background: var(--soft); }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu__bars { display: grid; gap: 5px; width: 24px; }
.site-menu__bars i { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.site-menu[open] .site-menu__bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-menu[open] .site-menu__bars i:nth-child(2) { opacity: 0; }
.site-menu[open] .site-menu__bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-menu__panel { position: absolute; right: 0; top: calc(100% + 12px); background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(60, 39, 109, .16); min-width: 240px; padding: 10px 0; border-top: 5px solid var(--purple); animation: menu-in .2s ease-out; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
.site-menu__panel ul { list-style: none; margin: 0; padding: 0; }
.site-menu__panel a { display: block; padding: 11px 22px; color: var(--ink); text-decoration: none; font-weight: 500; }
.site-menu__panel a:hover { background: var(--soft); color: var(--purple); }

/* generic pages */
.site-main-page { max-width: 880px; margin: 0 auto; padding: 40px 16px 100px; }
.site-main-page h1.page-title { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin: 0 0 28px; color: var(--purple); letter-spacing: .06em; padding-bottom: 14px; border-bottom: 5px solid; border-image: linear-gradient(90deg, var(--magenta) 0 25%, var(--yellow) 25% 50%, var(--teal) 50% 75%, var(--purple) 75%) 1; }
.page-content { line-height: 2; }
.page-content > p { max-width: 44em; }

/* hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #fff 0%, var(--soft) 70%); }
.hero__inner { max-width: 1160px; margin: 0 auto; padding: 72px 20px 88px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.hero__en { font-family: "Jost", sans-serif; font-weight: 500; letter-spacing: .3em; color: var(--teal); margin: 0 0 14px; font-size: .9rem; }
.hero__title { font-size: clamp(2rem, 5.4vw, 3.6rem); line-height: 1.35; letter-spacing: .06em; color: var(--purple); margin: 0 0 22px; font-weight: 700; }
.hero__lead { font-size: 1.02rem; line-height: 2; color: #4a4655; margin: 0 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* the one orchestrated moment: four logo squares drop in and form steps */
.hero__steps { position: relative; aspect-ratio: 1; width: min(100%, 420px); justify-self: center; margin-top: 12%; }
.step { position: absolute; width: 30%; aspect-ratio: 1; border-radius: 18%; box-shadow: 0 14px 30px rgba(60, 39, 109, .16); animation: step-drop .9s cubic-bezier(.3, 1.4, .5, 1) both; }
.step--1 { left: 4%; bottom: 4%; background: var(--magenta); animation-delay: .1s; }
.step--2 { left: 35%; bottom: 4%; background: var(--purple); animation-delay: .35s; }
.step--3 { left: 35%; bottom: 35%; background: var(--yellow); animation-delay: .6s; }
.step--4 { left: 66%; bottom: 66%; background: var(--teal); animation-delay: .85s; }
.hero__flag { position: absolute; left: 74%; bottom: 96%; width: 3px; height: 12%; background: var(--purple); border-radius: 2px; transform-origin: bottom; animation: flag-up .5s ease-out 1.6s both; }
.hero__flag::after { content: ""; position: absolute; left: 3px; top: 0; width: 34px; height: 22px; background: var(--magenta); clip-path: polygon(0 0, 100% 50%, 0 100%); animation: flag-wave 2.4s ease-in-out 2.1s infinite; transform-origin: left center; }
@keyframes step-drop { from { opacity: 0; transform: translateY(-120%) rotate(-12deg); } }
@keyframes flag-up { from { transform: scaleY(0); } }
@keyframes flag-wave { 50% { transform: scaleX(.8) skewY(4deg); } }

/* ticker (brand pattern: words flow continuously) */
.ticker { background: var(--purple); color: #fff; overflow: hidden; padding: 14px 0; }
.ticker__track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; }
.ticker__item { font-weight: 700; letter-spacing: .12em; padding: 0 22px; white-space: nowrap; }
.ticker__item::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--yellow); margin-left: 44px; vertical-align: middle; }
.ticker__item:nth-child(3n+2)::after { background: var(--magenta); }
.ticker__item:nth-child(3n)::after { background: #6fd3e8; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* home sections */
.home-section { max-width: 1160px; margin: 0 auto; padding: 72px 20px 0; }
.home-more { text-align: center; margin: 36px 0 0; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.flow__item { position: relative; background: #fff; border-radius: 14px; padding: 28px 24px 24px; box-shadow: 0 10px 30px rgba(60, 39, 109, .07); border-top: 5px solid var(--tone); }
.flow__num { font-family: "Jost", sans-serif; font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--tone); }
.flow__item h3 { margin: 10px 0 8px; color: var(--purple); font-size: 1.1rem; }
.flow__item p { margin: 0; font-size: .92rem; color: #4a4655; }
.home-cta { margin: 80px 0 0; background: var(--purple); color: #fff; position: relative; overflow: hidden; }
.home-cta::before, .home-cta::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 22%; opacity: .16; }
.home-cta::before { background: var(--magenta); right: -40px; top: -60px; transform: rotate(18deg); }
.home-cta::after { background: var(--yellow); right: 140px; bottom: -110px; transform: rotate(-12deg); }
.home-cta__inner { position: relative; max-width: 1160px; margin: 0 auto; padding: 56px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.home-cta__title { margin: 0 0 6px; font-size: clamp(1.3rem, 3vw, 1.7rem); letter-spacing: .06em; }
.home-cta p { margin: 0; color: #ddd6ee; }
.home-banner-wrap { padding-top: 56px; }
.home-banner { display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(60, 39, 109, .07); }
.home-banner img { display: block; width: 100%; height: auto; }

/* footer (brand: thick ink top border) */
.site-footer { border-top: 6px solid var(--ink); margin-top: 96px; background: #fff; }
.site-footer__inner { max-width: 1160px; margin: 0 auto; padding: 36px 20px 120px; display: grid; gap: 14px; justify-items: start; font-size: .88rem; color: #5a5666; }
.site-logo--footer .site-logo__mark { width: 28px; height: 28px; }
.site-logo--footer .site-logo__text { font-size: 1.15rem; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--purple); text-decoration: underline; }
.site-footer__op, .site-footer__copy { margin: 0; }
.site-footer__copy { font-family: "Jost", sans-serif; letter-spacing: .06em; color: #8a8697; }
.about ~ .site-footer { margin-top: 0; }


/* home: for-you + sub links */
.for-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.for-item { background: #fff; border-radius: 14px; padding: 26px 24px; box-shadow: 0 10px 30px rgba(60, 39, 109, .07); border-top: 5px solid var(--tone); }
.for-item h3 { margin: 0 0 10px; color: var(--purple); font-size: 1.05rem; line-height: 1.6; }
.for-item p { margin: 0; font-size: .92rem; color: #4a4655; line-height: 1.85; }
.for-note { margin: 28px 0 0; padding: 18px 22px; background: #fff; border-left: 5px solid var(--yellow); border-radius: 0 12px 12px 0; font-weight: 700; color: var(--purple); line-height: 1.8; }
.home-sub { max-width: 1160px; margin: 0 auto; padding: 28px 20px 0; display: grid; gap: 10px; font-size: .9rem; color: #5a5666; }
.home-sub p { margin: 0; }
.home-sub a { color: var(--purple); font-weight: 700; }
.home-sub__company a { color: #5a5666; font-weight: 500; }

/* about page */
.hero__about { margin: 22px 0 0; font-size: .92rem; }
.hero__about a { color: var(--purple); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 2px; }
.hero__about a:hover { border-bottom-color: var(--magenta); }
.about-hero { background: linear-gradient(160deg, #fff 0%, var(--soft) 80%); position: relative; overflow: hidden; }
.about-hero__inner { max-width: 880px; margin: 0 auto; padding: 64px 20px 56px; position: relative; }
.about-hero__en { font-family: "Jost", sans-serif; font-weight: 500; letter-spacing: .3em; color: var(--teal); margin: 0 0 10px; font-size: .85rem; }
.about-hero__title { margin: 0; color: var(--purple); font-size: clamp(2rem, 5vw, 3rem); letter-spacing: .08em; line-height: 1.3; }
.about-hero__mark { position: absolute; right: 20px; bottom: 40px; width: 120px; height: 120px; }
.about-hero__mark i { position: absolute; width: 36px; height: 36px; border-radius: 22%; }
.about-hero__mark i:nth-child(1) { left: 0; bottom: 0; background: var(--magenta); }
.about-hero__mark i:nth-child(2) { left: 40px; bottom: 0; background: var(--purple); }
.about-hero__mark i:nth-child(3) { left: 40px; bottom: 40px; background: var(--yellow); }
.about-hero__mark i:nth-child(4) { left: 80px; bottom: 80px; background: var(--teal); }
.about-body { max-width: 880px; margin: 0 auto; padding: 48px 20px 0; line-height: 2; }
.about-body > p { max-width: 42em; }
.about-lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); font-weight: 700; color: var(--purple); line-height: 1.9; max-width: none !important; padding: 0 0 8px; }
.about-h2 { margin: 72px 0 20px; font-size: clamp(1.25rem, 3vw, 1.6rem); color: var(--purple); letter-spacing: .06em; line-height: 1.5; }
.about-h2__en { display: block; font-family: "Jost", sans-serif; font-weight: 500; font-size: .85rem; letter-spacing: .25em; color: var(--teal); margin-bottom: 4px; }
.about-points { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.about-points li { background: #fff; border-radius: 14px; padding: 24px 22px; box-shadow: 0 10px 30px rgba(60, 39, 109, .07); border-top: 5px solid var(--purple); font-size: .92rem; line-height: 1.85; color: #4a4655; }
.about-points li:nth-child(2) { border-top-color: var(--magenta); }
.about-points li:nth-child(3) { border-top-color: var(--teal); }
.about-points strong { display: block; color: var(--purple); font-size: 1.05rem; margin-bottom: 8px; }
.about-ways { display: grid !important; grid-template-columns: 1fr 1fr; gap: 24px !important; margin-top: 28px; }
.about-way { background: #fff; border-radius: 14px; padding: 28px 26px; box-shadow: 0 10px 30px rgba(60, 39, 109, .07); border-top: 5px solid var(--tone); }
.about-way h3 { margin: 0 0 16px; color: var(--tone); font-size: 1.1rem; }
.about-way ol { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.about-way li { counter-increment: step; position: relative; padding: 0 0 18px 48px; font-size: .92rem; line-height: 1.8; color: #4a4655; }
.about-way li:last-child { padding-bottom: 0; }
.about-way li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 9px; background: var(--tone); color: #fff; font-family: "Jost", sans-serif; font-weight: 600; display: grid; place-items: center; line-height: 1; }
.about-way li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; background: var(--line); }
.about-way strong { display: block; color: var(--ink); }
.about-cta { margin-top: 88px; }
.about-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
	.about-points, .about-ways, .for-list { grid-template-columns: 1fr; }
	.about-hero__mark { transform: scale(.6); transform-origin: right bottom; bottom: 24px; }
}

@media (max-width: 900px) {
	.site-nav { display: none; }
	.site-header__inner > .site-actions { margin-left: auto; }
	.hero__inner { grid-template-columns: 1fr; padding: 40px 20px 56px; gap: 8px; }
	.hero__steps { width: min(56%, 240px); order: -1; justify-self: end; margin: 28px 0 -10px; }
	.flow { grid-template-columns: 1fr; }
	.home-section { padding-top: 56px; }
}
@media (max-width: 480px) {
	.site-header__inner { padding: 8px 14px; gap: 10px; min-height: 60px; }
	.site-logo__text { font-size: 1.25rem; }
	.hero__title br { display: none; }
	.hero__actions .sh-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}
