/* ========================================
   リセット & ベーススタイル
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
a, button, input, textarea, select {
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* カラーパレット */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --accent-color: #10b981;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-white: #ffffff;

    /* グラデーション */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

    /* シャドウ */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* トランジション */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ナビゲーション
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo img {
    height: 35px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.logo span {
    font-weight: 300;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    position: relative;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(30, 41, 59, 0.7);
    border-radius: 10px;
    background: #FAF5F0;
    transition: all var(--transition-base);
}

.hamburger:hover {
    background: #F0EBE5;
}

.hamburger-face {
    width: 100%;
    height: 100%;
    position: relative;
}

.hamburger-eyes {
    position: absolute;
    top: 8px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hamburger-eye {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.7);
    display: block;
    animation: blink 4s ease-in-out infinite;
}

.hamburger-eye:last-child {
    animation-delay: 0.1s;
}

.hamburger-mouth {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: all var(--transition-base);
}

.hamburger-line {
    display: block;
    width: 14px;
    height: 2px;
    background: rgba(30, 41, 59, 0.7);
    border-radius: 1px;
    transition: all var(--transition-base);
}

/* 開いた時: ><目 + 回転 */
.hamburger.active {
    transform: rotate(10deg);
    border-color: #A78BFA;
    background: #EDE9FE;
}

.hamburger.active .hamburger-eye {
    width: 8px;
    height: 5px;
    background: transparent;
    border-top: 2px solid rgba(30, 41, 59, 0.7);
    border-radius: 50% 50% 0 0;
    animation: none;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ========================================
   ヒーローセクション
   ======================================== */

.hero-and-message {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    z-index: 1;
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

/* 背景の奥行き道 */
.bg-roads {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 90%);
    mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 90%);
}

.bg-road {
    position: absolute;
    background: #999;
    border-radius: 0;
}



.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.animated-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.shape {
    display: none;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: #ec4899;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #10b981;
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: #f59e0b;
    bottom: 10%;
    left: 30%;
    animation-delay: -10s;
}

.shape-4 {
    width: 350px;
    height: 350px;
    background: #06b6d4;
    top: 30%;
    right: 20%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

.hero-content {
    position: absolute;
    top: 120px;
    left: 0;
    right: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 10;
    text-align: left;
    color: var(--text-dark);
    pointer-events: none;
}

.hero-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.title-line:nth-child(3) {
    animation-delay: 0.4s;
}

/* ヒーロー下部ボタン */
.hero-bottom-buttons {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    animation: fadeInUp 0.8s 0.8s forwards;
}

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

/* 転がる〇△□ - 画面全体 */
.rolling-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    animation: fadeInUp 0.8s 0.3s forwards;
}

/* 〇△□ キャラ顔 - 画面中央に大きく */
/* 顔共通 - 普段は非表示、自分の番だけ転がる */
.shapes-face {
    position: absolute;
    bottom: 100%;
    left: -150px;
    width: 133px;
    height: 133px;
    z-index: 8;
    opacity: 0;
    pointer-events: auto !important;
    cursor: pointer;
}

/* クリック時のピンク顔 */
.shapes-face.blushing .face-outline {
    background: #FFB7C5;
}

.shapes-face.blushing .face-eyes {
    gap: 22px;
}

.shapes-face.blushing .eye-left,
.shapes-face.blushing .eye-right {
    background: transparent;
    width: 20px;
    height: 20px;
    border: none;
    position: relative;
}

.shapes-face.blushing .eye-left::before,
.shapes-face.blushing .eye-left::after,
.shapes-face.blushing .eye-right::before,
.shapes-face.blushing .eye-right::after {
    content: '';
    position: absolute;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 2px;
}

.shapes-face.blushing .eye-left::before {
    width: 14px; height: 3px;
    top: 5px; left: 3px;
    transform: rotate(35deg);
}
.shapes-face.blushing .eye-left::after {
    width: 14px; height: 3px;
    top: 12px; left: 3px;
    transform: rotate(-35deg);
}
.shapes-face.blushing .eye-right::before {
    width: 14px; height: 3px;
    top: 5px; left: 3px;
    transform: rotate(-35deg);
}
.shapes-face.blushing .eye-right::after {
    width: 14px; height: 3px;
    top: 12px; left: 3px;
    transform: rotate(35deg);
}

.shapes-face.blushing .shape-circle {
    animation: none;
}

/* 1本目: 右→左 0〜33% */
.face-on-1 {
    animation: faceRoll1 24s 1.0s linear infinite;
}

@keyframes faceRoll1 {
    0%   { left: calc(100% + 150px); transform: rotate(0deg); opacity: 1; }
    30%  { left: -150px; transform: rotate(-720deg); opacity: 1; }
    31%  { opacity: 0; }
    100% { opacity: 0; }
}

/* 2本目: 33〜66% で転がる */
.face-on-2 {
    animation: faceRoll2 24s 1.0s linear infinite;
}

@keyframes faceRoll2 {
    0%   { opacity: 0; }
    33%  { left: -150px; transform: rotate(0deg); opacity: 0; }
    34%  { left: -150px; transform: rotate(0deg); opacity: 1; }
    63%  { left: calc(100% + 150px); transform: rotate(720deg); opacity: 1; }
    64%  { opacity: 0; }
    100% { opacity: 0; }
}

/* お問い合わせボタン - 2本目を顔の後ろを追いかける */
.btn-slide {
    position: absolute;
    bottom: 100%;
    margin-bottom: 10px;
    left: -200px;
    z-index: 9;
    pointer-events: auto !important;
    cursor: pointer;
    opacity: 0;
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 0.7rem 1.8rem;
    background: #A78BFA;
    color: #fff;
    border: 2px solid #A78BFA;
}

.detail-on-1, .detail-on-2, .detail-on-3 {
    background: #FB923C;
    border-color: #FB923C;
}

.detail-on-1:hover, .detail-on-2:hover, .detail-on-3:hover {
    background: #EA580C !important;
    border-color: #EA580C !important;
    color: #fff !important;
}

.btn-slide:hover {
    background: #9333EA;
    border-color: #9333EA;
    color: #fff;
}


/*
  ローテーション:
  Phase1(0-33%): 顔→1本目(右→左), お問い合わせ→2本目(左→右), 詳しく見る→3本目(右→左)
  Phase2(33-66%): 顔→2本目(左→右), お問い合わせ→3本目(右→左), 詳しく見る→1本目(右→左)
  Phase3(66-100%): 顔→3本目(右→左), お問い合わせ→1本目(右→左), 詳しく見る→2本目(左→右)
*/

/* お問い合わせ on 1本目: Phase3 右→左 */
.contact-on-1 { animation: contactR2L 24s 1.0s linear infinite; }
@keyframes contactR2L {
    0%   { opacity: 0; visibility: hidden; }
    66%  { left: calc(100% + 200px); opacity: 0; visibility: hidden; }
    68%  { left: calc(100% + 200px); opacity: 1; visibility: visible; }
    97%  { left: -200px; opacity: 1; visibility: visible; }
    98%  { opacity: 0; visibility: hidden; }
    100% { opacity: 0; visibility: hidden; }
}

/* お問い合わせ on 2本目: Phase1 左→右 */
.contact-on-2 { animation: contactL2R 24s 1.0s linear infinite; }
@keyframes contactL2R {
    0%   { left: -200px; opacity: 0; visibility: hidden; }
    2%   { left: -200px; opacity: 1; visibility: visible; }
    31%  { left: calc(100% + 200px); opacity: 1; visibility: visible; }
    32%  { opacity: 0; visibility: hidden; }
    100% { opacity: 0; visibility: hidden; }
}

/* お問い合わせ on 3本目: Phase2 右→左 */
.contact-on-3 { animation: contactR2L2 24s 1.0s linear infinite; }
@keyframes contactR2L2 {
    0%   { opacity: 0; visibility: hidden; }
    33%  { left: calc(100% + 200px); opacity: 0; visibility: hidden; }
    35%  { left: calc(100% + 200px); opacity: 1; visibility: visible; }
    64%  { left: -200px; opacity: 1; visibility: visible; }
    65%  { opacity: 0; visibility: hidden; }
    100% { opacity: 0; visibility: hidden; }
}

/* 詳しく見る on 1本目: Phase2 右→左 */
.detail-on-1 { animation: detailR2L 24s 1.0s linear infinite; }
@keyframes detailR2L {
    0%   { opacity: 0; visibility: hidden; }
    33%  { left: calc(100% + 200px); opacity: 0; visibility: hidden; }
    35%  { left: calc(100% + 200px); opacity: 1; visibility: visible; }
    64%  { left: -200px; opacity: 1; visibility: visible; }
    65%  { opacity: 0; visibility: hidden; }
    100% { opacity: 0; visibility: hidden; }
}

/* 詳しく見る on 2本目: Phase3 左→右 */
.detail-on-2 { animation: detailL2R 24s 1.0s linear infinite; }
@keyframes detailL2R {
    0%   { opacity: 0; visibility: hidden; }
    66%  { left: -200px; opacity: 0; visibility: hidden; }
    68%  { left: -200px; opacity: 1; visibility: visible; }
    97%  { left: calc(100% + 200px); opacity: 1; visibility: visible; }
    98%  { opacity: 0; visibility: hidden; }
    100% { opacity: 0; visibility: hidden; }
}

/* 詳しく見る on 3本目: Phase1 右→左 */
.detail-on-3 { animation: detailR2L2 24s 1.0s linear infinite; }
@keyframes detailR2L2 {
    0%   { left: calc(100% + 200px); opacity: 0; visibility: hidden; }
    2%   { left: calc(100% + 200px); opacity: 1; visibility: visible; }
    31%  { left: -200px; opacity: 1; visibility: visible; }
    32%  { opacity: 0; visibility: hidden; }
    100% { opacity: 0; visibility: hidden; }
}

/* 3本目: 右→左 66〜100% */
.face-on-3 {
    animation: faceRoll3 24s 1.0s linear infinite;
}

@keyframes faceRoll3 {
    0%   { opacity: 0; }
    66%  { left: calc(100% + 150px); transform: rotate(0deg); opacity: 0; }
    67%  { left: calc(100% + 150px); transform: rotate(0deg); opacity: 1; }
    98%  { left: -150px; transform: rotate(-720deg); opacity: 1; }
    99%  { opacity: 0; }
    100% { opacity: 0; }
}

/* □ 顔の輪郭 */
.face-outline {
    position: absolute;
    top: 0;
    left: 0;
    width: 133px;
    height: 133px;
    background: #FAF5F0;
    border: 4px solid rgba(30, 41, 59, 0.7);
    border-radius: 16px;
}

/* 目 */
.face-eyes {
    position: absolute;
    top: 36px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 33px;
}

/* 〇 左目 */
.shape-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.7);
    animation: blink 4s ease-in-out infinite;
}

/* 〇 右目 */
.eye-right {
    animation-delay: 0.1s;
}

@keyframes blink {
    0%, 42%, 50%, 100% { transform: scaleY(1); }
    45% { transform: scaleY(0.1); }
}

/* △ 口（上向きSVG） */
.mouth {
    position: absolute;
    bottom: 23px;
    left: 50%;
    transform: translateX(-50%);
}

/* 道のラッパー（回転・位置決め） */
.road-wrap {
    position: absolute;
    left: -20%;
    width: 140%;
    height: 75px;
    opacity: 0;
    pointer-events: none;
}

.road-wrap .btn-slide {
    pointer-events: auto !important;
    z-index: 20;
}

.road-wrap-1 {
    top: 32%;
    transform: rotate(-15deg);
    animation: roadAppear 0.6s 0.5s forwards;
}

.road-wrap-2 {
    bottom: 25%;
    transform: rotate(12deg);
    animation: roadAppear 0.6s 1.0s forwards;
}

.road-wrap-3 {
    bottom: 10%;
    transform: rotate(-25deg);
    animation: roadAppear 0.6s 1.5s forwards;
}

/* 道本体 */
.road {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 25px;
    overflow: hidden;
}

/* 右上 → 左中央（青ベタ） */
.road-1 {
    background: #60A5FA;
}

.road-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -200px;
    width: 160px;
    height: 100%;
    background: rgba(245, 158, 11, 0.45);
    animation: roadRunRight 2.8s 1.1s linear infinite;
}

.road-1::after {
    content: '';
    position: absolute;
    top: 0;
    left: -200px;
    width: 120px;
    height: 100%;
    background: rgba(236, 72, 153, 0.35);
    animation: roadRunRight 2.8s 2.5s linear infinite;
}

/* 左下 → 右中央（緑ベタ） */
.road-2 {
    background: #34D399;
}

.road-2::before {
    content: '';
    position: absolute;
    top: 0;
    right: -200px;
    width: 140px;
    height: 100%;
    background: rgba(139, 92, 246, 0.45);
    animation: roadRunLeft 3.5s 1.6s linear infinite;
}

.road-2::after {
    content: '';
    position: absolute;
    top: 0;
    right: -200px;
    width: 180px;
    height: 100%;
    background: rgba(59, 130, 246, 0.3);
    animation: roadRunLeft 3.5s 3.3s linear infinite;
}

/* 右下 → 左上（赤ベタ） */
.road-3 {
    background: #F87171;
}

.road-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: -200px;
    width: 150px;
    height: 100%;
    background: rgba(16, 185, 129, 0.4);
    animation: roadRunRight 4.2s 2.1s linear infinite;
}

.road-3::after {
    content: '';
    position: absolute;
    top: 0;
    left: -200px;
    width: 100px;
    height: 100%;
    background: rgba(245, 158, 11, 0.45);
    animation: roadRunRight 4.2s 3.5s linear infinite;
}

@keyframes roadAppear {
    to { opacity: 1; }
}

@keyframes roadRunRight {
    0% { left: -200px; }
    100% { left: calc(100% + 200px); }
}

@keyframes roadRunLeft {
    0% { right: -200px; }
    100% { right: calc(100% + 200px); }
}

.road-surface,
.road-line {
    display: none;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s 0.4s forwards;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    opacity: 0;
    animation: fadeInUp 0.8s 0.6s forwards;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(145deg, #e0e0e0, #f5f5f5);
    color: #333;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(200, 200, 200, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 7px 7px 20px rgba(0, 0, 0, 0.25);
    background: linear-gradient(145deg, #d8d8d8, #eeeeee);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn-secondary:hover {
    background: var(--text-dark);
    color: #ffffff;
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-size: 0.9rem;
    opacity: 0;
    animation: fadeInUp 0.8s 0.8s forwards;
    z-index: 10;
}

.scroll-line {
    width: 2px;
    height: 50px;
    background: rgba(30, 41, 59, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: white;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(250%);
    }
}

/* ========================================
   セクション共通スタイル
   ======================================== */

section {
    padding: 100px 0;
    scroll-margin-top: 70px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   Message セクション
   ======================================== */

.message-section {
    padding: 5rem 0;
    background: transparent;
    position: relative;
    overflow: visible;
}

.arrow-bg {
    position: absolute;
    width: 4px;
    height: 120px;
    bottom: -350px;
    z-index: 0;
    pointer-events: none;
    border-radius: 2px;
}

.arrow-1 {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.6), rgba(99, 102, 241, 0.2));
    height: 200px;
    left: 5%;
    animation: floatUp1 3.5s infinite ease-in-out;
}

.arrow-2 {
    background: linear-gradient(180deg, rgba(236, 72, 153, 0.6), rgba(236, 72, 153, 0.2));
    height: 260px;
    left: 18%;
    animation: floatUp2 4.5s infinite ease-in-out 0.75s;
}

.arrow-3 {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.6), rgba(16, 185, 129, 0.2));
    height: 220px;
    left: 32%;
    animation: floatUp3 4s infinite ease-in-out 1.5s;
}

.arrow-4 {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.6), rgba(245, 158, 11, 0.2));
    height: 240px;
    left: 46%;
    animation: floatUp4 4.25s infinite ease-in-out 2.25s;
}

.arrow-5 {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.6), rgba(139, 92, 246, 0.2));
    height: 230px;
    left: 60%;
    animation: floatUp5 4.75s infinite ease-in-out 1.25s;
}

.arrow-6 {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.6), rgba(59, 130, 246, 0.2));
    height: 210px;
    left: 74%;
    animation: floatUp1 3.8s infinite ease-in-out 0.5s;
}

.arrow-7 {
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.6), rgba(168, 85, 247, 0.2));
    height: 250px;
    right: 12%;
    animation: floatUp2 4.2s infinite ease-in-out 1.8s;
}

.arrow-8 {
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.6), rgba(20, 184, 166, 0.2));
    height: 215px;
    left: 88%;
    animation: floatUp3 4.6s infinite ease-in-out 0.3s;
}

.arrow-9 {
    background: linear-gradient(180deg, rgba(251, 146, 60, 0.6), rgba(251, 146, 60, 0.2));
    height: 225px;
    left: 11%;
    animation: floatUp4 3.9s infinite ease-in-out 2.8s;
}

.arrow-10 {
    background: linear-gradient(180deg, rgba(244, 63, 94, 0.6), rgba(244, 63, 94, 0.2));
    height: 235px;
    right: 6%;
    animation: floatUp5 4.4s infinite ease-in-out 3.2s;
}

@keyframes floatUp1 {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-800px);
        opacity: 0;
    }
}

@keyframes floatUp2 {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-900px);
        opacity: 0;
    }
}

@keyframes floatUp3 {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-850px);
        opacity: 0;
    }
}

@keyframes floatUp4 {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-750px);
        opacity: 0;
    }
}

@keyframes floatUp5 {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-820px);
        opacity: 0;
    }
}

.message-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 3rem 0;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-direction: column;
}

.handwriting-text {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 2rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.05em;
    background: #F5F0EB;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    position: relative;
}

.handwriting-text::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 20px solid #F5F0EB;
}

/* メッセージ横の顔アイコン */
.message-face {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    margin-bottom: 10px;
}

.message-face .face-outline {
    width: 100px;
    height: 100px;
    border-radius: 16px;
}

.message-face .face-eyes {
    top: 28px;
    gap: 24px;
}

.message-face .shape-circle {
    width: 18px;
    height: 18px;
}

.message-face .mouth {
    bottom: 18px;
    transition: transform 0.15s ease;
}

/* メッセージ顔クリック ^^目 */
.message-face.happy .eye-left,
.message-face.happy .eye-right {
    background: transparent;
    width: 18px;
    height: 10px;
    border: none;
    border-top: 3px solid rgba(30, 41, 59, 0.8);
    border-radius: 50% 50% 0 0;
    position: relative;
    margin-top: 5px;
}

.message-face.happy .shape-circle {
    animation: none;
}

.message-face {
    cursor: pointer;
}

.message-face.talking .mouth {
    animation: mouthFlap 0.3s ease-in-out infinite;
}

@keyframes mouthFlap {
    0%, 100% { transform: translateX(-50%) scaleY(1); }
    50% { transform: translateX(-50%) scaleY(0.3); }
}

.handwriting-text .typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--text-dark);
    vertical-align: text-bottom;
    margin-left: 2px;
    animation: cursorBlink 0.6s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (max-width: 768px) {
    .handwriting-text {
        font-size: 1.3rem;
        line-height: 2;
    }

    .message-content {
        padding: 2rem 0.5rem;
    }

    .message-section .container {
        padding: 0 7px;
    }
}

/* ========================================
   Page Hero (Introduction Page)
   ======================================== */

.page-hero {
    padding: 150px 0 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s 0.2s ease backwards;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px 0;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }
}

/* ========================================
   About セクション
   ======================================== */

.about {
    background: transparent;
    overflow: hidden;
}

/* 新聞風ヘッダー */
.newspaper-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0.5rem;
    background: transparent;
    border: none;
}

.newspaper-rule-top {
    height: 4px;
    background: #1a1a1a;
    margin-bottom: 6px;
    border-bottom: 1px solid #1a1a1a;
}

.newspaper-rule-top::after {
    content: '';
    display: block;
    height: 1px;
    background: #1a1a1a;
    margin-top: 2px;
}

.newspaper-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.15em;
    margin: 0.5rem 0;
}

.newspaper-rule {
    height: 1px;
    background: #999;
    margin: 0.5rem 0;
}

/* 3人の共通吹き出し（下向き） */
.c-shared-bubble {
    position: relative;
    background: #F5F0EB;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    margin-top: 1.5rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.c-shared-bubble-arrow {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 12px solid #F5F0EB;
}

.service-title-bubble {
    margin-bottom: 12px;
    margin-top: 0;
    max-width: 180px;
}

.service-desc-bubble {
    max-width: 280px;
}

.service-title-bubble .c-shared-bubble-arrow {
    top: auto;
    bottom: -10px;
    border-bottom: none;
    border-top: 12px solid #F5F0EB;
}

.service-title-bubble p {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em;
}

.c-shared-bubble p {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
    text-align: center;
}

.newspaper-desc {
    font-family: 'Noto Serif JP', serif;
    font-size: 1rem;
    line-height: 1.9;
    color: #333;
    letter-spacing: 0.04em;
    margin: 0.8rem 0;
}

/* 3つのC顔 */
.c-faces {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 0.8rem 0 1rem;
}

.c-face-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.c-face-group.pop-in {
    opacity: 1;
    transform: translateY(0);
}

.c-bubble {
    background: #F5F0EB;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    position: relative;
    margin-bottom: 12px;
}

.c-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid #F5F0EB;
}

.c-face {
    position: relative;
    width: 70px;
    height: 70px;
}

.c-face .face-outline {
    width: 70px;
    height: 70px;
    border-radius: 14px;
}

.c-face-blue .face-outline { background: #FAF5F0; border: 4px solid #60A5FA; }
.c-face-green .face-outline { background: #FAF5F0; border: 4px solid #34D399; }
.c-face-red .face-outline { background: #FAF5F0; border: 4px solid #F87171; }

.c-face .face-eyes {
    position: absolute;
    top: 16px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.c-face .shape-circle {
    width: 12px;
    height: 12px;
    animation: blink 4s ease-in-out infinite;
}

.c-face-blue .shape-circle { animation-delay: 0s; animation-duration: 3.5s; }
.c-face-green .shape-circle { animation-delay: 1.2s; animation-duration: 4.2s; }
.c-face-red .shape-circle { animation-delay: 2.5s; animation-duration: 3.8s; }

.c-face-blue.talking .c-mouth {
    animation: cMouthFlap1 0.28s ease-in-out infinite;
}

.c-face-green.talking .c-mouth {
    animation: cMouthFlap2 0.35s ease-in-out infinite;
}

.c-face-red.talking .c-mouth {
    animation: cMouthFlap3 0.22s ease-in-out infinite;
}

@keyframes cMouthFlap1 {
    0%, 100% { transform: translateX(-50%) scaleY(1); }
    50% { transform: translateX(-50%) scaleY(0.3); }
}

@keyframes cMouthFlap2 {
    0%, 100% { transform: translateX(-50%) scaleY(1) rotate(0deg); }
    40% { transform: translateX(-50%) scaleY(0.5) rotate(-5deg); }
    60% { transform: translateX(-50%) scaleY(0.3) rotate(5deg); }
}

@keyframes cMouthFlap3 {
    0%, 100% { transform: translateX(-50%) scaleY(1); }
    30% { transform: translateX(-50%) scaleY(0.2); }
    70% { transform: translateX(-50%) scaleY(0.6); }
}

.c-mouth {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(30, 41, 59, 0.7);
    line-height: 1;
}

.newspaper-rule-bottom {
    height: 4px;
    background: #1a1a1a;
    margin-top: 6px;
    border-top: 1px solid #1a1a1a;
}

.newspaper-rule-bottom::before {
    content: '';
    display: block;
    height: 1px;
    background: #1a1a1a;
    margin-bottom: 2px;
}

/* 3つのCの道レイアウト */
.about-roads {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

.about-road-wrap {
    position: relative;
    left: -10%;
    width: 120%;
    margin-bottom: 3rem;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-road-1 {
    transform: rotate(-3deg) translateX(100px);
}

.about-road-2 {
    transform: rotate(2deg) translateX(-100px);
}

.about-road-3 {
    transform: rotate(-1.5deg) translateX(100px);
}

.about-road-1.slide-in {
    opacity: 1;
    transform: rotate(-3deg) translateX(0);
}

.about-road-2.slide-in {
    opacity: 1;
    transform: rotate(2deg) translateX(0);
}

.about-road-3.slide-in {
    opacity: 1;
    transform: rotate(-1.5deg) translateX(0);
}


.about-road {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    opacity: 0.8;
}

.about-road-content {
    position: relative;
    z-index: 2;
    padding: 2rem 10%;
    color: #fff;
}

@media (min-width: 769px) {
    .about-road-content {
        padding: 2rem 25%;
    }
}

.about-road-face-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

@media (max-width: 768px) {
    .about-road-face-layout {
        gap: 1rem;
    }

    .about-road-content h3 {
        font-size: 1rem;
    }

    .about-road-content p {
        font-size: 0.8rem;
    }

    .about-road-face-side .c-face {
        width: 50px;
        height: 50px;
    }

    .about-road-face-side .face-outline {
        width: 50px;
        height: 50px;
        border-radius: 10px;
    }

    .about-road-face-side .face-eyes {
        top: 12px;
        gap: 10px;
    }

    .about-road-face-side .shape-circle {
        width: 8px;
        height: 8px;
    }

    .about-road-face-side .c-mouth {
        bottom: 4px;
        font-size: 0.9rem;
    }

    .about-face-bubble {
        font-size: 0.6rem;
    }
}

.about-road-text {
    flex: 1;
}

.about-road-face-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.about-road-face-side .c-face {
    width: 70px;
    height: 70px;
}

.about-road-face-side .face-outline {
    width: 70px;
    height: 70px;
    border-radius: 14px;
}

.about-road-face-side .face-eyes {
    top: 16px;
    gap: 16px;
}

.about-road-face-side .shape-circle {
    width: 12px;
    height: 12px;
}

.about-road-face-side .c-mouth {
    bottom: 6px;
}

.about-face-bubble {
    background: rgba(255,255,255,0.9);
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: 10px;
    margin-bottom: 8px;
    position: relative;
    white-space: nowrap;
}

.about-face-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid rgba(255,255,255,0.9);
}

/* サービス道 */
.service-roads {
    position: relative;
    padding: 2rem 0;
    overflow: hidden;
}

.service-road-wrap {
    position: relative;
    left: -10%;
    width: 120%;
    margin-bottom: 3rem;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-road-1 {
    transform: rotate(-2deg) translateX(100px);
}

.service-road-2 {
    transform: rotate(1.5deg) translateX(-100px);
}

.service-road-3 {
    transform: rotate(-1deg) translateX(100px);
}

.service-road-1.slide-in {
    opacity: 1;
    transform: rotate(-2deg) translateX(0);
}

.service-road-2.slide-in {
    opacity: 1;
    transform: rotate(1.5deg) translateX(0);
}

.service-road-3.slide-in {
    opacity: 1;
    transform: rotate(-1deg) translateX(0);
}

.service-road-features {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.service-road-features li {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    padding: 0.2rem 0.6rem;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
}

/* VTuberサンプル画像ふわっと */
.vsample-float {
    position: absolute;
    right: 18%;
    top: 50%;
    transform: translateY(-50%);
    height: 120%;
    width: auto;
    z-index: 1;
    opacity: 1;
    pointer-events: none;
}

.service-road-link-icon {
    height: 1em;
    width: auto;
    vertical-align: middle;
    margin-right: 0.3rem;
}

.service-road-link {
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.35rem;
    opacity: 0.9;
}

.service-road-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.about-road-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
}

.about-road-content p {
    color: rgba(255,255,255,0.95);
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.about-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(30px);
}

.about-card.animate {
    animation: fadeInUp 0.6s forwards;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

.card-icon svg {
    width: 35px;
    height: 35px;
    color: white;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.keyword-badge {
    display: block;
    width: fit-content;
    margin: 0 auto 1rem auto;
    padding: 0.6rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
    animation: sparkle 4s infinite;
}

.keyword-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 70%
    );
    animation: shine 4s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    20% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes sparkle {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    }
    20% {
        box-shadow: 0 4px 25px rgba(16, 185, 129, 0.7), 0 0 15px rgba(255, 255, 255, 0.5);
    }
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    text-align: center;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   Engineers セクション
   ======================================== */

.engineers {
    background: white;
}

.engineers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.engineer-card {
    background: var(--light-bg);
    border-radius: 0;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    transform: translateY(30px);
}

.engineer-card.animate {
    animation: fadeInUp 0.6s forwards;
}

.engineer-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.engineer-image {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 0;
    overflow: hidden;
}

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

.engineer-info {
    flex: 1;
}

.engineer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.engineer-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.engineer-description {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   Services セクション
   ======================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-30px);
}

.service-card.animate {
    animation: fadeInLeft 0.6s forwards;
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-xl);
}

.service-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ========================================
   Works セクション
   ======================================== */

.services {
    padding-top: 40px;
    background: transparent;
}

.works {
    padding-top: 40px;
    background: transparent;
    overflow: hidden;
}

.works-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.works-title-bubble {
    margin-bottom: 12px;
    max-width: 150px;
}

.works-title-bubble .c-shared-bubble-arrow {
    top: auto;
    bottom: -10px;
    border-bottom: none;
    border-top: 12px solid #F5F0EB;
}

.works-face-center {
    margin-bottom: 12px;
}

/* 背景の転がる顔群 */
.rolling-faces-area {
    position: relative;
    overflow: hidden;
}

.rolling-faces-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

.rolling-face-item {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.15;
    will-change: transform;
}

.rolling-face-item .face-outline {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.rolling-face-item .face-eyes {
    position: absolute;
    top: 9px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.rolling-face-item .shape-circle {
    width: 7px;
    height: 7px;
}

.rolling-face-item .mini-mouth {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: rgba(30,41,59,0.7);
    font-weight: 700;
    line-height: 1;
}

/* ミニゲーム */
.face-game-wrap {
    max-width: 800px;
    margin: -40px auto 1rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

#face-game {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 16px;
    background: #FDFBF7;
    border: 2px solid rgba(30,41,59,0.15);
    cursor: pointer;
}

.game-hint {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.contact-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-title-bubble {
    margin-bottom: 12px;
    max-width: 200px;
}

.contact-desc-bubble {
    max-width: 320px;
}

.contact-title-bubble .c-shared-bubble-arrow {
    top: auto;
    bottom: -10px;
    border-bottom: none;
    border-top: 12px solid #F5F0EB;
}

/* 実績の道 */
.works-roads {
    position: relative;
    padding: 2rem 0;
    overflow: hidden;
}

.works-road-wrap {
    position: relative;
    display: block;
    left: -10%;
    width: 120%;
    margin-bottom: 2rem;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.works-road-1 {
    transform: rotate(-2deg) translateX(100px);
}

.works-road-2 {
    transform: rotate(1.5deg) translateX(-100px);
}

.works-road-3 {
    transform: rotate(-1.5deg) translateX(100px);
}

.works-road-4 {
    transform: rotate(1.5deg) translateX(-100px);
}

.works-road-1.slide-in {
    opacity: 1;
    transform: rotate(-2deg) translateX(0);
}

.works-road-2.slide-in {
    opacity: 1;
    transform: rotate(1.5deg) translateX(0);
}

.works-road-3.slide-in {
    opacity: 1;
    transform: rotate(-1.5deg) translateX(0);
}

.works-road-4.slide-in {
    opacity: 1;
    transform: rotate(1.5deg) translateX(0);
}

.works-road-5 {
    transform: rotate(-1.5deg) translateX(100px);
}

.works-road-5.slide-in {
    opacity: 1;
    transform: rotate(-1.5deg) translateX(0);
}

.works-road-tag {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.8rem;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
}

.works-road-img {
    height: 90px;
    width: auto;
}

/* カレイドクローム実績ゾーン */
.kaleido-zone {
    box-sizing: border-box;
    width: calc(100% - 2rem);
    max-width: 960px;
    margin: 1rem auto 2rem;
    padding: 2rem 1.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(30, 27, 75, 0.25);
}

.kaleido-zone-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.kaleido-zone-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
}

.kaleido-zone-title {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
}

.kaleido-zone-sub {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.75;
    letter-spacing: 0.05em;
}

.kaleido-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.kaleido-card {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kaleido-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.kaleido-card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.kaleido-card-soon {
    cursor: default;
}

.kaleido-card-soon:hover {
    transform: none;
    box-shadow: none;
}

.kaleido-card-thumb-wrap {
    position: relative;
}

.kaleido-card-soon .kaleido-card-thumb {
    filter: grayscale(1) blur(14px) brightness(0.55) contrast(0.6);
    opacity: 0.35;
    transform: scale(1.06);
}

.kaleido-card-soon .kaleido-card-thumb-wrap {
    overflow: hidden;
    background: #1e1b4b;
}

.kaleido-card-soon .kaleido-card-body {
    opacity: 0.55;
}

.kaleido-card-hidden-bar {
    display: block;
    width: 70%;
    height: 1.05rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.25);
}

.kaleido-card-soon-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0.35rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    background: rgba(15, 12, 45, 0.7);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.kaleido-card-body {
    padding: 0.8rem 1rem 1rem;
}

.kaleido-card-body h4 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.kaleido-card-domain {
    display: inline-block;
    padding: 0.15rem 0.7rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

@media (max-width: 480px) {
    .kaleido-zone {
        padding: 1.5rem 1rem;
    }
    .kaleido-grid {
        grid-template-columns: 1fr;
    }
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.work-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    opacity: 0;
    transform: scale(0.9);
}

.work-card.animate {
    animation: zoomIn 0.6s forwards;
}

@keyframes zoomIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.work-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.work-image {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.work-image-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.work-image-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.work-image-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: white;
    opacity: 1;
    transition: opacity var(--transition-base);
}

.work-card:hover .work-overlay {
    opacity: 0.95;
}

.work-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.work-overlay p {
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.work-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ========================================
   Stats セクション
   ======================================== */

.stats {
    background: var(--gradient-primary);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ========================================
   Contact セクション
   ======================================== */

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateX(30px);
}

.info-item.animate {
    animation: fadeInRight 0.6s forwards;
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 25px;
    height: 25px;
    color: white;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-item p {
    color: var(--text-light);
}

.contact-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
}

.contact-button-container.animate {
    animation: fadeInUp 0.6s forwards;
}

/* お問い合わせフォーム */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
}

.contact-form-wrapper.animate {
    animation: fadeInUp 0.6s forwards;
}

.c3-contact-form {
    position: relative;
}

.cf-group {
    margin-bottom: 1.5rem;
}

.cf-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.cf-req {
    color: var(--secondary-color);
    font-weight: 700;
}

.cf-group input[type="text"],
.cf-group input[type="email"],
.cf-group select,
.cf-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: var(--text-dark);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.cf-group input:focus,
.cf-group select:focus,
.cf-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.cf-group textarea {
    resize: vertical;
    min-height: 160px;
}

.cf-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' fill='none' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.cf-actions {
    text-align: center;
    margin-top: 2rem;
}

.contact-done {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(99, 102, 241, 0.1));
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.contact-done p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-done p:first-child {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
}

.contact-error {
    text-align: center;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #dc2626;
    font-weight: 500;
}

.btn-large {
    font-size: 1.3rem;
    padding: 1.5rem 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-base);
}

.btn-large:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.btn-block {
    width: 100%;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--dark-bg);
    color: var(--text-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h3 span {
    font-weight: 300;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-base);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* PC幅でアニメーション速度調整 */
@media (min-width: 1025px) {
    .road-1::before, .road-1::after { animation-duration: 4.2s; }
    .road-2::before, .road-2::after { animation-duration: 5.25s; }
    .road-3::before, .road-3::after { animation-duration: 6.3s; }
    .face-on-1, .face-on-2, .face-on-3 { animation-duration: 36s; }
    .contact-on-1, .contact-on-2, .contact-on-3,
    .detail-on-1, .detail-on-2, .detail-on-3 { animation-duration: 36s; }
}

/* ========================================
   レスポンシブ対応
   ======================================== */

@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        right: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 2rem 0;
        gap: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease 0.35s;
    }

    .nav-menu.active {
        opacity: 1;
        pointer-events: auto;
        transition: opacity 0.2s ease;
    }

    .nav-menu li {
        position: relative;
        overflow: hidden;
        transform: translateX(100%) rotate(0deg);
        transition: transform 0.4s ease, opacity 0.3s ease;
    }

    /* 開くとき: 上から順に */
    .nav-menu.active li:nth-child(1) { transition-delay: 0.05s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.3s; }

    /* 閉じるとき: 下から順に */
    .nav-menu:not(.active) li:nth-child(6) { transition-delay: 0.05s; }
    .nav-menu:not(.active) li:nth-child(5) { transition-delay: 0.1s; }
    .nav-menu:not(.active) li:nth-child(4) { transition-delay: 0.15s; }
    .nav-menu:not(.active) li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu:not(.active) li:nth-child(2) { transition-delay: 0.25s; }
    .nav-menu:not(.active) li:nth-child(1) { transition-delay: 0.3s; }

    .nav-menu li .nav-link {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        font-weight: 600;
        color: #fff;
        border-radius: 0;
        text-align: center;
    }

    .nav-menu li:nth-child(1) { background: #60A5FA; transform-origin: right; }
    .nav-menu li:nth-child(1) .nav-link::before { content: ''; }
    .nav-menu li:nth-child(2) { background: #34D399; }
    .nav-menu li:nth-child(3) { background: #F87171; }
    .nav-menu li:nth-child(4) { background: #F59E0B; }
    .nav-menu li:nth-child(5) { background: #A78BFA; }
    .nav-menu li:nth-child(6) { background: #EC4899; }

    .nav-menu li:nth-child(1) { transform: translateX(100%) rotate(-2deg); }
    .nav-menu li:nth-child(2) { transform: translateX(100%) rotate(1.5deg); }
    .nav-menu li:nth-child(3) { transform: translateX(100%) rotate(-3deg); }
    .nav-menu li:nth-child(4) { transform: translateX(100%) rotate(2deg); }
    .nav-menu li:nth-child(5) { transform: translateX(100%) rotate(-1deg); }
    .nav-menu li:nth-child(6) { transform: translateX(100%) rotate(2.5deg); }

    .nav-menu.active li:nth-child(1) { transform: translateX(0) translateY(0px) rotate(-2deg); }
    .nav-menu.active li:nth-child(2) { transform: translateX(0) translateY(8px) rotate(1.5deg); }
    .nav-menu.active li:nth-child(3) { transform: translateX(0) translateY(16px) rotate(-3deg); }
    .nav-menu.active li:nth-child(4) { transform: translateX(0) translateY(24px) rotate(2deg); }
    .nav-menu.active li:nth-child(5) { transform: translateX(0) translateY(32px) rotate(-1deg); }
    .nav-menu.active li:nth-child(6) { transform: translateX(0) translateY(40px) rotate(2.5deg); }

    .nav-menu li .nav-link:hover {
        color: #fff;
        opacity: 0.8;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-grid,
    .services-grid,
    .works-grid {
        grid-template-columns: 1fr;
    }

    .engineers-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .engineer-card {
        flex-direction: column;
        text-align: center;
    }

    .engineer-image {
        margin: 0 auto;
    }

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 3rem;
    }

    .shapes-face {
        width: 110px;
        height: 110px;
    }

    .face-outline {
        width: 110px;
        height: 110px;
        border-radius: 18px;
    }

    .face-eyes {
        top: 32px;
        gap: 28px;
    }

    .shape-circle {
        width: 20px;
        height: 20px;
    }

    .mouth {
        bottom: 20px;
    }

    .btn-slide {
        font-size: 0.85rem;
        padding: 0.6rem 1.5rem;
    }

    .road-wrap {
        height: 65px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .btn-large {
        font-size: 0.95rem;
        padding: 0.9rem 1.5rem;
    }

    .contact-button-container {
        padding: 0;
    }

    .scroll-indicator {
        bottom: 30px;
        font-size: 0.8rem;
    }

    .scroll-line {
        height: 40px;
    }

    .message-content {
        padding: 2rem 0.3rem;
    }

    .handwriting-text {
        font-size: 1.2rem;
    }

    .message-section .container {
        padding: 0 5px;
    }
}

/* ========================================
   Company Info Section
   ======================================== */

.company-info {
    background: var(--light-bg);
    padding: 100px 0;
}

.company-content {
    max-width: 900px;
    margin: 0 auto;
}

.company-table {
    background: white;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.company-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid #e2e8f0;
}

.company-row:last-child {
    border-bottom: none;
}

.company-label {
    background: var(--light-bg);
    padding: 1.5rem 2rem;
    font-weight: 600;
    color: var(--text-dark);
    border-right: 1px solid #e2e8f0;
}

.company-value {
    padding: 1.5rem 2rem;
    color: var(--text-light);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .company-row {
        grid-template-columns: 1fr;
    }

    .company-label {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 1rem 1.5rem;
    }

    .company-value {
        padding: 1rem 1.5rem;
    }
}

/* ========================================
   Security Policy Section
   ======================================== */

.security-policy {
    background: white;
    padding: 100px 0;
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
}

.policy-intro {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 0;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.policy-intro p {
    margin: 0;
    color: var(--text-dark);
}

.policy-item {
    background: none;
    padding: 0 0 1rem;
    margin-bottom: 1rem;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.policy-item h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.policy-item p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
    padding-left: 1.5rem;
}

.policy-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-bg);
    text-align: right;
}

.policy-footer p {
    color: var(--text-light);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .policy-item {
        padding: 0 0 0.8rem;
    }

    .policy-item h3 {
        font-size: 1rem;
    }

    .policy-footer {
        text-align: center;
    }
}

/* サービス概要画像（最大横幅1100px・中央寄せ） */
.service-overview-image {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 50px;
    padding: 0;
}
.service-overview-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}
@media (max-width: 768px) {
    .service-overview-image { margin-bottom: 32px; }
}

/* ============================================================
   ブログ（/blog, /blog/{slug}）
   ============================================================ */

.blog-body {
    background: #FAF8F5;
}

.blog-main {
    padding-top: 80px;
}

.container-narrow {
    max-width: 760px;
}

/* --- 一覧ヒーロー（blog1.webpの背景 + blog2.webpの人物） --- */
.blog-hero {
    position: relative;
    overflow: hidden;
    background: #DCEFF3;   /* 画像が出るまでの下地 */
    isolation: isolate;
}

/* 背景だけを別レイヤーにして、ここにだけ歪みをかける
   （文字と人物には影響させない） */
.blog-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('/images/blog1.webp');
    background-size: cover;
    background-position: center;

    overflow: hidden;
}

/* --- 右端から広がる波 --- */
.hero-ripple {
    position: absolute;
    top: 50%;
    right: 0;
    width: 0;
    height: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    /* 右辺の中央を中心にする */
    transform: translate(50%, -50%);
    opacity: 0;
    /* transform: scale() で広げると輪の線まで太くなるので、
       大きさそのものを変えて線の太さは2pxのまま保つ */
    animation: hero-ripple 11s linear infinite;
}

.hero-ripple:nth-child(2) { animation-delay: 3.6s; }
.hero-ripple:nth-child(3) { animation-delay: 7.2s; }

@keyframes hero-ripple {
    0%   { width: 0;       height: 0;       opacity: 0; }
    6%   { opacity: 0.7; }
    70%  { opacity: 0.35; }
    100% { width: 3600px;  height: 3600px;  opacity: 0; }
}

.blog-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 380px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(240px, 30vw, 360px);
    align-items: end;
    gap: 24px;
}

/* --- 文字は左寄せ --- */
.blog-hero-text {
    padding: 70px 0 60px;
    align-self: center;
}

.blog-hero-eyebrow {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: #0E7490;
    margin-bottom: 10px;
}

.blog-hero-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 2.4rem;
    margin-bottom: 18px;
    color: #14303A;
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.6);
}

.blog-hero-lead {
    color: #33525C;
    line-height: 2;
    font-size: 0.98rem;
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.55);
}

/* --- 人物は背景の右端に --- */
/* コンテナの左右余白の外に出して、画面の右端にぴったり付ける */
.blog-hero-figure {
    margin: 0;
    position: absolute;
    z-index: 1;
    /* ヒーロー（全幅）が基準。画面の右端にぴったり付ける */
    right: 0;
    top: 0;
    bottom: 0;
    width: clamp(240px, 30vw, 360px);
    line-height: 0;
}

.blog-hero-person {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom right;
    max-width: 100%;

    /* 呼吸しているように、縦だけゆっくり伸び縮みさせる。
       軸が下端なので底は動かず、隙間ができない */
    transform-origin: 50% 100%;
    animation: blog-hero-breathe 5.5s ease-in-out infinite;
    /* will-change: transform は付けない。
       拡大前のサイズでラスタライズされてから引き伸ばされ、画像がにじむため */
}

@keyframes blog-hero-breathe {
    0%, 100% { transform: scaleY(1); }
    45%      { transform: scaleY(1.016); }   /* 吸う：少し長めに */
    100%     { transform: scaleY(1); }       /* 吐く：ゆっくり戻る */
}

/* 画面が広いときは、背景の高さはそのままでキャラだけ大きく。
   はみ出したぶんは下が切れる（頭は上端に残る）＝アップで見える状態 */
@media (min-width: 992px) {
    .blog-hero-inner {
        grid-template-columns: minmax(0, 1fr) clamp(340px, 42vw, 520px);
    }

    .blog-hero-figure {
        width: clamp(340px, 42vw, 520px);
    }

    .blog-hero-person {
        height: 145%;
        object-position: top right;
        /* 呼吸で頭が上に切れないよう、軸を上端にする（伸びるのは下方向） */
        transform-origin: 50% 0%;
    }
}

/* --- 一覧レイアウト --- */
.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 48px;
    align-items: start;
    padding-top: 56px;
    padding-bottom: 90px;
}

.blog-list {
    display: grid;
    gap: 28px;
}

.blog-empty {
    background: #fff;
    border: 1px dashed #E5E0DA;
    border-radius: 16px;
    padding: 60px 24px;
    text-align: center;
    color: #6B6B6B;
}

/* --- 記事カード --- */
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.09);
}

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card-body {
    padding: 26px 30px;
}

.blog-card-date {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: #9A9A9A;
    margin-bottom: 8px;
}

.blog-card-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.22rem;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #2C2C2C;
}

.blog-card:hover .blog-card-title {
    color: #3B82F6;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #6B6B6B;
    line-height: 1.85;
    margin-bottom: 14px;
}

/* --- タグ --- */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-tag {
    display: inline-block;
    padding: 3px 12px;
    background: #F1EEE9;
    border-radius: 999px;
    font-size: 0.75rem;
    color: #6B6B6B;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

a.blog-tag:hover,
.blog-tag.is-active {
    background: #60A5FA;
    color: #fff;
}

.blog-tag.is-clear {
    background: transparent;
    border: 1px solid #E5E0DA;
}

.blog-tag-count {
    margin-left: 6px;
    opacity: 0.6;
    font-size: 0.7rem;
}

/* --- サイドバー --- */
.blog-sidebar {
    display: grid;
    gap: 24px;
    position: sticky;
    top: 100px;
}

.blog-side-block {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.blog-side-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #60A5FA;
}

.blog-side-cta p {
    font-size: 0.87rem;
    color: #6B6B6B;
    line-height: 1.85;
    margin-bottom: 16px;
}

.blog-cta-button {
    display: inline-block;
    padding: 12px 28px;
    background: #60A5FA;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.blog-cta-button:hover {
    background: #3B82F6;
    transform: translateY(-2px);
}

/* --- ページ送り --- */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.blog-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #E5E0DA;
    color: #6B6B6B;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.blog-page-link:hover { border-color: #60A5FA; color: #3B82F6; }
.blog-page-link.is-current { background: #60A5FA; border-color: #60A5FA; color: #fff; }

/* --- 記事詳細 --- */
.blog-preview-bar {
    background: #FFFBEB;
    border-bottom: 2px solid #F59E0B;
    padding: 12px 20px;
    text-align: center;
    font-size: 0.88rem;
    color: #92400E;
}

.blog-preview-bar a { color: #92400E; margin-left: 12px; }

.blog-article-header {
    padding: 50px 0 28px;
}

.blog-breadcrumb {
    font-size: 0.8rem;
    color: #9A9A9A;
    margin-bottom: 18px;
}

.blog-breadcrumb a { color: #9A9A9A; text-decoration: none; }
.blog-breadcrumb a:hover { color: #3B82F6; }
.blog-breadcrumb span { margin: 0 8px; }

.blog-article-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 2rem;
    line-height: 1.55;
    color: #2C2C2C;
    margin-bottom: 16px;
}

.blog-article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    color: #9A9A9A;
    margin-bottom: 16px;
}

.blog-article-reading::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #D4CFC8;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 16px;
}

.blog-article-hero {
    margin: 0 0 40px;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.blog-article-hero img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

/* --- 本文 --- */
.blog-article-body {
    font-size: 1rem;
    line-height: 2.05;
    color: #3A3A3A;
}

.blog-article-body h2 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.45rem;
    margin: 56px 0 20px;
    padding-left: 16px;
    border-left: 5px solid #60A5FA;
    line-height: 1.6;
    color: #2C2C2C;
}

.blog-article-body h3 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.18rem;
    margin: 40px 0 14px;
    color: #2C2C2C;
}

.blog-article-body h4 {
    font-size: 1.02rem;
    margin: 30px 0 12px;
    color: #2C2C2C;
}

.blog-article-body p { margin: 0 0 26px; }

.blog-article-body ul,
.blog-article-body ol {
    margin: 0 0 26px;
    padding-left: 1.6em;
}

.blog-article-body li { margin-bottom: 10px; }

.blog-article-body a {
    color: #2563EB;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-article-body strong {
    font-weight: 700;
    background: linear-gradient(transparent 62%, rgba(52, 211, 153, 0.35) 62%);
}

.blog-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 12px 0;
}

.blog-article-body blockquote {
    margin: 0 0 26px;
    padding: 18px 24px;
    background: #F7F4F0;
    border-left: 4px solid #D4CFC8;
    border-radius: 0 10px 10px 0;
    color: #6B6B6B;
}

.blog-article-body blockquote p:last-child { margin-bottom: 0; }

.blog-article-body code {
    background: #F1EEE9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
    font-family: 'SFMono-Regular', Consolas, monospace;
}

.blog-article-body pre.blog-code {
    background: #2C2C2C;
    color: #F5F2EE;
    padding: 20px 22px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 0 0 26px;
    line-height: 1.7;
}

.blog-article-body pre.blog-code code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: 0.86rem;
}

.blog-article-body hr {
    border: none;
    border-top: 1px solid #E5E0DA;
    margin: 44px 0;
}

.blog-ai-note {
    margin-top: 48px;
    padding: 14px 18px;
    background: #F7F4F0;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #8A8A8A;
    line-height: 1.8;
}

/* --- 記事下CTA・前後リンク --- */
.blog-article-cta {
    margin: 56px 0 48px;
    padding: 36px 32px;
    background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 100%);
    border-radius: 18px;
    text-align: center;
}

.blog-article-cta h2 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.22rem;
    margin-bottom: 10px;
}

.blog-article-cta p {
    font-size: 0.9rem;
    color: #6B6B6B;
    margin-bottom: 22px;
}

.blog-post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

.blog-post-nav-item {
    display: block;
    padding: 18px 20px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease;
}

.blog-post-nav-item:hover { transform: translateY(-2px); }
.blog-post-nav-item.is-next { text-align: right; grid-column: 2; }

.blog-post-nav-label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    color: #9A9A9A;
    margin-bottom: 6px;
}

.blog-post-nav-title {
    display: block;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #2C2C2C;
}

.blog-back {
    text-align: center;
    padding-bottom: 80px;
}

.blog-back a {
    color: #6B6B6B;
    text-decoration: none;
    font-size: 0.9rem;
}

.blog-back a:hover { color: #3B82F6; }

/* --- レスポンシブ --- */
@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .blog-sidebar { position: static; }
}

@media (max-width: 768px) {
    .blog-hero-inner {
        min-height: 280px;
        grid-template-columns: minmax(0, 1fr) 38%;
        gap: 8px;
    }
    .blog-hero-text { padding: 40px 0 34px; }
    .blog-hero-title { font-size: 1.7rem; }
    .blog-hero-figure { width: 42%; }
    .blog-layout { padding-top: 36px; }
    .blog-card-body { padding: 20px; }
    .blog-card-title { font-size: 1.08rem; }
    .blog-article-title { font-size: 1.5rem; }
    .blog-article-body { font-size: 0.96rem; line-height: 1.95; }
    .blog-article-body h2 { font-size: 1.22rem; margin: 40px 0 16px; }
    .blog-article-cta { padding: 28px 20px; }
    .blog-post-nav { grid-template-columns: 1fr; }
    .blog-post-nav-item.is-next { grid-column: 1; text-align: left; }
}

/* ============================================================
   フローティングボタン（左下:お問い合わせ / 右下:ブログ）
   ============================================================ */

.fab-layer {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 9000;
    pointer-events: none;
    padding: 0 22px calc(22px + env(safe-area-inset-bottom, 0px));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.fab {
    pointer-events: auto;
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.25s ease;
}

/* 円の中のアイコンと文字 */
.fab-icon {
    width: 30px;
    height: 30px;
    display: block;
    transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.fab-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1;
    color: currentColor;
}

.fab:hover {
    transform: translateY(-5px) scale(1.06);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.fab:focus-visible {
    outline: 3px solid #2C2C2C;
    outline-offset: 3px;
}

/* --- 左下：お問い合わせ（紙飛行機） --- */
.fab-contact {
    background: #34D399;
    color: #fff;
}

.fab-contact:hover .fab-icon {
    transform: translate(3px, -3px) rotate(-8deg);
}

/* --- 右下：ブログ（blogicon.webp） --- */
/* アイコン自体が青い円なので、背景も枠も付けない */
.fab-blog {
    background: transparent;
}

.fab-blog-img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.fab-blog:hover .fab-blog-img {
    transform: rotate(6deg) scale(1.06);
}

/* --- クリック：少し傾きながら大きくなって移動する --- */
.fab-blog.is-leaving .fab-blog-img {
    transform: rotate(14deg) scale(1.18);
    transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}

/* ヒーローの人物：動きを減らす設定の人には揺らさない */
@media (prefers-reduced-motion: reduce) {
    .blog-hero-person { animation: none; }
    .hero-ripple { animation: none; opacity: 0; }
}

/* --- 動きを減らす設定の人には出さない --- */
@media (prefers-reduced-motion: reduce) {
    .fab-blog-img { transition: none; }
    .fab { transition: none; }
}

/* --- スマホ --- */
@media (max-width: 768px) {
    .fab-layer { padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
    .fab { width: 72px; height: 72px; }
    .fab-icon { width: 26px; height: 26px; }
    .fab-text { font-size: 0.54rem; }
}


/* アンカーで飛んだとき、固定ヘッダーに隠れないようにする */
section[id],
div[id],
#contact,
#about,
#services,
#works {
    scroll-margin-top: 80px;
}

/* ============================================================
   画像の保存をしにくくする（完全には防げないが、うっかり保存は減らせる）
   ============================================================ */

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    /* iOSの長押しで「画像を保存」メニューが出るのを抑える */
    -webkit-touch-callout: none;
}

/* --- この記事のポイント --- */
.blog-points {
    margin: 0 0 44px;
    padding: 26px 30px;
    background: #fff;
    border-radius: 16px;
    border-left: 5px solid #34D399;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

.blog-points-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.02rem;
    margin-bottom: 14px;
    color: #2C2C2C;
}

.blog-points-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.blog-points-list li {
    position: relative;
    padding-left: 26px;
    font-size: 0.93rem;
    line-height: 1.8;
    color: #3A3A3A;
}

.blog-points-list li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0.72em;
    width: 8px;
    height: 8px;
    background: #34D399;
    border-radius: 50%;
}

/* --- 共有ボタン --- */
.blog-share {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #E5E0DA;
}

.blog-share-label {
    font-size: 0.82rem;
    color: #9A9A9A;
}

.blog-share-x {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: #2C2C2C;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.2s ease, background 0.2s ease;
}

.blog-share-x:hover {
    background: #000;
    transform: translateY(-2px);
}

.blog-share-x svg {
    width: 15px;
    height: 15px;
}

@media (max-width: 768px) {
    .blog-points { padding: 20px 22px; margin-bottom: 32px; }
    .blog-points-list li { font-size: 0.88rem; }
}

/* ============================================================
   お問い合わせモーダル（左下のフローティングボタンから開く）
   ============================================================ */

body.cm-open { overflow: hidden; }

/* hidden属性より .cm-overlay{display:flex} のほうが強いため、
   閉じた後も透明なまま画面を覆い、クリックを奪ってしまう。明示的に消す */
.cm-overlay[hidden] {
    display: none !important;
}

.cm-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(20, 48, 58, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    overflow-y: auto;
}

.cm-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.cm-panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 20px;
    padding: 38px 38px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
    max-height: 100%;
    overflow-y: auto;
}

.cm-overlay.is-visible .cm-panel { transform: translateY(0) scale(1); }

.cm-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #9A9A9A;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.cm-close:hover { background: #F1EEE9; color: #2C2C2C; }

.cm-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #2C2C2C;
}

.cm-lead {
    font-size: 0.86rem;
    color: #6B6B6B;
    line-height: 1.8;
    margin-bottom: 22px;
}

.cm-alert {
    margin: 0 0 16px;
    padding: 11px 15px;
    background: #FEF2F2;
    border-left: 4px solid #F87171;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #B91C1C;
    line-height: 1.7;
}

.cm-field { display: block; margin-bottom: 16px; }

.cm-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6B6B6B;
}

.cm-label em {
    font-style: normal;
    margin-left: 6px;
    font-size: 0.7rem;
    color: #F87171;
}

.cm-field input,
.cm-field select,
.cm-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #E5E0DA;
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 0.92rem;
    color: #2C2C2C;
    box-sizing: border-box;
}

.cm-field textarea { resize: vertical; line-height: 1.8; }

.cm-field input:focus,
.cm-field select:focus,
.cm-field textarea:focus {
    outline: none;
    border-color: #34D399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}

/* ボット対策の隠しフィールド */
.cm-honey {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cm-submit {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 999px;
    background: #34D399;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cm-submit:hover:not(:disabled) { background: #10B981; transform: translateY(-2px); }
.cm-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.cm-note {
    margin: 14px 0 0;
    font-size: 0.74rem;
    color: #9A9A9A;
    text-align: center;
    line-height: 1.7;
}

/* --- 送信完了 --- */
.cm-done { text-align: center; padding: 20px 0 8px; }

.cm-done-mark {
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #D1FAE5;
    position: relative;
}

.cm-done-mark::after {
    content: '';
    position: absolute;
    left: 21px;
    top: 16px;
    width: 14px;
    height: 26px;
    border-right: 4px solid #10B981;
    border-bottom: 4px solid #10B981;
    transform: rotate(45deg);
}

.cm-done h3 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2C2C2C;
}

.cm-done p {
    font-size: 0.88rem;
    color: #6B6B6B;
    line-height: 1.9;
    margin-bottom: 26px;
}

@media (max-width: 768px) {
    .cm-overlay { padding: 16px 12px; align-items: flex-start; }
    .cm-panel { padding: 30px 22px 26px; border-radius: 16px; }
    .cm-title { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .cm-overlay, .cm-panel { transition: none; }
}
