/* ==========================================================================
   CSS Variables (Design Tokens)
   ========================================================================== */
   :root {
    /* Colors */
    --color-bg: #ffffff;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-primary: #132539;
    --color-accent: #0056B3;
    --color-accent-hover: #004494;
    --color-light: #f5f9ff;
    --color-border: #eee;
    --color-shadow: rgba(0, 0, 0, 0.08);
    --color-shadow-accent: rgba(0, 86, 179, 0.4);
    --color-shadow-accent-light: rgba(0, 86, 179, 0.3);
    
    /* Spacing */
    --spacing-xs: 6px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-2xl: 24px;
    --spacing-3xl: 32px;
    --spacing-4xl: 40px;
    --spacing-5xl: 56px;
    --spacing-6xl: 80px;
    
    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.8125rem;
    --font-size-base: 0.875rem;
    --font-size-lg: 1rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.75rem;
    --font-size-4xl: 2rem;
    
    /* Layout */
    --container-max-width: 1200px;
    --container-padding: 20px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    
    /* Z-index */
    --z-header: 1000;
    --z-modal: 2000;
    
    /* Breakpoints */
    --breakpoint-sm: 480px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
  }
  
  /* ==========================================================================
     Reset & Base Styles
     ========================================================================== */
  * {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    font-family: "Noto Sans JP", system-ui, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.8;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  .visually-hidden {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0;
    border: 0;
    height: 1px;
    width: 1px;
    overflow: hidden;
    white-space: nowrap;
  }
  
  /* ==========================================================================
     Layout Components
     ========================================================================== */
  .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
  }
  
  section {
    padding: var(--spacing-3xl) 0;
  }
  
  /* Mobile: reduce vertical spacing across sections */
  @media (max-width: 480px) {
    section {
      padding: 20px 0;
    }
  }
  
  /* Force horizontal layout for lead__logo-text on mobile as well */
  @media (max-width: 480px) {
    .lead__logo-text {
      flex-direction: row;
      align-items: center;
      gap: 6px; /* tighter gap to fit inline */
      flex-wrap: nowrap;
    }
    .lead__logo-text img {
      max-width: 88px; /* shrink logo to make room for text */
      width: auto; /* override earlier width:100% */
      flex: 0 0 auto;
    }
    .lead__nara { text-align: left; flex: 0 1 auto; white-space: nowrap; }
  }
  
  @media (min-width: var(--breakpoint-md)) {
    section {
      padding: var(--spacing-5xl) 0;
    }
  }
  
  @media (min-width: var(--breakpoint-lg)) {
    section {
      padding: var(--spacing-6xl) 0;
    }
  }
  
  /* ==========================================================================
     Header
     ========================================================================== */
  .header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
  }
  
  .header.is-scrolled {
    box-shadow: 0 6px 18px var(--color-shadow);
  }
  
  .header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding-left: 0;
    padding-right: 0;
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    gap: var(--spacing-xs);
  }
  
  .header__logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    position: relative;
  }
  
  .header__logo img {
    height: 48px;
    width: auto;
  }
  
  /* Small solution text link next to logo */
  .header__logo-link {
    font-size: 0.8125rem;
    color: var(--color-accent);
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color .2s ease, background .2s ease;
  }
  .header__logo-link:hover { background: rgba(0,0,0,0.05); }
  
  /* Logo hover dropdown */
  .header__logo-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    margin-top: 0; /* remove hover gap */
    background: rgba(255,255,255,0.9);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 10px;
    padding: 3px; /* more compact */
    z-index: 1001;
    width: clamp(200px, 80%, 320px);
    min-width: 0;
    box-sizing: border-box;
    opacity: 0;
    transform-origin: top center;
    transform: translate(-50%, 2px) scale(0.98);
    transition: opacity .18s ease, transform .18s ease, max-height .2s ease;
    pointer-events: none; /* hidden state */
    max-height: 0; /* accordion animation */
  }
  .header__logo-menu::before { content: none; }
  .header__logo-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.71875rem; /* ~11.5px */
    color: var(--color-text);
    text-decoration: none;
    padding: 5px 8px; /* more compact items */
    border-radius: 6px;
  }
  .header__logo-menu a:hover { background: rgba(0,0,0,0.06); }
  /* Keep menu open on hover and focus */
  .header__logo:hover .header__logo-menu,
  .header__logo:focus-within .header__logo-menu,
  .header__logo-menu:hover,
  .header__logo.is-open .header__logo-menu {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    pointer-events: auto;
    max-height: 200px;
  }
  
  /* Create a small hover bridge to avoid flicker when moving cursor down */
  .header__logo::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 6px; /* bridge area */
  }
  
  .header__buttons {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding-right: 8px;
  }
  
  /* スマホ画面でのheader__logo-menuの調整 */
  @media (max-width: 768px) {
    .header__logo-menu {
      /* テキストに合わせて横幅をコンパクトに（約半分程度） */
      width: auto !important;
      min-width: 160px;
      max-width: calc(100vw - 32px);
      /* 左端から配置（画面からはみ出さないように） */
      left: 0;
      transform: translate(0, 2px) scale(0.98);
      /* 親要素のheader__logoの位置を基準に調整 */
      margin-left: 0;
    }
    
    /* スマホ画面では:hoverと:focus-withinを無効化し、is-openクラスのみで制御 */
    .header__logo:hover .header__logo-menu,
    .header__logo:focus-within .header__logo-menu {
      opacity: 0 !important;
      transform: translate(0, 2px) scale(0.98) !important;
      pointer-events: none !important;
      max-height: 0 !important;
    }
    
    /* is-openクラスのみでメニューを表示 */
    .header__logo.is-open .header__logo-menu {
      opacity: 1 !important;
      transform: translate(0, 0) scale(1) !important;
      pointer-events: auto !important;
      max-height: 200px !important;
    }
    
    .header__logo-menu a {
      /* スマホ画面でのフォントサイズとパディングを調整 */
      font-size: 0.875rem; /* ~14px */
      padding: 10px 12px;
      white-space: nowrap;
      /* リンクは常にクリック可能 */
      pointer-events: auto !important;
    }
  }
  
  @media (min-width: 1024px) {
    .header .container {
      min-height: 90px;
      gap: var(--spacing-md);
    }
    
    .header__logo img {
      height: 96px;
    }
    
    .header__buttons {
      gap: var(--spacing-md);
    }
  }
  
  /* ==========================================================================
     Buttons
     ========================================================================== */
  .btn {
    display: inline-flex; /* ボタン内テキストを中央配置 */
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-lg);
    font-weight: 700;
    text-align: center;
    font-size: var(--font-size-xs);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-height: 36px;
    line-height: 1; /* 行間による上下ズレ防止 */
    white-space: nowrap;
  }
  
  @media (min-width: var(--breakpoint-md)) {
    .btn {
      padding: var(--spacing-md) var(--spacing-xl);
      border-radius: var(--border-radius-xl);
      font-size: var(--font-size-lg);
      min-height: 44px;
    }
  }
  
  .btn--primary {
    background: var(--color-accent);
    color: var(--color-bg);
  }
  
  .btn--primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--color-shadow-accent);
  }
  
  .btn--outline {
    border: 2px solid var(--color-accent);
    color: var(--color-bg);
    background: var(--color-accent);
  }
  
  .btn--outline:hover {
    background: var(--color-accent-hover);
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--color-shadow-accent-light);
  }
  
  .btn--header {
    width: auto;
    min-width: 100px;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }
  
  /* Header buttons - use regular weight (no bold) */
  .header__buttons .btn {
    font-weight: 500; /* was 700 in base .btn */
  }
  
  @media (min-width: 768px) {
    .btn--header {
      min-width: 180px;
      padding-left: var(--spacing-xl);
      padding-right: var(--spacing-xl);
    }
  }
  
  @media (min-width: 1024px) {
    .btn--header {
      width: auto;
      min-width: 200px;
      padding-left: var(--spacing-xl);
      padding-right: var(--spacing-xl);
    }
  }
  
  .btn--wide {
    width: 140px;
  }
  
  @media (min-width: var(--breakpoint-md)) {
    .btn--wide {
      width: 180px;
    }
  }
  
  /* ==========================================================================
     Section Components
     ========================================================================== */
  .hero {
    position: relative;
    padding-bottom: 0; /* remove bottom spacing under hero */
    padding-top: 10px; /* small top spacing */
  }
  
  .hero img {
    width: 100%;
    margin: 0 auto;
    display: block;
  }
  
  .hero__logo {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    text-align: center;
  }
  
  .hero__logo img {
    width: auto;
    height: auto;
    max-width: 150px;
    max-height: 45px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    display: block;
    margin: 0 auto;
  }
  
  
  .hero__logo img:hover {
    opacity: 1;
  }
  
  @media (min-width: 768px) {
    .hero__logo {
      bottom: 40px;
      right: 40px;
    }
    
    .hero__logo img {
      max-width: 180px;
      max-height: 55px;
    }
  }
  
  @media (min-width: 1024px) {
    .hero__logo {
      bottom: 60px;
      right: 60px;
    }
    
    .hero__logo img {
      max-width: 200px;
      max-height: 60px;
    }
  }
  
  /* Lead Section */
  .lead__content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-4xl);
    text-align: left;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  .lead__left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
  }
  
  .lead__logo-text {
    display: flex;
    align-items: flex-end; /* bottom align text with logo */
    gap: var(--spacing-lg);
  }
  
  .lead__logo-text img {
    width: 100%;
    height: auto;
    max-width: 650px;
    display: block;
  }
  
  .lead__nara {
    font-size: 2.875rem;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
    padding-bottom: 10px; /* bottom spacing on desktop */
  }
  
  .lead__text {
    max-width: 700px;
    width: 100%;
  }
  
  .lead__text p {
    margin: 0;
    font-size: 2.875rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text);
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  
  .lead__right {
    flex-shrink: 0;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
  }
  
  .lead__right img {
    width: 100%;
    height: auto;
    max-width: 400px;
    display: block;
  }
  
  @media (max-width: var(--breakpoint-md)) {
    .lead__content {
      flex-direction: column;
      text-align: center;
      gap: var(--spacing-xl);
      padding: 0 var(--spacing-md);
    }
    
    .lead__left {
      align-items: center;
      width: 100%;
    }
    
    .lead__logo-text {
      /* keep horizontal layout on tablet */
      flex-direction: row;
      gap: var(--spacing-sm);
      width: 100%;
    }
    
    .lead__logo-text img {
      max-width: 100%;
      width: 100%;
      height: auto;
    }
    
    .lead__nara {
      font-size: var(--font-size-xl);
    }
    
    .lead__text {
      width: 100%;
      max-width: 100%;
    }
    
    .lead__text p {
      font-size: var(--font-size-xl);
      word-break: break-word;
    }
    
    .lead__right {
      width: 100%;
      display: flex;
      justify-content: center;
    }
    
    .lead__right img {
      max-width: 150px;
      width: 100%;
      height: auto;
    }
  }
  
  @media (max-width: 480px) {
    .lead__content {
      padding: 0 ;
      gap: var(--spacing-md);
    }
    .lead__left {
      gap: var(--spacing-sm); /* tighter spacing on mobile */
    }
    
    .lead__logo-text {
      /* keep horizontal layout on mobile */
      flex-direction: row;
      align-items: flex-end; /* bottom align */
    }
    
    .lead__logo-text img {
      max-width: 200px;
      width: 100%;
      height: auto;
    }
    
    .lead__nara {
      font-size: 1rem;
      text-align: center;
      align-self: flex-end; /* ensure bottom alignment */
      line-height: 1; /* avoid extra baseline offset */
      padding-bottom: 10px; /* bottom-only spacing (logo unaffected) */
    }
    
    .lead__text {
      text-align: center;
    }
    
    .lead__text p {
      font-size: 1rem;
      line-height: 1.3;
    }
    
    .lead__right {
      display: flex;
      justify-content: center;
      align-items: center;
    }
    
    .lead__right img {
      max-width:80px;
      width: 100%;
      height: auto;
    }
  }
  
  /* =========================================================
     Mobile modal fullscreen layout
     ========================================================= */
  @media (max-width: 480px) {
    .modal__overlay { background: rgba(0,0,0,.65); }
  
    .modal__content {
      position: fixed;
      top: 0; left: 0;
      width: 100vw;
      height: 100vh;          /* full viewport */
      max-width: none;
      max-height: none;
      border-radius: 0;       /* remove rounded corners */
      padding: 0;             /* remove inner padding */
      background: #fff;
      overflow-y: auto !important;      /* allow vertical scroll */
      overflow-x: hidden !important;
      overscroll-behavior: contain;
      touch-action: pan-y;
      -webkit-overflow-scrolling: touch; /* iOS smooth scroll */
    }
  
    .modal__close { top: 8px; right: 8px; z-index: 5; }
  
    .interactive-image-container {
      position: relative;
      width: 100%;
      min-height: calc(100vh + 100px); /* コンテンツが確実に高さを持つように */
      padding: 12px 12px 16px 12px;     /* 上下左右のパディングを調整 */
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: flex-start;
      overflow: visible;
      gap: 12px;
      box-sizing: border-box;
      padding-bottom: 40px; /* 下部に余白を追加してスクロールしやすく */
    }
  
    .modal .interactive-image-container img {
      position: relative;
      width: 100%;
      height: auto;
      max-width: 100%;
      max-height: 50vh;      /* 画面の高さの50%以下に制限 */
      object-fit: contain;
      display: block;
      order: 1;
      margin: 0;
    }
  
    .speech-bubble { z-index: 2; }
  }
  
  /* Ensure horizontal layout wins on mobile (placed after column rule) */
  @media (max-width: 480px) {
    .lead__content .lead__logo-text {
      flex-direction: row;
      align-items: center;
      gap: 6px;
      flex-wrap: nowrap;
    }
    .lead__content .lead__logo-text img {
      max-width: 160px;
      width: auto;
      flex: 0 0 auto;
    }
    .lead__content .lead__nara {
      text-align: left;
      flex: 0 1 auto;
      white-space: nowrap;
    }
  }
  
  @media (max-width: 360px) {
    .lead__content {
      padding: 0 0;
      gap: var(--spacing-xs);
    }
    .lead__left {
      gap: var(--spacing-xs);
    }
    
    .lead__logo-text img {
      max-width: 150px;
    }
    
    .lead__nara {
      font-size: var(--font-size-md);
    }
    
    .lead__text p {
      font-size: var(--font-size-md);
    }
    
    .lead__right img {
      max-width: 86px;
    }
  }
  
  @media (min-width: var(--breakpoint-md)) {
    .lead__logo-text img {
      max-width: 450px;
    }
    
    .lead__nara {
      font-size: var(--font-size-3xl);
    }
    
    .lead__text p {
      font-size: var(--font-size-3xl);
    }
    
    .lead__right img {
      max-width: 350px;
    }
  }
  
  @media (min-width: var(--breakpoint-lg)) {
    .lead__logo-text img {
      max-width: 500px;
    }
    
    .lead__nara {
      font-size: var(--font-size-4xl);
    }
    
    .lead__text p {
      font-size: var(--font-size-4xl);
    }
    
    .lead__right img {
      max-width: 400px;
    }
  }
  
  /* Section titles with animation */
  .section-title {
    position: relative;
    display: inline-block;
    margin: 0 0 var(--spacing-3xl);
    font-size: 1.375rem;
    line-height: 1.75rem;
    font-weight: 700;
    padding-right: 60px;
    background-image: linear-gradient(transparent 62%, rgba(0, 86, 179, 0.25) 62%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    word-break: keep-all;
    overflow-wrap: break-word;
    max-width: 100%;
    z-index: 2;
  }
  
  /* English background text */
  .section-title__bg {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    color: rgba(0, 86, 179, 0.08);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.1em;
    font-family: "Noto Sans JP", system-ui, sans-serif;
  }
  
  @media (min-width: 768px) {
    .section-title {
      font-size: 2rem;
      line-height: 2.5rem;
      padding-right: 88px;
      margin: 0 0 var(--spacing-4xl);
    }
  }
  
  @media (min-width: 1024px) {
    .section-title {
      font-size: 2.25rem;
      line-height: 2.75rem;
      margin: 0 0 var(--spacing-5xl);
    }
  }
  
  /* Animation states */
  .js-enabled .section-title {
    background-size: 0% 100%;
    transform: translateY(var(--spacing-sm));
    opacity: 0;
    transition: background-size 0.8s ease, transform 0.6s ease, opacity 0.6s ease;
  }
  
  .section-title.is-visible {
    background-size: 100% 100%;
    transform: none;
    opacity: 1;
  }
  
  /* Background text animation */
  .js-enabled .section-title__bg {
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.2s;
  }
  
  .section-title.is-visible .section-title__bg {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  
  /* Paw decoration */
  .title-deco {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 20px;
    pointer-events: none;
    display: block;
  }
  
  @media (min-width: 768px) {
    .title-deco {
      width: 72px;
      height: 28px;
    }
  }
  
  .paw {
    position: absolute;
    width: 14px;
    height: 14px;
    background: url('../assets/cat.png') center/contain no-repeat;
    opacity: 0;
  }
  
  @media (min-width: 768px) {
    .paw {
      width: 18px;
      height: 18px;
    }
  }
  
  /* Paw positions */
  .paw--1 {
    left: 0;
    top: -2px;
    transform: translateY(8px) scale(0.6) rotate(-12deg);
  }
  
  .paw--2 {
    left: 18px;
    top: 2px;
    transform: translateY(8px) scale(0.6) rotate(6deg);
  }
  
  .paw--3 {
    left: 36px;
    top: 6px;
    transform: translateY(8px) scale(0.6) rotate(-6deg);
  }
  
  @media (min-width: 768px) {
    .paw--2 {
      left: 24px;
    }
    
    .paw--3 {
      left: 48px;
    }
  }
  
  /* Paw animations */
  @keyframes paw-pop-1 {
    0% {
      opacity: 0;
      transform: translateY(var(--spacing-sm)) scale(0.6) rotate(-12deg);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1) rotate(-12deg);
    }
  }
  
  @keyframes paw-pop-2 {
    0% {
      opacity: 0;
      transform: translateY(var(--spacing-sm)) scale(0.6) rotate(6deg);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1) rotate(6deg);
    }
  }
  
  @keyframes paw-pop-3 {
    0% {
      opacity: 0;
      transform: translateY(var(--spacing-sm)) scale(0.6) rotate(-6deg);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1) rotate(-6deg);
    }
  }
  
  .section-title.is-visible .paw--1 {
    animation: paw-pop-1 0.35s ease-out 0.15s forwards;
  }
  
  .section-title.is-visible .paw--2 {
    animation: paw-pop-2 0.35s ease-out 0.35s forwards;
  }
  
  .section-title.is-visible .paw--3 {
    animation: paw-pop-3 0.35s ease-out 0.55s forwards;
  }
  
  /* ==========================================================================
     Content Sections
     ========================================================================== */
  
  /* Problems section */
  .problems img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
  }
  
  /* Services lineup and flow map images - 中央配置 */
  .lineup img,
  .flow img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
  }
  
  /* lineupセクションの画像アニメーション */
  .lineup.js-scroll-animate img {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.4s;
  }
  
  .lineup.js-scroll-animate.is-visible img {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Slogan Banner */
  .slogan-banner {
    background: #000000;
    color: #ffffff;
    text-align: left;
    padding: var(--spacing-2xl) 0;
  }
  
  .slogan-banner__content {
    max-width: 1000px;
    margin: 0;
    padding: 0 var(--spacing-md);
  }
  
  .slogan-banner__text {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  
  .slogan-banner__text:first-child {
    margin-bottom: var(--spacing-sm);
  }
  
  .slogan-banner__text--large {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }
  
  /* Slogan typing animation */
  .slogan-banner__text .char {
    opacity: 0;
    display: inline-block;
    transform: translateY(0.4em);
    will-change: transform, opacity;
    animation: slogan-char-in 480ms ease forwards;
  }
  
  @keyframes slogan-char-in {
    from { opacity: 0; transform: translateY(0.4em); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  @media (max-width: var(--breakpoint-md)) {
    .slogan-banner__content {
      padding: 0 var(--container-padding);
    }
    
    .slogan-banner__text {
      font-size: clamp(1.1rem, 3.5vw, 1.6rem);
      line-height: 1.3;
    }
    
    .slogan-banner__text--large {
      font-size: clamp(1.4rem, 4.5vw, 1.9rem);
    }
  }
  
  /* Compact header buttons on small screens */
  @media (max-width: 768px) {
    .btn {
      padding: var(--spacing-xs) var(--spacing-sm);
      min-height: 32px;
      font-size: 0.75rem;
    }
    .btn--header {
      width: auto;
      min-width: 120px;
      padding-left: var(--spacing-sm);
      padding-right: var(--spacing-sm);
    }
  }
  
  @media (max-width: 480px) {
    .btn {
      padding: 6px var(--spacing-xs);
      min-height: 30px;
      font-size: 0.7rem; /* ~11.5px */
    }
    .btn--header {
      width: auto;
      min-width: 110px;
      padding-left: var(--spacing-xs);
      padding-right: var(--spacing-xs);
    }
  }
  
  @media (max-width: 480px) {
    .slogan-banner {
      padding: var(--spacing-lg) 0; /* reduce vertical spacing on small screens */
    }
    .slogan-banner__content {
      padding: 0 12px; /* tighter side padding on small screens */
    }
    
    .slogan-banner .slogan-banner__text {
      font-size: clamp(0.9rem, 3.4vw, 1.3rem); /* slightly smaller to keep 2 lines */
      line-height: 1.3;
      display: -webkit-box !important;
      -webkit-line-clamp: 2; /* force to 2 lines */
      line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
      max-height: calc(1.3em * 2); /* fallback height for 2 lines */
    }
    
    .slogan-banner .slogan-banner__text--large {
      font-size: clamp(1rem, 4.2vw, 1.5rem); /* slightly smaller to keep 2 lines */
      line-height: 1.25;
      display: -webkit-box !important;
      -webkit-line-clamp: 2; /* force to 2 lines */
      line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
      max-height: calc(1.25em * 2);
    }
  }
  
  @media (min-width: var(--breakpoint-md)) {
    .slogan-banner {
      padding: var(--spacing-3xl) 0;
    }
    
    .slogan-banner__content {
      padding: 0 var(--spacing-lg);
    }
  }
  
  @media (min-width: var(--breakpoint-lg)) {
    .slogan-banner {
      padding: var(--spacing-4xl) 0;
    }
    
    .slogan-banner__content {
      padding: 0 var(--spacing-xl);
    }
  }
  
  .about p {
    margin: 0 auto var(--spacing-3xl);
    font-size: var(--font-size-base);
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-align: justify;
    hyphens: auto;
    max-width: 1000px;
  }
  
  @media (max-width: var(--breakpoint-md)) {
    .about p {
      font-size: var(--font-size-sm);
      line-height: 1.5;
      text-align: left;
      word-break: break-word;
      overflow-wrap: anywhere;
    }
  }
  
  @media (max-width: 480px) {
    .about p {
      font-size: var(--font-size-xs);
      line-height: 1.4;
      text-align: left;
      word-break: break-word;
      overflow-wrap: anywhere;
    }
  }
  
  @media (min-width: var(--breakpoint-md)) {
    .about p {
      font-size: var(--font-size-lg);
      line-height: 1.8;
      text-align: justify;
    }
  }
  
  @media (min-width: var(--breakpoint-lg)) {
    .about {
      max-width: 1000px;
      margin: 0 auto;
      padding: 0 var(--spacing-xl);
    }
    
    .about .container {
      max-width: 800px !important;
      margin: 0 auto !important;
      width: 100%;
    }
    
    .about p {
      max-width: 100%;
      font-size: var(--font-size-lg);
      line-height: 1.8;
      text-align: justify;
    }
  }
  
  .zoom-thumb {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: zoom-in;
    margin: var(--spacing-2xl) auto 0;
    display: block;
    text-align: center; /* 画像を中央配置 */
    transition: transform 200ms ease, opacity 200ms ease;
    border-radius: 8px;
    overflow: visible;
    position: relative;
  }
  
  .zoom-thumb:hover {
    transform: translateY(-2px);
  }
  
  /* スマホ画面でのタップ可能な視覚的ヒント */
  @media (max-width: 768px) {
    .zoom-thumb {
      cursor: pointer;
      -webkit-tap-highlight-color: rgba(0, 86, 179, 0.2);
    }
    
    .zoom-thumb:active {
      transform: scale(0.98);
      opacity: 0.9;
    }
    
    /* スマホ画面でのクリック可能な視覚的ヒント（タップアイコン） */
    .zoom-thumb::after {
      content: 'タップして拡大';
      position: absolute;
      bottom: 12px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(0, 86, 179, 0.85);
      color: #ffffff;
      padding: 6px 12px;
      border-radius: 4px;
      font-size: 0.75rem;
      font-weight: 600;
      white-space: nowrap;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.3s ease;
      z-index: 10;
    }
    
    /* 画像が表示されたらヒントを表示 */
    .about.js-scroll-animate.is-visible .zoom-thumb::after {
      opacity: 1;
      animation: fade-in-hint 0.5s ease 1s forwards;
    }
    
    @keyframes fade-in-hint {
      from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
      }
      to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
      }
    }
    
    /* タップ後はヒントを非表示 */
    .zoom-thumb:active::after {
      opacity: 0;
    }
  }
  
  /* パルス効果（中央から拡がるリング） */
  .zoom-thumb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%) scale(0.8);
    border: 3px solid rgba(0, 86, 179, 0.55);
    border-radius: 50%;
    opacity: 0;
    filter: drop-shadow(0 0 12px rgba(0, 86, 179, 0.35));
    pointer-events: none;
    visibility: hidden;
  }
  
  /* スクロールアニメーション中は非表示 */
  .about.js-scroll-animate .zoom-thumb::before {
    display: none;
  }
  
  .zoom-thumb:hover::before {
    visibility: visible;
    animation: pulse-ring-strong 900ms ease-out 1;
  }
  
  
  /* 動的ツールチップのスタイル */
  .dynamic-tooltip {
    position: fixed;
    background: rgba(0, 86, 179, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    transition: opacity 200ms ease;
    transform: translate(-50%, -100%);
  }
  
  .dynamic-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 86, 179, 0.9);
  }
  
  .dynamic-tooltip.show {
    opacity: 1;
  }
  
  @keyframes pulse-ring-strong {
    0% {
      opacity: 0.9;
      transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(1.9);
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .zoom-thumb:hover::before {
      animation: none;
    }
  }
  
  @media (min-width: var(--breakpoint-md)) {
    .zoom-thumb {
      margin: var(--spacing-3xl) auto 0;
    }
  }
  
  @media (min-width: var(--breakpoint-lg)) {
    .zoom-thumb {
      margin: var(--spacing-4xl) auto 0;
    }
  }
  
  /* about-visual画像の配置とサイズ調整 */
  
  .zoom-thumb img {
    margin: 0 auto; /* 中央配置の確実化 */
    transition: transform 200ms ease, box-shadow 200ms ease;
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
  
  /* about-visual画像の横回転（Y軸回転）フェードインアニメーション */
  .about.js-scroll-animate .zoom-thumb {
    perspective: 1000px;
  }
  
  .about.js-scroll-animate .zoom-thumb img {
    opacity: 0;
    transform: rotateY(-90deg) scale(0.9);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    filter: blur(10px);
    transition: opacity 1.5s ease-out,
                transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 1.5s ease-out;
    transition-delay: 0.4s;
  }
  
  .about.js-scroll-animate.is-visible .zoom-thumb img {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
    filter: blur(0);
  }
  
  .zoom-thumb:hover img {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 86, 179, 0.25);
  }
  
  @media (prefers-reduced-motion: reduce) {
    .zoom-thumb img {
      transition: none;
    }
    .zoom-thumb:hover img {
      transform: none;
    }
  }
  
  /* タブレット以上でコンテナ幅を拡大 */
  @media (min-width: 768px) {
    .about .container {
      max-width: 1000px !important;
      margin: 0 auto !important;
      width: 100%;
    }
    
    .zoom-thumb img {
      width: 100%;
      max-width: 1000px;
      height: auto;
    }
  }
  
  /* デスクトップで最大活用 */
  @media (min-width: 1024px) {
    .about .container {
      max-width: 1200px !important;
      margin: 0 auto !important;
      width: 100%;
    }
    
    .zoom-thumb img {
      width: 100%;
      max-width: 1200px;
      height: auto;
    }
  }
  
  /* 大画面で制限 */
  @media (min-width: 1400px) {
    .zoom-thumb img {
      max-width: 1400px;
    }
  }
  
  /* aboutセクションとサービスラインナップの間の隙間調整 */
  .about {
    margin-bottom: var(--spacing-4xl);
  }
  
  @media (min-width: var(--breakpoint-md)) {
    .about {
      margin-bottom: var(--spacing-5xl);
    }
  }
  
  @media (min-width: var(--breakpoint-lg)) {
    .about {
      margin-bottom: var(--spacing-6xl);
    }
  }
  
  /* Reasons section */
  .reasons__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    width: 100%;
    overflow: hidden;
  }
  
  @media (min-width: 768px) {
    .reasons__grid {
      grid-template-columns: 2fr 1fr;
      gap: 32px;
      align-items: center;
    }
  }
  
  .reasons__text {
    width: 100%;
    overflow: hidden;
  }
  
  .reasons__text p {
    margin: 0 0 12px;
    font-size: var(--font-size-base);
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  
  /* Mobile: show full text and wrap only at container edge (Japanese kinsoku) */
  @media (max-width: 480px) {
    .reasons__text p {
      white-space: normal;       /* allow wrapping */
      word-break: normal;        /* allow breaks per standard rules */
      overflow-wrap: anywhere;   /* wrap at container edge if needed */
      line-break: loose;         /* relax kinsoku so punctuation isn't forced */
      -webkit-line-break: loose; /* Safari/iOS */
      hyphens: manual;           /* no auto hyphenation */
    }

    .about {
    margin-bottom: 0;
    }
  }
  
  
  .reasons__image {
    order: -1;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
    overflow: hidden;
    padding: 0 var(--spacing-md);
  }
  
  @media (max-width: var(--breakpoint-md)) {
    .reasons__image {
      padding: 0 var(--spacing-sm);
    }
  }
  
  @media (max-width: 480px) {
    .reasons__image {
      padding: 0 var(--spacing-xs);
    }
  }
  
  @media (min-width: 768px) {
    .reasons__image {
      order: 0;
      margin-bottom: 0;
      padding: 0 var(--spacing-lg);
    }
  }
  
  @media (min-width: var(--breakpoint-lg)) {
    .reasons__image {
      padding: 0 var(--spacing-xl);
    }
  }
  
  .reasons__image img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    width: 100%;
    object-fit: contain;
  }
  
  @media (max-width: var(--breakpoint-md)) {
    .reasons__image img {
      max-width: 100%;
      width: 100%;
      height: auto;
    }
  }
  
  @media (max-width: 480px) {
    .reasons__image img {
      max-width: 100%;
      width: 100%;
      height: auto;
    }
  }
  
  /* Mobile: limit max width for paragraphs once section is visible */
  @media (max-width: 480px) {
    .js-scroll-animate.is-visible p {
      max-width: calc(100vw - 40px); /* smaller width on smartphones */
      margin-left: auto;
      margin-right: auto;
    }
  }
  
  /* dog.pngのレスポンシブ対応 */
  .reasons__image img[src*="dog.png"] {
    max-width: 100%;
    width: 100%;
    height: auto;
  }
  
  @media (max-width: var(--breakpoint-md)) {
    .reasons__image img[src*="dog.png"] {
      max-width: 80%;
      width: 80%;
      height: auto;
    }
  }
  
  @media (max-width: 480px) {
    .reasons__image img[src*="dog.png"] {
      max-width: 60%;
      width: 60%;
      height: auto;
    }
  }
  
  @media (max-width: 360px) {
    .reasons__image img[src*="dog.png"] {
      max-width: 50%;
      width: 50%;
      height: auto;
    }
  }
  
  /* logo_top.pngのレスポンシブ対応 */
  .hero__logo img[src*="logo_top.png"] {
    max-width: 100%;
    width: 100%;
    height: auto;
  }
  
  @media (max-width: var(--breakpoint-md)) {
    .hero__logo img[src*="logo_top.png"] {
      max-width: 80%;
      width: 80%;
      height: auto;
    }
  }
  
  @media (max-width: 480px) {
    .hero__logo img[src*="logo_top.png"] {
      max-width: 60%;
      width: 60%;
      height: auto;
    }
  }
  
  @media (max-width: 360px) {
    .hero__logo img[src*="logo_top.png"] {
      max-width: 50%;
      width: 50%;
      height: auto;
    }
  }
  
  .reasons__brand {
    margin-top: 24px;
    text-align: center;
    width: 100%;
    overflow: hidden;
  }
  
  @media (min-width: 768px) {
    .reasons__brand {
      margin-top: 32px;
    }
  }
  
  .reasons__brand img {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
  }
  
  @media (min-width: 768px) {
    .reasons__brand img {
      max-width: 600px;
    }
  }
  
  /* ==========================================================================
     Footer
     ========================================================================== */
  .footer {
    margin-top: var(--spacing-3xl);
    background-color: #000000;
    color: #ffffff;
  }
  
  @media (min-width: var(--breakpoint-md)) {
    .footer {
      margin-top: var(--spacing-4xl);
    }
  }
  
  /* Footer Logos Section */
  .footer__logos {
    padding: var(--spacing-xl) 0;
    background-color: #ffffff;
  }
  
  @media (min-width: var(--breakpoint-md)) {
    .footer__logos {
      padding: var(--spacing-2xl) 0;
    }
  }
  
  .footer__logos-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-3xl);
    flex-wrap: wrap;
  }
  
  @media (max-width: var(--breakpoint-md)) {
    .footer__logos-inner {
      gap: var(--spacing-xl);
    }
  }
  
  .footer__logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .footer__logo-item a {
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .footer__logo-item a:hover {
    opacity: 0.8;
    transform: translateY(-8px);
  }
  
  .footer__logo-item img {
    max-width: 200px;
    height: auto;
    margin-bottom: var(--spacing-sm);
    display: block;
    transition: transform 0.3s ease;
  }
  
  .footer__logo-item:hover img {
    transform: translateY(-8px);
  }
  
  .footer__logo-text {
    font-size: var(--font-size-xs);
    color: #000000;
    margin: 0;
    line-height: 1.4;
  }
  
  @media (max-width: var(--breakpoint-md)) {
    .footer__logo-item img {
      max-width: 150px;
    }
    .footer__logo-text {
      font-size: 0.7rem;
    }
  }
  
  @media (max-width: 480px) {
    .footer__logo-item img {
      max-width: 120px;
    }
    .footer__logo-text {
      font-size: 0.65rem;
    }
  }
  
  /* Footer Navigation Section */
  .footer__nav {
    padding: var(--spacing-2xl) 0;
    background-color: #000000;
    position: relative;
  }
  
  @media (min-width: var(--breakpoint-md)) {
    .footer__nav {
      padding: var(--spacing-3xl) 0;
    }
  }
  
  .footer__menu {
    display: flex;
    width: 100%;
    gap: var(--spacing-3xl);
  }
  
  @media (max-width: 768px) {
    .footer__menu {
      width: 100%;
      flex-direction: column;
      gap: 0;
    }
  }
  
  .footer__menu-category {
    flex: 1;
  }
  
  @media (max-width: 768px) {
    .footer__menu-category {
      width: 100%;
    }
  }
  
  @media (min-width: 769px) {
    .footer__menu {
      justify-content: flex-start;
    }
  }
  
  .footer__menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  @media (min-width: 769px) {
    .footer__menu-list {
      gap: var(--spacing-md);
    }
  }
  
  .footer__menu-list li {
    margin: 0;
    padding: 0;
  }
  
  @media (max-width: var(--breakpoint-md)) {
    .footer__menu-list li:last-child a {
      border-bottom: none;
    }
  }
  
  .footer__menu-item--parent {
    display: flex;
    flex-direction: column;
  }
  
  @media (max-width: var(--breakpoint-md)) {
    .footer__menu-item--parent {
      border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
  }
  
  .footer__menu-item-text {
    color: #ffffff;
    font-size: var(--font-size-sm);
    line-height: 1.6;
    display: block;
    padding: var(--spacing-xs) 0;
  }
  
  @media (max-width: 768px) {
    .footer__menu-item-text {
      padding: var(--spacing-md) var(--container-padding);
      font-size: var(--font-size-base);
      border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
  }
  
  @media (min-width: var(--breakpoint-md)) {
    .footer__menu-item-text {
      font-size: var(--font-size-base);
    }
  }
  
  @media (max-width: var(--breakpoint-md)) {
    .footer__menu-item--parent:last-child .footer__menu-item-text {
      border-bottom: none;
    }
  }
  
  .footer__menu-sublist {
    list-style: none;
    padding: 0;
    margin: var(--spacing-xs) 0 0 var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  
  @media (max-width: var(--breakpoint-md)) {
    .footer__menu-sublist {
      margin: 0;
      padding-left: var(--spacing-lg);
    }
  }
  
  .footer__menu-sublist li {
    margin: 0;
    padding: 0;
  }
  
  @media (max-width: var(--breakpoint-md)) {
    .footer__menu-sublist li {
      border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    .footer__menu-sublist li:last-child {
      border-bottom: none;
    }
  }
  
  .footer__menu-sublist a {
    color: #ffffff;
    font-size: var(--font-size-xs);
    line-height: 1.6;
    display: block;
    padding: var(--spacing-xs) 0;
    transition: color 0.3s ease;
  }
  
  /* 生成AI Co-Creation Lab.のフォントサイズを少し小さく */
  .footer__menu-sublist a[href*="gai.bell24.co.jp"] {
    font-size: 0.6875rem;
  }
  
  @media (max-width: 768px) {
    .footer__menu-sublist a {
      padding: var(--spacing-md) var(--container-padding);
      font-size: var(--font-size-sm);
      border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    .footer__menu-sublist a[href*="gai.bell24.co.jp"] {
      font-size: 0.75rem;
    }
  }
  
  .footer__menu-sublist a:hover {
    color: #e04040;
  }
  
  .footer__menu-sublist a:active,
  .footer__menu-sublist a:focus {
    outline: none;
  }
  
  @media (max-width: 768px) {
    .footer__menu-sublist a:hover {
      color: #ffffff;
    }
    
    .footer__menu-sublist a:active,
    .footer__menu-sublist a:focus {
      color: #ffffff !important;
    }
  }
  
  @media (hover: hover) and (min-width: 769px) {
    .footer__menu-sublist a:hover {
      color: #e04040;
    }
  }
  
  @media (min-width: var(--breakpoint-md)) {
    .footer__menu-sublist {
      margin-left: var(--spacing-xl);
    }
    .footer__menu-sublist a {
      font-size: var(--font-size-sm);
    }
    
    .footer__menu-sublist a[href*="gai.bell24.co.jp"] {
      font-size: 0.75rem;
    }
  }
  
  .footer__menu-list a {
    color: #ffffff;
    font-size: var(--font-size-sm);
    line-height: 1.6;
    display: block;
    padding: var(--spacing-xs) 0;
    transition: color 0.3s ease;
    border-bottom: none;
  }
  
  .footer__menu-list li:first-child a {
    border-top: none;
  }
  
  @media (max-width: 768px) {
    .footer__menu-list a {
      padding: var(--spacing-md) var(--container-padding);
      font-size: var(--font-size-base);
      border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
  }
  
  @media (min-width: 769px) {
    .footer__menu-list a {
      border-bottom: none;
    }
  }
  
  .footer__menu-list a:hover {
    color: #e04040;
  }
  
  .footer__menu-list a:active,
  .footer__menu-list a:focus {
    outline: none;
  }
  
  @media (max-width: 768px) {
    .footer__menu-list a:hover {
      color: #ffffff;
    }
    
    .footer__menu-list a:active,
    .footer__menu-list a:focus {
      color: #ffffff !important;
    }
  }
  
  @media (hover: hover) and (min-width: 769px) {
    .footer__menu-list a:hover {
      color: #07acff;
    }
  }
  
  @media (min-width: 769px) {
    .footer__menu-list a {
      font-size: var(--font-size-base);
      padding: var(--spacing-xs) 0;
      border-bottom: none;
    }
  }
  
  /* Footer Copyright Section */
  .footer__copyright {
    padding: var(--spacing-lg) 0;
    background-color: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  @media (min-width: var(--breakpoint-md)) {
    .footer__copyright {
      padding: var(--spacing-xl) 0;
    }
  }
  
  .footer__copyright .container {
    display: flex;
    justify-content: center;
  }
  
  .footer__copyright small {
    font-size: var(--font-size-xs);
    color: #ffffff;
    text-align: center;
    line-height: 1.4;
    white-space: nowrap;
  }
  
  .footer__copyright small a {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.3s ease;
  }
  
  .footer__copyright small a:hover {
    color: #e04040;
  }
  
  @media (min-width: var(--breakpoint-md)) {
    .footer__copyright small {
      font-size: var(--font-size-base);
    }
  }
  
  @media (max-width: 480px) {
    .footer__copyright small {
      font-size: 0.6875rem;
      white-space: normal;
      word-break: keep-all;
      overflow-wrap: break-word;
    }
  }
  
  /* ==========================================================================
     Scroll to Top Button
     ========================================================================== */
  .scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background-color: var(--color-accent);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    box-shadow: 0 4px 12px var(--color-shadow-accent);
  }
  
  .scroll-to-top.is-visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }
  
  .scroll-to-top:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--color-shadow-accent);
  }
  
  .scroll-to-top:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px var(--color-shadow-accent);
  }
  
  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
  
  @media (max-width: 768px) {
    .scroll-to-top {
      bottom: 20px;
      right: 20px;
      width: 44px;
      height: 44px;
    }
    
    .scroll-to-top svg {
      width: 18px;
      height: 18px;
    }
  }
  
  @media (max-width: 480px) {
    .scroll-to-top {
      bottom: 16px;
      right: 16px;
      width: 40px;
      height: 40px;
    }
    
    .scroll-to-top svg {
      width: 16px;
      height: 16px;
    }
  }
  
  /* ==========================================================================
     Modal
     ========================================================================== */
  .modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: var(--z-modal);
  }
  
  .modal[aria-hidden="false"] {
    display: block;
  }
  
  .modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
  }
  
  .modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-bg);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    outline: 0;
    width: 95vw;
    height: 95vh;
    max-width: 1000px;
    max-height: 700px;
    overflow: hidden;
  }
  
  @media (min-width: var(--breakpoint-md)) {
    .modal__content {
      width: 85vw;
      height: 85vh;
      max-width: 900px;
      max-height: 600px;
    }
  }
  
  .modal__content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .modal__close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    font-size: var(--font-size-2xl);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    color: var(--color-text);
    font-weight: bold;
  }
  
  /* ==========================================================================
     PC用モーダル（768px以上で表示）
     ========================================================================== */
  @media (min-width: 769px) {
    .modal--mobile {
      display: none !important;
    }
  }
  
  @media (max-width: 768px) {
    .modal--pc {
      display: none !important;
    }
  }
  
  /* ==========================================================================
     スマホ用モーダル（768px以下で表示）
     ========================================================================== */
  .modal__content--mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    padding: 0;
    background: #E6F2FF;
    overflow-y: auto;
    overflow-x: hidden;
    transform: none;
    -webkit-overflow-scrolling: touch;
  }
  
  .mobile-modal-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
  }
  
  /* 上部：図表 */
  .mobile-modal-diagram {
    width: 100%;
    padding: 12px;
    background: #E6F2FF;
    flex-shrink: 0;
  }
  
  .mobile-modal-diagram img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    display: block;
  }
  
  /* 下部：サービスリスト */
  .mobile-modal-services {
    flex: 1;
    padding: 0 12px 40px 12px;
    background: #E6F2FF;
  }
  
  .mobile-service-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    width: 100%;
  }
  
  .mobile-service-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: calc(33.333% - 6px);
    width: calc(33.333% - 6px);
    max-width: calc(33.333% - 6px);
    height: 60px;
    min-height: 60px;
    background: #000000;
    color: #ffffff;
    border-radius: 4px;
    font-size: 0.5625rem;
    font-weight: 600;
    text-align: center;
    padding: 8px 6px;
    box-sizing: border-box;
    line-height: 1.2;
    white-space: normal;
    text-decoration: none;
    flex-shrink: 0;
  }
  
  .mobile-service-description {
    flex: 1;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--color-text);
    text-align: left;
    padding-top: 4px;
  }
  
  .mobile-service-link {
    color: #0056B3;
    text-decoration: underline;
    display: inline;
    margin-left: 4px;
  }
  
  .mobile-service-link:hover,
  .mobile-service-link:active {
    color: #004494;
  }
  
  /* スマホ用モーダルの閉じるボタン */
  .modal--mobile .modal__close {
    top: 8px;
    right: 8px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.9);
  }
  
  /* ==========================================================================
     Interactive Image with Hover Areas
     ========================================================================== */
  /* モーダル内の背景画像（ロードマップ）を全体にフィット */
  .interactive-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
  }
  
  .interactive-image-container img[alt*="拡大図"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* 全体を収める */
    z-index: 1; /* 一番下 */
  }
  
  /* 犬をその上に重ねて表示（小さく） */
  .dog {
    position: absolute;
    width: 80px; /* 小さめサイズ */
    height: auto;
    z-index: 1004; /* ←サイト設計・製作より前に出す */
    transform: translate(-50%, -50%) translateY(-20px);
  }
  
  
  .hover-area {
    position: absolute;
    z-index: 2;
    cursor: pointer;
    border-radius: 8px;
    background: rgba(0, 86, 179, 0.1);
    border: 2px solid rgba(0, 86, 179, 0.3);
    transition: all 0.3s ease;
    opacity: 0.3;
  }
  
  .hover-area:hover {
    background: rgba(0, 86, 179, 0.2);
    border-color: var(--color-accent);
    opacity: 1;
    transform: scale(1.1);
  }
  
  .hover-area::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text);
    color: var(--color-bg);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    max-width: 200px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
  }
  
  .hover-area::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border: 4px solid transparent;
    border-top-color: var(--color-text);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
  }
  
  .hover-area:hover::after,
  .hover-area:hover::before {
    opacity: 1;
    visibility: visible;
  }
  
  /* 完璧なツールチップ実装 - テキストベース */
  .interactive-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .interactive-image-container img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    height: auto;
  }
  
  /* 黒い吹き出しのテキスト - 統一サイズの黒背景 */
  .speech-bubble {
    position: absolute;
    z-index: 100;
    background: #000000;
    color: #fff;
    padding: 6px 4px;
    border-radius: 4px;
    font-size: 0.5rem;
    font-weight: 600;
    font-family: 'Fredoka', 'Nunito', 'Kalam', 'Shadows Into Light', 'Comic Sans MS', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', cursive;
    letter-spacing: 0.1px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    display: block;
    /* 統一サイズ */
    width: 96px;
    height: 32px;
    min-width: 96px;
    max-width: 96px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    /* 順番に浮かび上がるアニメーション */
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    animation: speech-bubble-float-up 1.0s ease-out forwards;
  }
  
  /* 吹き出しのポインター（右角の▼） - 専用クラスで実装（::beforeで競合回避） */
  .speech-bubble-pointer::before {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 8px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #000000;
    z-index: 1;
    pointer-events: none;
  }
  
  
  .speech-bubble-pointer:hover::before,
  .speech-bubble-pointer.touch-active::before {
    border-top-color: #e04040;
  }
  
  .speech-bubble:hover {
    background: #e04040;
    font-weight: 700;
    transition: all 0.3s ease;
  }
  
  /* フェードインスケールアニメーション */
  @keyframes fadeInScale {
    0% {
      opacity: 0;
      visibility: hidden;
      transform: translateX(-50%) translateY(11px) scale(0.3); /* 9px→11pxに変更（2px下に移動） */
      z-index: 2000;
    }
    100% {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(11px) scale(1); /* 9px→11pxに変更（2px下に移動） */
      z-index: 2000;
    }
  }
  
  /* ゆっくり点滅アニメーション */
  @keyframes slowBlink {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0.3;
    }
  }
  
  /* 製作（撮影・編集）のテキストツールチップを非表示 */
  .speech-bubble--announce-only::before {
    display: none;
  }
  
  /* 各announce画像のテキストツールチップを非表示 */
  .speech-bubble--announce-2::before,
  .speech-bubble--announce-3::before,
  .speech-bubble--announce-4::before,
  .speech-bubble--announce-5::before,
  .speech-bubble--announce-6::before,
  .speech-bubble--announce-7::before,
  .speech-bubble--announce-8::before,
  .speech-bubble--announce-9::before,
  .speech-bubble--announce-10::before {
    display: none;
  }
  
  /* ポインターを表示する要素では ::before を強制表示 */
  .speech-bubble-pointer::before {
    display: block;
  }
  
  /* 左下角のポインター（▼） */
  .speech-bubble-pointer-left::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 8px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #000000;
    z-index: 1;
    pointer-events: none;
    display: block;
  }
  
  
  .speech-bubble-pointer-left:hover::before,
  .speech-bubble-pointer-left.touch-active::before {
    border-top-color: #e04040;
  }
  
  /* 改行なしのテキスト用の中央揃え */
  .speech-bubble--single-line {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
  }
  
  /* モーダル内では左寄せに上書き（スマホモーダルのみ） */
  /* PCモーダルでは中央揃えを維持するため、@media (max-width: 768px)内で設定 */
  
  /* aタグ用の改行なしテキスト中央揃え */
  a.speech-bubble--single-line {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    text-decoration: none;
  }
  
  /* テキスト部分（ポインター表示のため非表示を削除） */
  
  
  
  /* ポインター以外の ::before 要素を非表示（ポインターは除外） */
  .speech-bubble:hover::before,
  .speech-bubble.touch-active::before {
    display: none;
  }
  
  /* ポインター要素はホバー時も表示を維持 */
  .speech-bubble-pointer:hover::before,
  .speech-bubble-pointer.touch-active::before,
  .speech-bubble-pointer-left:hover::before,
  .speech-bubble-pointer-left.touch-active::before {
    display: block !important;
  }
  
  
  /* OOHモーダル用の吹き出しにはツールチップを表示しない */
  .speech-bubble[data-open-ooh]::after,
  .speech-bubble[data-open-ooh]::before {
    display: none;
  }
  
  /* 黒い吹き出しの正確な位置 - 画像のアスペクト比を維持して位置固定 */
  /* 画像サイズ: 800x600px (4:3アスペクト比) を基準とした完璧な位置 */
  
  .interactive-image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3のアスペクト比 (3/4 = 0.75) */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .interactive-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: contain;
  }
  
  /* PCモーダル内の設定（PCのみ） */
  @media (min-width: 769px) {
    .modal .interactive-image-container {
      height: auto;
      padding-bottom: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .modal .interactive-image-container img {
      position: relative;
      max-width: 100%;
      height: auto;
      margin: 0 auto;
    }
  }
  
  /* スマホモーダル内の設定（スマホのみ） */
  @media (max-width: 768px) {
    .modal__content {
      overflow-y: auto !important;
      overflow-x: hidden !important;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 0 !important;
    }
    
    .modal .interactive-image-container {
      height: auto;
      min-height: auto;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: flex-start;
      padding: 12px 12px 80px 12px;
      gap: 12px;
      box-sizing: border-box;
      flex-shrink: 0;
    }
    
    /* スマホモーダル内では、リンクコンテナが存在する場合のみ::after疑似要素を無効化 */
    /* リンクコンテナが存在しない場合は::afterでテキストを表示 */
    .modal .interactive-image-container .speech-bubble:has(.mobile-link-container)::after {
      display: none !important;
      content: none !important;
    }
    
    .modal .interactive-image-container img {
      position: relative;
      width: 100%;
      max-width: 100%;
      max-height: 50vh;
      height: auto;
      object-fit: contain;
      margin: 0;
      order: 1;
    }
    
    /* スマホモーダル内の吹き出し - PC設定をリセット */
    /* すべての吹き出しは2カラムレイアウト用に設定（後続の設定で上書き） */
    .modal .interactive-image-container .speech-bubble {
      position: relative !important;
      top: auto !important;
      left: auto !important;
      right: auto !important;
      transform: none !important;
      margin-bottom: 10px;
      order: 2;
      opacity: 1 !important;
      animation: none !important;
      visibility: visible !important;
      flex-shrink: 0;
      box-sizing: border-box;
      /* 2カラムレイアウト用の基本設定（個別設定で上書きされる） */
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      width: 100% !important;
      max-width: 100% !important;
      min-width: 100% !important;
      height: auto !important;
      gap: 12px;
      background: transparent !important;
      padding: 0 !important;
    }
    
    /* 製作（撮影・編集）は2カラムレイアウト - 基本設定を完全に上書き */
    .modal .interactive-image-container .speech-bubble--sns-production {
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      width: 100% !important;
      max-width: 100% !important;
      min-width: 100% !important;
      height: auto !important;
      min-height: 60px !important;
      max-height: none !important;
      gap: 12px;
      background: transparent !important;
      padding: 0 !important;
      margin-bottom: 10px;
      position: relative;
      z-index: 1;
      color: #fff;
      /* 基本設定を上書き */
      order: 2 !important;
      flex-shrink: 0;
      box-sizing: border-box;
      /* 内部テキストのスタイル */
      text-align: center;
      font-size: 0.5625rem;
      line-height: 1.2;
      white-space: normal;
    }
    
    /* 製作（撮影・編集）の内部テキスト部分（1カラム目） */
    .modal .interactive-image-container .speech-bubble--sns-production .speech-bubble-text {
      width: calc(33.333% - 6px) !important;
      min-width: calc(33.333% - 6px) !important;
      max-width: calc(33.333% - 6px) !important;
      height: 60px !important;
      min-height: 60px !important;
      max-height: 60px !important;
      background: #000000 !important;
      color: #fff !important;
      border-radius: 4px !important;
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      text-align: center !important;
      font-size: 0.5625rem;
      line-height: 1.2;
      padding: 8px 6px !important;
      box-sizing: border-box !important;
      flex-shrink: 0 !important;
      flex-grow: 0 !important;
      flex-basis: calc(33.333% - 6px) !important;
      white-space: normal;
      order: 1;
    }
    
    
    
    
    /* 製作（撮影・編集）のテキスト部分（横に表示）- 2カラム目 */
    .modal .interactive-image-container .speech-bubble--sns-production::after {
      content: attr(data-mobile-text);
      position: relative !important;
      left: auto !important;
      top: auto !important;
      width: calc(66.667% - 6px) !important;
      min-width: 0 !important;
      font-size: 0.75rem;
      line-height: 1.5;
      color: var(--color-text);
      text-align: left;
      white-space: normal !important;
      word-wrap: break-word;
      overflow-wrap: break-word;
      display: block !important;
      flex: 1 1 calc(66.667% - 6px) !important;
      align-self: center;
      z-index: 1;
      max-height: none !important;
      overflow: visible !important;
      order: 2;
    }
    
    /* リンクコンテナが存在する場合は::afterを非表示 */
    .modal .interactive-image-container .speech-bubble--sns-production:has(.mobile-link-container)::after {
      display: none !important;
    }
    
    /* スマホモーダル内のテキストコンテナ（通常のテキスト表示） */
    .modal .interactive-image-container .speech-bubble .mobile-link-container {
      position: relative !important;
      left: auto !important;
      top: auto !important;
      width: calc(66.667% - 6px) !important;
      min-width: 0 !important;
      font-size: 0.75rem;
      line-height: 1.5;
      color: var(--color-text) !important;
      text-decoration: none;
      text-align: left;
      white-space: normal !important;
      word-wrap: break-word;
      overflow-wrap: break-word;
      display: block !important;
      flex: 1 1 calc(66.667% - 6px) !important;
      align-self: center;
      z-index: 10 !important;
      max-height: none !important;
      overflow: visible !important;
      order: 2;
      pointer-events: auto !important;
      transition: none;
    }
    
    /* スマホモーダル内の「click」リンク（すべてのパターン） */
    .modal .interactive-image-container .speech-bubble .mobile-click-link,
    .modal .interactive-image-container .speech-bubble .mobile-link-container .mobile-click-link {
      display: inline !important;
      color: #0056B3 !important;
      text-decoration: underline;
      cursor: pointer;
      transition: color 0.3s ease;
      margin-left: 4px;
      visibility: visible !important;
      opacity: 1 !important;
    }
    
    .modal .interactive-image-container .speech-bubble .mobile-click-link:hover,
    .modal .interactive-image-container .speech-bubble .mobile-click-link:active {
      color: #004494 !important;
    }
    
    /* スマホモーダル内の「見てみる▼」リンク（旧スタイル、互換性のため残す） */
    .modal .interactive-image-container .speech-bubble .mobile-see-link {
      color: #0056B3;
      text-decoration: underline;
      cursor: pointer;
      transition: color 0.3s ease;
      position: relative;
      z-index: 10;
      pointer-events: auto;
    }
    
    .modal .interactive-image-container .speech-bubble .mobile-see-link:hover,
    .modal .interactive-image-container .speech-bubble .mobile-see-link:active {
      color: #004494;
    }
    
    /* 他の吹き出しも2カラムレイアウト - 製作（撮影・編集）と同じロジック */
    .modal .interactive-image-container .speech-bubble:not(.speech-bubble--sns-production) {
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      width: 100% !important;
      max-width: 100% !important;
      min-width: 100% !important;
      height: auto !important;
      min-height: 60px !important;
      max-height: none !important;
      gap: 12px;
      background: transparent !important;
      padding: 0 !important;
      margin-bottom: 10px;
      position: relative;
      z-index: 1;
      color: #fff;
      /* 基本設定を上書き */
      order: 2 !important;
      flex-shrink: 0;
      box-sizing: border-box;
      /* 内部テキストのスタイル */
      text-align: center;
      font-size: 0.5625rem;
      line-height: 1.2;
      white-space: normal;
    }
    
    /* 他の吹き出しの内部テキスト部分（1カラム目） - 製作（撮影・編集）と同じスタイル */
    .modal .interactive-image-container .speech-bubble:not(.speech-bubble--sns-production) .speech-bubble-text {
      width: calc(33.333% - 6px) !important;
      min-width: calc(33.333% - 6px) !important;
      max-width: calc(33.333% - 6px) !important;
      height: 60px !important;
      min-height: 60px !important;
      max-height: 60px !important;
      background: #000000 !important;
      color: #fff !important;
      border-radius: 4px !important;
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      text-align: center !important;
      font-size: 0.5625rem;
      line-height: 1.2;
      padding: 8px 6px !important;
      box-sizing: border-box !important;
      flex-shrink: 0 !important;
      flex-grow: 0 !important;
      flex-basis: calc(33.333% - 6px) !important;
      white-space: normal;
      order: 1;
      transition: background 0.3s ease;
    }
    
    /* ホバー/タッチ時の背景色変更 */
    .modal .interactive-image-container .speech-bubble:not(.speech-bubble--sns-production):hover .speech-bubble-text,
    .modal .interactive-image-container .speech-bubble:not(.speech-bubble--sns-production).touch-active .speech-bubble-text {
      background: #e04040 !important;
    }
    
    /* 他の吹き出しのテキスト部分（横に表示）- 2カラム目 - デフォルトで表示 */
    .modal .interactive-image-container .speech-bubble:not(.speech-bubble--sns-production)::after {
      content: attr(data-mobile-text);
      position: relative !important;
      left: auto !important;
      top: auto !important;
      width: calc(66.667% - 6px) !important;
      min-width: 0 !important;
      font-size: 0.75rem;
      line-height: 1.5;
      color: var(--color-text);
      text-align: left;
      white-space: normal !important;
      word-wrap: break-word;
      overflow-wrap: break-word;
      display: block !important;
      flex: 1 1 calc(66.667% - 6px) !important;
      align-self: center;
      z-index: 1;
      max-height: none !important;
      overflow: visible !important;
      order: 2;
    }
    
    /* リンクコンテナが存在する場合は::afterを非表示（他の吹き出し） */
    .modal .interactive-image-container .speech-bubble:not(.speech-bubble--sns-production):has(.mobile-link-container)::after {
      display: none !important;
    }
    
    /* single-lineクラスでも2カラムレイアウトを維持 */
    .modal .interactive-image-container .speech-bubble--single-line {
      width: 100% !important;
      max-width: 100% !important;
      min-width: 100% !important;
      height: auto !important;
      min-height: 60px !important;
      max-height: none !important;
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      gap: 12px !important;
      background: transparent !important;
      padding: 0 !important;
      margin-bottom: 10px;
      position: relative !important;
      order: 2 !important;
      flex-shrink: 0 !important;
      box-sizing: border-box !important;
      text-align: left !important;
      white-space: normal !important;
      overflow: visible !important;
      word-wrap: break-word !important;
      overflow-wrap: break-word !important;
    }
    
    .modal .interactive-image-container a.speech-bubble--single-line {
      width: 100% !important;
      max-width: 100% !important;
      min-width: 100% !important;
      height: auto !important;
      min-height: 60px !important;
      max-height: none !important;
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      gap: 12px !important;
      background: transparent !important;
      padding: 0 !important;
      margin-bottom: 10px;
      position: relative !important;
      order: 2 !important;
      flex-shrink: 0 !important;
      box-sizing: border-box !important;
      text-align: left !important;
      white-space: normal !important;
      overflow: visible !important;
      word-wrap: break-word !important;
      overflow-wrap: break-word !important;
    }
    
    /* single-lineクラスの内部テキストも2カラムレイアウト */
    .modal .interactive-image-container .speech-bubble--single-line .speech-bubble-text {
      width: calc(33.333% - 6px) !important;
      min-width: calc(33.333% - 6px) !important;
      max-width: calc(33.333% - 6px) !important;
      height: 60px !important;
      min-height: 60px !important;
      max-height: 60px !important;
      background: #000000 !important;
      color: #fff !important;
      border-radius: 4px !important;
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      text-align: center !important;
      font-size: 0.5625rem;
      line-height: 1.2;
      padding: 8px 6px !important;
      box-sizing: border-box !important;
      flex-shrink: 0 !important;
      flex-grow: 0 !important;
      flex-basis: calc(33.333% - 6px) !important;
      white-space: normal;
      transition: background 0.3s ease;
      order: 1;
    }
    
    /* single-lineクラスのホバー/タッチ時の背景色変更 */
    .modal .interactive-image-container .speech-bubble--single-line:hover .speech-bubble-text,
    .modal .interactive-image-container .speech-bubble--single-line.touch-active .speech-bubble-text {
      background: #e04040 !important;
    }
    
    /* single-lineクラスのテキスト部分（横に表示）- 2カラム目 - デフォルトで表示 */
    .modal .interactive-image-container .speech-bubble--single-line::after {
      content: attr(data-mobile-text);
      position: relative !important;
      left: auto !important;
      top: auto !important;
      width: calc(66.667% - 6px) !important;
      min-width: 0 !important;
      font-size: 0.75rem;
      line-height: 1.5;
      color: var(--color-text);
      text-align: left;
      white-space: normal !important;
      word-wrap: break-word;
      overflow-wrap: break-word;
      display: block !important;
      flex: 1 1 calc(66.667% - 6px) !important;
      align-self: center;
      z-index: 1;
      max-height: none !important;
      overflow: visible !important;
      order: 2;
    }
    
    /* リンクコンテナが存在する場合は::afterを非表示（single-lineクラス） */
    .modal .interactive-image-container .speech-bubble--single-line:has(.mobile-link-container)::after {
      display: none !important;
    }
    
    /* 分析・改善（divタグ）も確実に2カラムレイアウト */
    .modal .interactive-image-container div.speech-bubble--single-line {
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      width: 100% !important;
      max-width: 100% !important;
      min-width: 100% !important;
      height: auto !important;
      gap: 12px !important;
      background: transparent !important;
      padding: 0 !important;
      margin-bottom: 10px !important;
      position: relative !important;
      order: 2 !important;
      flex-shrink: 0 !important;
      box-sizing: border-box !important;
    }
    
    /* 吹き出しのポインターを非表示 */
    .modal .interactive-image-container .speech-bubble::before,
    .modal .interactive-image-container .speech-bubble-pointer::before,
    .modal .interactive-image-container .speech-bubble-pointer-left::before {
      display: none !important;
    }
    
    /* アナウンス画像も非表示 */
    .modal .interactive-image-container .speech-bubble-announce-image {
      display: none !important;
    }
    
    /* 各吹き出しの個別位置指定をリセット - すべて2カラムレイアウト用に設定済み */
    /* 個別の位置指定は不要（2602行目で既に設定済み） */
  }
  
  
  /* アニメーション完了後の基本状態 */
  .speech-bubble.animation-complete {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  
  /* 浮かび上がるアニメーションの定義 */
  @keyframes speech-bubble-float-up {
    0% {
      opacity: 0;
      transform: translateY(20px) scale(0.8);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  /* 光る境界線アニメーション */
  @keyframes speech-bubble-glow {
    0%, 100% {
      border: 2px solid transparent;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    50% {
      border: 2px solid #0056B3;
      box-shadow: 0 4px 20px rgba(0, 86, 179, 0.6), 0 0 30px rgba(0, 86, 179, 0.4);
    }
  }
  
  /* より派手な光る効果（オプション） */
  @keyframes speech-bubble-intense-glow {
    0% {
      transform: scale(1);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(0, 86, 179, 0.8);
      border: 2px solid transparent;
    }
    25% {
      transform: scale(1.05);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 86, 179, 0.9), 0 0 30px rgba(0, 86, 179, 0.7);
      border: 2px solid rgba(0, 86, 179, 0.5);
    }
    50% {
      transform: scale(1.1);
      box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 86, 179, 1), 0 0 50px rgba(0, 86, 179, 0.8);
      border: 2px solid rgba(0, 86, 179, 0.8);
    }
    75% {
      transform: scale(1.05);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 86, 179, 0.9), 0 0 30px rgba(0, 86, 179, 0.7);
      border: 2px solid rgba(0, 86, 179, 0.5);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(0, 86, 179, 0.8);
      border: 2px solid transparent;
    }
  }
  
  /* リンクとしての吹き出しのホバー効果 */
  .speech-bubble:hover,
  .speech-bubble.touch-active {
    background: #e04040 !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    color: #fff !important;
    text-decoration: none;
  }
  
  /* PCでの製作（撮影・編集）のホバー時は赤背景 */
  @media (min-width: 769px) {
    .speech-bubble--sns-production:hover {
      background: #e04040 !important;
    }
    
    .speech-bubble--sns-production:hover .speech-bubble-text {
      background: #e04040 !important;
    }
    
    /* PCモーダルではsingle-lineクラスのテキストを中央揃えに */
    .modal .interactive-image-container .speech-bubble--single-line {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      text-align: center !important;
    }
    
    .modal .interactive-image-container a.speech-bubble--single-line {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      text-align: center !important;
    }
  }
  
  /* スマホモーダル内では製作（撮影・編集）は黒背景のまま */
  @media (max-width: 768px) {
    .modal .interactive-image-container .speech-bubble--sns-production:hover .speech-bubble-text {
      background: #000000 !important;
    }
    
    /* スマホモーダル内ではtouch-activeでも親要素は透明のまま */
    .modal .interactive-image-container .speech-bubble.touch-active {
      background: transparent !important;
    }
  }
  
  /* リンクとしての吹き出しの基本スタイル */
  a.speech-bubble {
    text-decoration: none;
    color: #fff;
    display: inline-block;
  }
  
  /* モーダル外では「click」リンクを非表示 */
  .speech-bubble .mobile-click-link {
    display: none;
  }
  
  /* スマホモーダル内では「click」リンクを確実に表示（詳細度を高くして上書き） */
  @media (max-width: 768px) {
    .modal .interactive-image-container .speech-bubble .mobile-click-link,
    .modal .interactive-image-container .speech-bubble .mobile-link-container .mobile-click-link {
      display: inline !important;
      visibility: visible !important;
      opacity: 1 !important;
    }
  }
  
  
  /* PC用の各吹き出しの位置 - アスペクト比固定でブラウザサイズ変更に対応 */
  /* 4:3アスペクト比のコンテナ内での相対位置（PCのみ） */
  @media (min-width: 769px) {
    .speech-bubble--sns-production {
      top: 39.5%;
      left: 7.5%;
      animation-delay: 0.2s;
    }
    
    .speech-bubble--scenario {
      top: 21.8%;
      left: 20%;
      animation-delay: 0.4s;
    }
    
    .speech-bubble--ad-design {
      top: 17.3%;
      left: 30.5%;
      animation-delay: 0.6s;
    }
    
    .speech-bubble--ad-creative {
      top: 31.3%;
      left: 35.5%;
      animation-delay: 0.8s;
    }
    
    .speech-bubble--site-design {
      top: 17.2%;
      left: 49%;
      animation-delay: 1.0s;
      z-index: 1003;
    }
    
    .speech-bubble--plan-design {
      top: 22.5%;
      right: 9%;
      animation-delay: 1.2s;
    }
    
    .speech-bubble--draft-creation {
      top: 36%;
      right: 15.3%;
      animation-delay: 1.4s;
    }
    
    .speech-bubble--analysis {
      top: 66.9%;
      right: 25.7%;
      animation-delay: 1.6s;
    }
    
    .speech-bubble--outdoor-ad {
      top: 32.3%;
      right: 28%;
      animation-delay: 1.8s;
    }
    
    .speech-bubble--seo-column {
      top: 55%;
      left: 25.5%;
      animation-delay: 2.0s;
    }
  }
  
  /* Responsive adjustments - スマホ時は吹き出しを上下に分散 */
  @media (max-width: 768px) {
    /* モーダル外では従来の位置指定を維持 */
    .speech-bubble:not(.modal .speech-bubble) {
      font-size: 0.5rem;
      padding: 6px 8px;
      width: 83px;
      height: 28px;
      min-width: 83px;
      max-width: 83px;
      position: absolute !important;
    }
    
    
    .speech-bubble::before {
      font-size: 0.5625rem;
      padding: 6px 10px;
      border-radius: 15px;
      margin-left: 40px;
      margin-top: 12px;
    }
    
    /* 上側の吹き出し（モーダル外のみ） */
    .speech-bubble--sns-production:not(.modal .speech-bubble) {
      top: 10% !important;
      left: 50% !important;
      transform: translateX(-50%);
    }
    
    .speech-bubble--scenario:not(.modal .speech-bubble) {
      top: 5% !important;
      left: 20% !important;
    }
    
    .speech-bubble--ad-design:not(.modal .speech-bubble) {
      top: 8% !important;
      left: 70% !important;
    }
    
    .speech-bubble--ad-creative:not(.modal .speech-bubble) {
      top: 15% !important;
      left: 50% !important;
      transform: translateX(-50%);
    }
    
    .speech-bubble--site-design:not(.modal .speech-bubble) {
      top: 12% !important;
      left: 80% !important;
    }
    
    /* 下側の吹き出し（モーダル外のみ） */
    .speech-bubble--plan-design:not(.modal .speech-bubble) {
      top: 75% !important;
      right: 10% !important;
      left: auto !important;
    }
    
    .speech-bubble--draft-creation:not(.modal .speech-bubble) {
      top: 80% !important;
      right: 50% !important;
      left: auto !important;
      transform: translateX(50%);
    }
    
    .speech-bubble--analysis:not(.modal .speech-bubble) {
      top: 85% !important;
      right: 20% !important;
      left: auto !important;
    }
    
    .speech-bubble--outdoor-ad:not(.modal .speech-bubble) {
      top: 70% !important;
      right: 30% !important;
      left: auto !important;
    }
    
    .speech-bubble--seo-column:not(.modal .speech-bubble) {
      top: 90% !important;
      right: 15% !important;
      left: auto !important;
    }
  }
  
  @media (max-width: 480px) {
    .speech-bubble:not(.modal .speech-bubble) {
      font-size: 0.4rem;
      padding: 4px 6px;
      width: 72px;
      height: 24px;
      min-width: 72px;
      max-width: 72px;
    }
    
    /* 480px以下でも2カラムレイアウトを維持 - 768px以下の設定を継承 */
    /* 個別の設定は不要（2602行目で既に2カラムレイアウト用に設定済み） */
    
    /* 480px以下でも製作（撮影・編集）は2カラムレイアウトを維持 */
    .modal .interactive-image-container .speech-bubble--sns-production {
      width: 100% !important;
      min-width: 100% !important;
      max-width: 100% !important;
      height: auto !important;
      min-height: 60px !important;
      max-height: none !important;
    }
    
    /* 480px以下でもテキスト表示のスタイル */
    .modal .interactive-image-container .speech-bubble--sns-production::after {
      font-size: 0.6875rem;
      width: calc(66.667% - 12px);
    }
    
    .modal .interactive-image-container .speech-bubble:not(.speech-bubble--sns-production)::after {
      font-size: 0.6875rem;
      width: calc(66.667% - 6px) !important;
    }
    
    /* single-lineクラスの::afterも確実に適用 */
    .modal .interactive-image-container .speech-bubble--single-line::after {
      font-size: 0.6875rem;
      width: calc(66.667% - 6px) !important;
    }
    
    /* 480px以下でもsingle-lineクラスは2カラムレイアウトを維持 - 768px以下の設定を継承 */
    /* 個別の設定は不要（2700行目で既に2カラムレイアウト用に設定済み） */
    
    .speech-bubble::before {
      font-size: 0.5rem;
      padding: 5px 8px;
      border-radius: 12px;
      margin-left: 30px;
      margin-top: 10px;
    }
  }
  
  /* ==========================================================================
     Scroll Animation
     ========================================================================== */
  .js-scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .js-scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  
  /* セクション内の要素も段階的にアニメーション */
  .js-scroll-animate .section-title {
    transition-delay: 0.2s;
  }
  
  .js-scroll-animate img {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.4s;
  }
  
  .js-scroll-animate.is-visible img {
    opacity: 1;
    transform: translateY(0);
  }
  
  .js-scroll-animate p {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.3s;
  }
  
  .js-scroll-animate.is-visible p {
    opacity: 1;
    transform: translateY(0);
  }
  
  @media (min-width: 768px) {
    .js-scroll-animate.is-visible p {
      max-width: 1000px;
    }
  }
  
  @media (min-width: var(--breakpoint-lg)) {
    .about .js-scroll-animate.is-visible p {
      margin: 0 auto !important;
      width: 100%;
    }
  }
  
  /* Lead section specific animations */
  .js-scroll-animate .lead__content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .js-scroll-animate.is-visible .lead__content {
    opacity: 1;
    transform: translateY(0);
  }
  
  .js-scroll-animate .lead__left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.2s;
  }
  
  .js-scroll-animate.is-visible .lead__left {
    opacity: 1;
    transform: translateX(0);
  }
  
  .js-scroll-animate .lead__right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.4s;
  }
  
  .js-scroll-animate.is-visible .lead__right {
    opacity: 1;
    transform: translateX(0);
  }
  
  /* Reasons section specific animations */
  .js-scroll-animate .reasons__grid {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.2s;
  }
  
  .js-scroll-animate.is-visible .reasons__grid {
    opacity: 1;
    transform: translateY(0);
  }
  
  .js-scroll-animate .reasons__brand {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.4s;
  }
  
  .js-scroll-animate.is-visible .reasons__brand {
    opacity: 1;
    transform: translateY(0);
  }
  
  
  
  /* ==========================================================================
     Accessibility & Reduced Motion
     ========================================================================== */
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    
    .js-enabled .section-title {
      transition: none;
      transform: none;
      opacity: 1;
    }
    
    .paw {
      opacity: 1;
      transform: none !important;
      animation: none !important;
    }
    
    /* 浮かび上がるアニメーションを無効化 */
    .speech-bubble {
      animation: none !important;
      opacity: 1 !important;
      transform: none !important;
    }
    
    /* スクロールアニメーションを無効化 */
    .js-scroll-animate {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
    }
    
    .js-scroll-animate img,
    .js-scroll-animate p,
    .js-scroll-animate .lead__content,
    .js-scroll-animate .lead__left,
    .js-scroll-animate .lead__right,
    .js-scroll-animate .reasons__grid,
    .js-scroll-animate .reasons__brand {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
    }
    
    /* 背景テキストアニメーションを無効化 */
    .section-title__bg {
      opacity: 1 !important;
      transform: translateY(-50%) scale(1) !important;
      transition: none !important;
    }
  }