:root {
  --base: #ffff;
  --main: #C4CA46;
  --card: #ffff;
  --accent: #2A3D66;
  --text: #222;
  --muted: #666;
  --container: 1100px;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Segoe UI", Roboto, "Helvetica Neue", Arial;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* レイアウトコンテナ */
.container {
  width: calc(100% - 32px);
  margin: 0 auto;
}

/* ヘッダー */
.site-header {
  height: 69px;
  background: var(--base);
  border-bottom: 5px solid var(--main);
  box-shadow: 0 1px 0 #ffff;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

/*ヘッダー全体設定*/
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 0;
  margin: 0 auto;
  height: 64px;
  background: #ffff;
}

/*ロゴとタイトルの配置*/
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 0;
}

.logo-img {
  height: 64px;
}

.site-name {
  font-size: 23px;
}

.site-name a {
  text-decoration: none;
  color: var(--text);
}


/* PC上でのハンバーガーメニューを非表示 */
@media (min-width: 1200px) {
  .main-nav {
    display: flex;
    gap: 20px;
  }

  .main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .main-nav li {
    margin-left: 20px;
  }

  .nav-toggle {
    display: none;
  }

  .dropdown-nav {
    display: none !important;
  }
}

/* PC用ヘッダーリンク */
.main-nav a,
.dropdown-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: bold;
}

/* ホバー時（マウスを乗せたとき） */
.main-nav a:hover,
.dropdown-nav a:hover {
  color: var(--main);
  text-decoration: none;
}

.main-nav a.active,
.dropdown-nav a.active {
  border-bottom: 3px solid var(--main);
  padding-bottom: 4px;
}


/* スマホでは通常ナビを非表示 */
@media (max-width: 1200px) {
  .main-nav {
    display: none;
  }
}

/* ハンバーガーボタン */
.nav-toggle {
  border: 0;
  background: transparent;
  padding: 8px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.hamburger {
  width: 26px;
  height: 2px;
  background: var(--text);
  position: relative;
  display: inline-block;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 26px;
  height: 2px;
  background: var(--text);
}

.hamburger::before {
  top: -8px
}

.hamburger::after {
  top: 8px
}

/*ドロップダウンメニュー*/
.dropdown-nav {
  position: absolute;
  top: 5px;
  right: 0%;
  width: 250px;
  height: auto;
  background: var(--base);

  border-radius: 0%;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
  padding: 40px 20px 20px;
  display: none;
  z-index: 999;
}

.dropdown-nav.open {
  display: block;
}

/*メニューリスト*/
.dropdown-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-nav li {
  margin-bottom: 15px;
}

.dropdown-nav a {
  text-decoration: none;
  color: #222;
  font-size: 16px;
  font-weight: bold;
}

/* 閉じるボタン（✕） */
.nav-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  border: none;
  background: transparent;
  cursor: pointer;
}


/* メイン */
/*ページトップ*/
.top-container {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: row;
  gap: 0;
  box-sizing: border-box;
}

.top-text,
.top-photo {
  flex: 1;
}

.top-text {
  height: 100%;
  background: var(--main);
  padding: 16px;
  color: var(--base);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.top-text h1 {
  margin: 0;
  font-size: 40px;
}

.top-text h2 {
  margin: 0;
  font-size: 30px;
}

.top-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

@media (max-width: 1200px) {
  .top-container {
    flex-direction: column;
    text-align: center;
    height: auto;
  }

  .top-photo,
  .top-text {
    width: 100%;
    height: 250px;
  }

  .top-photo img {
    width: 100%;
    height: 350px;
    object-fit: cover;
  }

  .top-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--main);
    color: var(--base);
    padding: 16px;
  }

  .top-text h1 {
    height: 150px;
    font-size: 20px;
    padding: 70px 0;
    margin: 4px 0;
  }

  .top-text h2 {
    height: 100px;
    font-size: 15px;
    padding: 10px 0;
    margin: 4px 0;
  }
}



/*ページタイトル*/
.title-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  margin: 10px 16px 10px 16px;
  padding-left: 16px;
}

.title-box {
  display: inline-block;
  width: 20px;
  height: 25px;
  background: var(--main);
  border-radius: 0;
  margin-left: 0;
}

.page-title h1 {
  font-size: 25px;
  font-weight: bold;
  margin: 0;
  color: var(--text);
}

/* 画像リンクカード */
.link-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin: 50px auto;
  max-width: 1200px;
  padding: 0 16px;
}

.link-cards .card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-cards .card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.link-cards .card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(196, 202, 70, 0.8);
  color: #fff;
  padding: 10px;
  font-size: 18px;
  text-align: center;
}

/* ホバー効果 */
.link-cards .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}


/* フッター */
.site-footer {
  padding: 20px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 36px;
}

/* デスクトップ向け*/
@media (min-width:1200px) {
  .nav-toggle {
    display: none
  }

  .main-nav {
    display: block
  }

  .main-nav ul {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 0
  }

  .main-nav a {
    padding: 18px 0;
    border-bottom: none
  }

  .hero {
    padding: 40px 0
  }

  .hero h2 {
    font-size: 1.5rem
  }

  .link-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 50px auto;
    max-width: 1200px;
    padding: 0 16px;
  }
}


html {
  scroll-behavior: smooth;
}

body {
  padding-top: 74px;
}