/* =====================================================
   Base（全体共通・初期設定）
   ・全ページ共通のリセット／基本スタイル
===================================================== */
:root {
  --main-color: #996633;
}

/* box-sizing を全要素に適用 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* body 基本設定 */
body {
  margin: 0;
  background: #e5e5e5;
  font-family: arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* 画像のはみ出し防止 */
img {
  max-width: 100%;
  height: auto;
}

/* リンク共通 */
a {
  color: var(--main-color);
  text-decoration: underline;
}


/* =====================================================
   Layout（ページ構造・大枠）
   ・全ページで共通のレイアウト構造
===================================================== */
.l-page {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  background: url('../images/common/bg_body.jpg') no-repeat;
}

/* 中央寄せコンテナ */
.l-container {
  max-width: 950px;
  width: 100%;
  margin: 0 auto;
}

/* メイン領域 */
.site-main {
  background: #fff;
}

/* メインコンテンツ内側 */
.site-main__content {
  padding: 15px 20px 40px;
  background: url('../images/common/karate3.png') no-repeat top right;
}

/* 本文共通ラッパー */
.content-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}


/* =====================================================
   Component（ヘッダー）
===================================================== */
.site-header {
  height: 150px;
  background: url('../images/common/bg_header.gif') no-repeat;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ヘッダー左側 */
.site-header__left {
  max-width: 760px;
  width: 100%;
  padding: 0 0 0 30px;
}

/* ヘッダー右側（装飾画像） */
.site-header__right {
  width: 160px;
  height: 150px;
  background: url('../images/common/karate.png') no-repeat;
}

/* ロゴ＋SNS */
.site-header__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* サイトロゴ */
.site-logo {
  margin: 0;
}

.site-logo a {
  font-size: 50px;
  font-weight: 500;
  font-family: arial, sans-serif;
  color: #000;
  text-decoration: none;
}


/* =====================================================
   Component（SNSリンク / Font Awesome）
===================================================== */
.social-links ul {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* SNSアイコン共通 */
.social-links a {
  display: inline-block;
  font-size: 22px;
  color: #333;
  text-decoration: none;
}

.social-links a:hover {
  color: #996633;
}

/* サービス別カラー指定 */
.social-links a[href*="facebook"] {
  color: #1877f2;
}

.social-links a[href*="twitter"],
.social-links a[href*="x.com"] {
  color: #000000;
}

.social-links a[href*="youtube"] {
  color: #ff0000;
}

.social-links a[href*="instagram"] {
  color: #e1306c;
}


/* =====================================================
   Component（グローバルナビ）
===================================================== */
.global-nav {
  position: relative;
  height: 50px;
  background: url('../images/common/bg_menu.gif') no-repeat;
  display: flex;
  align-items: center;
}

/* 右側の装飾画像 */
.global-nav::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 50px;
  background: url('../images/common/karate2.png') no-repeat;
}

/* ナビゲーションリスト */
.global-nav__list {
  margin: 0 0 0 30px;
  padding: 0;
  list-style: none;
  display: flex;
}

/* 各メニュー項目 */
.global-nav__list li {
  margin-right: 23px;
}

/* ナビリンク */
.global-nav__list a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  font-family: arial, sans-serif;
  color: #3a2a1a;
  line-height: 1;
  text-decoration: none;
}

/* hover時 */
.global-nav__list a:hover {
  text-decoration: underline;
}

/* 現在ページ */
.global-nav__list li.current a {
  text-decoration: underline;
}

.global-nav__list a[aria-current="page"] {
  cursor: default;
}


/* =====================================================
   Component（共通コンテンツ）
===================================================== */
.section-title {
  font-size: 24px;
  font-weight: 400;
  border-bottom: 2px solid var(--main-color);
  margin-bottom: 20px;
}

/* 画像キャプション */
figure > figcaption.caption {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
  text-align: center;
}


/* =====================================================
   Greeting（トップページ）
===================================================== */
.greeting {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0;
}

.greeting-profile {
  margin: 0 0 50px 0;
}

.greeting-profile img {
  width: 100%;
  display: block;
}

.greeting-body {
  flex: 1;
}

.greeting-body p {
  margin: 0 0 1.2em;
  line-height: 1.8;
}

/* メイン写真 */
.main-photo {
  padding-bottom: 20px;
}


/* =====================================================
   Access Page
===================================================== */
.access {
  padding: 0;
}

.access p {
  margin: 0 0 1.2em;
  line-height: 1.8;
}

.access-place {
  margin-bottom: 30px;
}

.access-place h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.access-map {
  margin: 40px 0;
  text-align: center;
}

.access-note h3 {
  margin: 30px 0 8px;
  font-size: 16px;
}


/* =====================================================
   Membership Page
===================================================== */
.membership {
  padding: 0;
}

.membership p {
  margin: 0 0 1.2em;
  line-height: 1.8;
}

.membership-fee {
  margin: 30px 0;
}

.membership-fee h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.membership-fee ul {
  margin: 0;
  padding-left: 1.2em;
}

.membership-fee li {
  margin-bottom: 6px;
}

.membership-contact {
  margin-top: 40px;
}


/* =====================================================
   Photo Page
===================================================== */
.photo {
  padding: 0;
}

.photo-title {
  font-size: 20px;
  margin: 30px 0 15px;
}

.photo-subtitle {
  font-size: 16px;
  margin: 25px 0 8px;
}

.photo p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* 写真1枚 */
.photo-single {
  margin-bottom: 30px;
}

.photo-single img {
  width: 100%;
  display: block;
}

/* 写真グリッド */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

/* 高さを揃える */
.photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* 1枚写真を中央に配置 */
.photo-grid--single {
  justify-items: center;
}

.photo-grid--single img {
  grid-column: 2 / 3;
}


/* =====================================================
   Contact Page
===================================================== */
.contact {
  margin: 0 auto;
  padding: 0;
}

.contact-required {
  color: #c00;
  font-size: 0.9em;
}

/* 問い合わせ案内ボックス */
.contact-box {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 30px;
  margin-bottom: 40px;
}

.contact-subtitle {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: bold;
}

.contact-box p {
  line-height: 1.8;
}

/* 電話番号 */
.contact-phone__number {
  margin-top: 10px;
  font-weight: bold;
}

.contact-phone__number a {
  color: inherit;
  text-decoration: none;
  cursor: default;
}

.contact-phone__note {
  font-size: 0.9em;
  color: #555;
}

/* フォーム */
.contact-form {
  max-width: 500px;
  margin-bottom: 40px;
}

.contact-form__block {
  margin-bottom: 24px;
}

.contact-form__label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px;
  font-size: 1rem;
}

.contact-form__buttons {
  margin-top: 30px;
}

.contact-form__buttons button {
  padding: 8px 20px;
  margin-right: 10px;
}

.required-mark {
  margin-left: 6px;
  color: #c00;
  font-size: 0.85em;
}


/* =====================================================
   Contact Confirm Page
===================================================== */
.contact-confirm-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.contact-confirm-table th {
  width: 180px;
  padding: 10px;
  background: #f5f5f5;
  text-align: left;
  vertical-align: top;
}

.contact-confirm-table td {
  padding: 10px;
}

/* JSエラーメッセージ */
.contact-errors {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #c00;
  background: #fff5f5;
  color: #c00;
}

.contact-errors p {
  margin: 0 0 5px;
}

/* 確認画面エラー */
.contact-confirm-errors {
  color: #c00;
  margin: 20px 0;
  font-weight: bold;
}

.contact-confirm-buttons {
  margin-top: 40px;
}


/* =====================================================
   Component（フッター）
===================================================== */
.site-footer {
  background: #000;
  color: #fff;
  padding: 20px 10px;
}

.site-footer__inner {
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
}

.site-footer__copyright {
  margin: 0 0 12px;
  font-size: 12px;
}

.site-footer__info {
  font-style: normal;
  font-size: 13px;
  line-height: 1.8;
}

.site-footer__name {
  font-weight: bold;
}


/* =====================================================
   Responsive（スマートフォン対応）
===================================================== */
.sp-only {
  display: none;
}

@media screen and (max-width: 768px) {

  body {
    font-size: 0.9rem;
  }

  .l-page {
    background: none;
  }

  .site-main__content {
    padding: 20px 15px;
    background: none;
  }

  .site-header {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
    background-size: cover;
  }

  .site-header__left {
    padding: 0;
  }

  .site-header__right {
    display: none;
  }

  .site-logo a {
    font-size: 28px;
  }

  .global-nav {
    height: auto;
    background-size: cover;
  }

  .global-nav::after {
    display: none;
  }

  .global-nav__list {
    flex-wrap: wrap;
    margin: 0;
  }

  .global-nav__list li {
    margin: 0;
    width: 50%;
  }

  .global-nav__list a {
    justify-content: center;
    padding: 12px 0;
  }

  .greeting {
    flex-direction: column;
  }

  .contact-confirm-table th,
  .contact-confirm-table td {
    display: block;
    width: 100%;
  }

  .contact-confirm-table th {
    background: none;
    padding-bottom: 4px;
  }

  .contact-confirm-table td {
    padding-top: 0;
  }

  .contact-form__buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .contact-form__buttons button {
    flex: 1;
    padding: 14px 20px;
    font-size: 1rem;
    margin: 0;
    min-width: 120px;
  }

  .contact-phone__number a {
    color: var(--main-color);
    text-decoration: underline;
    cursor: pointer;
  }

  .site-footer__info {
    font-size: 12px;
  }

  /* Photo（スマホ） */
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid--single img {
    grid-column: auto;
  }

  .photo-grid img {
    height: auto;
  }

  /* スマホのみ表示 */
  .sp-only {
    display: inline;
  }
}
