/*
Theme Name: Handmade Blog
Theme URI: https://example.com/handmade-blog
Author: Handmade Blog
Author URI: https://example.com
Description: 初心者ハンドメイド作家向けのノウハウ発信＆ツール販売ブログ用オリジナルテーマ。大人可愛い × 読みやすさ重視。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: handmade-blog
Tags: blog, one-column, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================
   1. CSS Custom Properties
   ========================================= */
:root {
  /* Colors */
  --color-base-bg:      #FBF7F4;
  --color-surface:      #FFFFFF;
  --color-soft-pink:    #F7E9E4;
  --color-text:         #4A3A38;
  --color-text-sub:     #8C7A75;
  --color-accent:       #C89090;
  --color-accent-hover: #A87070;
  --color-gold:         #C9A96A;
  --color-border:       #EDE3DD;

  /* Typography */
  --font-heading: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-en-heading: "Cormorant Garamond", "Shippori Mincho", serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --content-max: 720px;
  --wide-max: 1200px;
  --header-height: 72px;

  /* Radius / Shadow */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 20px rgba(180, 140, 130, 0.08);
  --shadow-card-hover: 0 10px 30px rgba(180, 140, 130, 0.16);
}

/* =========================================
   2. Reset & Base
   ========================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--color-text);
  background-color: var(--color-base-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--color-accent-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0 0 0.8em;
}

p { margin: 0 0 1.5em; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol { padding-left: 1.4em; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-text);
  color: #fff;
  padding: 10px 16px;
  z-index: 9999;
}
.skip-link:focus { left: 10px; top: 10px; }

/* =========================================
   3. Layout
   ========================================= */
.site-container {
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--pink {
  background-color: var(--color-soft-pink);
}

.section--white {
  background-color: var(--color-surface);
}

/* =========================================
   4. Header & Navigation
   ========================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--color-border);
  box-shadow: 0 2px 12px rgba(180, 140, 130, 0.06);
}

.site-header__inner {
  height: 100%;
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0; /* allow long titles to shrink/ellipsis */
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.05em;
  min-width: 0;
  line-height: 1.3;
}
.site-title a {
  color: var(--color-text);
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 10px;
}
.site-title a:hover { color: var(--color-accent); }

.site-title__main {
  display: inline-block;
}
.site-title__sub {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-text-sub);
  letter-spacing: 0.08em;
}

.custom-logo-link img {
  max-height: 44px;
  width: auto;
}

/* Global Navigation */
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}

.main-navigation a {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.08em;
  padding: 6px 0;
  position: relative;
}

.main-navigation a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 1px;
  background-color: var(--color-accent);
  transition: width 0.25s ease, left 0.25s ease;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--color-accent);
}
.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
  width: 100%;
  left: 0;
}

/* Hamburger */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  position: relative;
}
.menu-toggle span {
  display: block;
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background-color: var(--color-text);
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 26px; }

.menu-toggle.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* =========================================
   5. Hero
   ========================================= */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 40px) 24px 80px;
  background-color: var(--color-soft-pink);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(251,247,244,0.10) 0%, rgba(251,247,244,0.35) 100%);
  pointer-events: none;
}

.hero__panel {
  position: relative;
  max-width: 760px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(180, 140, 130, 0.15);
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-en-heading);
  font-size: 1rem;
  font-style: italic;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  margin-bottom: 14px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.04em;
  margin: 0 0 24px;
}

.hero__title .accent {
  color: var(--color-accent);
  position: relative;
  padding: 0 4px;
}

.hero__lead {
  font-size: 1rem;
  color: var(--color-text-sub);
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   6. Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 200px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn--primary {
  background-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(200, 144, 144, 0.35);
}
.btn--primary:hover {
  background-color: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(168, 112, 112, 0.4);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}
.btn--outline:hover {
  background-color: var(--color-text);
  color: #fff;
  transform: translateY(-2px);
}

.btn--gold {
  background-color: var(--color-gold);
  color: #fff;
}
.btn--gold:hover {
  background-color: #b39352;
  color: #fff;
  transform: translateY(-2px);
}

/* =========================================
   7. Section Headings
   ========================================= */
.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.section-heading__en {
  display: block;
  font-family: var(--font-en-heading);
  font-size: 2.25rem;
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.section-heading__jp {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-sub);
  letter-spacing: 0.3em;
}

.section-heading__jp::before,
.section-heading__jp::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background-color: var(--color-gold);
  vertical-align: middle;
  margin: 0 14px;
}

/* =========================================
   8. About Strip (Profile band)
   ========================================= */
.about-strip {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.about-strip__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-soft-pink);
}
.about-strip__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.about-strip__name {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.about-strip__name .role {
  display: block;
  font-family: var(--font-en-heading);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.about-strip__text {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* =========================================
   9. Article Cards
   ========================================= */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.article-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.article-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-soft-pink);
}
.article-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .article-card__thumb img {
  transform: scale(1.05);
}

.article-card__thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en-heading);
  font-style: italic;
  color: var(--color-accent);
  font-size: 1.25rem;
}

.article-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-card__category {
  display: inline-block;
  align-self: flex-start;
  background-color: var(--color-soft-pink);
  color: var(--color-accent-hover);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.article-card__title {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 12px;
  font-weight: 500;
}
.article-card__title a { color: var(--color-text); }
.article-card__title a:hover { color: var(--color-accent); }

.article-card__excerpt {
  font-size: 0.875rem;
  color: var(--color-text-sub);
  line-height: 1.8;
  margin-bottom: 16px;
  flex-grow: 1;
}

.article-card__meta {
  font-family: var(--font-en-heading);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--color-text-sub);
}

.section-action {
  text-align: center;
  margin-top: 56px;
}

/* =========================================
   10. Category Tiles
   ========================================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.category-tile {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.25s ease;
}
.category-tile:hover {
  background-color: var(--color-soft-pink);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.category-tile__name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 4px;
}
.category-tile__count {
  font-family: var(--font-en-heading);
  font-style: italic;
  color: var(--color-text-sub);
  font-size: 0.85rem;
}

/* =========================================
   11. Featured CTA (Tool Promo)
   ========================================= */
.featured-cta {
  position: relative;
  background-color: var(--color-surface);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.featured-cta::before,
.featured-cta::after {
  content: "";
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  background-color: var(--color-soft-pink);
  opacity: 0.5;
  z-index: 0;
}
.featured-cta::before { top: -60px; left: -60px; }
.featured-cta::after  { bottom: -60px; right: -60px; }

.featured-cta > * { position: relative; z-index: 1; }

.featured-cta__badge {
  display: inline-block;
  font-family: var(--font-en-heading);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-gold);
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}
.featured-cta__badge::before,
.featured-cta__badge::after {
  content: "✦";
  margin: 0 10px;
}

.featured-cta__title {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.6;
  margin-bottom: 16px;
}

.featured-cta__desc {
  color: var(--color-text-sub);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   12. Single Post
   ========================================= */
.entry {
  background-color: var(--color-surface);
  padding: 64px clamp(24px, 5vw, 64px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.entry-header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.entry-category {
  display: inline-block;
  background-color: var(--color-soft-pink);
  color: var(--color-accent-hover);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.entry-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.6;
  margin-bottom: 16px;
}

.entry-meta {
  font-family: var(--font-en-heading);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-text-sub);
}

.entry-thumbnail {
  margin: 0 0 48px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.entry-content {
  font-size: 1rem;
  line-height: 2;
}

.entry-content h2 {
  font-size: 1.5rem;
  margin: 2.5em 0 1em;
  padding: 0 0 0 18px;
  border-left: 4px solid var(--color-gold);
}
.entry-content h3 {
  font-size: 1.2rem;
  margin: 2em 0 0.8em;
  display: inline-block;
  background: linear-gradient(transparent 65%, var(--color-soft-pink) 65%);
  padding: 0 4px;
}
.entry-content h4 {
  font-size: 1.05rem;
  margin: 1.8em 0 0.8em;
  color: var(--color-accent-hover);
}
.entry-content a {
  border-bottom: 1px dotted currentColor;
}
.entry-content img {
  border-radius: var(--radius-sm);
  margin: 1.5em auto;
}
.entry-content blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  background-color: var(--color-soft-pink);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-accent);
  color: var(--color-text-sub);
  font-style: italic;
}
.entry-content ul, .entry-content ol {
  margin: 1.5em 0;
  padding-left: 1.8em;
}
.entry-content li { margin-bottom: 0.6em; }
.entry-content code {
  background-color: var(--color-soft-pink);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Post navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}
.post-nav a {
  display: block;
  padding: 20px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: all 0.2s ease;
}
.post-nav a:hover {
  border-color: var(--color-accent);
  background-color: var(--color-soft-pink);
}
.post-nav .label {
  display: block;
  font-family: var(--font-en-heading);
  font-style: italic;
  color: var(--color-accent);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

/* =========================================
   13. Archive / Pagination
   ========================================= */
.archive-header {
  text-align: center;
  padding: calc(var(--header-height) + 60px) 24px 40px;
  background-color: var(--color-soft-pink);
}
.archive-header__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 8px;
}
.archive-header__desc {
  color: var(--color-text-sub);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-en-heading);
  font-style: italic;
  transition: all 0.2s ease;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* =========================================
   14. Footer
   ========================================= */
.site-footer {
  background-color: var(--color-soft-pink);
  padding: 64px 0 24px;
  margin-top: 80px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.site-footer__brand .site-title { margin-bottom: 14px; }
.site-footer__tagline {
  font-size: 0.85rem;
  color: var(--color-text-sub);
  max-width: 360px;
}

.footer-heading {
  font-family: var(--font-en-heading);
  font-style: italic;
  color: var(--color-accent);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li { margin-bottom: 10px; }
.site-footer a {
  color: var(--color-text);
  font-size: 0.9rem;
}
.site-footer a:hover { color: var(--color-accent); }

.site-footer__bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(180, 140, 130, 0.2);
  font-size: 0.8rem;
  color: var(--color-text-sub);
  font-family: var(--font-en-heading);
  font-style: italic;
  letter-spacing: 0.15em;
}

/* =========================================
   15. Comments
   ========================================= */
.comments-area {
  margin-top: 64px;
  padding: 40px;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
}
.comments-title {
  font-size: 1.2rem;
  margin-bottom: 24px;
}
.comment-list { list-style: none; padding: 0; }
.comment-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.comment-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-base-bg);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--color-text);
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.comment-form .submit {
  background-color: var(--color-accent);
  color: #fff;
  padding: 12px 32px;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  transition: background-color 0.2s ease;
}
.comment-form .submit:hover { background-color: var(--color-accent-hover); }

/* =========================================
   16. Responsive
   ========================================= */
@media (max-width: 1023px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .section { padding: 60px 0; }

  /* Header: tighter padding + keep title on one line */
  .site-header__inner { padding: 0 16px; gap: 12px; }

  .site-title {
    font-size: 1rem;
    letter-spacing: 0.03em;
    line-height: 1.2;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .site-title a {
    display: inline-block; /* cancel flex wrap on mobile */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* Hide subtitle on mobile — change to `display: inline` if you want it back */
  .site-title__sub { display: none; }

  /* Nav */
  .menu-toggle { display: block; flex: 0 0 auto; }
  .main-navigation {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-navigation.is-open { max-height: 80vh; }
  .main-navigation ul {
    flex-direction: column;
    gap: 0;
    padding: 16px 24px 32px;
  }
  .main-navigation li {
    border-bottom: 1px solid var(--color-border);
  }
  .main-navigation a {
    display: block;
    padding: 18px 0;
    font-size: 1rem;
  }
  .main-navigation a::after { display: none; }

  /* Hero */
  .hero { min-height: 80vh; }
  .hero__panel { padding: 36px 20px; }

  .hero__title {
    font-size: 1.2rem;             /* 19.2px: fits 15-char JP line on iPhone 16 width */
    line-height: 1.55;             /* tighter — reads as a unit */
    letter-spacing: 0.01em;
    max-width: 22em;
    margin-left: auto;
    margin-right: auto;
    word-break: keep-all;          /* avoid breaking JP words mid-phrase */
    overflow-wrap: normal;
  }
  .hero__lead {
    font-size: 0.9rem;
    line-height: 1.8;
  }

  /* Buttons stack */
  .hero__actions .btn { width: 100%; }

  /* Cards */
  .article-grid { grid-template-columns: 1fr; gap: 24px; }

  /* About strip stacks */
  .about-strip {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
  }
  .about-strip__photo { margin: 0 auto; }

  /* Featured CTA */
  .featured-cta { padding: 40px 24px; }

  /* Footer */
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }

  /* Single post */
  .entry { padding: 32px 20px; }
  .post-nav { grid-template-columns: 1fr; }
}

/* Narrow phones (iPhone 16 / 13 mini etc.) — extra safety so hero title never overflows */
@media (max-width: 400px) {
  .hero__panel { padding: 32px 16px; }
  .hero__title {
    font-size: 1.125rem;           /* 18px */
    letter-spacing: 0;
  }
}

/* =========================================
   17. WP Default Classes
   ========================================= */
.alignleft  { float: left;  margin: 0.5em 1.5em 1em 0; }
.alignright { float: right; margin: 0.5em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { margin-left: auto; margin-right: auto; }

.wp-caption { margin-bottom: 1.5em; }
.wp-caption-text {
  font-size: 0.85rem;
  color: var(--color-text-sub);
  text-align: center;
  margin-top: 8px;
}

.sticky { display: block; }
.bypostauthor { display: block; }

.wp-block-quote {
  border-left: 4px solid var(--color-accent);
  padding: 20px 24px;
  background-color: var(--color-soft-pink);
  border-radius: var(--radius-sm);
  font-style: italic;
}

/* =========================================
   18. Contact Form 7
   ========================================= */
.wpcf7-form {
  max-width: 640px;
  margin: 0 auto;
}
.wpcf7-form p { margin-bottom: 20px; }

.wpcf7-form label {
  display: block;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: #fff;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.wpcf7-form textarea { min-height: 160px; resize: vertical; }

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(200, 144, 144, 0.15);
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder { color: #B8A8A4; }

/* Submit button — matches .btn--primary */
.wpcf7-form input[type="submit"] {
  display: block;
  width: 100%;
  padding: 16px 28px;
  margin-top: 8px;
  background-color: var(--color-accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(200, 144, 144, 0.35);
  transition: all 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.wpcf7-form input[type="submit"]:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(168, 112, 112, 0.4);
}
.wpcf7-form input[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* CF7 response / validation messages */
.wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.wpcf7 form.sent .wpcf7-response-output {
  border: 1px solid var(--color-accent);
  background-color: var(--color-soft-pink);
  color: var(--color-accent-hover);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  border: 1px solid #D99;
  background-color: #FCEEEE;
  color: #A55;
}
.wpcf7-not-valid-tip {
  color: #B56;
  font-size: 0.85rem;
  margin-top: 4px;
}
.wpcf7-spinner { margin-left: 12px; }

/* =========================================
   19. Search Form
   ========================================= */
.search-form,
.wp-block-search .wp-block-search__inside-wrapper {
  display: flex;
  align-items: stretch;
  gap: 8px;
  max-width: 360px;
  width: 100%;
}
.search-form__label { flex: 1; margin: 0; }

.search-form .search-field,
.wp-block-search .wp-block-search__input {
  width: 100%;
  padding: 10px 16px;
  background-color: #fff;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.search-form .search-field:focus,
.wp-block-search .wp-block-search__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(200, 144, 144, 0.15);
}
.search-form .search-field::placeholder,
.wp-block-search .wp-block-search__input::placeholder {
  color: #B8A8A4;
}

.search-form .search-submit,
.wp-block-search .wp-block-search__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 16px;
  min-width: 44px;
  background-color: var(--color-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.search-form .search-submit:hover,
.wp-block-search .wp-block-search__button:hover {
  background-color: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(168, 112, 112, 0.3);
}
.search-form .search-submit svg { display: block; }

/* =========================================
   20. Speech Bubble (Cocoon互換 [sb] shortcode)
   ========================================= */
.speech-bubble {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 28px 0;
}
.speech-bubble--left  { flex-direction: row; }
.speech-bubble--right { flex-direction: row-reverse; }

.speech-bubble__icon {
  flex: 0 0 80px;
  margin: 0;
  text-align: center;
}
.speech-bubble__icon img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
  background-color: #fff;
  box-shadow: var(--shadow-card);
}
.speech-bubble__name {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--color-text-sub);
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.speech-bubble__balloon {
  position: relative;
  flex: 1 1 auto;
  max-width: calc(100% - 96px);
  padding: 16px 20px;
  background-color: var(--color-soft-pink);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.8;
}
.speech-bubble__balloon p { margin: 0 0 0.6em; }
.speech-bubble__balloon p:last-child { margin-bottom: 0; }

/* しっぽ（左右で向きを反転） */
.speech-bubble__balloon::before,
.speech-bubble__balloon::after {
  content: "";
  position: absolute;
  top: 24px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
}
.speech-bubble--left .speech-bubble__balloon::before {
  left: -16px;
  border-right-color: var(--color-border);
}
.speech-bubble--left .speech-bubble__balloon::after {
  left: -14px;
  border-right-color: var(--color-soft-pink);
}
.speech-bubble--right .speech-bubble__balloon::before {
  right: -16px;
  border-left-color: var(--color-border);
}
.speech-bubble--right .speech-bubble__balloon::after {
  right: -14px;
  border-left-color: var(--color-soft-pink);
}

/* 右側キャラはアクセントカラー寄りの色味に */
.speech-bubble--right .speech-bubble__balloon {
  background-color: #FFF4F0;
}
.speech-bubble--right .speech-bubble__balloon::after {
  border-left-color: #FFF4F0;
}

/* モバイル */
@media (max-width: 600px) {
  .speech-bubble { gap: 10px; margin: 22px 0; }
  .speech-bubble__icon { flex-basis: 60px; }
  .speech-bubble__icon img { width: 60px; height: 60px; }
  .speech-bubble__balloon {
    max-width: calc(100% - 72px);
    padding: 12px 14px;
    font-size: 0.9rem;
    line-height: 1.7;
  }
  .speech-bubble__balloon::before,
  .speech-bubble__balloon::after { top: 18px; }
}
