/*
Theme Name: MDM Cool Genesis Child
Theme URI: https://example.com/
Description: シンプル＆クールなGenesis子テーマ（#97ca00ベース）
Author: Miki Matsumoto
Template: genesis
Version: 1.0.0
*/

/* ------------------------------
   0. ベース設定
------------------------------ */

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #222;
  background-color: #f5f5f5;
}

/* 選択色 */
::selection {
  background: #97ca00;
  color: #fff;
}

/* リンク */
a {
  color: #97ca00;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover,
a:focus {
  opacity: 0.7;
}

/* 画像 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------
   1. レイアウト全体
------------------------------ */

.site-container {
  background: #f5f5f5;
}

/* コンテンツの最大幅と余白 */
.site-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 20px 80px;
}

/* Genesis 標準 wrap を整える */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* コンテンツ部分を中央に・sidebarを殺して1カラムに */
.content-sidebar-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.content {
  width: 100%;
}

/* サイドバーは非表示（必要になったら解除） */
.sidebar {
  display: none;
}

/* ------------------------------
   2. ヘッダー
------------------------------ */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

/* サイトタイトルまわり */
.title-area {
  display: flex;
  align-items: center;
}

.site-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.06em;
  font-weight: 500;
  text-transform: uppercase;
}

.site-title a {
  color: #222;
}

.site-description {
  margin: 4px 0 0;
  font-size: 12px;
  color: #777;
}

/* ロゴ画像がある場合 */
.title-area img {
  max-height: 40px;
  margin-right: 12px;
}

/* ------------------------------
   3. グローバルナビゲーション
------------------------------ */

.nav-primary {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.nav-primary .wrap {
  padding-top: 0;
  padding-bottom: 0;
}

.nav-primary .menu,
.nav-primary #menu-mainmenu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  justify-content: flex-end;
}

.nav-primary .menu-item {
  position: relative;
}

.nav-primary .menu-item a {
  display: block;
  padding: 14px 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555;
}

/* ホバーと現在ページ */
.nav-primary .menu-item a:hover,
.nav-primary .current-menu-item > a {
  color: #97ca00;
}

.nav-primary .current-menu-item > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 2px;
  background: #97ca00;
}

/* スマホでは縦並び（簡易版） */
@media (max-width: 768px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-primary .menu,
  .nav-primary #menu-mainmenu {
    flex-direction: column;
    gap: 0;
  }

  .nav-primary .menu-item a {
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
  }
}

/* ------------------------------
   4. タイポグラフィ
------------------------------ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #111;
  margin-top: 0;
}

h1 {
  font-size: 42px;
  margin-bottom: 32px;
}

h2 {
  font-size: 32px;
  margin-bottom: 28px;
}

h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

p {
  margin: 0 0 1.6em;
}

/* 小さいテキスト */
.small-text {
  font-size: 13px;
  color: #777;
}

/* リスト */
ul, ol {
  margin: 0 0 1.6em 1.4em;
  padding: 0;
}

/* 引用 */
blockquote {
  margin: 0 0 1.8em;
  padding: 16px 20px;
  border-left: 3px solid #97ca00;
  background: #fafafa;
  color: #555;
}

/* ------------------------------
   5. ボタン・リンク風ボタン
------------------------------ */

.button,
button,
input[type="submit"],
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid #97ca00;
  background: #97ca00;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
a.button:hover {
  background: #7aa100;
  border-color: #7aa100;
}

/* アウトラインボタン */
.button-outline {
  background: transparent;
  color: #97ca00;
}

.button-outline:hover {
  background: #97ca00;
  color: #fff;
}

/* ------------------------------
   6. セクション・コンテンツブロック
------------------------------ */

/* 共通セクション */
.section {
  padding: 80px 0;
}

/* メインビジュアル用（Hero） */
.section-hero {
  padding: 120px 0 80px;
}

.section-hero .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.section-hero .hero-title {
  font-size: 42px;
  margin-bottom: 24px;
}

.section-hero .hero-lead {
  font-size: 18px;
  color: #555;
  margin-bottom: 32px;
}

/* スマホでは1カラム */
@media (max-width: 960px) {
  .section-hero .hero-inner {
    grid-template-columns: 1fr;
  }

  .section-hero {
    padding-top: 80px;
  }
}

/* 3カラムの特徴ブロックなど */
.section-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.section-grid-3 .card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.section-grid-3 .card-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.section-grid-3 .card-text {
  font-size: 14px;
  color: #555;
}

@media (max-width: 960px) {
  .section-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* 長文セクション（テキスト中心） */
.section-text {
  background: #ffffff;
  border-radius: 24px;
  padding: 48px 32px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

/* ------------------------------
   7. 記事・投稿スタイル
------------------------------ */

.entry {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 32px;
  margin-bottom: 40px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

.entry-title {
  font-size: 28px;
  margin-bottom: 16px;
}

.entry-meta,
.entry-footer {
  font-size: 12px;
  color: #999;
}

/* 一覧用 */
.content .archive-title,
.content .page-title {
  font-size: 32px;
  margin-bottom: 32px;
}

/* ------------------------------
   8. フッター
------------------------------ */

.site-footer {
  background: #111;
  color: #ccc;
  padding: 40px 20px 24px;
  margin-top: 80px;
}

.site-footer .wrap {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.site-footer a {
  color: #97ca00;
}

.site-footer .footer-menu {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  color: #777;
}

/* ------------------------------
   9. フォーム
------------------------------ */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #97ca00;
  box-shadow: 0 0 0 2px rgba(151, 202, 0, 0.25);
}

/* ------------------------------
   10. レスポンシブ調整
------------------------------ */

@media (max-width: 960px) {
  .site-inner {
    padding: 64px 16px 64px;
  }

  .entry {
    padding: 32px 20px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 26px;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .site-inner {
    padding: 56px 14px 56px;
  }

  .entry {
    padding: 28px 18px;
  }
}
