/*
Theme Name: Sano Yasuka Portfolio v3
Author: Sano Yasuka
Description: 佐野泰加（富山県高岡市のWebデザイナー）のポートフォリオ用オリジナルテーマ。PCは左右固定パネル＋中央1カラム、960px未満は1カラム。命名規則はFLOCSS（l- / c- / p- / u- / js-）。色・文字・余白は「SANO YASUKA デザインシステム」に準拠。
Version: 3.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sano-yasuka-v3
*/

/* ==========================================================
   FOUNDATION：デザイントークン（デザインシステムと同じ名前・値）
   ========================================================== */
:root {
  /* color */
  --primary: #2a5fdb;        /* 藍：見出し・ロゴ・ボタン・リンク・タグ */
  --primary-dark: #1c45a8;   /* ホバー・押下 */
  --primary-light: #9db6f0;  /* イラスト2番目の色・点線（文字には使わない） */
  --primary-tint: #eaf0fd;   /* イラスト背景・補足メッセージ */
  --surface-base: #fffaf3;   /* PC左右パネルの地 */
  --surface-warm: #fff1e2;   /* FV・Principle・Aboutの帯 */
  --surface-white: #ffffff;  /* 中央カラム・カード */
  --ink: #2b2b2b;            /* 本文 */
  --ink-sub: #5a5a5a;        /* 補足・キャプション */
  --ink-nav: #6a6a6a;        /* ナビの日本語補足 */
  --line: #f1e6d6;           /* ごく薄い区切り線 */

  /* type */
  --font-display: "Montserrat", sans-serif;
  --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;

  /* spacing */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 56px;
  --space-7: 72px;
  --gutter: 32px;           /* 中央カラムの左右余白（400px以下は24px） */
  --column-width: 420px;
  --side-min: 240px;

  /* radius */
  --radius-tag: 3px;
  --radius-button: 8px;
  --radius-card: 16px;
  --radius-illust: 20px;
  --radius-arch: 130px;
  --radius-pill: 999px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1); /* ぽよんと弾む */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface-base);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

body.is-drawer-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--primary);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

a:hover {
  color: var(--primary-dark);
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================
   LAYOUT
   ========================================================== */
.l-frame {
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.l-side {
  flex: 1 1 0;
  min-width: var(--side-min);
}

.l-side__inner {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 560px;
  padding: 48px 40px 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.l-side--right .l-side__inner {
  padding: 48px 56px 48px 40px;
  align-items: center;
}

.l-main {
  flex: 0 0 var(--column-width);
  max-width: 100%;
  min-width: 0;
  background: var(--surface-white);
  box-shadow: 0 0 0 1px var(--line);
}

.l-sp-header {
  display: none;
}

.l-inner {
  padding-inline: var(--gutter);
}

.l-section {
  padding-block: var(--space-7) var(--space-6);
}

.l-section--after-wave {
  padding-top: 40px;
}

.l-section--warm {
  background: var(--surface-warm);
}

@media (max-width: 959px) {
  .l-side {
    display: none;
  }
  .l-main {
    flex: 1 1 100%;
    max-width: 640px;
  }
  .l-sp-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px 8px 20px;
    background: var(--surface-warm);
  }
}

@media (max-width: 400px) {
  :root {
    --gutter: 24px;
  }
}

/* ==========================================================
   COMPONENT
   ========================================================== */

/* --- skip link --- */
.c-skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-button);
}
.c-skip:focus {
  top: 16px;
  color: #fff;
}

/* --- logo --- */
.c-logo {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: var(--primary);
}
.c-logo__mark {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.c-logo__mark svg {
  width: 0.95em;
  height: 0.95em;
  fill: currentColor;
}
.c-logo__sub {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
}
.c-logo--sm .c-logo__mark {
  font-size: 17px;
}

/* --- big logotype (FV) --- */
.c-logotype {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--primary);
  line-height: 0.9;
  margin-bottom: var(--space-5);
}
.c-logotype__row {
  display: flex;
  align-items: center;
  font-size: clamp(64px, 24vw, 100px);
  letter-spacing: -0.01em;
}
.c-logotype__row svg {
  width: 0.9em;
  height: 0.9em;
  margin-left: 4px;
}
.c-logotype__row--sub {
  align-items: flex-end;
  gap: 8px;
  font-size: clamp(40px, 15vw, 62px);
}
.c-logotype__row--sub svg {
  width: 0.95em;
  height: 0.6em;
  margin-bottom: 0.12em;
}

/* --- nav (side) --- */
.c-nav__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.c-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  padding: 2px 0;
  text-decoration: none;
}
.c-nav__en {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
}
.c-nav__jp {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-nav);
}
.c-nav__link[aria-current="page"] .c-nav__en {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* --- sns --- */
.c-sns {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  color: var(--primary);
}
.c-sns__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  margin: -13px;
  align-items: center;
  justify-content: center;
}
.c-sns__text {
  font-size: 10px;
  text-decoration: none;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  padding: 0 6px;
}

/* --- button --- */
.c-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 14px 24px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-button);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
}
.c-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}
.c-btn__arrow {
  font-family: var(--font-display);
  font-size: 16px;
  transition: transform 0.2s var(--ease);
}
.c-btn:hover .c-btn__arrow {
  transform: translateX(4px);
}
.c-btn--outline {
  background: var(--surface-white);
  color: var(--primary);
}
.c-btn--outline:hover {
  background: var(--primary-tint);
  color: var(--primary-dark);
}
.c-btn--inline {
  display: inline-flex;
  min-height: 48px;
}
.c-btn-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* --- heading --- */
.c-heading {
  margin-bottom: 36px;
  color: var(--primary);
}
.c-heading__en {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0.04em;
}
.c-heading__jp {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.6;
}
.c-heading--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.c-heading--row .c-more {
  margin-bottom: 36px;
}
.c-more {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  text-decoration: none;
  padding: 12px 0;
  white-space: nowrap;
}

/* --- tag --- */
.c-tag {
  display: inline-block;
  padding: 0 8px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-tag);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--primary);
}
.c-tag--client {
  background: var(--primary);
  color: #fff;
}

/* --- label (pill outline) --- */
.c-label {
  display: inline-block;
  padding: 2px 14px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--primary);
}

/* --- note --- */
.c-note {
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.9;
}

/* --- work card (horizontal scroll item / list item) --- */
.c-work-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.c-work-card:hover {
  color: var(--ink);
}
.c-work-card__thumb {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--primary-tint);
  margin-bottom: 12px;
}
.c-work-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.c-work-card:hover .c-work-card__thumb img {
  transform: scale(1.04);
}
.c-work-card__tag {
  margin-bottom: 6px;
}
.c-work-card__title {
  display: block;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.6;
}
.c-work-card__type {
  display: block;
  font-size: 11px;
  color: var(--ink-sub);
}

/* --- sparkle / illust --- */
.c-illust {
  display: block;
  width: 100%;
  border-radius: var(--radius-illust);
}

/* ==========================================================
   PROJECT
   ========================================================== */

/* --- side panel parts --- */
.p-side-nav {
  margin-top: 48px;
}
.p-side-photo {
  position: relative;
  width: min(260px, 100%);
}
.p-side-photo__frame {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary);
  border-radius: var(--radius-arch) var(--radius-arch) var(--radius-card) var(--radius-card);
}
.p-side-photo__img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 26 / 34;
  object-fit: cover;
  object-position: 55% 50%;
  border-radius: var(--radius-arch) var(--radius-arch) var(--radius-card) var(--radius-card);
}
.p-side-photo__hi {
  position: absolute;
  left: -26px;
  top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50% 50% 6px 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
}
.p-side-photo__spark {
  position: absolute;
  right: -36px;
  bottom: 70px;
  width: 34px;
  height: 34px;
}
.p-side-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: var(--radius-button);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.p-side-cta:hover {
  background: var(--primary-dark);
  color: #fff;
}
.p-side-cta svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* --- SP header & drawer --- */
.p-hamburger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: var(--primary);
}
.p-hamburger__line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.p-hamburger[aria-expanded="true"] .p-hamburger__line:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}
.p-hamburger[aria-expanded="true"] .p-hamburger__line:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}
.p-drawer {
  position: fixed;
  inset: 60px 0 0 0;
  z-index: 49;
  overflow-y: auto;
  padding: 32px 24px 40px;
  background: var(--surface-warm);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.p-drawer.is-open {
  opacity: 1;
  visibility: visible;
}
.p-drawer .c-nav__list {
  gap: 4px;
  margin-bottom: 32px;
}
.p-drawer .c-nav__link {
  min-height: 48px;
  align-items: center;
}
.p-drawer .c-nav__en {
  font-size: 20px;
}
.p-drawer .c-nav__jp {
  font-size: 12px;
}
.p-drawer__cta {
  margin-bottom: 32px;
}
@media (min-width: 960px) {
  .p-drawer {
    display: none;
  }
}

/* --- hero --- */
.p-hero {
  padding: 56px var(--gutter) 56px;
  background: var(--surface-warm);
}
.p-hero__label {
  margin-bottom: 20px;
}
.p-hero__title {
  margin-bottom: var(--space-4);
  font-weight: 900;
  font-size: 30px;
  line-height: 1.55;
  color: var(--primary);
}
.p-hero__lead {
  margin-bottom: var(--space-5);
  font-size: 13px;
  line-height: 2.1;
}
@media (max-width: 959px) {
  .p-hero {
    padding-top: 32px;
  }
}

/* --- principle --- */
.p-principle {
  padding: 24px var(--gutter) 64px;
  background: var(--surface-warm);
}
.p-principle__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.p-principle__item {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  padding: 18px 20px;
  border-radius: var(--radius-card);
  background: var(--surface-white);
}
.p-principle__num {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--primary);
}
.p-principle__title {
  display: block;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.8;
}
.p-principle__text {
  display: block;
  font-size: 12px;
  line-height: 1.8;
}

/* --- service --- */
.p-service__item {
  margin-bottom: 52px;
}
.p-service__illust {
  margin-bottom: 20px;
}
.p-service__title {
  margin-bottom: 10px;
  font-weight: 900;
  font-size: 19px;
  line-height: 1.6;
  color: var(--primary);
}
.p-service__text {
  font-size: 13px;
}

/* --- flow --- */
.p-flow__list {
  position: relative;
}
.p-flow__list::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 10px;
  bottom: 30px;
  border-left: 2px dotted var(--primary-light);
}
.p-flow__item {
  position: relative;
  padding: 0 0 24px 52px;
}
.p-flow__num {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: var(--surface-white);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
}
.p-flow__item--key .p-flow__num {
  background: var(--primary);
  color: #fff;
}
.p-flow__title {
  font-weight: 900;
  color: var(--primary);
  line-height: 1.6;
}
.p-flow__text {
  font-size: 12px;
}

/* --- wave band --- */
.p-wave {
  display: block;
  width: 100%;
  height: 100px;
}

/* --- works scroller --- */
.p-works-scroll {
  display: flex;
  gap: 18px;
  padding: 0 var(--gutter) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.p-works-scroll > li {
  flex: 0 0 240px;
  scroll-snap-align: start;
}

/* --- about --- */
.p-about__head {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: var(--space-4);
}
.p-about__photo {
  flex: none;
  width: 88px;
  height: 88px;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  object-position: 38% 38%;
}
.p-about__name {
  line-height: 1.6;
}
.p-about__name-jp {
  display: block;
  font-weight: 900;
  font-size: 18px;
  color: var(--primary);
}
.p-about__name-en {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
}
.p-about__text {
  margin-bottom: var(--space-4);
  font-size: 13px;
}
.p-info {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 6px 12px;
  margin-bottom: var(--space-4);
  padding: 16px 20px;
  border-radius: var(--radius-card);
  background: var(--surface-white);
  font-size: 12px;
}
.p-info dt {
  font-weight: 700;
  color: var(--primary);
}

/* --- contact cta --- */
.p-cta {
  padding: var(--space-7) var(--gutter) var(--space-6);
  text-align: center;
}
.p-cta__icon {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}
.p-cta__title {
  margin-bottom: 6px;
  font-weight: 900;
  font-size: 24px;
  line-height: 1.6;
  color: var(--primary);
}
.p-cta__en {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--primary);
}
.p-cta__text {
  margin: var(--space-4) 0 var(--space-5);
  font-size: 13px;
}

/* --- footer --- */
.p-footer {
  padding: 32px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.p-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin-bottom: 12px;
  font-size: 11px;
}
.p-footer__links a {
  display: inline-block;
  padding: 8px 0;
  text-decoration: none;
  color: var(--ink-sub);
}
.p-footer__copy {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--primary);
}

/* --- page hero (下層) --- */
.p-page-hero {
  padding: 48px var(--gutter) 40px;
  background: var(--surface-warm);
}
.p-page-hero .c-heading {
  margin-bottom: 20px;
}
.p-page-hero .c-heading__en {
  font-size: 34px;
}
.p-page-hero__lead {
  font-size: 13px;
}

/* --- works archive --- */
.p-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-5);
}
.p-filter__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.p-filter__link[aria-current="page"] {
  background: var(--primary);
  color: #fff;
}
.p-works-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 18px;
}
@media (min-width: 560px) and (max-width: 959px) {
  .p-works-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --- work detail --- */
.p-work-detail__back {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.p-work-detail__tag {
  margin-bottom: 10px;
}
.p-work-detail__title {
  margin-bottom: var(--space-4);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.6;
  color: var(--primary);
}
.p-work-detail__visual {
  margin-bottom: var(--space-4);
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--primary-tint);
}
.p-work-detail__visual img {
  display: block;
  width: 100%;
}
.p-work-detail__meta {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px 12px;
  margin-bottom: var(--space-5);
  padding: 18px 20px;
  border-radius: var(--radius-card);
  background: var(--primary-tint);
  font-size: 12px;
  line-height: 1.8;
}
.p-work-detail__meta dt {
  font-weight: 700;
  color: var(--primary);
}
.p-work-detail__meta dd {
  overflow-wrap: anywhere;
}
.p-work-detail__site {
  margin-bottom: var(--space-5);
}

/* --- entry (本文) --- */
.p-entry > * + * {
  margin-top: 1.2em;
}
.p-entry h2 {
  margin-top: 2.2em;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary-tint);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.6;
  color: var(--primary);
}
.p-entry h3 {
  margin-top: 1.8em;
  font-weight: 900;
  font-size: 15px;
  color: var(--primary);
}
.p-entry p,
.p-entry li {
  font-size: 13px;
  line-height: 2.1;
}
.p-entry ul {
  padding-left: 1.2em;
  list-style: disc;
}
.p-entry .is-style-note,
.p-entry .syp-note {
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--primary-tint);
  font-size: 12px;
}
.p-entry img {
  border-radius: var(--radius-card);
}

/* --- prev / next --- */
.p-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: var(--space-6);
  font-size: 12px;
  font-weight: 700;
}
.p-pager a {
  display: inline-block;
  padding: 10px 0;
  text-decoration: none;
}

/* --- service page --- */
.p-menu {
  border-top: 1px solid var(--line);
}
.p-menu__item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.p-menu__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 6px;
}
.p-menu__name {
  font-weight: 900;
  font-size: 15px;
  color: var(--primary);
}
.p-menu__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}
.p-menu__desc {
  font-size: 12px;
  line-height: 1.9;
}
.p-menu__days {
  margin-top: 4px;
  font-size: 11px;
  color: var(--ink-sub);
}

/* --- contact page --- */
.p-ok-list {
  margin-bottom: var(--space-5);
  padding: 18px 20px;
  border-radius: var(--radius-card);
  background: var(--primary-tint);
}
.p-ok-list__title {
  margin-bottom: 8px;
  font-weight: 900;
  color: var(--primary);
}
.p-ok-list li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.9;
}
.p-ok-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
.p-form-note {
  margin-top: var(--space-4);
  font-size: 12px;
  color: var(--ink-sub);
}

/* Contact Form 7 */
.wpcf7 p {
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1.5px solid #cdd8f2;
  border-radius: var(--radius-button);
  background: #fff;
  color: var(--ink);
  font: 400 15px/1.7 var(--font-jp);
}
/* セレクトボックス：標準の矢印を消し、右に余白をとって藍色の矢印を表示 */
.wpcf7 select,
select {
  -webkit-appearance: none;
  appearance: none;
  min-height: 52px;
  padding-right: 48px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%232a5fdb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px 9px;
  cursor: pointer;
}
select::-ms-expand {
  display: none;
}
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  border-color: var(--primary);
  outline: 3px solid var(--primary-tint);
}
.wpcf7 input[type="submit"],
.wpcf7 button,
.wpcf7 .wpcf7-previous {
  width: 100%;
  min-height: 56px;
  border: none;
  border-radius: var(--radius-button);
  background: var(--primary);
  color: #fff;
  font: 700 15px/1.6 var(--font-jp);
  cursor: pointer;
}
.wpcf7 input[type="submit"]:hover,
.wpcf7 button:hover {
  background: var(--primary-dark);
}
.wpcf7 .wpcf7-previous {
  margin-bottom: 12px;
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary);
}
/* 必須・任意のバッジ（フォーム側の c-form-badge クラスに対応） */
.c-form-group {
  margin-bottom: 4px;
}
.c-form-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.c-form-badge {
  display: inline-block;
  padding: 0 8px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-tag);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.08em;
  vertical-align: 1px;
}
.c-form-badge--required {
  background: var(--primary);
  color: #fff;
}
.c-form-badge--optional {
  background: #fff;
  color: var(--primary);
}
.c-form-check {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.c-form-check br {
  display: none;
}
.wpcf7-list-item {
  margin: 0;
}
.wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
}
.wpcf7-list-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}
.wpcf7 .c-form-note {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-sub);
  text-align: center;
}
.wpcf7-not-valid-tip {
  font-size: 12px;
  color: #c0392b;
}
.wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-button);
  font-size: 13px;
}

/* --- 404 --- */
.p-notfound {
  padding: var(--space-7) var(--gutter);
  text-align: center;
}

/* ==========================================================
   UTILITY / JS STATE
   ========================================================== */
.u-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.u-mt-4 {
  margin-top: var(--space-4);
}

/* ==========================================================
   ANIMATION（やわらかく弾む、かわいい動き）
   - スクロールで「ぽよん」と表示（1回だけ）
   - ロゴ：1文字ずつ弾んで登場 → 吹き出しの「…」が話しているように動く
   - ひと筆の線：描かれるように現れる
   - キラキラ：ゆっくりまたたく
   - 「Hi!」：ときどき手を振るように揺れる
   - 動きを減らす設定（prefers-reduced-motion）ではすべて止める
   ========================================================== */
@keyframes syp-pop-in {
  0% { opacity: 0; transform: translateY(24px) scale(0.85); }
  100% { opacity: 1; transform: none; }
}
@keyframes syp-pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
@keyframes syp-typing {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-30%); }
}
@keyframes syp-twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(0.5) rotate(45deg); opacity: 0.45; }
}
@keyframes syp-wave-hand {
  0%, 70%, 100% { transform: rotate(0deg); }
  76% { transform: rotate(-14deg); }
  82% { transform: rotate(10deg); }
  88% { transform: rotate(-6deg); }
  94% { transform: rotate(3deg); }
}
@keyframes syp-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes syp-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}
@keyframes syp-jelly {
  0%, 100% { transform: scale(1, 1); }
  30% { transform: scale(1.06, 0.94); }
  60% { transform: scale(0.97, 1.03); }
}

/* --- FV：ロゴが1文字ずつ弾んで登場 --- */
.c-pop {
  display: inline-block;
  animation: syp-pop-in 0.7s var(--ease-pop) both;
  animation-delay: calc(var(--i, 0) * 70ms + 100ms);
}
.c-logotype__bubble {
  display: inline-flex;
  transform-origin: 20% 90%;
  animation: syp-pop 0.7s var(--ease-pop) 0.4s both;
}
.c-logotype__bubble svg {
  margin-left: 4px;
}
.p-hero__label { animation: syp-pop-in 0.6s var(--ease-pop) both; }
.p-hero__title { animation: syp-pop-in 0.7s var(--ease-pop) 0.75s both; }
.p-hero__lead { animation: syp-pop-in 0.7s var(--ease-pop) 0.9s both; }
.p-hero .c-btn-group { animation: syp-pop-in 0.7s var(--ease-pop) 1.05s both; }

/* 吹き出しの「…」が、話しているように順番に跳ねる */
.c-typing__dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: syp-typing 1.4s ease-in-out 1.2s infinite;
}
.c-typing__dot:nth-of-type(2) { animation-delay: 1.35s; }
.c-typing__dot:nth-of-type(3) { animation-delay: 1.5s; }

/* ひと筆の線：描かれるように現れる */
.c-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: syp-draw 1.1s ease-out 1s forwards;
}
.js-draw .c-draw {
  animation: none;
}
.js-draw.is-visible .c-draw,
html:not(.has-js) .js-draw .c-draw {
  animation: syp-draw 1.8s ease-in-out forwards;
}

/* キラキラ */
.c-spark {
  transform-box: fill-box;
  transform-origin: center;
  animation: syp-twinkle 2.6s ease-in-out infinite;
}
.p-side-photo__spark {
  animation: syp-twinkle 2.6s ease-in-out 0.8s infinite;
}

/* 右パネル：写真がぽよんと登場、「Hi!」がときどき手を振る */
.p-side-photo {
  animation: syp-pop-in 0.9s var(--ease-pop) 0.3s both;
}
.p-side-photo__hi {
  transform-origin: 80% 90%;
  animation: syp-wave-hand 4.5s ease-in-out 1.5s infinite;
}
.p-side-photo:hover .p-side-photo__hi {
  animation: syp-wave-hand 0.9s ease-in-out infinite;
}
.p-side-cta {
  transition: transform 0.3s var(--ease-pop), background-color 0.2s var(--ease);
}
.p-side-cta:hover {
  transform: translateY(-3px);
}

/* ボタン：ふわっと持ち上がり、矢印がぴょこぴょこ */
.c-btn {
  transition: transform 0.3s var(--ease-pop), background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.c-btn:hover {
  transform: translateY(-3px);
}
.c-btn:active,
.p-side-cta:active {
  transform: scale(0.97);
}
.c-btn:hover .c-btn__arrow {
  transform: none;
  animation: syp-nudge 0.7s ease-in-out infinite;
}

/* 実績カード：少し傾いて持ち上がる */
.c-work-card__thumb {
  transition: transform 0.4s var(--ease-pop);
}
.c-work-card:hover .c-work-card__thumb {
  transform: translateY(-4px) rotate(-1.5deg);
}

/* サービスのイラスト：触れるとぷるん */
.p-service__illust:hover svg {
  animation: syp-jelly 0.6s ease-in-out;
}

/* スクロールで「ぽよん」と表示（JSが動いた時だけ有効。止まっても本文は消えない） */
.has-js .js-fade {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease-pop);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.has-js .js-fade.is-visible {
  opacity: 1;
  transform: none;
}
.p-principle__item.js-fade:nth-child(2) { --i: 1; }
.p-principle__item.js-fade:nth-child(3) { --i: 2; }
.p-works-list > .js-fade:nth-child(2n) { --i: 1; }

/* ご依頼の流れ：番号がぽんっと出る */
.has-js .p-flow__item.is-visible .p-flow__num {
  animation: syp-pop 0.5s var(--ease-pop) both;
  animation-delay: calc(var(--i, 0) * 90ms + 0.1s);
}

/* CTAの吹き出し：表示されたら弾む */
.has-js .p-cta.is-visible .p-cta__icon {
  animation: syp-pop 0.7s var(--ease-pop) 0.2s both;
}

@media (prefers-reduced-motion: reduce) {
  .c-pop,
  .c-logotype__bubble,
  .p-hero__label,
  .p-hero__title,
  .p-hero__lead,
  .p-hero .c-btn-group,
  .c-typing__dot,
  .c-spark,
  .p-side-photo,
  .p-side-photo__hi,
  .p-side-photo__spark,
  .p-flow__num,
  .p-cta__icon {
    animation: none !important;
  }
  .c-draw {
    animation: none !important;
    stroke-dashoffset: 0;
  }
  .has-js .js-fade {
    opacity: 1;
    transform: none;
  }
}
