/* ------------------------------
   top.css（index.html 専用スタイル）
------------------------------ */

/* =========================================
   1. メインビジュアル (Hero Slider)
   ========================================= */
#hero-slider {
    position: relative;
    width: 100%;
    /* PCでは画面の85%の高さ */
    height: 85vh; 
    min-height: 500px;
    background: #000;
    overflow: hidden;
    margin-bottom: 0;
}

/* Swiper本体のサイズ */
.swiper.heroSwiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
}

/* 画像設定 */
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画面いっぱいに広げる */
    object-position: center;
    /* ズームアニメーションの準備 */
    transform: scale(1.0);
    transition: transform 6s ease; 
}

/* アクティブ時のズーム演出 */
.swiper-slide-active img {
    transform: scale(1.1);
}

/* 画像上の暗幕（文字を見やすくする） */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* タイトル・文字 */
.hero-content {
    position: absolute;
    bottom: 50px;
    left: 40px;
    z-index: 10;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
    pointer-events: none;
}

.page-title-hero {
    font-family: 'Zen Antique', serif;
    font-size: 4rem;
    margin: 0;
    line-height: 1;
    color: #fff;
}

.hero-sub {
    font-size: 1.2rem;
    margin-top: 10px;
    color: #ffd700;
    letter-spacing: 0.1em;
    font-family: sans-serif;
}

/* プログレスバー（下の動く棒） */
.swiper-pagination-progressbar {
    background: rgba(255,255,255,0.2) !important;
    height: 4px !important;
    bottom: 0 !important;
    top: auto !important;
}
.swiper-pagination-progressbar-fill {
    background: #333 !important;
}

/* スマホ対応 */
@media (max-width: 768px) {
    #hero-slider {
        height: 60vh; /* スマホは画面の60% */
        min-height: 300px;
    }
    .page-title-hero {
        font-size: 2.5rem;
    }
    .hero-content {
        bottom: 20px;
        left: 20px;
    }
}


/* =========================================
   2. 自己紹介エリア (Intro)
   ========================================= */
.outer-info-block {
    width: 100%;
    background-color: #f4f4f4;
    box-sizing: border-box; 
    padding: 60px 20px;
    overflow: hidden;
}

.inner-info-block {
    background-color: #fff;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    padding: 50px 40px;
    border-radius: 4px;
    border: 1px solid #dcdcdc;
    border-top: 5px solid #333;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
    margin: 0 auto;
}

.intro-title {
    font-family: 'Zen Antique', serif;
    font-size: 28px;
    color: #333;
    margin-bottom: 25px;
    letter-spacing: 0.05em;
}

.intro-lead {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.8;
    color: #000;
}

.intro-text {
    font-size: 15px;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* ボタンエリア */
.intro-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

/* ボタン共通 */
.btn-action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 260px;
    padding: 14px 0;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-main-text {
    font-size: 16px;
    font-weight: bold;
}
.btn-sub-text {
    font-size: 11px;
    font-weight: normal;
    opacity: 0.9;
}

/* Contactボタン（赤） */
.btn-contact {
    background: #FBFBFB;
    color: #333;
    border: 2px solid #B90003;
}
.btn-contact:hover {
    background: #fff;
    color: #B90003;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(185, 0, 3, 0.2);
}

/* つなぐボタン（青） */
.btn-tsunagu {
    background: #FBFBFB;
    color: #333;
    border: 2px solid #0099e5;
}
.btn-tsunagu:hover {
    background: #fff;
    color: #0099e5;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 153, 229, 0.2);
}

.intro-note {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

/* スマホ用（縦並び） */
@media (max-width: 600px) {
    .intro-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-action {
        width: 100%;
        max-width: 280px;
    }

    .inner-info-block {
        padding: 30px 20px;
    }
    .sp-only { display: block; }
}


/* =========================================
   3. DevLogボタンエリア
   ========================================= */
.devlog-section {
    width: 100%;
    background-color: #f4f4f4; /* 背景色はouter-info-blockと同じ */
    box-sizing: border-box;
    padding: 0 20px 60px 20px; /* 下に余白 */
    overflow: hidden;
}

.devlog-inner {
    background-color: #fff;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    /* 自己紹介エリアより少しコンパクトに */
    padding: 30px 40px;
    border-radius: 4px;
    border: 1px solid #dcdcdc;
    /* アクセントカラーを黄色(金)系に変更して区別 */
    border-top: 5px solid #ffd700; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    
    /* フレックス配置（横並び） */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

.devlog-text h3 {
    margin: 0 0 5px 0;
    font-family: 'Zen Antique', serif;
    font-size: 20px;
    color: #333; /* 黒文字に変更 */
    letter-spacing: 0.05em;
}

.devlog-text p {
    margin: 0;
    font-size: 13px;
    color: #666; /* グレー文字に変更 */
    font-family: sans-serif;
}

/* DevLogボタン（自己紹介エリアのボタンデザインを踏襲） */
.btn-devlog {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    
    width: 200px; /* 少し小さめ */
    padding: 12px 0;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    
    /* 金色系デザイン */
    background: #FBFBFB;
    color: #333;
    border: 2px solid #ffd700;
}

.btn-devlog .icon {
    font-size: 1.2em;
    color: #ffd700; /* アイコンを金色に */
}

.btn-devlog:hover {
    background: #fff;
    color: #b8860b; /* ホバー時は少し濃い金色文字 */
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 215, 0, 0.3);
}

/* スマホ用レスポンシブ */
@media (max-width: 600px) {
    .devlog-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .btn-devlog {
        width: 100%;
        max-width: 280px;
    }
}

/* =========================================
   4. お知らせ (News)
   ========================================= */
#news {
    width: 100%;
    background-color: #f4f4f4; /* 背景色は統一 */
    box-sizing: border-box;
    padding: 0 20px 60px 20px; /* 下に余白 */
    overflow: hidden;
    border: none; /* 既存のボーダー削除 */
}

.news-inner {
    background-color: #fff;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    /* 自己紹介エリアと同じ余白感 */
    padding: 40px;
    border-radius: 4px;
    border: 1px solid #dcdcdc;
    /* アクセントカラー：シックな黒(#333)または青(#0099e5)で引き締める */
    border-top: 5px solid #333; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin: 0 auto;
}

/* 見出し（Introなどと統一） */
.news-inner h3 {
    text-align: center;
    font-family: 'Zen Antique', serif;
    font-size: 26px;
    color: #333;
    margin: 0 0 30px 0;
    padding: 0;
    background: none; /* 黒背景廃止 */
    letter-spacing: 0.05em;
}

/* 記事ブロックのスタイル */
.news-item {
    display: flex;
    flex-direction: column; /* スマホファーストで縦並び */
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* 日付 */
.news-date {
    font-family: 'Zen Antique', serif;
    font-weight: bold;
    color: #B90003; /* ブランドカラーの赤でポイント */
    margin-bottom: 8px;
    font-size: 14px;
}

/* 記事中身 */
.news-content {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

.news-title {
    font-weight: bold;
    margin: 0 0 5px 0;
    font-size: 15px;
    color: #333;
}

/* リスト調整 */
.styled-list {
    margin: 0;
    padding-left: 1.2em;
    font-size: 13px;
    color: #666;
}
.styled-list li {
    margin-bottom: 4px;
}


/* PC用レイアウト調整（日付を左に配置） */
@media (min-width: 600px) {
    .news-item {
        flex-direction: row;
        align-items: flex-start;
    }
    .news-date {
        width: 120px; /* 日付の幅固定 */
        flex-shrink: 0;
        margin-bottom: 0;
        padding-top: 2px; /* 微調整 */
    }
}

@media (max-width: 500px) {
    .news-inner {
        padding: 30px 20px;
    }
}

/* =========================================
   5. バナーエリア (Link Banners)
   ========================================= */
.outer-banner-block {
    width: 100%;
    background-color: #f4f4f4; /* 背景色は統一 */
    box-sizing: border-box;
    padding: 0 20px 60px 20px; /* 下に余白 */
    overflow: hidden;
}

.inner-banner-block {
    background-color: #fff;
    max-width: 1200px; /* バナーが4つ並ぶので少し広めに */
    width: 100%;
    box-sizing: border-box;
    padding: 40px;
    border-radius: 4px;
    border: 1px solid #dcdcdc;
    /* アクセントカラー：リンクをイメージする青(#0099e5) */
    border-top: 5px solid #0099e5; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin: 0 auto;
    text-align: center;
}

/* 見出し */
.inner-banner-block h3 {
    font-family: 'Zen Antique', serif;
    font-size: 24px;
    color: #333;
    margin: 0 0 30px 0;
    letter-spacing: 0.05em;
}

/* バナーを並べるグリッド */
.banner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PCで4枚並び */
    gap: 20px;
    width: 100%;
}

.banner-grid .banner {
    width: 100%;
    height: auto;
    border-radius: 8px; /* 角丸を少し控えめに */
    border: 1px solid #eee; /* 薄い枠線を追加して境界をはっきり */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: #fff; /* 画像ロード前の背景 */
}

.banner-grid .banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,153,229,0.15); /* 青系の影でホバー演出 */
}

/* タブレット（768px以下）：2列 */
@media screen and (max-width: 768px) {
    .inner-banner-block {
        padding: 30px 20px; /* スマホでの余白調整 */
    }
    .banner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* スマホ（480px以下）：1列 */
@media screen and (max-width: 480px) {
    .banner-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* =========================================
   7. 送信完了・失敗ページ用パーツ
   （旧 notification.css から統合）
   ========================================= */

/* 連絡先ブロック（青枠） */
.error-contact-box {
    display: inline-block;
    margin: 1.6em auto 1.8em;
    padding: 14px 18px;
    background: #f4f8ff;
    border: 1px solid #c8d9f0;
    border-radius: 10px;
    text-align: center;
}

.error-contact-label {
    display: block;
    font-size: 0.75rem;
    color: #3b5ea8;
    margin-bottom: 4px;
}

.error-contact-mail {
    display: block;
    font-weight: bold;
    font-size: 1.05rem;
    color: #2f4f9f;
    letter-spacing: 0.03em;
}

/* ====================================
   ヒーロースライダー上のテキスト装飾（タイトルのみ）
   ==================================== */
.hero-text-area {
  position: absolute;
  bottom: 50px;       /* 下からの位置 */
  right: 4%;          /* 右からの位置 */
  z-index: 10;        /* 画像より手前に表示 */
  color: #fff;        /* 白文字 */
  text-align: right;  /* 右揃え */
  text-shadow: 0 0 8px rgba(0,0,0,0.6); /* 文字が見やすいように影をつける */
  pointer-events: none; /* 文字の上でもクリック（スワイプ）を通す */
  width: 90%;
}

/* タイトル（かっこよく小さく） */
.hero-text-title {
  font-family: 'Zen Antique', serif; /* 和風ファンタジーなフォント */
  font-size: 1.1rem;  /* 主張しすぎない小さなサイズ */
  font-weight: normal;
  letter-spacing: 0.15em; /* 文字間隔を広げて「余白の美」を出す */
  margin: 0;
  line-height: 1.4;
  opacity: 0.95;      /* 完全に真っ白より少しだけ馴染ませる */
}

/* スマホ表示時の調整 */
@media screen and (max-width: 768px) {
  .hero-text-area {
    bottom: 15px;
    right: 20px;
  }
  .hero-text-title {
    font-size: 0.9rem; /* スマホではさらに控えめに */
  }
}
/* ====================================
   スライドショーのリンク設定（新規追加）
   ==================================== */
.hero-slide-link {
  display: block;       /* ブロック要素にして */
  width: 100%;          /* 横幅いっぱいに */
  height: 100%;         /* 縦幅いっぱいに広げる */
  text-decoration: none; /* リンクの下線を消す */
  cursor: pointer;      /* クリックできるカーソルにする */
}

/* ====================================
   スライドショー専用ローディング
   ==================================== */
.hero-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000; /* スライドショーに合わせて黒背景 */
  z-index: 20;      /* 画像より手前、テキストより手前 */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease; /* じんわり消える */
}

/* 読み込み完了後に消す */
.hero-loader.loaded {
  opacity: 0;
  pointer-events: none;
}

/* スピナーの色を白に変更（top.css専用の上書き） */
.hero-loader .spinner {
  border: 4px solid rgba(255,255,255,0.2);
  border-top: 4px solid #fff; /* 白い回転 */
  width: 40px;
  height: 40px;
}