/*
Theme Name: Lee Translator
Theme URI: https://leeingz.com
Author: Lee Kaho
Author URI: https://leeingz.com
Description: A clean, professional WordPress theme for personal translation and interpretation service websites. Designed for Lee Kaho's Japan-China translation service.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lee-translator
Tags: one-column, custom-menu, featured-images, translation-ready, blog
*/

/* ===== CSS Variables ===== */
:root {
  --color-primary: #046bd2;
  --color-primary-dark: #035ab0;
  --color-primary-light: #e8f2fc;
  --color-accent: #f5a623;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-bg-dark: #2c3e50;
  --color-border: #e0e0e0;
  --color-success: #27ae60;
  --font-main: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --font-heading: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --max-width: 1100px;
  --header-height: 70px;
  --border-radius: 8px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
  /* Dynamic theme options (overridden via admin settings) */
  --hero-height: 100vh;
  --section-padding: 80px;
  --gallery-columns: 4;
  --card-radius: 8px;
}

/* ===== Custom Services Page ===== */
.services-custom-page {
  background: #ffffff;
}

.services-page-header {
  background: linear-gradient(180deg, #eef6ff 0%, #ffffff 100%);
}

.services-page-header__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.services-hero-panel {
  padding: 56px 48px;
  background: linear-gradient(135deg, rgba(232, 242, 252, 0.88) 0%, rgba(255, 255, 255, 0.96) 58%);
  border: 1px solid #dfeaf7;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(15, 35, 70, 0.08);
}

.services-hero-panel__copy {
  max-width: 780px;
}

.services-hero-panel__copy span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--color-primary);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.services-hero-panel__copy h2 {
  margin-bottom: 18px;
  color: #0b2d5c;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.35;
}

.services-hero-panel__copy p {
  max-width: 720px;
  margin: 0;
  color: #475569;
  font-size: 1.04rem;
  line-height: 1.95;
}

.services-intro-panel {
  margin-top: 44px;
  padding: 36px 40px;
  background: #ffffff;
  border: 1px solid #e5edf6;
  border-left: 5px solid var(--color-primary);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(15, 35, 70, 0.05);
}

.services-intro-panel h2 {
  margin-bottom: 18px;
  color: #10233f;
  font-size: 1.55rem;
}

.services-intro-panel__text {
  max-width: 920px;
}

.services-intro-panel__text p {
  margin: 0;
  color: #475569;
  line-height: 1.95;
}

.services-intro-panel__text p + p {
  margin-top: 12px;
}

.services-section-block {
  margin-top: 72px;
}

.services-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.services-card {
  position: relative;
  min-height: 100%;
  padding: 30px 28px;
  background: #ffffff;
  border: 1px solid #e2eaf4;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 35, 70, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.services-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 35, 70, 0.1);
}

.services-card__number {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--color-primary);
  border-radius: 50%;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(4, 107, 210, 0.22);
}

.services-card h3 {
  margin-bottom: 12px;
  color: #0b2d5c;
  font-size: 1.18rem;
}

.services-card p {
  color: #475569;
  line-height: 1.85;
}

.services-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.services-card li {
  position: relative;
  padding: 8px 0 8px 22px;
  color: #526174;
  font-size: 0.94rem;
  line-height: 1.7;
  border-top: 1px solid #edf2f7;
}

.services-card li::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 2px;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

.services-flow-panel {
  margin-top: 72px;
  padding: 42px 40px;
  background: #f8fbff;
  border: 1px solid #dde9f7;
  border-radius: 18px;
}

.services-flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: service-flow;
}

.services-flow-list li {
  position: relative;
  padding: 24px 20px;
  background: #ffffff;
  border: 1px solid #e2eaf4;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(15, 35, 70, 0.05);
  counter-increment: service-flow;
}

.services-flow-list li::before {
  content: counter(service-flow, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  color: var(--color-primary);
  font-weight: 800;
}

.services-flow-list strong {
  display: block;
  margin-bottom: 8px;
  color: #10233f;
  font-size: 1.02rem;
}

.services-flow-list span {
  display: block;
  color: #526174;
  font-size: 0.92rem;
  line-height: 1.75;
}

.services-pricing {
  margin-top: 72px;
}

.services-pricing__heading {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.services-pricing__heading p {
  max-width: 820px;
  margin: 14px auto 0;
  color: #475569;
  line-height: 1.95;
}

.services-pricing__group {
  margin-top: 30px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #e2eaf4;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(15, 35, 70, 0.07);
}

.services-pricing__group-title {
  margin: 0 0 20px;
  padding-left: 14px;
  color: #0b2d5c;
  border-left: 4px solid var(--color-primary);
  font-size: 1.32rem;
}

.services-pricing__table {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  table-layout: fixed;
}

.services-pricing__table th {
  padding: 15px 18px;
  background: #f5f8fc;
  color: #334155;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: left;
}

.services-pricing__table td {
  padding: 18px;
  border-bottom: 1px solid #e8eef6;
  color: #475569;
  line-height: 1.75;
  vertical-align: top;
}

.services-pricing__table tr:last-child td {
  border-bottom: none;
}

.services-pricing__table tbody tr:hover td {
  background: #fbfdff;
}

.services-pricing__table th:nth-child(1),
.services-pricing__table td:nth-child(1) {
  width: 28%;
}

.services-pricing__table th:nth-child(2),
.services-pricing__table td:nth-child(2) {
  width: 22%;
}

.services-pricing__table th:nth-child(3),
.services-pricing__table td:nth-child(3) {
  width: 50%;
}

.services-pricing__service {
  color: #0f172a;
  font-weight: 800;
}

.services-pricing__price {
  color: #1d4ed8;
  font-size: 1.04rem;
  font-weight: 800;
  white-space: nowrap;
}

.services-pricing__content {
  color: #475569;
}

.services-pricing__notes {
  margin-top: 26px;
  padding: 22px 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: #475569;
  line-height: 1.9;
}

.services-pricing__notes p {
  margin: 0;
}

.services-pricing__notes p + p {
  margin-top: 8px;
}

.services-final-cta {
  margin-top: 72px;
  padding: 42px 36px;
  text-align: center;
  background: linear-gradient(135deg, #eef6ff 0%, #ffffff 100%);
  border: 1px solid #dbe8f7;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(15, 35, 70, 0.07);
}

.services-final-cta h2 {
  margin-bottom: 12px;
  color: #0b2d5c;
  font-size: 1.45rem;
}

.services-final-cta p {
  max-width: 720px;
  margin: 0 auto 24px;
  color: #475569;
  line-height: 1.85;
}

@media (max-width: 768px) {
  .services-hero-panel {
    padding: 36px 24px;
    border-radius: 16px;
  }

  .services-hero-panel__copy h2 {
    font-size: 1.75rem;
  }

  .services-intro-panel,
  .services-flow-panel,
  .services-final-cta {
    padding: 28px 22px;
    border-radius: 16px;
  }

  .services-card-grid,
  .services-flow-list {
    grid-template-columns: 1fr;
  }

  .services-card {
    padding: 24px 22px;
    border-radius: 15px;
  }

  .services-pricing__group {
    padding: 20px;
    border-radius: 16px;
  }

  .services-pricing__group-title {
    font-size: 1.16rem;
  }

  .services-pricing__table,
  .services-pricing__table thead,
  .services-pricing__table tbody,
  .services-pricing__table tr,
  .services-pricing__table th,
  .services-pricing__table td {
    display: block;
    width: 100%;
  }

  .services-pricing__table {
    border: none;
    background: transparent;
    overflow: visible;
  }

  .services-pricing__table thead {
    display: none;
  }

  .services-pricing__table tbody {
    display: grid;
    gap: 14px;
  }

  .services-pricing__table tr {
    display: block;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  }

  .services-pricing__table td,
  .services-pricing__table th:nth-child(1),
  .services-pricing__table td:nth-child(1),
  .services-pricing__table th:nth-child(2),
  .services-pricing__table td:nth-child(2),
  .services-pricing__table th:nth-child(3),
  .services-pricing__table td:nth-child(3) {
    width: 100%;
    padding: 0;
    border: none;
  }

  .services-pricing__table td + td {
    margin-top: 10px;
  }

  .services-pricing__table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
  }

  .services-pricing__service {
    font-size: 1.02rem;
  }

  .services-pricing__price {
    font-size: 1.12rem;
    white-space: normal;
  }

  .services-pricing__notes {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .services-hero-panel,
  .services-intro-panel,
  .services-flow-panel,
  .services-final-cta {
    margin-left: -2px;
    margin-right: -2px;
  }

  .services-pricing__group {
    padding: 16px;
  }

  .services-pricing__table tr {
    padding: 16px;
  }
}

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

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

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding, 80px) 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 1.8rem;
  color: var(--color-text);
  margin-bottom: 10px;
}

.section-title .subtitle {
  font-size: 0.9rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.site-logo span {
  color: var(--color-primary);
}

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

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: 5px 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  margin-top: var(--header-height);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #fff 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(4,107,210,0.05) 0%, transparent 70%);
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--color-text);
}

.hero h1 span {
  color: var(--color-primary);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 35px;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  gap: 8px;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(4,107,210,0.3);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(4,107,210,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* ===== Service Cards ===== */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-border);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-card--main {
  border-color: var(--color-primary);
  border-width: 2px;
}

.service-card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.service-card .badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 15px;
}

/* ===== About Preview ===== */
.about-preview {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
  align-items: start;
}

.about-photo {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-info h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.about-info .location {
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 25px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: var(--color-bg-alt);
  border-radius: 6px;
}

.highlight-item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 0.9rem;
}

.highlight-item-text {
  font-size: 0.9rem;
  line-height: 1.5;
}

.highlight-item-text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text);
}

.highlight-item-text span {
  color: var(--color-text-light);
  font-size: 0.8rem;
}

/* ===== Strengths ===== */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.strength-item {
  padding: 30px;
  background: var(--color-bg);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.strength-item h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.strength-item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* ===== Case Studies ===== */
.case-studies {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.case-card {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: var(--color-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.case-card:hover {
  box-shadow: var(--shadow-md);
}

.case-card-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--color-primary-light);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.case-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.case-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.case-card .tag {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  font-weight: 600;
}

/* ===== Pricing Preview ===== */
.pricing-preview {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.pricing-preview p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  margin-bottom: 30px;
}

.pricing-table-mini {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.pricing-table-mini th,
.pricing-table-mini td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.pricing-table-mini th {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.pricing-table-mini td {
  font-size: 0.95rem;
}

.pricing-table-mini tr:hover td {
  background: var(--color-bg-alt);
}

/* ===== Blog Section ===== */
.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.blog-card {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.blog-card-thumb {
  height: 180px;
  background: var(--color-primary-light);
  overflow: hidden;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 20px;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.blog-card h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.5;
}

.blog-card h4 a {
  color: var(--color-text);
}

.blog-card h4 a:hover {
  color: var(--color-primary);
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ===== SNS Section ===== */
.sns-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.sns-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  color: var(--color-text);
  font-size: 0.95rem;
  transition: var(--transition);
}

.sns-link i {
  font-size: 1.1rem;
  color: var(--color-primary);
  transition: var(--transition);
}

.sns-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.sns-link:hover i {
  color: var(--color-primary-dark);
}

/* ===== Contact Section ===== */
.contact-section {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #fff 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--color-text-light);
  margin-bottom: 25px;
}

.contact-methods {
  list-style: none;
  padding: 0;
}

.contact-methods li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.contact-methods li:last-child {
  border-bottom: none;
}

.contact-methods .icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Contact Form */
.contact-form {
  background: var(--color-bg);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-group label .required {
  color: #e74c3c;
  margin-left: 4px;
  font-size: 0.8rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-main);
  transition: var(--transition);
  background: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(4,107,210,0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-bg-dark);
  color: #ccc;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #aaa;
}

.footer-nav h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 15px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 8px;
}

.footer-nav a {
  color: #aaa;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-sns {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.footer-sns a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-sns a:hover {
  background: var(--color-primary);
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: #888;
}

/* ===== Page Templates ===== */
.page-header {
  margin-top: var(--header-height);
  background: var(--color-primary-light);
  padding: 60px 0 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.page-header .breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.page-header .breadcrumb a {
  color: var(--color-text-light);
}

.page-content {
  padding: 60px 0;
}

.page-content .content-area {
  max-width: 800px;
  margin: 0 auto;
}

/* Profile Page */
.profile-section {
  margin-bottom: 50px;
}

.profile-section h2 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-table th,
.profile-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.profile-table th {
  width: 180px;
  background: var(--color-bg-alt);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.profile-table td {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* Service Detail */
.service-detail {
  margin-bottom: 50px;
  padding: 40px;
  background: var(--color-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.service-detail h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.service-detail ul {
  list-style: none;
  padding: 0;
}

.service-detail ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.service-detail ul li::before {
  content: '\2713';
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.service-detail ul li:last-child {
  border-bottom: none;
}

/* Pricing Table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.pricing-table th,
.pricing-table td {
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.pricing-table thead th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.pricing-table tbody tr:nth-child(even) {
  background: var(--color-bg-alt);
}

.pricing-table tbody tr:hover {
  background: var(--color-primary-light);
}

.pricing-note {
  background: var(--color-primary-light);
  padding: 25px 30px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--color-primary);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

.pricing-page-legacy-hidden {
  display: none !important;
}

.services-pricing-section {
  margin-top: 64px;
  padding: 56px 42px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dfe8f4;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(4, 53, 112, 0.07);
}

.services-pricing-title {
  margin-bottom: 28px;
}

.services-pricing-lead {
  max-width: 860px;
  margin: 0 auto 36px;
  padding: 22px 26px;
  background: #ffffff;
  border: 1px solid #dce8f6;
  border-left: 4px solid var(--color-primary);
  border-radius: 10px;
  color: #334155;
  line-height: 1.9;
}

.services-pricing-lead p {
  margin: 0;
}

.services-pricing-lead p + p {
  margin-top: 8px;
}

.services-pricing-group {
  margin-bottom: 34px;
  background: #ffffff;
  border: 1px solid #e1e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 35, 70, 0.05);
}

.services-pricing-group h3 {
  margin: 0;
  padding: 20px 24px;
  color: #0b2d5c;
  background: #f4f8fd;
  border-bottom: 1px solid #e1e8f0;
  font-size: 1.18rem;
}

.services-pricing-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.services-pricing-table th,
.services-pricing-table td {
  padding: 18px 22px;
  border-bottom: 1px solid #e6edf5;
  text-align: left;
  vertical-align: top;
}

.services-pricing-table th {
  color: #0b4ea2;
  background: #fbfdff;
  font-size: 0.88rem;
  font-weight: 700;
}

.services-pricing-table th:nth-child(1),
.services-pricing-table td:nth-child(1) {
  width: 28%;
  font-weight: 700;
  color: #10233f;
}

.services-pricing-table th:nth-child(2),
.services-pricing-table td:nth-child(2) {
  width: 24%;
  text-align: right;
}

.services-pricing-table th:nth-child(3),
.services-pricing-table td:nth-child(3) {
  width: 48%;
}

.services-pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.services-pricing-table tbody tr:hover td {
  background: #f8fbff;
}

.services-pricing-price {
  color: #0b4ea2;
  font-size: 1.04rem;
  font-weight: 800;
  white-space: nowrap;
}

.services-pricing-notes {
  margin-top: 8px;
  padding: 22px 24px;
  background: #eef6ff;
  border: 1px solid #d6e7fb;
  border-radius: 10px;
  color: #44546a;
  font-size: 0.94rem;
  line-height: 1.85;
}

.services-pricing-notes p {
  margin: 0;
}

.services-pricing-notes p + p {
  margin-top: 8px;
}

.services-pricing-cta {
  margin-top: 28px;
  text-align: center;
}

/* ===== Cases Hero ===== */
.cases-hero {
  margin-top: var(--header-height);
  padding: 74px 0 28px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.cases-hero::after {
  content: '';
  position: absolute;
  left: 18%;
  right: -12%;
  bottom: 70px;
  height: 210px;
  background: #eaf3ff;
  border-radius: 50% 0 0 0;
  transform: skewY(-12deg);
  z-index: 0;
}

.cases-hero .container {
  position: relative;
  z-index: 1;
}

.cases-breadcrumb {
  color: #52647a;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.cases-breadcrumb a {
  color: #52647a;
  text-decoration: none;
}

.cases-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  gap: 54px;
  align-items: center;
}

.cases-hero-kicker {
  color: #0753a4;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 16px;
}

.cases-hero h1 {
  color: #082653;
  font-size: clamp(2rem, 3.3vw, 3rem);
  line-height: 1.55;
  letter-spacing: 0;
  margin-bottom: 22px;
}

.cases-hero-lead {
  border-left: 4px solid #7db1ff;
  color: #263f63;
  font-weight: 600;
  line-height: 2;
  padding-left: 18px;
  margin-bottom: 0;
}

.cases-hero-visual {
  min-width: 0;
}

.cases-hero-image,
.cases-hero-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(8, 38, 83, 0.14);
}

.cases-hero-image {
  object-fit: cover;
}

.cases-hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9e6f6;
  background: #eaf3ff;
  color: #fff;
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 2px 10px rgba(8, 38, 83, 0.24);
}

.cases-hero-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}

.cases-hero-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 148px;
  padding: 22px 20px;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(8, 38, 83, 0.07);
}

.cases-hero-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #064b9d;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

.cases-hero-card h2 {
  color: #082653;
  font-size: 1.05rem;
  line-height: 1.45;
  margin-bottom: 12px;
}

.cases-hero-card p {
  color: #263f63;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.85;
  margin-bottom: 0;
}

/* ===== Achievements Page ===== */
.achievements-section {
  padding-top: 18px;
}

.achievements-title {
  margin-bottom: 36px;
}

.achievements-title h2 {
  color: #082653;
  font-size: 2rem;
}

.achievements-title p {
  max-width: 780px;
  margin: 12px auto 0;
  color: #263f63;
  font-weight: 600;
  line-height: 1.85;
}

.achievement-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px;
  margin: 0 auto 26px;
}

.achievement-tabs button {
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  background: #fff;
  color: #082653;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(8, 38, 83, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.achievement-tabs button:hover,
.achievement-tabs button.is-active {
  border-color: #064b9d;
  background: #064b9d;
  color: #fff;
  box-shadow: 0 8px 18px rgba(6, 75, 157, 0.18);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.achievement-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(8, 38, 83, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.achievement-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(8, 38, 83, 0.11);
}

.achievement-card[hidden] {
  display: none;
}

.achievement-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8f2fc;
}

.achievement-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.achievement-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #eaf3ff;
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(8, 38, 83, 0.2);
}

.achievement-card:hover .achievement-card-image img {
  transform: scale(1.045);
}

.achievement-card-body {
  padding: 20px;
}

.achievement-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.achievement-card-meta span {
  color: #064b9d;
  font-size: 0.84rem;
  font-weight: 800;
}

.achievement-card-meta span + span::before {
  content: "|";
  color: #9db2ca;
  margin-right: 8px;
}

.achievement-card-body h3 {
  color: #082653;
  font-size: 1.1rem;
  line-height: 1.55;
  margin-bottom: 12px;
}

.achievement-card-body p {
  color: #263f63;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.8;
  margin-bottom: 18px;
}

.achievement-card-fields {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  background: #f4f7fb;
}

.achievement-card-fields:empty {
  display: none;
}

.achievement-card-fields div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  color: #263f63;
  font-size: 0.9rem;
  line-height: 1.55;
}

.achievement-card-fields dt {
  color: #52647a;
  font-weight: 800;
}

.achievement-card-fields dd {
  margin: 0;
  color: #082653;
  font-weight: 800;
}

.achievements-empty {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  background: #f8fbff;
  color: #52647a;
  text-align: center;
  font-weight: 700;
}

.achievements-confidential {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 34px 0 0;
  padding: 14px 18px;
  border-radius: 8px;
  background: #f4f8fd;
  color: #064b9d;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.7;
  text-align: center;
}

.achievements-contact-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding: 26px 34px;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(8, 38, 83, 0.06);
}

.achievements-contact-cta h2 {
  color: #082653;
  font-size: 1.25rem;
}

.achievements-contact-cta .btn {
  min-width: 250px;
}

/* ===== Scroll to Top ===== */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
}

/* ===== Floating SNS Bubble Button ===== */
.floating-sns-bubble {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 998;
}

.sns-bubble-toggle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(4,107,210,0.4);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.sns-bubble-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(4,107,210,0.5);
}

.sns-bubble-toggle::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.3;
  animation: bubble-pulse 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes bubble-pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0; }
}

.sns-bubble-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
}

.sns-bubble-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.sns-bubble-item {
  width: 50px;
  height: 50px;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-size: 1.3rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.sns-bubble-item i {
  transition: var(--transition);
}

.sns-bubble-item:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateX(-10px) scale(1.1);
  box-shadow: var(--shadow-md);
}

.sns-bubble-item:hover i {
  color: #fff;
}

/* Staggered animation for menu items */
.sns-bubble-menu.open .sns-bubble-item:nth-child(1) { animation-delay: 0s; }
.sns-bubble-menu.open .sns-bubble-item:nth-child(2) { animation-delay: 0.05s; }
.sns-bubble-menu.open .sns-bubble-item:nth-child(3) { animation-delay: 0.1s; }
.sns-bubble-menu.open .sns-bubble-item:nth-child(4) { animation-delay: 0.15s; }
.sns-bubble-menu.open .sns-bubble-item:nth-child(5) { animation-delay: 0.2s; }
.sns-bubble-menu.open .sns-bubble-item:nth-child(6) { animation-delay: 0.25s; }
.sns-bubble-menu.open .sns-bubble-item:nth-child(7) { animation-delay: 0.3s; }

@keyframes bubble-item-appear {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.5);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sns-bubble-menu.open .sns-bubble-item {
  animation: bubble-item-appear 0.3s ease forwards;
}

/* ===== WordPress Core Styles ===== */
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--color-text-muted); }
.screen-reader-text { position: absolute; left: -9999px; }

/* Post Styles */
.post-content {
  line-height: 1.9;
}

.post-content h2 {
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
}

.post-content h3 {
  margin: 30px 0 15px;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content img {
  border-radius: var(--border-radius);
  margin: 20px 0;
}

.post-content blockquote {
  padding: 20px 25px;
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin: 20px 0;
  font-style: italic;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  padding: 30px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
}

/* ===== Hero Layout (text + brand image) ===== */
.hero-layout {
  display: flex;
  align-items: center;
  gap: 50px;
}

.hero-text {
  flex: 0 0 60%;
  position: relative;
  z-index: 1;
}

.hero-brand {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-brand-img {
  max-width: 100%;
  width: 320px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(4,107,210,0.15));
  animation: hero-float 4s ease-in-out infinite;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ===== About Photo Placeholder ===== */
.about-photo-placeholder {
  width: 100%;
  height: 400px;
  object-fit: contain;
  background: var(--color-primary-light);
  padding: 40px;
}

/* ===== Canton Fair Photo Gallery ===== */
.canton-gallery {
  max-width: 100%;
}

.canton-gallery-grid {
  display: grid;
  grid-template-columns: repeat(var(--gallery-columns, 4), 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.canton-gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  aspect-ratio: 4 / 3;
}

.canton-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.canton-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.canton-gallery-item:hover img {
  transform: scale(1.05);
}

.canton-gallery-caption {
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-bottom: 0;
}

.home-achievement-group {
  margin-top: 30px;
}

.home-achievement-group:first-of-type {
  margin-top: 0;
}

.home-achievement-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.home-achievement-heading h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.08rem;
}

.home-achievement-controls {
  display: flex;
  gap: 8px;
}

.home-achievement-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.home-achievement-nav:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.home-achievement-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 2px 2px 8px;
}

.home-achievement-track::-webkit-scrollbar {
  display: none;
}

.home-achievement-card {
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 250px;
  height: 360px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.home-achievement-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.home-achievement-image {
  height: 74%;
  overflow: hidden;
  background: var(--color-primary-light);
}

.home-achievement-image img,
.home-achievement-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.home-achievement-card:hover .home-achievement-image img {
  transform: scale(1.045);
}

.home-achievement-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  text-shadow: 0 2px 10px rgba(8, 38, 83, 0.2);
}

.home-achievement-body {
  height: 26%;
  padding: 14px 16px;
}

.home-achievement-body span {
  display: block;
  margin-bottom: 6px;
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 800;
}

.home-achievement-body h4 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.canton-case-gallery {
  margin-top: 10px;
}

.canton-case-slide {
  background: #fff;
}

.canton-case-photo {
  aspect-ratio: 16 / 10;
  min-height: 0;
  overflow: hidden;
}

.canton-case-photo img,
.canton-case-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.canton-case-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf3ff;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(8, 38, 83, 0.2);
}

.canton-case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.canton-case-meta span {
  color: var(--color-primary);
  font-size: 0.84rem;
  font-weight: 800;
}

.canton-case-meta span + span::before {
  content: "|";
  color: #9db2ca;
  margin-right: 8px;
}

.canton-case-fields {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 14px;
  border-radius: 8px;
  background: #f4f7fb;
}

.canton-case-fields:empty {
  display: none;
}

.canton-case-fields div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.canton-case-fields dt {
  color: #52647a;
  font-weight: 800;
}

.canton-case-fields dd {
  margin: 0;
  color: var(--color-primary);
  font-weight: 800;
}

/* ===== SNS Link Icons ===== */
.sns-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== Simplified Footer ===== */
.footer-simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-contact {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-contact-item {
  font-size: 0.9rem;
  color: #aaa;
}

.footer-contact-item a {
  color: #ccc;
}

.footer-contact-item a:hover {
  color: #fff;
}

.footer-contact-label {
  font-weight: 600;
  color: #ccc;
  margin-right: 4px;
}

.footer-sns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-sns .sns-link {
  padding: 8px 16px;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #ccc;
  border-radius: 20px;
  text-decoration: none;
}

.footer-sns .sns-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* ===== Responsive ===== */

/* --- Tablet Landscape (1024px) --- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 60px;
  }

  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .strengths-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-studies {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-achievement-card {
    flex-basis: calc((100% - 36px) / 3);
  }

  .blog-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-preview {
    gap: 30px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .canton-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Floating SNS bubble - tablet */
  .floating-sns-bubble {
    bottom: 25px;
    right: 25px;
  }

  .sns-bubble-toggle {
    width: 54px;
    height: 54px;
    font-size: 1.4rem;
  }

  .sns-bubble-item {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }

  .sns-bubble-menu {
    bottom: 64px;
  }
}

/* --- Tablet Portrait (768px) --- */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --section-padding: 50px;
    --gallery-columns: 2;
  }

  html {
    font-size: 15px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg);
    box-shadow: var(--shadow-lg);
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav a {
    display: block;
    padding: 15px 0;
    font-size: 1rem;
  }

  /* Hero */
  .hero {
    padding: 60px 0 50px;
  }

  .hero-layout {
    flex-direction: column;
    gap: 30px;
  }

  .hero-text {
    flex: 1 1 100%;
  }

  .hero-brand {
    flex: 1 1 100%;
  }

  .hero-brand-img {
    width: 200px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    margin-bottom: 35px;
  }

  /* Grids - single column on mobile */
  .service-cards,
  .strengths-grid,
  .case-studies,
  .blog-cards {
    grid-template-columns: 1fr;
  }

  .canton-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-preview {
    grid-template-columns: 1fr;
  }

  .about-photo img {
    height: 300px;
  }

  .about-highlights {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /* Profile / About page */
  .profile-table th {
    width: 120px;
    padding: 12px 15px;
    font-size: 0.85rem;
  }

  .profile-table td {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .profile-section h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  /* Pricing table mobile */
  .pricing-table th,
  .pricing-table td {
    padding: 12px 10px;
    font-size: 0.85rem;
  }

  .pricing-table-mini th,
  .pricing-table-mini td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  /* Case card mobile */
  .case-card {
    padding: 20px;
    gap: 15px;
  }

  .case-card-icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  /* Strength item mobile */
  .strength-item {
    padding: 22px;
  }

  /* Contact form mobile */
  .contact-form {
    padding: 25px;
  }

  /* Service detail mobile */
  .service-detail {
    padding: 25px;
  }

  /* Buttons */
  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .btn-sm {
    width: auto;
  }

  /* Page header mobile */
  .page-header {
    padding: 40px 0 30px;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .page-content {
    padding: 40px 0;
  }

  /* Floating SNS Bubble - Mobile */
  .floating-sns-bubble {
    bottom: 20px;
    right: 20px;
  }

  .sns-bubble-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .sns-bubble-item {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .sns-bubble-menu {
    bottom: 60px;
    /* Prevent menu from going off-screen top */
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }

  /* Prevent bubble items from extending beyond screen */
  .sns-bubble-item:hover {
    transform: scale(1.1);
  }

  /* Note embed mobile */
  .note-embed-card {
    margin: 20px 10px;
  }

  .note-embed-inner {
    padding: 18px;
  }

  .note-embed-iframe {
    height: 350px;
  }

  /* Scroll to top mobile */
  .scroll-top {
    bottom: 80px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .services-pricing-section {
    margin-top: 48px;
    padding: 36px 22px;
    border-radius: 12px;
  }

  .services-pricing-lead {
    padding: 18px 20px;
    margin-bottom: 28px;
  }

  .services-pricing-group {
    margin-bottom: 26px;
  }

  .services-pricing-group h3 {
    padding: 18px 20px;
    font-size: 1.08rem;
  }

  .services-pricing-table,
  .services-pricing-table thead,
  .services-pricing-table tbody,
  .services-pricing-table tr,
  .services-pricing-table th,
  .services-pricing-table td {
    display: block;
    width: 100%;
  }

  .services-pricing-table thead {
    display: none;
  }

  .services-pricing-table tbody {
    padding: 14px;
    background: #f8fbff;
  }

  .services-pricing-table tr {
    margin-bottom: 14px;
    padding: 16px 16px 14px;
    background: #ffffff;
    border: 1px solid #dfe8f4;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(15, 35, 70, 0.05);
  }

  .services-pricing-table tr:last-child {
    margin-bottom: 0;
  }

  .services-pricing-table th,
  .services-pricing-table td,
  .services-pricing-table th:nth-child(1),
  .services-pricing-table td:nth-child(1),
  .services-pricing-table th:nth-child(2),
  .services-pricing-table td:nth-child(2),
  .services-pricing-table th:nth-child(3),
  .services-pricing-table td:nth-child(3) {
    width: 100%;
    padding: 0;
    border: none;
    text-align: left;
  }

  .services-pricing-table td {
    margin-top: 12px;
    color: #26364d;
  }

  .services-pricing-table td:first-child {
    margin-top: 0;
    font-size: 1rem;
  }

  .services-pricing-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: #6b7b90;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  .services-pricing-price {
    font-size: 1.08rem;
    white-space: normal;
  }

  .services-pricing-notes {
    padding: 18px 20px;
  }
}

/* --- Mobile (480px) --- */
@media (max-width: 480px) {
  :root {
    --section-padding: 40px;
  }

  html {
    font-size: 14px;
  }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.2rem; }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 1.4rem;
  }

  .section-title {
    margin-bottom: 25px;
  }

  .section {
    padding: 40px 0;
  }

  .container {
    padding: 0 15px;
  }

  /* About mobile */
  .about-preview {
    gap: 20px;
  }

  .about-photo img {
    height: 250px;
  }

  .about-highlights {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .highlight-item {
    padding: 10px;
  }

  /* Profile table - stack on small screens */
  .profile-table,
  .profile-table tbody,
  .profile-table tr,
  .profile-table th,
  .profile-table td {
    display: block;
    width: 100%;
  }

  .profile-table th {
    background: var(--color-primary-light);
    border-bottom: none;
    padding: 10px 15px;
    font-size: 0.85rem;
  }

  .profile-table td {
    padding: 10px 15px;
    border-bottom: 1px solid var(--color-border);
  }

  /* Case card compact */
  .case-card {
    flex-direction: column;
    gap: 10px;
    padding: 18px;
  }

  .case-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Strength item compact */
  .strength-item {
    padding: 18px;
  }

  .strength-item h4 {
    font-size: 0.95rem;
  }

  /* Service card mobile */
  .service-card {
    padding: 25px 20px;
  }

  /* Blog card mobile */
  .blog-card-thumb {
    height: 150px;
  }

  .blog-card-body {
    padding: 15px;
  }

  /* Contact form */
  .contact-form {
    padding: 20px 15px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  /* Service detail */
  .service-detail {
    padding: 20px 15px;
  }

  /* Pricing table scrollable */
  .pricing-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pricing-table-mini th,
  .pricing-table-mini td {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  /* Gallery - single column on very small */
  .canton-gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .canton-gallery-item {
    aspect-ratio: 16 / 9;
  }

  /* Page header */
  .page-header {
    padding: 30px 0 25px;
  }

  .page-header h1 {
    font-size: 1.4rem;
  }

  .page-content {
    padding: 30px 0;
  }

  /* Floating SNS Bubble - Small Mobile */
  .floating-sns-bubble {
    bottom: 15px;
    right: 15px;
  }

  .sns-bubble-toggle {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }

  .sns-bubble-toggle::before {
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
  }

  .sns-bubble-item {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .sns-bubble-menu {
    bottom: 56px;
    gap: 10px;
  }

  /* Scroll to top */
  .scroll-top {
    bottom: 70px;
    right: 15px;
    width: 38px;
    height: 38px;
  }

  /* Footer */
  .footer-simple {
    gap: 15px;
  }

  .footer-contact {
    gap: 15px;
  }

  .footer-contact-item {
    font-size: 0.8rem;
  }

  /* SNS links wrap */
  .sns-links {
    gap: 10px;
  }

  .sns-link {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

/* --- Very small screens (360px) --- */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.3rem;
  }

  .hero-tag {
    font-size: 0.7rem;
    padding: 3px 10px;
  }

  .container {
    padding: 0 12px;
  }

  .sns-bubble-toggle {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .sns-bubble-item {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .sns-bubble-menu {
    bottom: 52px;
    gap: 8px;
  }
}

/* ===== Print Styles ===== */
@media print {
  .site-header,
  .floating-sns-bubble,
  .scroll-top,
  .menu-toggle {
    display: none !important;
  }

  .hero {
    margin-top: 0;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}

/* ===== Case Gallery Carousel ===== */
.case-gallery-list {
  display: grid;
  gap: 34px;
}

.case-gallery-list--home {
  gap: 28px;
}

.case-gallery-group {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.section--alt .case-gallery-group {
  background: #fff;
}

.case-gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.case-gallery-heading span {
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.case-gallery-heading h3 {
  margin: 0;
  font-size: 1.2rem;
}

.case-gallery-shell {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 12px;
  align-items: center;
}

.case-gallery-viewport {
  overflow: hidden;
  border-radius: var(--border-radius);
}

.case-gallery-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.case-gallery-slide {
  min-width: min(78vw, 520px);
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 46% 1fr;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.case-gallery-photo {
  min-height: 270px;
  background: var(--color-primary-light);
}

.case-gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-gallery-copy {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-gallery-copy .tag {
  align-self: flex-start;
  background: #fff;
  color: var(--color-primary);
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 700;
  margin-bottom: 10px;
}

.case-gallery-copy h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.case-gallery-copy p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 0;
}

.case-gallery-nav {
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.case-gallery-nav:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.case-gallery-current {
  margin: 14px 54px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* ===== B2B Case Study Page ===== */
.cases-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  gap: 34px;
  align-items: stretch;
  margin-bottom: 44px;
}

.cases-overview-copy {
  padding: 34px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.cases-overview-copy h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.55;
  margin-bottom: 16px;
}

.cases-overview-copy p {
  color: var(--color-text-light);
  line-height: 1.85;
  margin-bottom: 0;
}

.cases-summary-cards {
  display: grid;
  gap: 14px;
}

.cases-summary-cards article {
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: var(--color-bg-alt);
}

.cases-summary-cards span {
  display: block;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cases-summary-cards strong {
  display: block;
  color: var(--color-text);
  font-size: 0.98rem;
  line-height: 1.65;
}

.cases-filter-panel {
  margin-top: 54px;
}

.cases-featured-section {
  margin-top: 48px;
}

.cases-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.case-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.case-filter-tabs button {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.case-filter-tabs button:hover,
.case-filter-tabs button.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.case-category-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.case-category-notes article {
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: #fff;
}

.case-category-notes span {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.case-category-notes p {
  color: var(--color-text-light);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.cases-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.case-study-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: none;
  transition: var(--transition);
}

.case-study-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.case-study-card[hidden] {
  display: none;
}

.case-study-image {
  aspect-ratio: 4 / 3;
  background: var(--color-primary-light);
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.case-study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.case-study-meta span {
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.case-study-meta span + span::before {
  content: "|";
  color: var(--color-border-dark);
  margin-right: 8px;
}

.case-study-body h3 {
  font-size: 1.02rem;
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-study-body p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-study-fields {
  display: grid;
  gap: 7px;
  margin: 4px 0 14px;
  padding: 12px;
  background: var(--color-bg-alt);
  border-radius: 6px;
}

.case-study-fields div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  font-size: 0.82rem;
}

.case-study-fields dt {
  color: var(--color-text-light);
  font-weight: 700;
}

.case-study-fields dd {
  margin: 0;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-study-link {
  margin-top: 16px;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

.cases-final-cta {
  margin-top: 50px;
  padding: 34px;
  border-radius: var(--border-radius);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  text-align: center;
}

.cases-final-cta h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.cases-final-cta p {
  color: var(--color-text-light);
}

.cases-final-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ===== Modern Footer ===== */
.footer-modern {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) minmax(170px, 0.7fr) minmax(240px, 1fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 34px;
}

.footer-brand-block h3,
.footer-link-block h4 {
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand-block p {
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  font-size: 0.92rem;
  line-height: 1.8;
}

.footer-contact-list,
.footer-link-block,
.footer-sns-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-list a,
.footer-contact-list span,
.footer-link-block a,
.footer-sns-links a {
  color: rgba(255,255,255,0.76);
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-contact-list a,
.footer-contact-list span,
.footer-sns-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.footer-link-block a:hover,
.footer-sns-links a:hover,
.footer-contact-list a:hover {
  color: #fff;
}

.footer-sns-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.footer-sns-links a {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--border-radius);
  background: rgba(255,255,255,0.06);
}

.footer-sns-links i,
.footer-contact-list i {
  color: #fff;
  width: 18px;
  text-align: center;
}

@media (max-width: 900px) {
  .cases-hero {
    padding-top: 56px;
  }

  .cases-hero-main {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .cases-hero-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .achievement-tabs {
    gap: 16px;
  }

  .achievements-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .achievements-contact-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cases-overview {
    grid-template-columns: 1fr;
  }

  .case-category-notes,
  .cases-featured-grid,
  .cases-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-gallery-slide {
    grid-template-columns: 1fr;
    min-width: min(84vw, 520px);
  }

  .case-gallery-photo {
    min-height: 230px;
  }

  .footer-modern {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-achievement-card {
    flex-basis: 78vw;
    min-width: 260px;
    height: 330px;
  }

  .home-achievement-heading {
    align-items: flex-start;
  }

  .home-achievement-controls {
    display: none;
  }

  .cases-hero {
    padding: 42px 0 18px;
  }

  .cases-hero::after {
    left: -20%;
    right: -30%;
    bottom: 300px;
    height: 180px;
  }

  .cases-hero h1 {
    font-size: 1.75rem;
    line-height: 1.5;
  }

  .cases-hero-lead {
    font-size: 0.95rem;
    line-height: 1.85;
  }

  .cases-hero-lead br {
    display: none;
  }

  .cases-hero-placeholder {
    font-size: 2rem;
  }

  .cases-hero-cards {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 30px;
  }

  .cases-hero-card {
    min-height: auto;
    padding: 20px;
  }

  .achievements-title {
    margin-bottom: 28px;
  }

  .achievements-title h2 {
    font-size: 1.7rem;
  }

  .achievement-tabs {
    display: flex;
    gap: 10px;
    margin-left: -15px;
    margin-right: -15px;
    padding: 0 15px 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .achievement-tabs button {
    flex: 0 0 auto;
    min-width: 230px;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .achievements-confidential {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }

  .achievements-contact-cta {
    padding: 22px;
  }

  .achievements-contact-cta .btn {
    width: 100%;
    min-width: 0;
  }

  .cases-overview-copy,
  .cases-final-cta {
    padding: 22px;
  }

  .case-category-notes,
  .cases-featured-grid,
  .cases-card-grid {
    grid-template-columns: 1fr;
  }

  .case-filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .case-filter-tabs button {
    flex: 0 0 auto;
  }

  .case-gallery-group {
    padding: 18px;
  }

  .case-gallery-heading {
    display: block;
  }

  .case-gallery-shell {
    grid-template-columns: 1fr;
  }

  .case-gallery-nav {
    display: none;
  }

  .case-gallery-current {
    margin: 12px 0 0;
  }

  .case-gallery-slide {
    min-width: 86vw;
  }

  .footer-sns-links {
    grid-template-columns: 1fr;
  }
}

/* ===== Conversion-focused content blocks ===== */
.target-section {
  background: var(--color-bg);
}

.target-grid,
.service-module-grid,
.profile-capability-grid,
.quick-contact-grid {
  display: grid;
  gap: 20px;
}

.target-grid {
  grid-template-columns: repeat(3, 1fr);
}

.target-grid article,
.service-module,
.profile-capability-grid > div,
.quick-contact-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.target-grid article h3,
.service-module h3,
.profile-capability-grid h3,
.quick-contact-card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.target-grid article p,
.service-module p,
.profile-capability-grid p,
.quick-contact-card p {
  color: var(--color-text-light);
  font-size: 0.94rem;
  line-height: 1.75;
  margin-bottom: 0;
}

.service-lead-block,
.profile-hero-panel,
.contact-lead-panel,
.page-cta-panel {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #fff 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 42px;
  margin-bottom: 44px;
  box-shadow: var(--shadow-sm);
}

.service-lead-block h2,
.page-cta-panel h2,
.contact-lead-panel h2 {
  font-size: 1.65rem;
  margin: 8px 0 14px;
}

.service-lead-block p,
.page-cta-panel p,
.contact-lead-panel p {
  color: var(--color-text-light);
  font-size: 1rem;
  max-width: 780px;
}

.service-lead-actions,
.profile-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.service-module-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 46px;
}

.service-module-main,
.service-module-media,
.quick-contact-main {
  border-color: var(--color-primary);
  border-left: 5px solid var(--color-primary);
}

.service-module-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.service-module ul {
  margin: 16px 0 0;
  padding-left: 1.1rem;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.service-module .btn {
  margin-top: 18px;
}

.service-flow,
.service-modules,
.target-grid-block {
  margin-bottom: 48px;
}

.flow-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.flow-list li {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 20px;
}

.flow-list strong {
  display: block;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.flow-list span {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.profile-hero-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: center;
}

.profile-portrait {
  border-radius: var(--border-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.profile-portrait img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.profile-lead {
  font-size: 1.08rem;
  color: var(--color-text);
  font-weight: 600;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 46px;
}

.profile-stat-grid article {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.profile-stat-grid strong {
  display: block;
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.profile-stat-grid span,
.credential-list span {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.credential-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.credential-list span {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 700;
}

.profile-timeline {
  display: grid;
  gap: 16px;
}

.profile-timeline article {
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-alt);
  padding: 20px 22px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.profile-timeline span {
  display: block;
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.quick-contact-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.quick-contact-card {
  text-align: center;
}

.quick-contact-card i {
  color: var(--color-primary);
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.quick-contact-value {
  font-weight: 700;
  color: var(--color-text);
}

.contact-checklist li .icon {
  font-weight: 700;
}

@media (max-width: 900px) {
  .target-grid,
  .quick-contact-grid,
  .profile-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-module-grid,
  .profile-hero-panel,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .profile-portrait img {
    height: 280px;
  }
}

@media (max-width: 640px) {
  .service-lead-block,
  .profile-hero-panel,
  .contact-lead-panel,
  .page-cta-panel {
    padding: 28px 20px;
  }

  .target-grid,
  .quick-contact-grid,
  .profile-stat-grid {
    grid-template-columns: 1fr;
  }

  .service-lead-actions,
  .profile-action-row {
    flex-direction: column;
  }

  .service-lead-actions .btn,
  .profile-action-row .btn {
    width: 100%;
  }
}
