/*
Theme Name: waka design
Theme URI:
Author: waka
Description: グラフィックデザイナーのためのポートフォリオサイトテーマ。水彩のにじみを感じる、淡いグレー×ブルーグレーのシンプルな世界観。管理画面から文章・写真・作品・アクセントカラーを編集できます。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: waka-design
*/

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wd-bg, #F8F8F9);
  color: var(--wd-text, #3C4450);
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wd-accent, #6E8098); text-decoration: none; }
a:hover { color: #2F3A49; }
h1, h2, h3, h4 { font-family: 'Shippori Mincho', serif; margin: 0; }
p { margin: 0; }
button, input, textarea { font-family: inherit; font-size: inherit; }

:root {
  --wd-bg: #F8F8F9;
  --wd-bg-alt: #EEF1F4;
  --wd-text: #3C4450;
  --wd-text-sub: #5C6472;
  --wd-text-muted: #8089A0;
  --wd-border: #E4E7EB;
  --wd-accent: #6E8098;
  --wd-band-bg: #44546A;
  --wd-band-text: #F3F4F7;
  --wd-band-text-sub: #CBD2DC;
}

.wd-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 64px);
}

.wd-eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--wd-accent);
  margin: 0 0 12px;
  text-transform: uppercase;
}

.wd-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}
.wd-btn-primary { background: var(--wd-accent); color: #FAFAFB; }
.wd-btn-outline { border-color: #C7CDD5; color: var(--wd-text); }
.wd-btn-light { background: #FAFAFB; color: var(--wd-text); }

.wd-link-more {
  font-size: 14px;
  border-bottom: 1px solid #C7CDD5;
  padding-bottom: 2px;
}

/* ---------- Header ---------- */
.wd-header {
  width: 100%;
  border-bottom: 1px solid var(--wd-border);
  background: rgba(248,248,249,0.92);
  position: sticky;
  top: 0;
  z-index: 50;
}
.wd-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(24px, 6vw, 64px);
}
.wd-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--wd-text);
}
.wd-logo img { height: 36px; width: auto; }
.wd-nav { display: flex; gap: clamp(16px, 3vw, 36px); flex-wrap: wrap; }
.wd-nav a { font-size: 14px; letter-spacing: 0.03em; color: var(--wd-text); }

/* ---------- Hero ---------- */
.wd-hero {
  position: relative;
  padding: clamp(96px, 14vw, 168px) clamp(24px, 6vw, 64px) clamp(80px, 10vw, 128px);
  overflow: hidden;
}
.wd-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  pointer-events: none;
}
.wd-blob-a { top: -120px; right: -80px; width: 420px; height: 420px; background: radial-gradient(circle at 35% 35%, rgba(142,163,196,0.40), rgba(142,163,196,0) 70%); animation: wd-float-a 20s ease-in-out infinite; }
.wd-blob-b { top: 160px; right: 220px; width: 300px; height: 300px; background: radial-gradient(circle at 60% 40%, rgba(154,143,189,0.32), rgba(154,143,189,0) 70%); filter: blur(4px); animation: wd-float-b 24s ease-in-out infinite; }
.wd-blob-c { top: 40px; left: -100px; width: 320px; height: 320px; background: radial-gradient(circle at 50% 50%, rgba(127,168,166,0.28), rgba(127,168,166,0) 70%); animation: wd-float-a 26s ease-in-out infinite reverse; }
@keyframes wd-float-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-16px,18px) scale(1.04); } }
@keyframes wd-float-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,-14px) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .wd-blob { animation: none !important; } }

.wd-hero-inner { max-width: 1240px; margin: 0 auto; position: relative; z-index: 1; }
.wd-hero h1 { font-weight: 800; font-size: clamp(34px, 5.4vw, 62px); line-height: 1.5; margin: 0 0 28px; max-width: 16ch; }
.wd-hero-lead { font-size: 16px; line-height: 1.9; color: var(--wd-text-sub); max-width: 46ch; margin: 0 0 40px; }
.wd-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Section shared ---------- */
.wd-section { padding: clamp(64px, 8vw, 112px) clamp(24px, 6vw, 64px); }
.wd-section-alt { background: var(--wd-bg-alt); }
.wd-section h2 { font-weight: 600; font-size: clamp(24px, 3vw, 32px); }

/* ---------- About ---------- */
.wd-about-grid { display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 80px); align-items: center; }
.wd-about-photo {
  flex: 0 0 auto;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, rgba(142,163,196,0.30), rgba(195,183,214,0.22) 55%, rgba(248,248,249,0) 80%);
  border: 1px solid var(--wd-border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}
.wd-about-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.wd-about-body { flex: 1 1 360px; min-width: 0; }
.wd-about-body h2, .wd-about-name-heading { font-family: 'Poppins', sans-serif; }
.wd-about-body h2 { font-size: 24px; margin: 0 0 20px; }
.wd-about-text { font-size: 15px; line-height: 1.9; color: var(--wd-text-sub); margin: 0 0 20px; max-width: 54ch; white-space: pre-line; }

/* ---------- Flow（ご依頼の流れ） ---------- */
.wd-flow-list { list-style: none; margin: 0 0 56px; padding: 0; max-width: 480px; }
.wd-flow-item { display: flex; align-items: center; gap: 20px; position: relative; padding-bottom: 28px; }
.wd-flow-item:last-child { padding-bottom: 0; }
.wd-flow-item:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 1px; background: var(--wd-border); }
.wd-flow-num { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--wd-bg-alt); color: var(--wd-accent); display: flex; align-items: center; justify-content: center; font-family: 'Shippori Mincho', serif; font-weight: 600; font-size: 17px; }
.wd-flow-title { font-size: 15px; font-weight: 500; }

/* ---------- 本文中の表（料金表など） ---------- */
.wd-about-text table, .wd-single-content table { width: 100%; max-width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 14px; white-space: normal; }
.wd-about-text th, .wd-about-text td, .wd-single-content th, .wd-single-content td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--wd-border); }
.wd-about-text th, .wd-single-content th { color: var(--wd-text-muted); font-weight: 500; background: var(--wd-bg-alt); }

/* ---------- 料金表 ---------- */
.wd-price-table { width: 100%; max-width: 640px; border-collapse: collapse; margin: 0 0 40px; font-size: 15px; }
.wd-price-table th, .wd-price-table td { text-align: left; padding: 22px 16px; border-bottom: 1px solid var(--wd-border); }
.wd-price-table th { color: var(--wd-text-muted); font-weight: 500; font-size: 13px; letter-spacing: 0.04em; }
.wd-price-table th:last-child, .wd-price-table td:last-child { text-align: right; white-space: nowrap; color: var(--wd-text); font-weight: 500; padding-left: 40px; }
.wd-price-note { display: block; font-size: 13px; color: var(--wd-text-muted); margin-top: 4px; }

/* ---------- Works grid ---------- */
.wd-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }
.wd-works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 32px; }
.wd-work-card { background: #FAFAFB; border: 1px solid var(--wd-border); border-radius: 4px; overflow: hidden; display: block; color: var(--wd-text); }
.wd-work-thumb { aspect-ratio: 4/3; background: radial-gradient(circle at 30% 30%, rgba(142,163,196,0.30), rgba(195,183,214,0.16) 60%, #F3F4F6 85%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wd-work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wd-work-body { padding: 20px; }
.wd-work-body h3 { font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 16px; font-weight: 500; margin: 0 0 6px; }
.wd-work-cat { font-size: 13px; color: var(--wd-text-muted); margin: 0; }

.wd-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.wd-filter-btn {
  font-family: inherit; font-size: 13px; letter-spacing: 0.03em; cursor: pointer;
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--wd-border);
  background: #FAFAFB; color: var(--wd-text-sub);
}
.wd-filter-btn:hover { border-color: var(--wd-accent); color: var(--wd-text); }
.wd-filter-btn.is-active { background: var(--wd-accent); border-color: var(--wd-accent); color: #FAFAFB; }
.wd-works-empty { color: var(--wd-text-sub); font-size: 14px; }

/* ---------- Service ---------- */
.wd-service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px; }
.wd-service-item svg { margin-bottom: 16px; }
.wd-service-item h3 { font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 17px; font-weight: 500; margin: 0 0 10px; }
.wd-service-item p { font-size: 14px; line-height: 1.8; color: var(--wd-text-sub); margin: 0 0 10px; }
.wd-service-item p.wd-service-tags { font-size: 13px; line-height: 1.8; color: var(--wd-text-muted); margin: 0; }

/* ---------- Contact band / page ---------- */
.wd-contact-band { padding: clamp(72px, 9vw, 120px) clamp(24px, 6vw, 64px); background: var(--wd-band-bg); color: var(--wd-band-text); text-align: center; }
.wd-contact-band .wd-container { max-width: 760px; }
.wd-contact-band p { font-size: 15px; line-height: 1.9; color: var(--wd-band-text-sub); margin: 0 0 36px; }
.wd-contact-methods-lead { max-width: 560px; margin: 0 auto 20px; text-align: center; color: var(--wd-band-text-sub); font-size: 14px; }
.wd-contact-method-label { max-width: 560px; margin: 0 auto 12px; text-align: center; color: var(--wd-band-text-sub); font-size: 13px; letter-spacing: 0.04em; }
.wd-contact-reply-note { margin: 14px 0 0; font-size: 12px; color: var(--wd-text-muted); }
.wd-contact-or { max-width: 560px; margin: 36px auto; display: flex; align-items: center; gap: 16px; color: var(--wd-band-text-sub); font-size: 13px; }
.wd-contact-or::before, .wd-contact-or::after { content: ""; flex: 1 1 auto; height: 1px; background: rgba(255,255,255,0.18); }
.wd-contact-alt { max-width: 560px; margin: 0 auto; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.wd-contact-alt-btn { gap: 8px; }
.wd-contact-form { max-width: 560px; margin: 32px auto 0; text-align: left; }
.wd-field { margin-bottom: 20px; }
.wd-field label { display: block; font-size: 13px; color: var(--wd-band-text); margin-bottom: 6px; }
.wd-field input, .wd-field select, .wd-field textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--wd-border); border-radius: 6px;
  background: #FAFAFB; color: var(--wd-text);
}
.wd-field textarea { min-height: 140px; resize: vertical; }
.wd-form-msg { padding: 14px 18px; border-radius: 6px; margin-bottom: 24px; font-size: 14px; }
.wd-form-msg.success { background: #E8F0EC; color: #355B45; }
.wd-form-msg.error { background: #F6E7E4; color: #7A3B30; }

/* ---------- Footer ---------- */
.wd-footer { padding: 48px clamp(24px, 6vw, 64px) 32px; border-top: 1px solid var(--wd-border); }
.wd-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.wd-footer-logo { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 16px; color: var(--wd-text); }
.wd-footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.wd-footer-nav a { font-size: 13px; color: #7A8290; }
.wd-footer-sns { display: flex; gap: 16px; }
.wd-footer-copy { max-width: 1240px; margin: 24px auto 0; font-size: 12px; color: #A5ABB5; padding: 0 clamp(24px,6vw,64px); }

/* ---------- Blog / archive-work / single-work ---------- */
.wd-page-head { padding: clamp(64px,8vw,96px) clamp(24px,6vw,64px) clamp(32px,4vw,48px); }
.wd-page-head h1 { font-weight: 700; font-size: clamp(28px,4vw,42px); }
.wd-post-list { display: grid; gap: 28px; }
.wd-post-card { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--wd-border); flex-wrap: wrap; }
.wd-post-card .wd-post-thumb { width: 160px; aspect-ratio: 4/3; background: var(--wd-bg-alt); overflow: hidden; border-radius: 4px; flex: 0 0 auto; }
.wd-post-card .wd-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wd-post-card h2 { font-size: 18px; font-weight: 500; font-family: 'Zen Kaku Gothic New', sans-serif; margin: 0 0 8px; }
.wd-post-date { font-size: 13px; color: var(--wd-text-muted); margin-bottom: 8px; }

/* ---------- トップページ：お知らせティーザー ---------- */
.wd-news-teaser-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.wd-news-teaser-list li { display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--wd-border); }
.wd-news-teaser-list .wd-post-date { flex: 0 0 auto; margin-bottom: 0; }
.wd-news-teaser-list a { font-size: 15px; color: var(--wd-text); }
.wd-single-content { max-width: 760px; }
.wd-single-content img { border-radius: 4px; margin: 24px 0; }
.wd-single-content p { margin-bottom: 1.4em; color: var(--wd-text-sub); font-size: 16px; line-height: 1.9; }
.wd-single-hero-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; margin-bottom: 32px; }
.wd-work-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; font-size: 13px; color: var(--wd-text-muted); }

.wd-pagination { display: flex; gap: 12px; margin-top: 40px; }
.wd-pagination a, .wd-pagination span { padding: 8px 16px; border: 1px solid var(--wd-border); border-radius: 999px; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .wd-about-grid { text-align: center; }
  .wd-post-card { flex-direction: column; }
  .wd-post-card .wd-post-thumb { width: 100%; }
}
