/*
Theme Name: 買い切りHP職人
Theme URI: https://kaikiri-hp.jp
Author: 買い切りHP職人
Author URI: https://kaikiri-hp.jp
Description: 買い切りHP職人 コーポレートサイト用オリジナルテーマ。買い切り型のHP制作代行サービスのランディングページ構成。
Version: 3.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: kaikiri-hp-syokunin
*/

/* ==========================================================================
   Reset / Base
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  color: #1a1a1a;
  background: #f6f7fa;
  font-size: 16px;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ==========================================================================
   Header
   ========================================================================== */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid #e8e8e4;
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
  backdrop-filter: blur(8px);
}
.logo { font-size: 18px; font-weight: 700; letter-spacing: -0.5px; color: #1a1a1a; text-decoration:none; display:flex; align-items:center; gap:8px; }
.logo-mascot { height: 40px; width: auto; display: block; }
.logo span { color: #2563eb; }
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a { font-size: 14px; color: #555; text-decoration: none; }
.site-nav a:hover { color: #1a1a1a; }
.cta-small {
  background: linear-gradient(135deg,#2563eb,#1d4ed8); color: #fff !important;
  padding: 8px 20px; border-radius: 6px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: transform 0.2s;
}
.cta-small:hover { transform: translateY(-1px); }

/* ==========================================================================
   Hero (photo background)
   ========================================================================== */
.hero {
  position: relative;
  max-width: 1000px; margin: 40px auto 0;
  border-radius: 24px;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: center;
  padding: 56px 48px;
  background: url('assets/hero-bg.jpg') center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.93) 36%, rgba(255,255,255,0.55) 56%, rgba(255,255,255,0.15) 72%, rgba(255,255,255,0) 84%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 420px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg,#eff6ff,#fef3c7);
  color: #1d4ed8;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 20px;
  text-transform: uppercase;
  border: 1px solid #dbeafe;
}
.hero h1 {
  font-size: 36px; font-weight: 800; line-height: 1.35;
  letter-spacing: -1.1px; color: #0f172a;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg,#2563eb,#d97706);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p {
  font-size: 15.5px; color: #333; line-height: 1.85; margin-bottom: 32px;
}
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg,#2563eb,#1d4ed8); color: #fff;
  padding: 14px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  display: inline-block; transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer; border: none;
  box-shadow: 0 8px 20px rgba(37,99,235,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37,99,235,0.32); color:#fff; }
.btn-secondary {
  background: #fff; color: #1a1a1a;
  padding: 14px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  display: inline-block; border: 1.5px solid #d1d5db;
  transition: border-color 0.2s;
  cursor: pointer;
}
.btn-secondary:hover { border-color: #2563eb; }

.badge-floating {
  position: absolute; z-index: 3; top: 20px; right: 20px;
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
  border-radius: 12px; padding: 14px 18px;
  text-align: right;
  box-shadow: 0 10px 26px rgba(37,99,235,0.4);
}
.badge-floating strong {
  display: block; font-size: 22px; font-weight: 800;
  color: #fff; letter-spacing: -0.5px; line-height: 1.2;
}
.badge-floating span {
  font-size: 12px; font-weight: 600; color: #fde68a;
}

/* ==========================================================================
   Section base
   ========================================================================== */
.section { padding: 76px 40px; max-width: 1000px; margin: 0 auto; }
.section-label {
  display:inline-block;
  font-size: 12px; font-weight: 700; color: #d97706;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px;
  background:#fef3c7; padding:4px 12px; border-radius:20px;
}
.section-title {
  font-size: 30px; font-weight: 800; color: #0f172a;
  letter-spacing: -0.7px; line-height: 1.3; margin-bottom: 16px;
}
.section-sub { font-size: 15px; color: #666; max-width: 600px; }
.section-bg { background: linear-gradient(160deg,#f8fafc,#fdf6e8); border-radius: 24px; }

/* ==========================================================================
   Features
   ========================================================================== */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
.feature-card {
  background: #fff;
  border: 1px solid #e8e8e4;
  border-top: 3px solid #2563eb;
  border-radius: 12px;
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:nth-child(2n) { border-top-color: #f59e0b; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15,23,42,0.08); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg,#eff6ff,#dbeafe);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.feature-card:nth-child(2n) .feature-icon { background: linear-gradient(135deg,#fef3c7,#fde68a); }
.feature-card h3 { font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: #666; line-height: 1.7; }

/* ==========================================================================
   Process
   ========================================================================== */
.process-wrap { margin-top: 40px; }
.process-step {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 24px; margin-bottom: 32px; align-items: start;
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg,#2563eb,#1d4ed8); color: #fff;
  font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
  box-shadow: 0 6px 14px rgba(37,99,235,0.3);
}
.process-step:nth-child(4n-1) .step-num { background: linear-gradient(135deg,#f59e0b,#d97706); box-shadow: 0 6px 14px rgba(245,158,11,0.35); }
.step-body h3 { font-size: 17px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.step-body p { font-size: 14px; color: #666; }
.step-connector {
  width: 2px; height: 24px; background: linear-gradient(#2563eb,#fde68a);
  margin-left: 23px; margin-bottom: 0;
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-top: 40px;
}
.price-card {
  background: #fff;
  border: 1.5px solid #e8e8e4;
  border-radius: 16px; padding: 28px 24px;
  position: relative;
}
.price-card.featured {
  border: 2px solid #2563eb;
  background: linear-gradient(160deg,#fff,#eff6ff);
  box-shadow: 0 16px 36px rgba(37,99,235,0.14);
}
.price-ribbon {
  position:absolute; top:-14px; left:24px;
  background: linear-gradient(135deg,#f59e0b,#d97706); color:#fff;
  font-size:11px; font-weight:800; padding:5px 14px; border-radius:20px;
  box-shadow:0 6px 14px rgba(245,158,11,0.35);
}
.plan-name { font-size: 14px; font-weight: 700; color: #2563eb; margin-bottom: 4px; }
.plan-price { font-size: 32px; font-weight: 800; color: #0f172a; line-height: 1.1; }
.plan-price span { font-size: 14px; font-weight: 500; color: #888; }
.plan-desc { font-size: 13px; color: #888; margin: 10px 0 0; line-height: 1.8; }
.pricing-footnote {
  font-size: 13px; color: #1d4ed8; margin-top: 20px;
  background: linear-gradient(135deg,#eff6ff,#fef9ec); border-radius: 10px; padding: 16px 20px;
  line-height: 1.8; border:1px solid #dbeafe;
}

/* ==========================================================================
   Options
   ========================================================================== */
.option-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 40px;
}
.option-card {
  background: #fff; border: 1px solid #e8e8e4; border-radius: 12px;
  padding: 22px 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.option-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,23,42,0.08); }
.option-price-badge {
  display: inline-flex; align-items: baseline; gap: 4px;
  background: linear-gradient(135deg,#eff6ff,#dbeafe); color: #2563eb;
  font-size: 22px; font-weight: 800; letter-spacing: -0.4px;
  padding: 6px 14px; border-radius: 8px;
  margin-bottom: 14px;
}
.option-price-badge span { font-size: 12px; font-weight: 600; color: #60a5fa; }
.option-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.option-icon { font-size: 18px; }
.option-card h3 { font-size: 14.5px; font-weight: 700; color: #0f172a; line-height: 1.4; }
.option-card p { font-size: 12.5px; color: #888; line-height: 1.6; }
.option-footnote {
  font-size: 13px; color: #888; margin-top: 20px;
  background: #f8fafc; border-radius: 10px; padding: 14px 18px;
  line-height: 1.8;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-wrap { margin-top: 40px; max-width: 680px; }
.faq-item {
  border-bottom: 1px solid #f1f5f9;
  padding: 20px 0;
}
.faq-q {
  font-size: 16px; font-weight: 600; color: #0f172a;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
  background: none; border: none; width: 100%; text-align: left; font-family: inherit;
}
.faq-q .toggle { font-size: 20px; color: #2563eb; transition: transform 0.2s; flex-shrink: 0; margin-left: 12px; }
.faq-a { font-size: 14px; color: #666; margin-top: 12px; line-height: 1.8; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .toggle { transform: rotate(45deg); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-wrap {
  background: linear-gradient(135deg, #1e3a8a, #2563eb 60%, #d97706 140%);
  border-radius: 24px; padding: 60px 48px;
  text-align: center;
}
.contact-wrap h2 { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.contact-wrap p { color: #dbeafe; font-size: 15px; margin-bottom: 32px; }

.contact-wrap .wpcf7-form { max-width: 560px; margin: 0 auto; }
.contact-wrap .wpcf7-form p { margin-bottom: 14px; color: #fff; }
.contact-wrap .wpcf7-form input[type="text"],
.contact-wrap .wpcf7-form input[type="email"],
.contact-wrap .wpcf7-form input[type="tel"],
.contact-wrap .wpcf7-form textarea {
  width: 100%;
  padding: 14px 18px; border-radius: 8px;
  font-size: 15px; outline: none;
  background: rgba(255,255,255,0.15); color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  font-family: inherit;
}
.contact-wrap .wpcf7-form input::placeholder,
.contact-wrap .wpcf7-form textarea::placeholder { color: rgba(255,255,255,0.7); }
.contact-wrap .wpcf7-form input[type="submit"] {
  background: linear-gradient(135deg,#fbbf24,#f59e0b); color: #1e3a8a;
  padding: 14px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 800;
  border: none; cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.contact-wrap .wpcf7-form input[type="submit"]:hover { transform: translateY(-2px); }
.contact-wrap .wpcf7-response-output { color: #fff; border-color: rgba(255,255,255,0.5) !important; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer.site-footer {
  border-top: 1px solid #f1f5f9;
  padding: 32px 40px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  max-width: 1000px; margin: 0 auto;
}
footer.site-footer p { font-size: 13px; color: #aaa; }
footer.site-footer nav a { font-size: 13px; color: #aaa; text-decoration: none; margin-left: 20px; }
footer.site-footer nav a:hover { color: #555; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 700px) {
  .features-grid, .pricing-grid { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: 1fr 1fr; }
  header.site-header { padding: 0 20px; }

  .section { padding: 56px 20px; }
  .contact-wrap { padding: 40px 24px; }
  .hero { min-height: 380px; padding: 36px 24px; border-radius: 16px; margin: 24px 20px 0; }
  .hero::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.92) 55%, rgba(255,255,255,0.2) 100%);
  }
  .hero-content { max-width: 100%; }
  .hero h1 { font-size: 28px; }
  .badge-floating { top: 14px; right: 14px; padding: 8px 12px; }
  .badge-floating strong { font-size: 16px; }
}

/* ==========================================================================
   Portfolio catalog (page-portfolio.php)
   ========================================================================== */
.catalog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 40px;
}
.catalog-card {
  background: #fff; border: 1px solid #e8e8e4; border-radius: 16px;
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.catalog-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,23,42,.1); }
.thumb { padding: 16px; }
.thumb-frame { border-radius: 10px; overflow: hidden; border: 1px solid #e2e8f0; background: #fff; }
.thumb-bar { height: 16px; background: #f1f5f9; display: flex; align-items: center; gap: 3px; padding: 0 8px; }
.thumb-bar span { width: 5px; height: 5px; border-radius: 50%; }
.thumb-body { padding: 12px; }
.thumb-hero { height: 5px; border-radius: 2px; width: 55%; margin-bottom: 6px; }
.thumb-hero.sm { width: 35%; height: 3px; opacity: .5; }
.thumb-block { height: 38px; border-radius: 6px; margin: 8px 0; }
.thumb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 6px; }
.thumb-cell { height: 22px; border-radius: 4px; }
.card-body { padding: 18px 20px 20px; }
.tag-row { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 12px; }
.tag-page { background: #eff6ff; color: #1d4ed8; }
.card-title { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.card-desc { font-size: 12.5px; color: #888; line-height: 1.6; margin-bottom: 14px; }
.card-price { font-size: 20px; font-weight: 800; color: #0f172a; }
.card-price span { font-size: 12px; color: #888; font-weight: 500; }
.note {
  margin: 32px 0 0; font-size: 13px; color: #1d4ed8;
  background: linear-gradient(135deg,#eff6ff,#fef9ec); border: 1px solid #dbeafe;
  border-radius: 10px; padding: 16px 20px; line-height: 1.8;
}
@media (max-width: 700px) {
  .catalog-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Portfolio thumb detail elements (page-portfolio.php)
   ========================================================================== */
.thumb-nav { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.thumb-navdot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.thumb-navline { height: 3px; border-radius: 2px; flex: 1; max-width: 20px; }
.thumb-navline.end { max-width: 14px; margin-left: auto; }
.thumb-listrow { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.thumb-check { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.thumb-lline { height: 3px; border-radius: 2px; flex: 1; }
.thumb-circles { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.thumb-circle { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; }
.thumb-pill { display: inline-block; padding: 3px 8px; border-radius: 10px; font-size: 8px; color: #fff; }
.thumb-split { display: flex; gap: 4px; margin-bottom: 8px; }
.thumb-split > div { flex: 1; border-radius: 4px; }

/* ==========================================================================
   Portfolio card click affordance
   ========================================================================== */
.catalog-card { cursor: pointer; }
.card-hint { font-size: 11px; color: #2563eb; font-weight: 700; margin-top: 10px; }

/* ==========================================================================
   Rough layout wireframe view (page-portfolio.php ?sample=... detail view)
   ========================================================================== */
.wf-frame { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; margin: 0 auto; }
.wf-nav { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #f1f5f9; }
.wf-navdot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.wf-navline { height: 5px; border-radius: 3px; width: 32px; background: #e5e7eb; }
.wf-navcta { margin-left: auto; font-size: 10px; font-weight: 700; color: #fff; padding: 5px 12px; border-radius: 12px; }
.wf-body { padding: 20px; }
.wf-hero { border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.wf-hline { height: 9px; border-radius: 4px; margin-bottom: 8px; }
.wf-hline.lg { width: 65%; }
.wf-hline.sm2 { width: 40%; opacity: .6; height: 6px; margin-bottom: 14px; }
.wf-btn { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; padding: 8px 16px; border-radius: 8px; }
.wf-section-title { font-size: 13px; font-weight: 700; color: #333; margin: 20px 0 10px; }
.wf-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wf-grid-item { border: 1px solid #f1f5f9; border-radius: 8px; padding: 10px; }
.wf-icon { width: 24px; height: 24px; border-radius: 50%; margin-bottom: 8px; }
.wf-line { height: 5px; border-radius: 3px; background: #e5e7eb; margin-bottom: 5px; }
.wf-line.sm { width: 60%; }
.wf-photo { border-radius: 8px; height: 56px; }
.wf-list { margin-bottom: 6px; }
.wf-listitem { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f8fafc; }
.wf-check { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; }
.wf-profile-row { display: flex; align-items: center; gap: 14px; }
.wf-profile-circle { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.wf-cta-strip { border-radius: 10px; padding: 16px 18px; margin-top: 20px; }
.wf-footer-strip { height: 24px; background: #f8fafc; border-top: 1px solid #f1f5f9; margin-top: 10px; }

/* Sample site page navigation (page-portfolio.php detail view) */
.wf-pagenav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.wf-pagenav a {
  font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: 14px;
  background: #f1f5f9; color: #555; text-decoration: none;
}
.wf-pagenav a.active { color: #fff; }

/* Scale badge (small/medium/large) on portfolio cards and detail page */
.tag-scale {
  display: inline-block; font-size: 11px; font-weight: 800;
  padding: 4px 12px; border-radius: 12px; margin-right: 6px;
}

/* ==========================================================================
   Page hero background photo (price/portfolio page intros)
   ========================================================================== */
.page-hero {
  position: relative; border-radius: 24px; overflow: hidden;
  padding: 56px 48px; background-size: cover; background-position: center;
  min-height: 260px; display: flex; align-items: center;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.85) 35%, rgba(255,255,255,.4) 62%, rgba(255,255,255,0) 85%);
  z-index: 1;
}
.page-hero-content { position: relative; z-index: 2; max-width: 520px; }
.page-hero-content .section-sub { font-weight: 700; color: #333; }
@media (max-width: 700px) {
  .page-hero { padding: 32px 24px; min-height: 200px; }
  .page-hero::before {
    background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 55%, rgba(255,255,255,.2) 100%);
  }
  .page-hero-content { max-width: 100%; }
}

/* ==========================================================================
   Character dialogue style process explanation (front-page.php)
   ========================================================================== */
.process-chat { max-width: 680px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 20px; }
.chat-row { display: flex; align-items: flex-end; gap: 14px; }
.chat-row.right { flex-direction: row-reverse; }
.chat-avatar {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  background: #f8fafc; border: 1px solid #e2e8f0; padding: 8px;
  display: flex; align-items: center; justify-content: center;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: contain; }
.chat-avatar-group { display: flex; gap: 6px; flex-shrink: 0; }
.chat-avatar-group .chat-avatar { width: 56px; height: 56px; padding: 6px; }
.chat-bubble {
  background: #f1f5f9; border-radius: 16px; padding: 16px 20px;
  font-size: 16px; font-weight: 700; color: #333; line-height: 1.75; max-width: 78%;
}
.chat-bubble.answer { background: #eff6ff; }
.chat-bubble.trio { background: linear-gradient(135deg,#fef3c7,#fde68a); color: #7c4a03; }
.chat-name { font-size: 13px; font-weight: 700; color: #888; margin-bottom: 6px; }
.chat-bubble.answer .chat-name { color: #2563eb; }
.chat-bubble.trio .chat-name { color: #b45309; }
@media (max-width: 700px) {
  .chat-bubble { max-width: 82%; font-size: 14.5px; padding: 14px 16px; }
  .chat-avatar { width: 56px; height: 56px; }
  .chat-avatar-group .chat-avatar { width: 44px; height: 44px; }
}

/* ==========================================================================
   Real achievement banner (page-portfolio.php - tapedubbing.com etc.)
   ========================================================================== */
.banner-link {
  display: block; border-radius: 16px; overflow: hidden;
  border: 1px solid #e8e8e4; transition: transform .2s, box-shadow .2s;
}
.banner-link:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,23,42,.12); }
.banner-link img { width: 100%; display: block; }

/* ==========================================================================
   Related services banner (footer.php - sister businesses, not our own portfolio)
   ========================================================================== */
.related-services { background: #f8fafc; border-top: 1px solid #f1f5f9; padding: 32px 40px; }
.related-services-inner { max-width: 1000px; margin: 0 auto; }
.related-services-inner .section-label { margin-bottom: 12px; }
.related-services-row { display: flex; gap: 20px; flex-wrap: wrap; }
.related-services-row .banner-link { flex: 1 1 320px; max-width: 460px; }
@media (max-width: 700px) {
  .related-services { padding: 24px 20px; }
  .related-services-row .banner-link { max-width: 100%; }
}

/* ==========================================================================
   Character introduction (before the dialogue, front-page.php)
   ========================================================================== */
.character-intro {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
  max-width: 680px; margin: 32px auto 8px;
}
.character-card { text-align: center; max-width: 160px; }
.character-avatar {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 10px;
  background: #fff; border: 1px solid #e2e8f0; padding: 10px;
  display: flex; align-items: center; justify-content: center;
}
.character-avatar img { width: 100%; height: 100%; object-fit: contain; }
.character-name { font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.character-desc { font-size: 12px; color: #888; line-height: 1.5; }
@media (max-width: 700px) {
  .character-intro { gap: 20px; }
  .character-avatar { width: 68px; height: 68px; }
}


/* ==========================================================
   モバイルメニュー(ハンバーガー)
   ========================================================== */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	color: #1a1a1a;
}
@media (max-width: 700px) {
	.menu-toggle {
		display: block;
	}
	.nav-links {
		position: absolute;
		top: 60px;
		left: 0;
		right: 0;
		background: #fff;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
		border-bottom: 1px solid #e8e8e4;
		box-shadow: 0 8px 16px rgba(0,0,0,0.06);
	}
	.nav-links.is-open {
		max-height: 480px;
	}
	.nav-links a {
		display: block;
		padding: 14px 40px;
		border-bottom: 1px solid #f0f0ee;
	}
}
