/*
Theme Name: IMPACT RUGBY JAPAN
Theme URI: https://impactrugby.jp
Author: Griffin Inc.
Author URI: https://griffin.tokyo
Description: IMPACT RUGBY 日本総代理店グリフィン株式会社の公式テーマ
Version: 1.0.0
License: Private
Text Domain: impact-rugby
*/

/* ============================================================
   CSS カスタムプロパティ（デザイントークン）
   ============================================================ */
:root {
  --color-black:      #111111;
  --color-black-deep: #0a0a0a;
  --color-white:      #ffffff;
  --color-gray-100:   #f5f5f5;
  --color-gray-200:   #e8e8e8;
  --color-gray-400:   #999999;
  --color-gray-600:   #555555;
  --color-accent:     #ffffff;

  --font-heading: 'Oswald', 'Noto Sans JP', sans-serif;
  --font-body:    'Noto Sans JP', sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;

  --shadow-card: 0 2px 12px rgba(0,0,0,0.08);
  --transition:  0.2s ease;

  --max-width: 1100px;
  --gutter:    24px;
}

/* ============================================================
   リセット & ベース
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-black);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   ヘッダー / ナビゲーション
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--color-black);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  height: 60px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.site-logo__text {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--color-white);
  text-transform: uppercase;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.global-nav a {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
  text-transform: uppercase;
}

.global-nav a:hover,
.global-nav a.current-menu-item { color: var(--color-white); }

.header-cta {
  background: var(--color-white);
  color: var(--color-black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  transition: opacity var(--transition);
}

.header-cta:hover { opacity: 0.85; }

/* ハンバーガー（モバイル） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-white);
  transition: var(--transition);
}

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  background: var(--color-black-deep);
  padding: 40px var(--gutter) 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand .footer-logo { height: 28px; filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer-brand p { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.8; }

.footer-nav h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-nav ul li { margin-bottom: 8px; }
.footer-nav ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-nav ul li a:hover { color: var(--color-white); }

.footer-contact h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-contact p { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.footer-contact a { color: rgba(255,255,255,0.7); }

.footer-sns { display: flex; gap: 12px; margin-top: 12px; }
.footer-sns a {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: border-color var(--transition);
}
.footer-sns a:hover { border-color: rgba(255,255,255,0.4); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p { font-size: 11px; color: rgba(255,255,255,0.25); }

/* ============================================================
   ページ共通（本文エリアのトップ余白）
   ============================================================ */
.page-wrap { padding-top: 60px; }

/* ============================================================
   パンくずリスト
   ============================================================ */
.breadcrumb {
  background: var(--color-black);
  padding: 12px var(--gutter);
}

.breadcrumb__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}

.breadcrumb__inner a { color: rgba(255,255,255,0.55); }
.breadcrumb__inner a:hover { color: var(--color-white); }
.breadcrumb__inner span { color: rgba(255,255,255,0.6); }

/* ============================================================
   セクション共通
   ============================================================ */
.section { padding: 64px var(--gutter); }
.section--dark { background: var(--color-black); }
.section--gray { background: var(--color-gray-100); }

.section__header { margin-bottom: 40px; }
.section__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--color-gray-400);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section__label--light { color: rgba(255,255,255,0.4); }

.section__title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.section__title--light { color: var(--color-white); }

/* ============================================================
   ボタン
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--color-black);
  color: var(--color-white);
}
.btn--primary:hover { background: #333; }

.btn--white {
  background: var(--color-white);
  color: var(--color-black);
}
.btn--white:hover { opacity: 0.9; }

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn--outline:hover { border-color: var(--color-white); }

.btn--buy {
  background: var(--color-black);
  color: var(--color-white);
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 14px;
}
.btn--buy:hover { background: #333; }

/* ============================================================
   お問い合わせフォーム
   ============================================================ */
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: var(--color-black);
}
.contact-form .required {
  display: inline-block;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-black);
  background: var(--color-white);
  transition: border-color var(--transition);
  appearance: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-black);
}

.contact-form textarea { height: 160px; resize: vertical; }

.contact-form .submit-btn {
  background: var(--color-black);
  color: var(--color-white);
  border: none;
  padding: 15px 40px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity var(--transition);
  width: 100%;
}
.contact-form .submit-btn:hover { opacity: 0.85; }

/* ============================================================
   ヘッドキャップ ストーリー本文（ブロックエディタ出力）
   ============================================================ */
.headcap-story img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 16px 0;
}

.headcap-story figure {
  margin: 24px 0;
}

.headcap-story figcaption {
  font-size: 12px;
  color: var(--color-gray-400);
  text-align: center;
  margin-top: 6px;
}

.headcap-story h2,
.headcap-story h3 {
  font-family: var(--font-heading);
  letter-spacing: .04em;
  margin: 28px 0 12px;
}

.headcap-story h2 { font-size: 20px; }
.headcap-story h3 { font-size: 17px; }

.headcap-story p {
  margin-bottom: 16px;
  line-height: 2;
}

/* 画像＋テキスト横並び（WordPressメディアと文章ブロック） */
.headcap-story .wp-block-image {
  margin: 20px 0;
}

.headcap-story .wp-block-image img {
  border-radius: var(--radius-md);
}

/* 画像を左右に配置した場合 */
.headcap-story .wp-block-image.alignleft {
  float: left;
  margin: 8px 24px 8px 0;
  max-width: 45%;
}

.headcap-story .wp-block-image.alignright {
  float: right;
  margin: 8px 0 8px 24px;
  max-width: 45%;
}

.headcap-story .wp-block-image.aligncenter {
  text-align: center;
}

/* clearfix */
.headcap-story::after {
  content: '';
  display: table;
  clear: both;
}

/* カラムブロック */
.headcap-story .wp-block-columns {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.headcap-story .wp-block-column {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .headcap-story .wp-block-columns {
    flex-direction: column;
  }
  .headcap-story .wp-block-image.alignleft,
  .headcap-story .wp-block-image.alignright {
    float: none;
    max-width: 100%;
    margin: 16px 0;
  }
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 768px) {
  .global-nav, .header-cta { display: none; }
  .hamburger { display: flex; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .section { padding: 48px var(--gutter); }
}
