/*
Theme Name: SAMPLE INDEX(サンプル集の入口)
Theme URI: https://tribal-works.com/sample/
Author: TRIBAL WORKS
Description: WordPressオリジナルテーマの制作サンプルをまとめて見せる入口サイト。サンプルは管理画面の「サンプル」から追加・並び替えできます。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: hub
*/

:root {
	--bg: #e9e7e2; --ink: #1f1a16; --muted: #6b665d; --line: rgba(31, 26, 22, .18); --lime: #c8f169;
	--serif: "Instrument Serif", "Zen Kaku Gothic New", serif;
	--sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
	--en: "Outfit", "Zen Kaku Gothic New", sans-serif;
	--gut: clamp(16px, 3.2vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 500; line-height: 1.75; letter-spacing: .02em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--lime); color: var(--ink); }
.wrap { padding-inline: var(--gut); max-width: 1680px; margin-inline: auto; }
.label { font-family: var(--en); font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }

/* ---------- bar ---------- */
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gut); background: rgba(233, 231, 226, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--en); font-weight: 800; letter-spacing: .06em; font-size: 1rem; }
.bar__brand i { width: 14px; height: 14px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--ink) inset; }
.bar__nav { display: flex; gap: 26px; font-family: var(--en); font-weight: 600; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; }
.bar__nav a:hover { opacity: .55; }
.bar__cta { font-family: var(--en); font-weight: 700; font-size: .76rem; letter-spacing: .14em; padding: 8px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); transition: .2s; }
.bar__cta:hover { background: var(--lime); color: var(--ink); }
@media (max-width: 720px) { .bar__nav { display: none; } }

/* ---------- top (title + chips) ---------- */
.top { padding: clamp(22px, 3.4vw, 44px) 0 clamp(16px, 2vw, 26px); }
.top__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 40px; }
.top h1 { font-family: var(--sans); font-weight: 900; font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: 1.15; letter-spacing: .01em; margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.top h1 .tag { font-family: var(--en); font-weight: 800; font-size: .6em; letter-spacing: .12em; background: var(--lime); border: 2.5px solid var(--ink); padding: .14em .55em; transform: rotate(-3deg); }
.notice { background: var(--ink); color: var(--lime); text-align: center; font-weight: 700; font-size: .8rem; letter-spacing: .06em; padding: 9px var(--gut); line-height: 1.5; }
.top__side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; max-width: 36em; }
.top__lead { margin: 0; color: var(--muted); font-size: .92rem; text-align: right; }
.chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.chip { font-family: var(--sans); font-weight: 700; font-size: .8rem; padding: 6px 15px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; transition: .2s; }
.chip:hover, .chip.is-on { background: var(--ink); color: var(--bg); }
@media (max-width: 800px) { .top__side { align-items: flex-start; } .top__lead { text-align: left; } .chips { justify-content: flex-start; } }

/* ---------- grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 64px) clamp(22px, 3vw, 48px); padding-bottom: 90px; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; gap: 34px; } }
.card.is-hide { display: none; }
.card a { display: block; }
.card__shot { position: relative; aspect-ratio: 1200 / 646; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 10px 28px rgba(31, 26, 22, .12); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.card__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.card a:hover .card__shot { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 26px 50px rgba(31, 26, 22, .26); }
.card a:hover .card__shot img { transform: scale(1.04); }
.card__open { position: absolute; top: 10px; right: 10px; font-family: var(--en); font-weight: 800; font-size: .7rem; letter-spacing: .14em; background: var(--lime); color: var(--ink); padding: 5px 12px; border-radius: 999px; opacity: 0; transform: translateY(-6px); transition: .25s; }
.card a:hover .card__open { opacity: 1; transform: none; }
.card__tip { position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(20, 16, 12, .88)); color: #fff; font-size: .74rem; font-weight: 700; line-height: 1.5; opacity: 0; transform: translateY(8px); transition: .3s; }
.card a:hover .card__tip { opacity: 1; transform: none; }
.card__cap { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center; margin-top: 18px; }
.card__no { font-family: var(--en); font-weight: 800; font-size: 1.3rem; letter-spacing: .08em; grid-row: 1 / 5; align-self: start; padding-top: 4px; }
.card__name { margin: 0; font-weight: 900; font-size: clamp(1.2rem, 1.9vw, 1.7rem); line-height: 1.3; }
.card__sub { font-size: .92rem; color: var(--muted); font-weight: 700; grid-column: 2; }
.card__pal { display: flex; grid-column: 3; grid-row: 1 / 3; }
.card__tip2 { margin: 4px 0 0; grid-column: 2 / 4; font-size: .86rem; color: var(--muted); font-weight: 500; line-height: 1.6; }
.card__go { grid-column: 2 / 4; justify-self: start; margin-top: 8px; font-family: var(--sans); font-weight: 800; font-size: .84rem; padding: 7px 16px; border: 1.5px solid var(--ink); border-radius: 999px; transition: .2s; }
.card a:hover .card__go { background: var(--ink); color: var(--bg); }
.card__badge { position: absolute; top: 12px; left: 12px; z-index: 2; font-family: var(--en); font-weight: 800; font-size: .74rem; letter-spacing: .16em; background: var(--lime); color: var(--ink); border: 2px solid var(--ink); padding: 5px 12px; border-radius: 999px; }
.card__wm { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; pointer-events: none; font-family: var(--en); font-weight: 800; font-size: clamp(3rem, 8.5vw, 8rem); letter-spacing: .12em; color: rgba(31, 26, 22, .13); -webkit-text-stroke: 2px rgba(255, 255, 255, .45); transform: rotate(-14deg); }
.card__pal i { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -5px; box-shadow: 0 0 0 1px rgba(31, 26, 22, .18); }
.card__pal i:first-child { margin-left: 0; }
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.is-in { opacity: 1; transform: none; }
@media (max-width: 520px) { .card__pal { display: none; } .card__tip { display: none; } .card__cap { gap: 4px 10px; } .card__name { font-size: 1.15rem; } }

/* ---------- approach ---------- */
.apr { padding: 90px 0; background: var(--ink); color: var(--bg); }
.apr h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.02; margin: 10px 0 44px; letter-spacing: -.02em; max-width: 14em; }
.apr h2 em { font-style: italic; color: var(--lime); }
.apr__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(233, 231, 226, .3); }
.apr__item { padding: 28px 28px 8px 0; }
.apr__item + .apr__item { padding-left: 28px; border-left: 1px solid rgba(233, 231, 226, .3); }
.apr__no { font-family: var(--en); font-weight: 800; color: var(--lime); font-size: 3rem; line-height: 1; display: block; margin-bottom: 14px; }
.apr__item h3 { font-weight: 900; font-size: 1.25rem; margin: 0 0 8px; }
.apr__item p { margin: 0; color: rgba(233, 231, 226, .72); font-size: .92rem; }
@media (max-width: 860px) { .apr__grid { grid-template-columns: 1fr; } .apr__item, .apr__item + .apr__item { padding: 24px 0; border-left: 0; border-bottom: 1px solid rgba(233, 231, 226, .3); } .apr { padding: 64px 0; } }

/* ---------- cta ---------- */
.cta { background: var(--lime); padding: 90px 0 80px; }
.cta__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 30px; }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 8vw, 7rem); line-height: .95; letter-spacing: -.03em; margin: 10px 0 0; }
.cta h2 em { font-style: italic; }
.cta__side { max-width: 30em; }
.cta__side p { margin: 0; font-size: .95rem; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px; font-family: var(--en); font-weight: 700; letter-spacing: .1em; font-size: .86rem; border: 2px solid var(--ink); background: var(--ink); color: var(--bg); transition: .25s; }
.btn:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.foot { padding: 22px 0; background: var(--ink); color: rgba(233, 231, 226, .8); font-size: .76rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } .js .rv { opacity: 1; transform: none; } }

/* ---------- モーショングラフィック枠(通常のサンプルと分けて表示) ---------- */
.motion { background: #0c0e16; color: #eef2ff; padding: clamp(56px, 8vw, 110px) 0; margin-top: clamp(30px, 5vw, 70px); border-top: 4px solid var(--lime); }
.motion .label { color: #9fb4ff; }
.motion__title { font-family: var(--sans); font-weight: 900; font-size: clamp(1.6rem, 3.6vw, 3rem); line-height: 1.25; margin: 14px 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.motion__tag { font-family: var(--en); font-weight: 800; font-size: .55em; letter-spacing: .14em; background: linear-gradient(110deg, #ff3d6e, #ffb454 45%, #4d8bff); color: #0c0e16; padding: .16em .6em; border-radius: 4px; transform: rotate(-3deg); }
.motion__lead { max-width: 820px; color: #b6c0dd; font-size: .92rem; margin-bottom: clamp(26px, 4vw, 48px); }
.motion .card__no, .motion .card__sub { color: #9fb4ff; }
.motion .card__name { color: #fff; }
.motion .card__tip2 { color: #b6c0dd; }
.motion .card__go { color: var(--lime); }
.motion .card__shot { border-color: rgba(255, 255, 255, .18); box-shadow: 0 14px 36px rgba(0, 0, 0, .5); }
.card__badge--motion { background: linear-gradient(110deg, #ff3d6e, #ffb454); color: #0c0e16; border-color: #0c0e16; }
.motion .card__go { border-color: var(--lime); }
.motion .card a:hover .card__go { background: var(--lime); color: #0c0e16; }

/* ---------- LPサンプル枠(12サイトとモーションの間) ---------- */
.lps { background: #f5f2ea; padding: clamp(56px, 8vw, 110px) 0 clamp(10px, 2vw, 30px); margin-top: clamp(30px, 5vw, 70px); border-top: 4px solid var(--ink); }
.lps__title { font-family: var(--sans); font-weight: 900; font-size: clamp(1.6rem, 3.6vw, 3rem); line-height: 1.25; margin: 14px 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.lps__tag { font-family: var(--en); font-weight: 800; font-size: .55em; letter-spacing: .14em; background: var(--lime); border: 2.5px solid var(--ink); padding: .14em .6em; transform: rotate(-3deg); }
.lps__lead { max-width: 820px; color: var(--muted); font-size: .92rem; margin: 0 0 clamp(26px, 4vw, 48px); }
.card__badge--lp { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.lps__more { margin: -60px 0 60px; font-weight: 800; }
.lps__more a { border-bottom: 2px solid var(--ink); }
.lps__more a:hover { background: var(--lime); }
.lps + .motion { margin-top: 0; }
