/*!
Theme Name: takase-ds
Description: 高瀬自動車学校用カスタムテーマ
Version: 1.0
*/

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

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

h1, h2, h3 {
  font-weight: 700;
  margin: 0 0 0.5em;
}

/* 変更箇所 start */
a {
  color: #001f4d; /* 濃いめ紺に変更 */
  text-decoration: none;
}

a:hover {
  color: #159243; /* ホバー時は元の緑色 */
  opacity: 0.8;
}
/* 変更箇所 end */

/*--------------------------------------------------------------
# Header (修正版)
--------------------------------------------------------------*/

/* ヘッダー基本 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff; /* 白不透明 */
    z-index: 10000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* 少し影を入れると見やすい */
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ロゴ右余白 */
.site-branding {
    margin-right: 1rem;
}

/* メニュー全体 */
.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.main-navigation li {
    position: relative;
}
.main-navigation a {
    text-decoration: none;
    display: block;
    padding: 10px 15px;
}

/* サブメニュー（共通） */
.sub-menu {
    display: none;
    position: absolute;
    background-color: #002244;
    min-width: 180px;
    z-index: 9999;
}
.sub-menu li a {
    color: #fff;
}
.sub-menu li a:hover {
    background-color: #003366;
}

/* ハンバーガーボタン */
.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

/* PC表示 */
@media (min-width: 768px) {
    #primary-menu {
        display: flex;
        flex-wrap: nowrap;
        gap: 0;
    }

    #primary-menu li {
        white-space: nowrap;
        margin-right: 20px;
    }

    #primary-menu li:last-child {
        margin-right: 0;
    }

    #primary-menu li:hover > .sub-menu {
        display: block;
    }
}

/* スマホ表示 */
@media (max-width: 767px) {
    .menu-toggle {
        display: block !important;
    }

    #primary-menu {
        display: none !important;
        flex-direction: column !important;
        background: white !important;
        border: 1px solid #ddd !important;
        position: absolute !important;
        top: 60px !important;
        right: 0 !important;
        width: 200px !important;
        z-index: 9999 !important;
    }

    #primary-menu.is-open {
        display: block !important;
    }

    /* サブメニューはスマホでは相対配置＆幅100%に */
    #primary-menu .sub-menu {
        display: none !important;
        position: static !important;
        background-color: #002244 !important;
        min-width: auto !important;
        width: 100% !important;
        z-index: auto !important;
    }

    #primary-menu .sub-menu.is-open {
        display: block !important;
    }

    /* sub-open が付いたら表示（強制） */
    #primary-menu .sub-open > .sub-menu {
        display: block !important;
    }
	
	#site-navigation,
    .site-header {
        position: relative;
        z-index: 9999 !important;
    }
	
	#primary-menu .menu-item-has-children > a {
        position: relative !important;
        z-index: 10000 !important;
        pointer-events: auto !important;
    }
}

/* ============================
   Hero Slider
============================ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh; /* 画面全体 */
  overflow: hidden;
}

.hero-slider .slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider .slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-caption, 
.scroll-indicator {
  padding-top: 60px; /* ヘッダーの高さ分 */
}

/* 共通オーバーレイ */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25); /* 少し薄め */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  z-index: 2;
  padding: 0 1rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: bold;
  max-width: 800px;
  line-height: 1.5;
}

/* スクロール誘導 */
.hero-slider .scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  z-index: 3;
}

.hero-slider .scroll-indicator .arrow {
  display: block;
  font-size: 24px;
  transform: rotate(90deg);
  animation: bounce 1.5s infinite;
  margin-bottom: 5px;
}

.hero-slider .scroll-indicator .text {
  font-size: 12px;
  letter-spacing: 2px;
}

@keyframes bounce {
  0%, 100% {
    transform: rotate(90deg) translateY(0);
  }
  50% {
    transform: rotate(90deg) translateY(6px);
  }
}

@media (max-width: 768px) {
  /* スマホ表示の1枚目だけトリミング位置を左寄りに変更 */
  .hero-slider .slide:first-child img {
    object-position: 30% center;
  }
}


/*--------------------------------------------------------------
# Section Common
--------------------------------------------------------------*/

.section-title {
  text-align: center;
  font-size: 1.8em;
  margin: 2em 0 1em;
  color: #001f4d; /* 濃い紺に変更（変更済み） */
}

/*--------------------------------------------------------------
# Latest News
--------------------------------------------------------------*/

.latest-news-text {
  padding: 1em;
  max-width: 900px;
  margin: auto;
}

.latest-news-list {
  list-style: none;
  padding: 0;
}

.latest-news-item {
  border-bottom: 1px solid #ccc;
  padding: 0.5em 0;
  display: flex;
  gap: 1em;
  font-size: 0.95em;
}

.news-date {
  color: #666;
  white-space: nowrap;
}

/*--------------------------------------------------------------
# Instruction Sections
--------------------------------------------------------------*/

.link-boxes {
  padding: 2em 1em;
}

.instruction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5em;
  max-width: 1200px;
  margin: auto;
}

.instruction-card {
  text-align: center;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instruction-card img {
  width: 100%;
  height: auto;
}

.instruction-card h3 {
  font-size: 1.1em;
  padding: 0.8em;
  color: #001f4d; /* 濃紺に変更（変更済み） */
}

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

.instruction-button {
  display: inline-block;
  background-color: #001f4d; /* 濃紺 */
  color: #fff;
  padding: 0.6em 1.5em;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  margin: 1.5em auto 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: block;       /* センタリング用にblock */
  width: max-content;   /* ボタン幅を中身に合わせる */
}

.instruction-button:hover {
  background-color: #159243; /* アクセントの緑 */
  color: #fff;
}

/* =============================
   front-page 料金表ボタン
============================= */
.price-cta-section {
  text-align: center;
  margin: 2rem 0;
}

.price-cta-inner {
  display: inline-block;
}

.price-cta-button {
  display: inline-block;
  background-color: #001f4d; /* 濃紺 */
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.price-cta-button:hover {
  background-color: #159243; /* アクセントの緑 */
  color: #fff;
}


/*--------------------------------------------------------------
# CTA Section
--------------------------------------------------------------*/

.cta-section {
  background: #001f4d; /* 濃い紺に変更（変更済み） */
  color: #fff;
  text-align: center;
  padding: 2em 1em;
}

.cta-section h2 {
  margin-bottom: 0.5em;
}

.cta-button {
  display: inline-block;
  margin-top: 1em;
  background: #fff;
  color: #001f4d; /* 濃紺に変更（変更済み） */
  padding: 0.8em 1.5em;
  border-radius: 4px;
  font-weight: bold;
}

.cta-button:hover {
  background: #159243; /* ホバーは緑（変更済み） */
  color: #fff;
}

/*--------------------------------------------------------------
# Access Section
--------------------------------------------------------------*/

.access-section {
  padding: 2em 1em;
  max-width: 1200px;
  margin: auto;
}

.access-map {
  margin-bottom: 1em;
  border: 2px solid #001f4d; /* 濃紺に変更（変更済み） */
}

/*--------------------------------------------------------------
# Utility
--------------------------------------------------------------*/

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

/* ============================
   Topic Banners
============================ */
.topic-banners {
  max-width: 1200px;
  margin: 2em auto;
  padding: 0 1em;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
}

.banner-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-item img:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .banner-grid {
    grid-template-columns: 1fr;
  }
}



/*--------------------------------------------------------------
# page css
--------------------------------------------------------------*/
.page .hero {
  background: url('トップページの背景画像URL') no-repeat center center;
  background-size: cover;
  height: 300px; /* 適宜調整 */
  margin-bottom: 2rem;
}

.page .site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page .entry-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page .entry-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

/*--------------------------------------------------------------
# footer css
--------------------------------------------------------------*/
/* 全体背景色とテキスト色 */
.site-footer {
    background-color: #002147; /* 濃紺 */
    color: #fff;
}

/* コンテナの幅制限（中央寄せ） */
.footer-widgets.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* 3カラム並び */
.footer-menu-wrap {
    display: flex;
    justify-content: space-between; /* 左・中央・右を等間隔配置 */
    align-items: flex-start;
    gap: 1rem;
}

/* カラムの幅とテキスト位置 */
.footer-menu-column {
    flex: 1; /* 均等幅 */
}

/* footer2を中央寄せ */
.footer2 {
    text-align: center;
}

/* footer1を左寄せ */
.footer1 {
    text-align: left;
}

/* footer3を右寄せ */
.footer3 {
    text-align: right;
}

/* メニュー基本スタイル */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #a3d977; /* ホバー時のアクセント */
    text-decoration: underline;
}

/* コピーライト部分 */
.site-info {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    background-color: #002147;
    color: #fff;
}

/* スマホ用調整 */
@media (max-width: 768px) {
    .footer-menu-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer1, .footer2, .footer3 {
        text-align: center;
    }
}

/* SNSアイコン部分 */
.footer-social {
    text-align: center;
    padding: 1rem 0 0.5rem;
}

.footer-social a {
    display: inline-block;
    margin: 0 0.5rem;
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #a3d977; /* アクセント色 */
}


/* ===========================
   404 Page
=========================== */
.error-404 {
  background: #ffffff; /* ダーク背景 */
  color: #e0f7f9; /* 淡い水色 */
  text-align: center;
  padding: 100px 20px;
}

.error-404 .container {
  max-width: 800px;
  margin: 0 auto;
}

.error-title {
  font-size: 6rem;
  font-weight: bold;
  background: linear-gradient(135deg, #00c3b3, #00a0e0); /* 青緑グラデーション */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.error-subtitle {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #7dd8d8; /* 柔らかい青緑 */
}

.error-message {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #bbb; /* 読みやすいグレー */
}

.btn-home {
  display: inline-block;
  background: linear-gradient(135deg, #00c3b3, #00a0e0); /* 青緑〜ブルー */
  color: #fff;
  padding: 12px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 160, 224, 0.3);
}

.btn-home:hover {
  background: #fff;
  color: #00a0e0;
  box-shadow: 0 4px 16px rgba(0, 160, 224, 0.5);
}

/*--------------------------------------------------------------
# Single Post Styles
--------------------------------------------------------------*/

/* コンテナ全体 */
.single .site-main .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  color: #333;
}

/* 記事タイトル */
.single .entry-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.2rem;
  color: #001f4d; /* 濃紺 */
  border-bottom: 3px solid #001f4d;
  padding-bottom: 0.5rem;
  text-align: center;
}

/* アイキャッチ画像（あれば） */
.single .post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  display: block;
}

/* 記事本文 */
.single .post-content {
  font-size: 1.1rem;
  line-height: 1.9;
}

.single .post-content h2 {
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
  border-left: 5px solid #001f4d;
  padding-left: 0.6rem;
  font-weight: bold;
}

.single .post-content h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.8rem;
  color: #444;
}

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

.single .post-content img {
  max-width: 100%;
  border-radius: 6px;
  margin: 1.5rem auto;
  display: block;
}

/* 横並び */
.single-post-navigation .navigation.post-navigation .nav-links {
  display: flex !important;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
}

/* 左右カラム */
.single-post-navigation .navigation.post-navigation .nav-previous,
.single-post-navigation .navigation.post-navigation .nav-next {
  flex: 1 1 0;
}

.single-post-navigation a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fa;
  color: #001f4d;
  padding: 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  min-height: 80px;
}

.single-post-navigation a:hover {
  background: #001f4d;
  color: #fff;
}

.single-post-navigation .nav-arrow {
  font-size: 1.2rem;
  margin: 0 0.4rem;
  color: #159243; /* 緑アクセント */
}

.single-post-navigation .nav-label {
  display: block;
  font-size: 0.8rem;
  font-weight: normal;
  opacity: 0.8;
}