/* ============================================
   My Portfolio - main.css
   カラートーンは :root の変数を差し替えて調整
============================================ */
:root {
	--color-ink: #1a1a1a;        /* 基調（テキスト・ボタン） */
	--color-bg: #ffffff;         /* 背景 */
	--color-bg-alt: #f6f6f4;     /* 交互セクション背景 */
	--color-line: #dddddd;       /* 罫線 */
	--color-muted: #757575;      /* 補助テキスト */
	--color-accent: #1a1a1a;     /* アクセント（後で差し替え可） */
	--font-display: 'Anton', sans-serif;
	--font-body: 'Zen Kaku Gothic New', sans-serif;
	--width-content: 1320px;
	--width-narrow: 800px;
	--header-h: 80px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
body {
	font-family: var(--font-body);
	color: var(--color-ink);
	background: var(--color-bg);
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}

/* ---------- header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 100;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--color-line);
}
.site-header__inner {
	max-width: var(--width-content); margin: 0 auto; padding: 0 24px;
	height: var(--header-h);
	display: flex; align-items: center; justify-content: space-between;
}
.site-header__logo { font-family: var(--font-display); font-size: 20px; letter-spacing: .08em; }
.global-nav__list { display: flex; gap: 36px; }
.global-nav__list a { font-weight: 700; font-size: 14px; letter-spacing: .04em; position: relative; }
.global-nav__list a::after {
	content: ''; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
	background: var(--color-ink); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.global-nav__list a:hover::after { transform: scaleX(1); }
.menu-toggle { display: none; }

.site-main { padding-top: var(--header-h); }

/* ---------- buttons ---------- */
.btn {
	display: inline-block; padding: 14px 36px; border-radius: 999px;
	font-weight: 700; font-size: 14px; letter-spacing: .04em;
	transition: opacity .25s, background .25s, color .25s;
}
.btn--solid { background: var(--color-ink); color: #fff; border: 1px solid var(--color-ink); }
.btn--solid:hover { opacity: .8; }
.btn--ghost { background: transparent; color: var(--color-ink); border: 1px solid var(--color-ink); }
.btn--ghost:hover { background: var(--color-ink); color: #fff; }
.btn--ghost-light { background: #fff; color: var(--color-ink); border: 1px solid #fff; }
.btn--ghost-light:hover { opacity: .85; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--color-bg-alt); overflow: hidden; }
.hero__inner {
	max-width: var(--width-content); margin: 0 auto; padding: 96px 24px 120px;
	display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
}
.hero__title { font-family: var(--font-display); font-size: clamp(48px, 7vw, 104px); line-height: 1.05; letter-spacing: .02em; }
.hero__title-line { display: block; }
.hero__lead { margin-top: 24px; font-size: 20px; font-weight: 700; }
.hero__desc { margin-top: 12px; color: var(--color-muted); font-size: 15px; }
.hero__actions { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero__visual { aspect-ratio: 24 / 25; overflow: hidden; border-radius: 4px; background: #e5e5e2; }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__visual.is-empty img { display: none; }
.hero__scroll {
	position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
	font-family: var(--font-display); font-size: 11px; letter-spacing: .3em; color: var(--color-muted);
}

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--color-bg-alt); }
.section__inner { max-width: var(--width-content); margin: 0 auto; padding: 0 24px; }
.section__inner--narrow { max-width: var(--width-narrow); }
.section__title {
	font-family: var(--font-display); font-size: 44px; letter-spacing: .04em; margin-bottom: 40px;
	display: flex; align-items: baseline; gap: 16px;
}
.section__title--sm { font-size: 28px; margin-bottom: 24px; }
.section__sub { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--color-muted); }
.section__more { margin-top: 48px; text-align: center; }

/* ---------- page head / breadcrumb ---------- */
.page-head { padding: 64px 0 0; }
.page-head__inner { max-width: var(--width-content); margin: 0 auto; padding: 0 24px; }
.page-head__inner--article { max-width: var(--width-narrow); }
.page-head__title {
	font-family: var(--font-display); font-size: clamp(40px, 5vw, 56px); letter-spacing: .04em;
	display: flex; align-items: baseline; gap: 16px;
}
.page-head__sub { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--color-muted); }
.breadcrumb { font-size: 12px; color: var(--color-muted); margin-top: 8px; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- grid / cards ---------- */
.grid { display: grid; gap: 48px 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card__thumb { overflow: hidden; border-radius: 4px; background: #ececec; position: relative; }
.card__thumb--43 { aspect-ratio: 4 / 3; }
.card__thumb--169 { aspect-ratio: 16 / 9; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card__link:hover .card__thumb img { transform: scale(1.05); }
.card__noimage {
	position: absolute; inset: 0; display: grid; place-items: center;
	font-family: var(--font-display); color: #b5b5b5; letter-spacing: .1em;
}
.card__title { margin-top: 16px; font-size: 17px; font-weight: 700; line-height: 1.5; }
.card__meta { margin-top: 14px; display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--color-muted); }
.card--post .card__title { margin-top: 8px; font-size: 16px; }
.card__cat, .filter-tabs a, .card__tags li a {
	display: inline-block; padding: 3px 14px; border: 1px solid var(--color-line);
	border-radius: 999px; font-size: 11px; color: var(--color-muted); background: #fff;
}
.card__tags { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.card__tags li a:hover { border-color: var(--color-ink); color: var(--color-ink); }

/* ---------- filter tabs ---------- */
.filter-tabs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.filter-tabs a { padding: 9px 24px; font-size: 13px; font-weight: 700; transition: all .2s; }
.filter-tabs a:hover, .filter-tabs a.is-active { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }

/* ---------- about ---------- */
.about-digest__body, .about-profile { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
.about-digest__photo, .about-profile__photo { aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: #e5e5e2; }
.about-digest__photo img, .about-profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.about-digest__photo.is-empty img, .about-profile__photo.is-empty img { display: none; }
.about-digest__name, .about-profile__name { font-size: 26px; font-weight: 700; }
.about-digest__role, .about-profile__role { font-size: 14px; color: var(--color-muted); margin-bottom: 20px; }
.about-digest__text .btn { margin-top: 24px; }

/* ---------- skills（トップ） ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.skills-grid__item {
	background: var(--color-bg-alt); border: 1px solid var(--color-line); border-radius: 8px;
	padding: 40px 8px; text-align: center; font-weight: 700; font-size: 14px;
}

/* ---------- skill bars（About） ---------- */
.skill-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.skill-bars__cat { font-size: 18px; margin-bottom: 20px; }
.skill-bars__row { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 16px; margin-bottom: 18px; font-size: 14px; }
.skill-bars__track { height: 10px; background: #e9e9e6; border-radius: 999px; overflow: hidden; }
.skill-bars__fill { display: block; height: 100%; width: var(--w, 50%); background: var(--color-ink); border-radius: 999px; }

/* ---------- policy / timeline ---------- */
.policy-grid__item { background: #fff; border: 1px solid var(--color-line); border-radius: 10px; padding: 32px; }
.policy-grid__num { font-family: var(--font-display); font-size: 28px; color: #c9c9c4; }
.policy-grid__item h3 { margin: 8px 0 10px; font-size: 18px; }
.policy-grid__item p { font-size: 14px; color: var(--color-muted); }
.timeline { border-left: 2px solid var(--color-line); padding-left: 32px; max-width: 720px; }
.timeline__item { position: relative; padding-bottom: 32px; }
.timeline__item::before {
	content: ''; position: absolute; left: -39px; top: 8px;
	width: 12px; height: 12px; border-radius: 50%; background: var(--color-ink);
}
.timeline__year { font-weight: 700; color: var(--color-muted); font-size: 14px; }

/* ---------- news ---------- */
.news-list__item a {
	display: flex; align-items: center; gap: 20px; padding: 22px 4px;
	border-bottom: 1px solid var(--color-line); transition: background .2s;
}
.news-list__item:first-child a { border-top: 1px solid var(--color-line); }
.news-list__item a:hover { background: rgba(0, 0, 0, .03); }
.news-list__item time { font-size: 13px; color: var(--color-muted); flex-shrink: 0; }
.news-list__cat {
	flex-shrink: 0; padding: 2px 14px; border: 1px solid var(--color-line);
	border-radius: 999px; font-size: 11px; color: var(--color-muted);
}
.news-list__title { font-size: 15px; }

/* ---------- work single ---------- */
.work-single__title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; line-height: 1.4; margin-top: 12px; }
.work-single__mv { margin: 40px 0 64px; border-radius: 4px; overflow: hidden; }
.work-overview { margin-bottom: 64px; }
.work-overview__row {
	display: grid; grid-template-columns: 200px 1fr; gap: 16px;
	padding: 16px 4px; border-bottom: 1px solid var(--color-line);
}
.work-overview__row:first-child { border-top: 1px solid var(--color-line); }
.work-overview__row dt { font-weight: 700; font-size: 14px; color: var(--color-muted); }
.work-overview__row dd { font-size: 14px; }
.work-overview__row dd a { text-decoration: underline; }
.work-single__content { margin-bottom: 64px; }
.adjacent-nav {
	display: flex; justify-content: space-between; gap: 24px;
	padding: 32px 0; border-top: 1px solid var(--color-line); font-size: 14px;
}
.adjacent-nav a:hover { text-decoration: underline; }
.work-single__back { text-align: center; padding-bottom: 32px; }

/* ---------- blog single ---------- */
.post-single__title { font-size: clamp(24px, 3vw, 32px); font-weight: 900; line-height: 1.5; margin-top: 12px; }
.article-body { max-width: var(--width-narrow); margin: 0 auto; padding: 40px 24px 80px; }
.post-single__eyecatch { border-radius: 4px; overflow: hidden; margin-bottom: 48px; }
.share { display: flex; align-items: center; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--color-line); }
.share__label { font-family: var(--font-display); font-size: 13px; letter-spacing: .1em; color: var(--color-muted); }
.share a { font-size: 13px; text-decoration: underline; }

/* ---------- entry content（本文共通） ---------- */
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 {
	font-size: 24px; line-height: 1.5; margin-top: 2.2em;
	padding-bottom: .4em; border-bottom: 2px solid var(--color-ink);
}
.entry-content h3 { font-size: 19px; margin-top: 2em; }
.entry-content img { border-radius: 4px; }
.entry-content a { text-decoration: underline; }
.entry-content ul { padding-left: 1.4em; list-style: disc; }
.entry-content ol { padding-left: 1.4em; list-style: decimal; }
.entry-content blockquote { border-left: 3px solid var(--color-line); padding-left: 1.2em; color: var(--color-muted); }

/* ---------- contact ---------- */
.contact-lead { text-align: center; margin-bottom: 48px; }
.contact-form .wpcf7 label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.contact-form .wpcf7 input[type="text"],
.contact-form .wpcf7 input[type="email"],
.contact-form .wpcf7 select,
.contact-form .wpcf7 textarea {
	width: 100%; padding: 14px 16px; font: inherit; font-size: 15px;
	background: var(--color-bg-alt); border: 1px solid #bbb; border-radius: 6px;
}
.contact-form .wpcf7 input:focus,
.contact-form .wpcf7 textarea:focus,
.contact-form .wpcf7 select:focus { outline: 2px solid var(--color-ink); outline-offset: 1px; }
.contact-form .wpcf7 p { margin-bottom: 28px; }
.contact-form .wpcf7 input[type="submit"] {
	display: block; margin: 0 auto; padding: 16px 64px; cursor: pointer;
	background: var(--color-ink); color: #fff; border: none; border-radius: 999px;
	font-weight: 700; font-size: 15px; transition: opacity .25s;
}
.contact-form .wpcf7 input[type="submit"]:hover { opacity: .8; }

/* ---------- CTA ---------- */
.cta { background: var(--color-ink); color: #fff; padding: 80px 24px; text-align: center; }
.cta__title { font-family: var(--font-display); font-size: 40px; letter-spacing: .06em; }
.cta__lead { margin: 12px 0 28px; font-size: 15px; color: #ccc; }

/* ---------- footer ---------- */
.site-footer { background: var(--color-bg-alt); border-top: 1px solid var(--color-line); padding: 56px 24px; text-align: center; }
.site-footer__nav { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__sns { display: flex; justify-content: center; gap: 20px; margin: 24px 0; font-size: 13px; }
.site-footer__sns a { text-decoration: underline; color: var(--color-muted); }
.site-footer__copy { font-size: 12px; color: var(--color-muted); }

/* ---------- standalone (thanks / 404) ---------- */
.standalone__inner { text-align: center; padding: 64px 24px 32px; }
.standalone__title { font-family: var(--font-display); font-size: clamp(48px, 7vw, 72px); letter-spacing: .06em; }
.standalone__title--xl { font-size: clamp(88px, 12vw, 140px); }
.standalone__lead { font-size: 20px; font-weight: 700; margin-top: 12px; }
.standalone__desc { color: var(--color-muted); font-size: 14px; margin-top: 16px; }
.standalone__actions { margin-top: 36px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- pagination ---------- */
.pagination { margin-top: 64px; }
.nav-links { display: flex; justify-content: center; gap: 8px; }
.nav-links .page-numbers {
	display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px;
	border: 1px solid var(--color-line); border-radius: 6px; font-size: 14px;
}
.nav-links .page-numbers.current, .nav-links .page-numbers:hover { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.card__thumb img { transition: none; }
}

/* ============================================
   SP（〜768px）
============================================ */
@media (max-width: 768px) {
	:root { --header-h: 60px; }

	/* header → ハンバーガー */
	.menu-toggle {
		display: flex; flex-direction: column; justify-content: center; gap: 6px;
		width: 44px; height: 44px; background: none; border: none; cursor: pointer; z-index: 110;
	}
	.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--color-ink); margin: 0 auto; transition: transform .3s, opacity .3s; }
	.menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
	.menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
	.global-nav {
		position: fixed; inset: 0; background: var(--color-bg);
		display: grid; place-items: center;
		opacity: 0; visibility: hidden; transition: opacity .3s;
	}
	.global-nav.is-open { opacity: 1; visibility: visible; }
	.global-nav__list { flex-direction: column; align-items: center; gap: 32px; font-size: 18px; }

	/* hero */
	.hero__inner { grid-template-columns: 1fr; padding: 48px 20px 72px; gap: 28px; }
	.hero__lead { font-size: 15px; }
	.hero__visual { aspect-ratio: 16 / 9; }

	.section { padding: 64px 0; }
	.section__inner { padding: 0 20px; }
	.section__title { font-size: 30px; margin-bottom: 28px; }

	.grid--3 { grid-template-columns: 1fr; gap: 40px; }
	.skills-grid { grid-template-columns: repeat(2, 1fr); }
	.skill-bars { grid-template-columns: 1fr; }
	.skill-bars__row { grid-template-columns: 110px 1fr; }
	.about-digest__body, .about-profile { grid-template-columns: 1fr; gap: 28px; }
	.about-digest__photo, .about-profile__photo { max-width: 240px; margin: 0 auto; }
	.about-digest__text, .about-profile__text { text-align: left; }

	.news-list__item a { flex-wrap: wrap; gap: 8px 12px; }
	.news-list__title { width: 100%; }

	.work-overview__row { grid-template-columns: 1fr; gap: 4px; }
	.page-head { padding-top: 40px; }
	.filter-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
	.filter-tabs a { white-space: nowrap; }
	.cta { padding: 56px 20px; }
	.cta__title { font-size: 28px; }
}
