/*!
Theme Name: Portfolio YuYu
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.4
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: portfolio-yuyu
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Portfolio YuYu is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

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

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: #4169e1;
}

a:visited {
	color: #800080;
}

a:hover,
a:focus,
a:active {
	color: #191970;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/*
 * 以下は、既存の style.css の一番下（テーマヘッダーコメントの後）に
 * そのまま追記してください。
 * 既存のテーマヘッダーコメント（Theme Name: ... で始まる部分）は
 * 絶対に削除しないでください。WordPressがテーマを認識できなくなります。
 */

/* ---------- CONTACT FORM (Contact Form 7) ---------- */
.contact-form{
  text-align:left;
  max-width:520px;
  margin:0 auto;
}
.contact-form p{
  margin:0 0 20px;
}
.contact-form label{
  display:block;
  font-family:'JetBrains Mono',monospace;
  font-size:11.5px;
  color:#C9AFB5;
  margin-bottom:8px;
  letter-spacing:0.02em;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea{
  width:100%;
  padding:12px 14px;
  background:#463640;
  border:1px solid rgba(250,244,241,0.2);
  border-radius:8px;
  color:var(--paper);
  font-family:'Noto Sans JP',sans-serif;
  font-size:14px;
  transition:border-color .2s ease;
}
/* ブラウザの自動入力（オートフィル）による強制的な白背景を上書き */
.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus{
  -webkit-text-fill-color:var(--paper);
  -webkit-box-shadow:0 0 0px 1000px #463640 inset;
  box-shadow:0 0 0px 1000px #463640 inset;
  transition:background-color 9999s ease-in-out 0s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color:#8B7580;
}
.contact-form input:focus,
.contact-form textarea:focus{
  outline:none;
  border-color:var(--amber);
}
.contact-form textarea{
  min-height:130px;
  resize:vertical;
}
.contact-form input[type="submit"]{
  display:block;
  margin:8px auto 0;
  background:var(--amber);
  color:var(--ink);
  border:none;
  padding:14px 32px;
  font-size:14px;
  font-weight:600;
  letter-spacing:0.02em;
  border-radius:20px;
  cursor:pointer;
  transition:background .2s ease, transform .18s ease;
}
.contact-form input[type="submit"]:hover{
  background:#C97883;
  transform:translateY(-2px);
}
.contact-form input[type="submit"]:disabled{
  opacity:0.6;
  cursor:default;
}
.contact-form .wpcf7-not-valid-tip{
  color:#E8AEB2;
  font-size:12px;
  margin-top:6px;
}
.contact-form .wpcf7-response-output{
  border-radius:8px;
  color:var(--paper);
  font-size:13px;
  margin-top:20px !important;
  border-color:rgba(250,244,241,0.25) !important;
}
.contact-form .wpcf7-spinner{
  margin-left:10px;
}

:root{
    --ink:#3D2B36;
    --ink-soft:#6B5560;
    --paper:#FAF4F1;
    --paper-soft:#F2E6E1;
    --amber:#D98B93;
    --sage:#8B6F7E;
    --line:rgba(61,43,54,0.13);
    --line-on-ink:rgba(250,244,241,0.16);
    --radius:10px;
    --maxw:1120px;
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font-family:'Noto Sans JP',sans-serif;
    line-height:1.75;
    -webkit-font-smoothing:antialiased;
  }
  a{color:inherit;}
  a:visited:not(.btn-primary):not(.btn-ghost):not(.nav-cta){
    color:#800080;
  }
  h1,h2,h3{
    font-family:'Zen Kaku Gothic New',sans-serif;
    margin:0;
    letter-spacing:0.02em;
  }
  .mono{
    font-family:'JetBrains Mono',monospace;
    letter-spacing:0.01em;
  }
  .wrap{
    max-width:var(--maxw);
    margin:0 auto;
    padding:0 32px;
  }
  a:focus-visible, button:focus-visible{
    outline:2px solid var(--amber);
    outline-offset:3px;
  }
 
  /* ---------- HEADER ---------- */
  header{
    position:sticky;
    top:0;
    z-index:50;
    background:rgba(250,244,241,0.92);
    backdrop-filter:blur(6px);
    border-bottom:1px solid var(--line);
  }
  .nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:20px 32px;
    max-width:var(--maxw);
    margin:0 auto;
  }
  .logo{
    font-size:15px;
    font-weight:700;
    display:flex;
    align-items:center;
    gap:8px;
  }
  .logo .dot{
    width:8px;height:8px;border-radius:50%;
    background:var(--amber);
    display:inline-block;
  }
  .nav-links{
    display:flex;
    gap:36px;
    list-style:none;
    margin:0;padding:0;
    font-size:14px;
  }
  .nav-links a{
    text-decoration:none;
    position:relative;
    padding-bottom:4px;
  }
  .nav-links a::after{
    content:'';
    position:absolute;
    left:0;bottom:0;
    width:0;height:1px;
    background:var(--ink);
    transition:width .25s ease;
  }
  .nav-links a:hover::after{width:100%;}
  .mobile-contact-item{display:none;}
  .nav-cta{
    font-size:13px;
    font-family:'JetBrains Mono',monospace;
    border:1px solid var(--ink);
    border-radius:20px;
    padding:9px 20px;
    text-decoration:none;
    transition:background .2s ease,color .2s ease;
  }
  .nav-cta:hover{background:var(--ink);color:var(--paper);}
  .menu-btn{display:none;background:none;border:none;cursor:pointer;padding:8px;}
  .menu-btn span{
    display:block;
    width:22px;
    height:2px;
    background:var(--ink);
    margin:5px 0;
    transition:transform .2s ease,opacity .2s ease;
  }
 
  /* ---------- HERO ---------- */
  .hero{
    padding:88px 0 96px;
  }
  .eyebrow{
    display:inline-block;
    font-size:12.5px;
    color:var(--sage);
    margin-bottom:22px;
  }
  .hero-grid{
    display:grid;
    grid-template-columns:1.1fr 0.9fr;
    gap:56px;
    align-items:center;
  }
  .hero h1{
    font-size:clamp(32px,4.4vw,52px);
    font-weight:900;
    line-height:1.35;
  }
  .hero h1 .accent{color:var(--amber);}
  .hero p.lead{
    margin-top:26px;
    font-size:16px;
    max-width:46ch;
    color:var(--ink-soft);
  }
  .hero-actions{
    margin-top:38px;
    display:flex;
    gap:16px;
    flex-wrap:wrap;
  }
  .btn-primary,.btn-ghost{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:14px 26px;
    font-size:14px;
    font-weight:600;
    letter-spacing:0.02em;
    text-decoration:none;
    border-radius:var(--radius);
    transition:transform .18s ease, background .2s ease;
  }
  .btn-primary{
    background:var(--amber);
    color:var(--ink);
  }
  .btn-primary:hover{transform:translateY(-2px);background:#C97883;}
  .btn-ghost{
    border:1px solid var(--line);
    color:var(--ink);
  }
  .btn-ghost:hover{border-color:var(--ink);}
 
  /* --- signature: editor window --- */
  .editor{
    background:var(--ink);
    overflow:hidden;
    box-shadow:0 24px 56px -22px rgba(61,43,54,0.38);
    border-radius:16px;
  }
  .editor-tabs{
    display:flex;
    background:#2E2029;
    border-bottom:1px solid var(--line-on-ink);
  }
  .editor-tabs span{
    padding:11px 16px;
    font-size:12px;
    color:#A98C93;
    border-right:1px solid var(--line-on-ink);
    font-family:'JetBrains Mono',monospace;
    display:flex;
    align-items:center;
    gap:8px;
  }
  .editor-tabs span.active{
    color:var(--paper);
    background:var(--ink);
  }
  .editor-tabs .dotline{display:flex;gap:6px;padding:11px 14px;}
  .editor-tabs .dotline i{
    width:8px;height:8px;border-radius:50%;background:#56414A;
  }
  .editor-body{
    padding:26px 24px 30px;
    font-family:'JetBrains Mono',monospace;
    font-size:12.5px;
    color:#C7AEB3;
    line-height:2;
  }
  .editor-body .l{display:block;white-space:pre;}
  .editor-body .tag{color:var(--amber);}
  .editor-body .attr{color:#D9A98F;}
  .editor-body .str{color:#EAD0B0;}
  .editor-body .cmt{color:#7A6169;}
  .editor-footer{
    display:flex;
    justify-content:space-between;
    padding:10px 20px;
    font-size:11px;
    color:#7A6169;
    background:#2E2029;
    font-family:'JetBrains Mono',monospace;
  }
 
  /* ---------- SECTION GENERIC ---------- */
  section{padding:96px 0;}
  .section-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:24px;
    margin-bottom:52px;
    border-bottom:1px solid var(--line);
    padding-bottom:24px;
  }
  .section-head h2{
    font-size:clamp(24px,3vw,32px);
    font-weight:700;
  }
  .section-head .num{
    font-size:12px;
    color:var(--sage);
  }
 
  /* ---------- ABOUT ---------- */
  .about-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:64px;
  }
  .about-text p{
    color:var(--ink-soft);
    font-size:15.5px;
    margin:0 0 18px;
  }
  .stack-table{
    width:100%;
    border-collapse:collapse;
    font-size:14px;
  }
  .stack-table tr{border-bottom:1px solid var(--line);}
  .stack-table tr:first-child{border-top:1px solid var(--line);}
  .stack-table td{padding:16px 4px;}
  .stack-table td:first-child{
    font-family:'JetBrains Mono',monospace;
    color:var(--sage);
    width:34%;
    font-size:13px;
  }
  .stack-table td:last-child{color:var(--ink-soft);}
 
  /* ---------- SERVICES ---------- */
  .services-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:1px;
    background:var(--line);
    border:1px solid var(--line);
    border-radius:16px;
    overflow:hidden;
  }
  .service-card{
    background:var(--paper);
    padding:36px 30px;
    transition:background .25s ease;
  }
  .service-card:hover{background:var(--paper-soft);}
  .service-card .idx{
    font-family:'JetBrains Mono',monospace;
    font-size:12px;
    color:var(--amber);
    display:block;
    margin-bottom:20px;
  }
  .service-card h3{
    font-size:19px;
    margin-bottom:14px;
  }
  .service-card p{
    font-size:14px;
    color:var(--ink-soft);
    margin:0 0 20px;
  }
  .tag-row{display:flex;flex-wrap:wrap;gap:8px;}
  .tag{
    font-family:'JetBrains Mono',monospace;
    font-size:11px;
    padding:4px 11px;
    border:1px solid var(--line);
    border-radius:20px;
    color:var(--ink-soft);
  }
 
  /* ---------- WORKS ---------- */
  .work-card{
    display:grid;
    grid-template-columns:1fr 1.2fr;
    gap:0;
    border:1px solid var(--line);
    border-radius:16px;
    overflow:hidden;
  }
  .work-visual{
    background:var(--ink);
    padding:0;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    min-height:280px;
    max-height:520px;
    overflow:hidden;
  }
  .work-visual img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:top center;
    display:block;
  }
  .work-body{padding:38px;}
  .work-body .status{
    font-family:'JetBrains Mono',monospace;
    font-size:11px;
    color:var(--sage);
    border:1px solid var(--sage);
    border-radius:20px;
    display:inline-block;
    padding:3px 11px;
    margin-bottom:18px;
  }
  .work-body h3{font-size:21px;margin-bottom:12px;}
  .work-body p{color:var(--ink-soft);font-size:14.5px;margin:0 0 20px;}
  .work-meta{
    display:flex;
    gap:28px;
    flex-wrap:wrap;
    border-top:1px solid var(--line);
    padding-top:18px;
    padding-bottom:18px;
    font-size:12.5px;
  }
  .work-meta div span{
    display:block;
    font-family:'JetBrains Mono',monospace;
    font-size:10.5px;
    color:var(--sage);
    margin-bottom:4px;
  }
  .work-flow{
    border-top:1px solid var(--line);
    padding-top:18px;
  }
  .flow-label{
    font-size:10.5px;
    color:var(--sage);
    display:block;
    margin-bottom:12px;
  }
  .flow-thumbs{
    display:flex;
    align-items:center;
    gap:10px;
  }
  .flow-thumbs img{
    width:64px;
    height:44px;
    object-fit:cover;
    object-position:top center;
    border:1px solid var(--line);
    border-radius:6px;
  }
  .flow-arrow{
    color:var(--ink-soft);
    font-size:13px;
  }
 
  /* ---------- PROCESS ---------- */
  .process-list{
    list-style:none;margin:0;padding:0;
    border-top:1px solid var(--line);
  }
  .process-list li{
    display:grid;
    grid-template-columns:70px 1fr 2fr;
    gap:24px;
    padding:26px 0;
    border-bottom:1px solid var(--line);
    align-items:baseline;
  }
  .process-list .step{
    font-family:'JetBrains Mono',monospace;
    color:var(--amber);
    font-size:13px;
  }
  .process-list h3{font-size:17px;}
  .process-list p{margin:0;color:var(--ink-soft);font-size:14px;}
 
  /* ---------- CONTACT ---------- */
  .contact{
    background:var(--ink);
    color:var(--paper);
    border-radius:20px;
    padding:64px 56px;
    text-align:center;
  }
  .contact h2{
    font-size:clamp(24px,3.4vw,34px);
    margin-bottom:18px;
  }
  .contact p{
    color:#C9AFB5;
    max-width:52ch;
    margin:0 auto 34px;
    font-size:15px;
  }
  .contact .btn-primary{
    background:var(--amber);
    color:var(--ink);
  }
  .contact .btn-primary:hover{background:#E8AEB2;transform:translateY(-2px);}
 
  footer{
    padding:40px 0;
    font-size:12.5px;
    color:var(--ink-soft);
    display:flex;
    justify-content:space-between;
    border-top:1px solid var(--line);
    font-family:'JetBrains Mono',monospace;
  }
 
  /* ---------- RESPONSIVE ---------- */
  @media (max-width:860px){
    .nav{
      position:relative;
      padding:14px 20px;
      min-height:64px;
    }
    .logo{
      min-width:0;
      font-size:14px;
      gap:7px;
      white-space:nowrap;
    }
    .logo .mono{display:none;}
    .nav-cta{display:none;}
    .menu-btn{
      display:block;
      flex:0 0 auto;
      position:relative;
      z-index:2;
    }
    .nav-links{
      display:none;
      position:absolute;
      top:100%;
      left:0;
      right:0;
      z-index:1;
      flex-direction:column;
      gap:0;
      padding:12px 20px 18px;
      background:rgba(250,244,241,0.98);
      border-bottom:1px solid var(--line);
      box-shadow:0 12px 24px rgba(65,43,54,0.08);
    }
    .nav.toggled .nav-links{display:flex;}
    .nav-links li{width:100%;}
    .nav-links .mobile-contact-item{display:block;}
    .nav-links a{
      display:block;
      padding:13px 0;
      font-size:14px;
    }
    .nav.toggled .menu-btn span:nth-child(1){transform:translateY(7px) rotate(45deg);}
    .nav.toggled .menu-btn span:nth-child(2){opacity:0;}
    .nav.toggled .menu-btn span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
    .hero-grid{grid-template-columns:1fr;}
    .about-grid{grid-template-columns:1fr;gap:40px;}
    .services-grid{grid-template-columns:1fr;}
    .work-card{grid-template-columns:1fr;}
    .process-list li{grid-template-columns:1fr;gap:8px;}
    .contact{padding:48px 26px;}
    footer{flex-direction:column;gap:8px;}
  }
  @media (prefers-reduced-motion: reduce){
    *{transition:none !important;}
  }
 
/* ---------- CONTACT FORM (Contact Form 7) ---------- */
.contact-form{
  text-align:left;
  max-width:520px;
  margin:0 auto;
}
.contact-form p{
  margin:0 0 20px;
}
.contact-form label{
  display:block;
  font-family:'JetBrains Mono',monospace;
  font-size:11.5px;
  color:#C9AFB5;
  margin-bottom:8px;
  letter-spacing:0.02em;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea{
  width:100%;
  padding:12px 14px;
  background:rgba(250,244,241,0.06);
  border:1px solid rgba(250,244,241,0.2);
  border-radius:8px;
  color:var(--paper);
  font-family:'Noto Sans JP',sans-serif;
  font-size:14px;
  transition:border-color .2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color:#8B7580;
}
.contact-form input:focus,
.contact-form textarea:focus{
  outline:none;
  border-color:var(--amber);
}
.contact-form textarea{
  min-height:130px;
  resize:vertical;
}
.contact-form input[type="submit"]{
  display:block;
  margin:8px auto 0;
  background:var(--amber);
  color:var(--ink);
  border:none;
  padding:14px 32px;
  font-size:14px;
  font-weight:600;
  letter-spacing:0.02em;
  border-radius:20px;
  cursor:pointer;
  transition:background .2s ease, transform .18s ease;
}
.contact-form input[type="submit"]:hover{
  background:#C97883;
  transform:translateY(-2px);
}
.contact-form input[type="submit"]:disabled{
  opacity:0.6;
  cursor:default;
}
.contact-form .wpcf7-not-valid-tip{
  color:#E8AEB2;
  font-size:12px;
  margin-top:6px;
}
.contact-form .wpcf7-response-output{
  border-radius:8px;
  color:var(--paper);
  font-size:13px;
  margin-top:20px !important;
  border-color:rgba(250,244,241,0.25) !important;
}
.contact-form .wpcf7-spinner{
  margin-left:10px;
}

/* ---------- PRIVACY POLICY ---------- */
.privacy-policy-page .section-head h1{
  margin:0;
  font-size:clamp(24px,3vw,32px);
  font-weight:700;
}
.privacy-policy-card{
  max-width:880px;
  margin:0 auto;
  padding:clamp(32px,5vw,64px);
  background:var(--paper-soft);
  border:1px solid var(--line);
  border-radius:20px;
}
.privacy-policy-content{
  font-size:16px;
  line-height:1.9;
  color:var(--ink-soft);
}
.privacy-policy-content > h1:first-child{
  display:none;
}
.privacy-policy-content h2{
  margin:2.4em 0 .75em;
  color:var(--ink);
  font-size:clamp(19px,2.2vw,24px);
  line-height:1.5;
}
.privacy-policy-content h2:first-of-type{
  margin-top:0;
}
.privacy-policy-content p{
  margin:0 0 1.25em;
}
.privacy-policy-content ul{
  margin:0 0 1.5em;
  padding-left:1.5em;
}
.privacy-policy-content li + li{
  margin-top:.35em;
}
@media (max-width:700px){
  .privacy-policy-card{
    border-radius:14px;
  }
  .privacy-policy-content{
    font-size:15px;
  }
}

/*
 * 【追加分】Works一覧ページ（page-works.php）で、
 * 実績カード同士の間隔を空けるためのCSSです。
 * 既存の style.css の一番下に追記してください。
 */

/* ---------- WORKS ARCHIVE PAGE ---------- */
#works-archive{padding:96px 0;}
#works-archive .work-card{margin-bottom:32px;}
#works-archive .work-card:last-of-type{margin-bottom:0;}

/* ---------- WORKS PAGE FLOW / LIGHTBOX ---------- */
#works-archive .flow-thumbs{
  align-items:flex-start;
  gap:12px;
}
#works-archive .flow-thumb{
  width:112px;
  margin:0;
  padding:0;
  color:var(--ink);
  background:transparent;
  border:0;
  border-radius:8px;
  font:inherit;
  text-align:left;
  cursor:zoom-in;
}
#works-archive .flow-thumb img{
  width:112px;
  height:76px;
  object-fit:cover;
  object-position:top center;
  border:1px solid var(--line);
  border-radius:8px;
  display:block;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
#works-archive .flow-thumb:hover img,
#works-archive .flow-thumb:focus-visible img{
  transform:translateY(-2px);
  border-color:var(--amber);
  box-shadow:0 8px 20px rgba(58,39,51,.12);
}
#works-archive .flow-thumb:focus-visible{
  outline:2px solid var(--amber);
  outline-offset:4px;
}
#works-archive .flow-thumb-title{
  display:block;
  margin-top:8px;
  font-size:11px;
  line-height:1.5;
  color:var(--ink-soft);
  text-align:center;
}
#works-archive .flow-arrow{
  margin-top:30px;
}
.works-lightbox[hidden]{display:none;}
.works-lightbox{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  grid-template-columns:64px minmax(0,1fr) 64px;
  align-items:center;
  gap:20px;
  padding:72px 32px 32px;
  background:rgba(31,20,28,.92);
}
.works-lightbox-content{
  width:min(1100px,100%);
  max-height:calc(100vh - 104px);
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.works-lightbox-image{
  max-width:100%;
  max-height:calc(100vh - 170px);
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:10px;
  background:var(--paper);
  box-shadow:0 18px 60px rgba(0,0,0,.35);
}
.works-lightbox-caption{
  margin-top:16px;
  color:var(--paper);
  font-size:16px;
  font-weight:700;
  text-align:center;
}
.works-lightbox-close,
.works-lightbox-nav{
  position:relative;
  display:grid;
  place-items:center;
  padding:0;
  color:var(--paper);
  background:transparent;
  border:1px solid rgba(255,255,255,.45);
  cursor:pointer;
  font-size:0;
  line-height:1;
}
.works-lightbox-close{
  position:absolute;
  top:20px;
  right:24px;
  width:44px;
  height:44px;
  border-radius:50%;
}
.works-lightbox-nav{
  width:52px;
  height:52px;
  border:0;
  border-radius:0;
}
.works-lightbox-close::before,
.works-lightbox-close::after{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width:19px;
  height:2px;
  border-radius:2px;
  background:currentColor;
}
.works-lightbox-close::before{
  transform:translate(-50%,-50%) rotate(45deg);
}
.works-lightbox-close::after{
  transform:translate(-50%,-50%) rotate(-45deg);
}
.works-lightbox-nav::before{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width:12px;
  height:12px;
  border-left:3px solid currentColor;
  border-bottom:3px solid currentColor;
  transition:border-color .2s ease;
}
.works-lightbox-prev::before{
  transform:translate(-50%,-50%) rotate(45deg);
}
.works-lightbox-next::before{
  transform:translate(-50%,-50%) rotate(225deg);
}
.works-lightbox button:hover,
.works-lightbox button:focus-visible{
  color:var(--ink);
  background:var(--paper);
  outline:0;
}
.works-lightbox .works-lightbox-nav:hover,
.works-lightbox .works-lightbox-nav:focus-visible{
  color:var(--amber);
  background:transparent;
}
body.works-lightbox-open{overflow:hidden;}
@media (max-width:700px){
  #works-archive .flow-thumbs{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
  }
  #works-archive .flow-thumb{width:100%;}
  #works-archive .flow-thumb img{width:100%;height:68px;}
  #works-archive .flow-arrow{display:none;}
  .works-lightbox{
    grid-template-columns:42px minmax(0,1fr) 42px;
    gap:8px;
    padding:68px 10px 22px;
  }
  .works-lightbox-nav{width:40px;height:40px;}
  .works-lightbox-image{max-height:calc(100vh - 160px);}
}

/* ---------- RANDOM TEXT ANIMATION ---------- */
.js-random-anime .random-char{
  display:inline-block;
}
.js-random-anime.is-random-ready .random-char{
  opacity:0;
  animation:random-fade-in-up .7s ease forwards;
  animation-delay:var(--random-delay);
}
@keyframes random-fade-in-up{
  from{
    opacity:0;
    transform:translateY(100%);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}
@media (prefers-reduced-motion:reduce){
  .js-random-anime.is-random-ready .random-char{
    opacity:1;
    animation:none;
  }
}
