/*
Theme Name: Mochizuki Mamoru
Theme URI: https://example.com/mochizuki-mamoru
Author: Mochizuki Mamoru Office
Author URI: https://example.com/
Description: 望月まもる氏 公式サイトテーマ。「あなたの会社・お店の巡りを整える人」 — 地域密着の商いコンサルタント。和テイストの温かみあるデザイン。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mochizuki-mamoru
*/

/* =========================================================
   Tokens
   ========================================================= */
:root {
  --c-nav: #2d4a2b;
  --c-nav-hover: #3d6139;
  --c-bg: #fce8d8;
  --c-bg-soft: #fdf0e3;
  --c-accent: #e8703a;
  --c-accent-deep: #c85a26;
  --c-ink: #2a2a2a;
  --c-card: #ffffff;
  --c-card-border: #efd9c3;
  --shadow-card: 0 4px 14px rgba(60, 30, 10, 0.08);
  --shadow-card-hover: 0 10px 28px rgba(60, 30, 10, 0.16);
  --radius: 4px;
  --max-w: 1280px;
  --nav-h: 56px;
  --font-sans: "Noto Sans JP", system-ui, -apple-system, sans-serif;
  --font-mincho: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
  --font-brush: "Yuji Syuku", "Klee One", "Yu Mincho", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-nav);
  color: #fff;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 100%;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
  align-items: center;
  height: 100%;
  width: 100%;
}
.nav-list li { height: 100%; }
.nav-list li.spacer,
.nav-list li.menu-item-book,
.nav-list li.nav-spacer { flex: 0 0 auto; }
.nav-list .nav-spacer { flex: 1 1 auto; }
.nav-list a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #fff;
  position: relative;
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 0;
  height: 2px;
  background: var(--c-accent);
  transition: width 0.3s ease, left 0.3s ease;
}
.nav-list a:hover,
.nav-list .current-menu-item > a {
  background: var(--c-nav-hover);
  color: #ffe6d4;
}
.nav-list a:hover::after,
.nav-list .current-menu-item > a::after {
  width: calc(100% - 28px);
  left: 14px;
}

/* =========================================================
   ドロップダウンサブメニュー
   ========================================================= */
.nav-list li {
  position: relative;
}
/* IDセレクター + !important で最優先非表示 */
#navList ul.sub-menu,
.nav-list ul.sub-menu {
  display: none !important;
  visibility: hidden !important;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--c-nav);
  min-width: 260px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  z-index: 200;
  list-style: none;
  padding: 6px 0;
  margin: 0;
  border-top: 2px solid var(--c-accent);
}
#navList li:hover > ul.sub-menu,
#navList li:focus-within > ul.sub-menu,
.nav-list li:hover > ul.sub-menu,
.nav-list li:focus-within > ul.sub-menu {
  display: block !important;
  visibility: visible !important;
}
.nav-list .sub-menu li {
  height: auto;
  width: 100%;
}
.nav-list .sub-menu a {
  height: auto;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: normal;
  line-height: 1.5;
}
.nav-list .sub-menu a:hover {
  background: var(--c-nav-hover);
  color: #ffe6d4;
}
.nav-list .sub-menu a::after { display: none; }

@media (max-width: 860px) {
  .nav-list .sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    border-top: none;
    padding-left: 16px;
  }
  .nav-list.open .sub-menu {
    display: block;
  }
  .nav-list .sub-menu a {
    padding: 12px 24px;
    font-size: 13px;
  }
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  margin-left: auto;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* Compact nav for narrow desktop / large tablet */
@media (max-width: 1100px) and (min-width: 861px) {
  .nav-list a { padding: 0 12px; font-size: 14px; letter-spacing: 0.02em; }
  .nav-inner { padding: 0 16px; }
}

@media (max-width: 860px) {
  .nav-list {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--c-nav);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .nav-list.open { max-height: 80vh; overflow-y: auto; }
  .nav-list li { width: 100%; height: auto; }
  .nav-list li.spacer,
  .nav-list .nav-spacer { display: none; }
  .nav-list a {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-list a::after { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  background: var(--c-bg);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px 24px;
  min-height: 540px;
}

/* Person sketch (right) */
.hero-portrait {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.hero-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center right;
  opacity: 0.95;
  animation: sketchFadeIn 1.6s ease-out 0.2s both;
}
@keyframes sketchFadeIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 0.95; transform: translateX(0); }
}

/* Side badge (vertical) */
.side-badge {
  position: absolute;
  top: 90px;
  left: 24px;
  width: 44px;
  max-height: calc(100% - 110px);
  background: var(--c-accent);
  color: #fff;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-mincho);
  font-size: 17px;
  letter-spacing: 0.18em;
  padding: 22px 8px;
  line-height: 1.4;
  box-shadow: 0 2px 10px rgba(232, 112, 58, 0.35);
  animation: slideInLeft 0.9s ease-out 0.5s both;
  z-index: 3;
  white-space: nowrap;
}
@keyframes slideInLeft {
  from { transform: translateX(-80px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* Mascot */
.mascot {
  position: absolute;
  top: 12px;
  left: 14px;
  width: 72px;
  height: auto;
  z-index: 4;
  animation: mascotBob 3.2s ease-in-out infinite;
  transform-origin: bottom center;
  cursor: pointer;
}
.mascot img { width: 100%; height: auto; display: block; }
.mascot:hover { animation: mascotJump 0.6s ease; }
@keyframes mascotBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-6px) rotate(2deg); }
}
@keyframes mascotJump {
  0%   { transform: translateY(0) rotate(0); }
  30%  { transform: translateY(-18px) rotate(-8deg); }
  60%  { transform: translateY(-10px) rotate(6deg); }
  100% { transform: translateY(0) rotate(0); }
}

/* Hero text content */
.hero-content {
  position: relative;
  z-index: 2;
  padding-left: 88px;
  padding-top: 24px;
  max-width: 720px;
}

.catch {
  font-family: var(--font-mincho);
  font-size: clamp(20px, 3vw, 32px);
  color: var(--c-accent);
  margin: 0 0 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.9s ease-out 0.3s forwards;
}
.catch .quote { font-size: 1.08em; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Brush title */
.brush-title {
  margin: 0;
  line-height: 1;
  width: clamp(280px, 56vw, 560px);
  max-width: 100%;
}
.brush-title img { display: block; height: auto; width: 100%; }
.brush-title .line1 {
  display: block;
  margin-bottom: 14px;
  opacity: 0;
  animation: brushReveal 1.2s cubic-bezier(.6,.05,.3,1) 0.6s forwards;
}
.brush-title .line2 {
  display: block;
  opacity: 0;
  animation: brushReveal 1.2s cubic-bezier(.6,.05,.3,1) 1.1s forwards;
}
@keyframes brushReveal {
  0%   { opacity: 0; transform: translateY(20px) scale(0.96); filter: blur(4px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* =========================================================
   CTA Cards row
   ========================================================= */
.cta-row {
  background: var(--c-bg);
  padding: 0 24px 56px;
}
.cta-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cta-card {
  position: relative;
  background: var(--c-card);
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius);
  min-height: 130px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px);
}
.cta-card.in-view { animation: fadeUp 0.7s ease-out forwards; }
.cta-card:nth-child(1).in-view { animation-delay: 0.1s; }
.cta-card:nth-child(2).in-view { animation-delay: 0.25s; }
.cta-card:nth-child(3).in-view { animation-delay: 0.4s; }

.cta-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.cta-card.featured { background: var(--c-card); }

.cta-banner {
  display: inline-block;
  background: var(--c-accent);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-mincho);
  padding: 8px 20px 8px 16px;
  font-size: 18px;
  letter-spacing: 0.1em;
  border-radius: 2px;
  box-shadow: 0 3px 10px rgba(232, 112, 58, 0.3);
  position: relative;
  transition: background 0.3s ease, transform 0.3s ease, letter-spacing 0.3s ease;
}
.cta-banner::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 3px;
  background: var(--c-accent);
  border-radius: 2px;
  opacity: 0.85;
}
.cta-card.featured:hover .cta-banner {
  background: var(--c-accent-deep);
  letter-spacing: 0.16em;
}

.cta-label {
  font-family: var(--font-mincho);
  font-size: 17px;
  color: var(--c-ink);
  font-weight: 700;
  margin: 0 0 6px;
  transition: color 0.3s ease;
}
.cta-sub {
  font-size: 13px;
  color: #6a5a4a;
  margin: 0;
  line-height: 1.5;
}
.cta-card:hover .cta-label { color: var(--c-accent); }

.cta-arrow {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: var(--c-accent);
  font-size: 20px;
  transition: transform 0.3s ease;
}
.cta-card:hover .cta-arrow { transform: translateX(6px); }

@media (max-width: 860px) {
  .cta-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* =========================================================
   Hero — tablet & mobile adjustments
   ========================================================= */
@media (max-width: 1024px) and (min-width: 861px) {
  .hero-inner { min-height: 480px; }
  .hero-portrait { width: 44%; }
  .hero-content { max-width: 56%; padding-left: 80px; }
  .brush-title { width: clamp(260px, 50vw, 440px); }
}

@media (max-width: 860px) {
  .hero-inner {
    min-height: auto;
    padding: 8px 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .mascot {
    display: none;
  }
  .hero-portrait {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: clamp(190px, 46vw, 280px);
    order: 2;
    margin-top: 0;
  }
  .hero-portrait img {
    object-position: center top;
    opacity: 0.85;
  }
  .hero-content {
    order: 3;
    padding-left: 0;
    padding-top: 12px;
    max-width: 100%;
    width: 100%;
    margin-top: 0;
    text-align: center;
  }
  .catch {
    font-size: clamp(14px, 4vw, 18px);
    margin-bottom: 12px;
    text-align: center;
  }
  .brush-title {
    width: min(76vw, 340px);
    margin: 0 auto;
  }
  .brush-title .line1 { margin-bottom: 8px; }
  .side-badge {
    top: 8px;
    left: 8px;
    font-size: 12px;
    width: 30px;
    padding: 12px 5px;
    max-height: none;
  }
}

/* =========================================================
   Site footer
   ========================================================= */
.site-footer {
  background: var(--c-nav);
  color: #fff;
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.site-footer a { color: #ffe6d4; }
.site-footer .footer-name {
  font-family: var(--font-mincho);
  font-size: 16px;
  margin-bottom: 6px;
  display: block;
}

/* =========================================================
   Reduce motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   固定ページ (page.php)
   ========================================================= */
.page-main {
  background: var(--c-bg);
  min-height: calc(100vh - var(--nav-h) - 100px);
  padding: 56px 24px 80px;
}
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
}
.page-header {
  border-bottom: 2px solid var(--c-accent);
  padding-bottom: 16px;
  margin-bottom: 40px;
}
.page-title {
  font-family: var(--font-mincho);
  font-size: clamp(22px, 4vw, 34px);
  color: var(--c-ink);
  margin: 0;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.page-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-ink);
}
.page-body h2 {
  font-family: var(--font-mincho);
  font-size: clamp(18px, 3vw, 24px);
  color: var(--c-accent);
  border-left: 4px solid var(--c-accent);
  padding-left: 14px;
  margin: 48px 0 16px;
  letter-spacing: 0.05em;
}
.page-body h3 {
  font-family: var(--font-mincho);
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--c-ink);
  margin: 36px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--c-card-border);
  letter-spacing: 0.04em;
}
.page-body p {
  margin: 0 0 1.4em;
}
.page-body ul,
.page-body ol {
  padding-left: 1.6em;
  margin: 0 0 1.4em;
}
.page-body li {
  margin-bottom: 0.5em;
}
.page-body strong {
  color: var(--c-accent-deep);
  font-weight: 700;
}
.page-body a {
  color: var(--c-accent);
  text-decoration: underline;
  text-decoration-color: rgba(232,112,58,0.4);
  transition: color 0.2s ease;
}
.page-body a:hover {
  color: var(--c-accent-deep);
}
.page-edit {
  margin-top: 48px;
  font-size: 13px;
  opacity: 0.6;
}
@media (max-width: 860px) {
  .page-main { padding: 36px 16px 60px; }
  .page-header { margin-bottom: 28px; }
}

/* =========================================================
   トップページ — homeコンテンツセクション
   ========================================================= */
.top-home-content {
  background: var(--c-bg-soft);
  border-top: 3px solid var(--c-accent);
  padding: 72px 20px 80px;
}
.top-home-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.top-home-wrap h2 {
  font-family: var(--font-mincho);
  font-size: clamp(18px, 3vw, 24px);
  color: var(--c-accent);
  border-left: 4px solid var(--c-accent);
  padding-left: 14px;
  margin: 48px 0 16px;
  letter-spacing: 0.05em;
}
.top-home-wrap h3 {
  font-family: var(--font-mincho);
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--c-ink);
  margin: 36px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--c-card-border);
  letter-spacing: 0.04em;
}
.top-home-wrap p {
  margin: 0 0 1.4em;
  line-height: 1.85;
}
.top-home-wrap ul,
.top-home-wrap ol {
  padding-left: 1.6em;
  margin: 0 0 1.4em;
}
.top-home-wrap li {
  margin-bottom: 0.5em;
}
.top-home-wrap strong {
  color: var(--c-accent-deep);
  font-weight: 700;
}
.top-home-wrap a {
  color: var(--c-accent);
  text-decoration: underline;
  text-decoration-color: rgba(232,112,58,0.4);
  transition: color 0.2s ease;
}
.top-home-wrap a:hover {
  color: var(--c-accent-deep);
}
@media (max-width: 600px) {
  .top-home-content { padding: 48px 16px 60px; }
}

/* =========================================================
   WordPress utility classes (alignments, captions, etc.)
   ========================================================= */
.alignleft  { float: left;  margin-right: 1em; }
.alignright { float: right; margin-left: 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); -webkit-clip-path: inset(50%); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
/* =========================================================
   About page — first view styles
   このファイルは about ページ専用。既存 style.css を上書きせず追加で読み込む。
   ========================================================= */

.about-hero {
  position: relative;
  background: var(--c-bg, #fce8d8);
  overflow: hidden;
  border-bottom: 24px solid var(--c-accent, #e8703a);
}
.about-hero-inner {
  position: relative;
  max-width: var(--max-w, 1280px);
  margin: 0 auto;
  padding: 32px 32px 0;
  min-height: 560px;
}

.about-catch {
  position: relative;
  z-index: 2;
  max-width: 56%;
  margin: 0 0 24px;
  font-family: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
  font-weight: 700;
  color: var(--c-accent, #e8703a);
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: 0.04em;
  animation: aboutFadeUp 0.9s ease-out 0.2s both;
}
.about-catch .num { font-size: 1.1em; }
@keyframes aboutFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.about-mascot-row { display: none; }

.about-portrait {
  position: absolute;
  top: 0;
  right: 0;
  width: 44%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}
.about-portrait img {
  position: absolute !important;
  bottom: 0;
  right: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain;
  object-position: bottom right;
  animation: aboutSketchIn 1.4s ease-out 0.4s both;
}
@keyframes aboutSketchIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.about-mascot {
  position: absolute;
  left: 32px;
  bottom: 64px;
  width: 160px;
  z-index: 3;
  cursor: pointer;
  animation: mascotBob 3.4s ease-in-out infinite;
  transform-origin: bottom center;
}
.about-mascot:hover { animation: mascotJump 0.7s ease; }
.about-mascot img { width: 100%; height: auto !important; display: block; }
@keyframes mascotBob {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%     { transform: translateY(-7px) rotate(2deg); }
}
@keyframes mascotJump {
  0%   { transform: translateY(0) rotate(0); }
  30%  { transform: translateY(-22px) rotate(-8deg); }
  60%  { transform: translateY(-12px) rotate(6deg); }
  100% { transform: translateY(0) rotate(0); }
}

.about-copy {
  position: absolute;
  left: 210px;
  bottom: 100px;
  right: 46%;
  font-family: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
  color: var(--c-ink, #2a2a2a);
  font-size: clamp(16px, 1.9vw, 22px);
  line-height: 2;
  letter-spacing: 0.06em;
  z-index: 2;
  animation: aboutFadeUp 0.9s ease-out 0.5s both;
}
.about-copy p { margin: 0 0 4px; }

.about-title {
  position: absolute;
  left: 32px;
  bottom: 0;
  width: clamp(280px, 40vw, 520px);
  z-index: 2;
  pointer-events: none;
  padding-bottom: 8px;
}
.about-title img {
  width: 100%;
  height: auto !important;
  animation: aboutBrushReveal 1.2s cubic-bezier(.6,.05,.3,1) 0.9s both;
}
@keyframes aboutBrushReveal {
  0%   { opacity: 0; transform: translateY(28px) scale(0.96); filter: blur(5px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@media (max-width: 1024px) and (min-width: 861px) {
  .about-hero { border-bottom-width: 18px; }
  .about-hero-inner { min-height: 480px; padding: 24px 20px 0; }
  .about-portrait { width: 42%; }
  .about-mascot { left: 20px; width: 130px; bottom: 56px; }
  .about-copy { left: 165px; right: 44%; font-size: 16px; bottom: 80px; }
  .about-title { width: clamp(240px, 38vw, 440px); left: 20px; }
}

@media (max-width: 860px) {
  .about-hero { border-bottom-width: 14px; }
  .about-hero-inner { min-height: auto; padding: 18px 16px 16px; }
  .about-catch { max-width: 100%; font-size: clamp(15px, 4vw, 18px); line-height: 1.55; margin-bottom: 12px; }
  .about-portrait { position: relative; top: auto; right: auto; width: 100%; height: clamp(200px, 52vw, 320px); }
  .about-portrait img { object-position: center bottom; }
  .about-mascot { position: relative; left: auto; bottom: auto; width: 86px; display: inline-block; vertical-align: middle; margin-right: 12px; animation: none; }
  .about-copy { position: relative; left: auto; bottom: auto; right: auto; display: inline-block; vertical-align: middle; font-size: 15px; line-height: 1.8; }
  .about-title { position: relative; left: auto; bottom: auto; width: 75%; max-width: 300px; padding: 8px 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .about-hero *, .about-hero *::before, .about-hero *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   Service page — first view styles
   このファイルは service ページ専用。既存 style.css を上書きせず追加で読み込む。
   ========================================================= */

.service-hero {
  position: relative;
  background: var(--c-bg, #fce8d8);
  overflow: hidden;
  border-bottom: 24px solid var(--c-accent, #e8703a);
}
.service-hero-inner {
  position: relative;
  max-width: var(--max-w, 1280px);
  margin: 0 auto;
  padding: 32px 32px 0;
  min-height: 560px;
}

.service-catch {
  position: relative;
  z-index: 2;
  max-width: 56%;
  margin: 0 0 24px;
  font-family: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
  font-weight: 700;
  color: var(--c-accent, #e8703a);
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: 0.04em;
  animation: serviceFadeUp 0.9s ease-out 0.2s both;
}
@keyframes serviceFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.service-mascot-row { display: none; }

.service-portrait {
  position: absolute;
  top: 0;
  right: 0;
  width: 44%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}
.service-portrait img {
  position: absolute !important;
  bottom: 0;
  right: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain;
  object-position: bottom right;
  animation: serviceSketchIn 1.4s ease-out 0.4s both;
}
@keyframes serviceSketchIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.service-mascot {
  position: absolute;
  left: 32px;
  bottom: 64px;
  width: 160px;
  z-index: 3;
  cursor: pointer;
  animation: mascotBob 3.4s ease-in-out infinite;
  transform-origin: bottom center;
}
.service-mascot:hover { animation: mascotJump 0.7s ease; }
.service-mascot img { width: 100%; height: auto !important; display: block; }

.service-copy {
  position: absolute;
  left: 210px;
  bottom: 100px;
  right: 46%;
  font-family: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
  color: var(--c-ink, #2a2a2a);
  font-size: clamp(16px, 1.9vw, 22px);
  line-height: 2;
  letter-spacing: 0.06em;
  z-index: 2;
  animation: serviceFadeUp 0.9s ease-out 0.5s both;
}
.service-copy p { margin: 0 0 4px; }

.service-title {
  position: absolute;
  left: 32px;
  bottom: 0;
  width: clamp(280px, 40vw, 520px);
  z-index: 2;
  pointer-events: none;
  padding-bottom: 8px;
}
.service-title img {
  width: 100%;
  height: auto !important;
  animation: serviceBrushReveal 1.2s cubic-bezier(.6,.05,.3,1) 0.9s both;
}
@keyframes serviceBrushReveal {
  0%   { opacity: 0; transform: translateY(28px) scale(0.96); filter: blur(5px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@media (max-width: 1024px) and (min-width: 861px) {
  .service-hero { border-bottom-width: 18px; }
  .service-hero-inner { min-height: 480px; padding: 24px 20px 0; }
  .service-portrait { width: 42%; }
  .service-mascot { left: 20px; width: 130px; bottom: 56px; }
  .service-copy { left: 165px; right: 44%; font-size: 16px; bottom: 80px; }
  .service-title { width: clamp(240px, 38vw, 440px); left: 20px; }
}

@media (max-width: 860px) {
  .service-hero { border-bottom-width: 14px; }
  .service-hero-inner { min-height: auto; padding: 18px 16px 16px; }
  .service-catch { max-width: 100%; font-size: clamp(15px, 4vw, 18px); line-height: 1.55; margin-bottom: 12px; }
  .service-portrait { position: relative; top: auto; right: auto; width: 100%; height: clamp(200px, 52vw, 320px); }
  .service-portrait img { object-position: center bottom; }
  .service-mascot { position: relative; left: auto; bottom: auto; width: 86px; display: inline-block; vertical-align: middle; margin-right: 12px; animation: none; }
  .service-copy { position: relative; left: auto; bottom: auto; right: auto; display: inline-block; vertical-align: middle; font-size: 15px; line-height: 1.8; }
  .service-title { position: relative; left: auto; bottom: auto; width: 75%; max-width: 300px; padding: 8px 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-hero *, .service-hero *::before, .service-hero *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
