:root {
    --bg-white: #ffffff;
    --text-black: #333333;
    --accent-blue: #5e97ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-white);
    color: var(--text-black);
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
    line-height: 1.6;
}

/* --- Header 修正版 --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    /* 上下の幅を広げました（15px → 30px） */
    padding: 30px 25px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { 
    font-weight: bold; 
    font-size: 1.4rem; 
    letter-spacing: 1px;
    color: var(--text-black);
}

.desktop-nav ul { 
    display: flex; 
    list-style: none; 
    gap: 30px; 
}

.desktop-nav a { 
    font-family: 'Noto Serif JP', serif; /* 【変更】メニューを明朝体に */
    text-decoration: none; 
    color: var(--text-black); 
    font-size: 0.95rem; 
    font-weight: 600; 
    /* ふわっと変わるための設定 */
    transition: color 0.4s ease, transform 0.3s ease;
    display: inline-block;
}

/* ホーム：赤 */
.desktop-nav a.nav-home:hover { 
    color: #ff5e5e; 
    transform: translateY(-2px); 
    --hover-color: #ff5e5e; /* ストーカーに渡す色 */
}

/* こらそんについて：青 */
.desktop-nav a.nav-about:hover { 
    color: #5e97ff; 
    transform: translateY(-2px); 
    --hover-color: #5e97ff; 
}

/* 事業内容（およびドロップダウン）：黄 */
.desktop-nav a.nav-service:hover,
.dropdown a:hover { 
    color: #ffb800 !important; 
    transform: translateY(-2px); 
    --hover-color: #ffb800; 
}

/* 情報提供：緑 */
.desktop-nav a.nav-info:hover { 
    color: #77dd77; 
    transform: translateY(-2px); 
    --hover-color: #77dd77; 
}

/* お問い合わせ：紫 */
.desktop-nav a.nav-contact:hover { 
    color: #b39ddb; 
    transform: translateY(-2px); 
    --hover-color: #b39ddb; 
}

.logo { font-family: 'Noto Serif JP', serif; font-weight: bold; font-size: 1.2rem; letter-spacing: 1px; }
.desktop-nav ul { display: flex; list-style: none; gap: 25px; }
.desktop-nav a { font-family: 'Noto Serif JP', serif; /* 【変更】メニューを明朝体に */ text-decoration: none; color: var(--text-black); font-size: 0.9rem; font-weight: bold; }

/* --- ヒーローヘッダー 修正版 --- */
#scrolling-logo {
    /* 物語を完結させるため、高さを少し高く設定（400vh -> 500vh） */
    height: 500vh; 
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff; /* 背景画像の土台 */
}

/* 1. 最背面：図形エリア */
.canvas-area {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1; /* 最下層 */
}

/* 粒子スタイル（変更なし） */
.particle {
    position: absolute;
    opacity: 0;
    /* transitionなどはJSで制御するため不要 */
}

/* --- style.css 修正箇所 --- */

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    /* イラストを中央に配置するための設定 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-background-image img {
    /* 【修正】画面一杯ではなく、要素内に収める設定に変更 */
    width: 85%;            /* 画面の85%程度の幅に抑える（お好みで調整してください） */
    max-width: 1000px;     /* PCで見ても大きすぎないよう最大幅を制限 */
    height: auto;
    object-fit: contain;   /* 比率を保って収める */
    
    /* 浮き上がって見えるような軽いシャドウ（必要なければ削除してください） */
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.03));
}

/* 3. 前面：中央のハートロゴ */
.final-heart-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 3; /* 背景画像(2)の上、テキスト(4)の下 */
    opacity: 0;
    pointer-events: none;
}

.final-heart-wrapper img {
    width: 420px;
    height: auto;
    display: block;
}

/* 4. 最前面：テキスト */
.center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4; /* 最前面 */
    text-align: center;
    width: 100%;
    pointer-events: none;
}

/* ヒーローヘッダーの中央テキスト */
.main-copy {
    /* 【修正】フォントファミリーを明朝体に */
    font-family: 'Noto Serif JP', serif;
    
    /* 明朝体に合わせて太さとデザインを微調整 */
    font-size: clamp(2.0rem, 6vw, 3.0rem); /* 少し大きく調整 */
    font-weight: 700;                     /* しっかりとした太さに */
    letter-spacing: 0.33em;                /* 明朝体は余白が美しいので、字間を少し広げます */
    line-height: 1.5;
    color: var(--text-black);
}

/* ... (略) ... */

.content-section {
    position: relative;
    z-index: 10;
    padding: 120px 20px;
    background: #fff;
}

.inner { max-width: 750px; margin: 0 auto; text-align: center; }

/* --- 共通セクション設定 --- */
.section-padding {
    padding: 120px 20px;
}

.bg-light { background-color: #f9fbff; }

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* --- style.css --- */

.sub-title {
    font-size: 0.9rem;
    color: #ff5e5e; /* 【修正】青から赤に変更 */
    font-weight: bold;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 10px;
}

.main-title {
    font-size: 2.2rem;
    font-weight: 800;
}

/* --- Section 1: About --- */
.about-flex {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    position: relative;
    z-index: 2;
}

.image-deco {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background-color: #ff5e5e;
    border-radius: 50%;
    z-index: 1;
}

.about-text { flex: 1; }
.about-text h3 { margin-bottom: 15px; font-size: 1.4rem; color: #333; }
.about-text p { margin-bottom: 30px; color: #666; }

.btn-more {
    display: inline-block;
    padding: 15px 40px;
    background: #ff5e5e;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s, background 0.3s;
}

.btn-more:hover {
    border-color: #ff5e5e;
    transform: translateY(-3px);
}

/* --- Section 2: News --- */
.news-list {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.news-item a {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

.news-item a:hover { background: #fdfdfd; }
.news-item time { width: 120px; font-weight: bold; color: #999; }
.category {
    padding: 4px 12px;
    font-size: 0.75rem;
    border-radius: 4px;
    margin-right: 20px;
    color: #fff;
}

.tag-info { background: #5e97ff; }
.tag-event { background: #ff5e5e; }
.tag-report { background: #77dd77; }

.news-title { font-weight: 500; flex: 1; }

.btn-outline {
    display: inline-block;
    padding: 12px 35px;
    border: 2px solid #ddd;
    border-radius: 50px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s;
}

.btn-outline:hover {
    border-color: #ff5e5e;
    color: #ff5e5e;
}

/* --- アニメーション用クラス --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.mt-40 { margin-top: 40px; }
.text-center { text-align: center; }

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

.service-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.service-card:hover { transform: translateY(-10px); }

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content { padding: 25px; }

.service-tag {
    font-size: 1rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
    padding: 2px 8px;
    border-radius: 4px;
}
.color-red { background: rgba(255, 94, 94, 0.1); color: #ff5e5e; }
.color-blue { background: rgba(94, 151, 255, 0.1); color: #5e97ff; }
.color-yellow { background: rgba(255, 184, 0, 0.1); color: #ffb800; }

.card-content h3 { font-size: 1.5rem; margin-bottom: 15px; }
.card-content p { font-size: 0.9rem; color: #666; margin-bottom: 20px; }

.link-arrow {
    font-weight: bold;
    color: #ff5e5e;
    text-decoration: none;
    font-size: 0.9rem;
}

/* --- Section 4: Documents --- */
.doc-banner {
    background: linear-gradient(135deg, #5e97ff, #b39ddb);
    border-radius: 20px;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.doc-banner-text h3 { font-size: 1.8rem; margin-bottom: 10px; }

.btn-doc {
    background: #fff;
    color: #ff5e5e;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
.btn-doc:hover { transform: scale(1.05); }

/* --- SP表示への最適化 (Responsive) --- */
@media (max-width: 1024px) {
    .header-inner { padding: 20px; }
    .desktop-nav ul { gap: 15px; }
    .desktop-nav a { font-size: 0.8rem; }
    .main-copy { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .section-padding { padding: 80px 20px; }
    
    /* ヒーローエリア */
    .final-heart-wrapper img { width: 300px; }
    .main-copy { font-size: 1.5rem; }

    /* Aboutセクション */
    .about-flex { flex-direction: column; gap: 40px; }
    .about-image { order: 2; }
    .about-text { order: 1; text-align: center; }

    /* お知らせセクション */
    .news-item a { flex-direction: column; align-items: flex-start; }
    .news-item time { margin-bottom: 5px; }
    .category { margin-bottom: 10px; }

    /* 事業内容セクション */
    .service-grid { grid-template-columns: 1fr; }
    
    /* 掲載資料セクション */
    .doc-banner { flex-direction: column; text-align: center; gap: 30px; padding: 40px 20px; }
    .doc-banner-text h3 { font-size: 1.4rem; }
}

/* --- ハンバーガーメニュー --- */
.hamburger {
    display: none; /* PCでは非表示 */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2000;
    width: 30px;
    height: 24px;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-black);
    position: absolute;
    transition: 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { bottom: 0; }

/* オープン時の形状変化 */
.hamburger.is-active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* SP用スライドメニュー */
.sp-nav {
    position: fixed;
    top: 0;
    right: -100%; /* 最初は画面外 */
    width: 80%;
    height: 100vh;
    background: #fff;
    z-index: 1500;
    padding: 100px 40px;
    transition: 0.5s;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.sp-nav.is-active { right: 0; }

.sp-nav ul { list-style: none; }
.sp-nav li { margin-bottom: 25px; }
.sp-nav a {
    font-family: 'Noto Serif JP', serif; /* 【変更】メニューを明朝体に */
    text-decoration: none;
    color: var(--text-black);
    font-size: 1.2rem;
    font-weight: bold;
}

/* --- お問い合わせセクション --- */
.contact-lead { margin-top: 15px; color: #666; }

.contact-cta-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.cta-card {
    background: #fff;
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-icon { font-size: 2.5rem; margin-bottom: 20px; }
.cta-card h3 { margin-bottom: 15px; }
.cta-card p { margin-bottom: 20px; } /* 文章の下に余白を作る */
.tel-number { font-size: 2rem; font-weight: 800; color: var(--accent-blue); margin-bottom: 5px; }
.tel-time { font-size: 0.8rem; color: #999; margin-bottom: 25px; }

.btn-cta {
    display: inline-block;
    padding: 15px 50px;
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: 0.3s;
    margin-top: auto;
}

.tel-btn { background: var(--accent-blue); }
.mail-btn { background: #b39ddb; } /* ロゴの紫色 */
.btn-cta:hover { transform: translateY(-3px); opacity: 0.9; }

/* --- レスポンシブ追加 --- */
@media (max-width: 768px) {
    .desktop-nav { display: none; } /* PCメニュー隠す */
    .hamburger { display: block; }  /* ハンバーガー出す */
    
    .contact-cta-wrap { grid-template-columns: 1fr; }
    .tel-number { font-size: 1.5rem; }
}

/* --- Footer --- */
.footer {
    background: #f8f9fa;
    padding-top: 80px;
    border-top: 1px solid #eee;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    padding-bottom: 60px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-address {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-nav {
    display: flex;
    gap: 80px;
}

.footer-nav-group h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    position: relative;
}

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

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

.footer-nav-group a {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-nav-group a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    background: #fff;
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid #eee;
}

.copyright {
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 0.05em;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        gap: 40px;
    }
    .footer-nav {
        gap: 40px;
        flex-wrap: wrap;
    }
}

/* --- style.css (修正版：最下部に追加) --- */

/* 1. 全体でデフォルトのカーソルを完全に非表示に */
html, body, a, button, input, select, textarea, [role="button"] {
    cursor: none !important;
}

/* --- style.css (マウスストーカー部分の修正) --- */

/* ストーカーの基本スタイル */
.cursor-follower {
    position: fixed;
    width: 20px;       /* 通常時は少し小さめに (直径20px) */
    height: 20px;
    background-color: #ff5e5e; 
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    /* 変化のスピードを少し速めてキレを出す */
    transition: width 0.2s ease-out, height 0.2s ease-out, background-color 0.2s ease-out, border 0.2s ease-out;
    opacity: 0.9;
    will-change: transform;
}

.cursor-follower.is-hover {
    width: 40px;
    height: 40px;
    background-color: transparent;
    /* 【修正】特定の青ではなく、変数で色を受け取るようにします */
    border: 2px solid var(--hover-color, #ff5e5e); 
    opacity: 1;
}

/* style.css */
html {
    /* 【重要】JSで制御するため、標準のスムーズスクロールは削除または auto に設定 */
    scroll-behavior: auto !important;
}

/* アンカーリンクの停止位置微調整（念のため） */
:target {
    scroll-margin-top: 100px;
}

/* --- style.css に追加・修正 --- */

/* 親リストの配置設定 */
.desktop-nav ul li {
    position: relative; /* サブメニューの基準位置 */
}

/* --- style.css サブメニュー修正版 --- */

/* --- PC版: ドロップダウンを横並びに --- */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    
    /* 【重要】横並びにするための設定 */
    display: flex; 
    gap: 10px;
    padding: 15px;
    
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border-radius: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1001;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.dropdown li {
    white-space: nowrap; /* 改行を防いで横一列を保つ */
}

/* (略) ... ドロップダウンの基本設定の後 ... */

.dropdown a {
    font-family: 'Noto Serif JP', serif; /* 【変更】メニューを明朝体に */
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
    border-radius: 8px;
    background: transparent;
    /* transitionを0.4sに合わせるとメインメニューと同期します */
    transition: all 0.4s ease !important; 
    display: inline-block;
}

/* 【修正箇所】ホバー色を事業内容と同じ黄色(#ffb800)に変更 */
.dropdown a:hover {
    background: rgba(255, 184, 0, 0.1) !important; /* 背景に薄い黄色 */
    color: #ffb800 !important;                    /* 文字を事業内容の黄色に */
    transform: translateY(-2px);                  /* メインメニューと同じ浮遊感 */
}

/* --- スマホ版: メニュー内の最適化 --- */
@media (max-width: 768px) {
    .sp-menu-label {
        font-family: 'Noto Serif JP', serif; /* 【変更】メニューを明朝体に */
        display: block;
        font-size: 0.8rem;
        color: #999;
        margin-top: 15px;
        margin-bottom: 5px;
    }

    .sp-dropdown {
        list-style: none;
        padding-left: 20px;
        border-left: 2px solid #f0f0f0;
        margin-bottom: 20px;
    }

    .sp-dropdown li {
        margin-bottom: 15px;
    }

    .sp-dropdown a {
        font-family: 'Noto Serif JP', serif; /* 【変更】メニューを明朝体に */
        font-size: 1.1rem !important;
        font-weight: 500 !important;
        color: var(--text-black);
    }
}

/* --- style.css の末尾に追加 --- */

@media (max-width: 768px) {
    /* スマホ表示時のみアニメーションエリアの距離を伸ばし、
       体感のスクロール速度を遅く（滑らかに）する */
    #scrolling-logo {
        height: 900vh; /* 既存の500vhから増やして、ゆっくり見せます */
    }
}