/**
 * WESTERN VALLEY LLC (WVIC) - メインスタイルシート
 * 外部WordPressテーマに依存しない独立したモダンCSS
 */

/* ==========================================================================
   1. リセット & 基本設定
   ========================================================================== */

:root {
  --accent: #b5594b;
  --accent-dark: #93443a;
  --ink: #2b2b2b;
  --text: #474747;
  --muted: #6b6b6b;
  --rule: #e6e2de;
  --font-serif: 'Cormorant Garamond', 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-sans: 'Open Sans', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', 'Segoe UI', sans-serif;
}

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

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 本文が短いページでもフッターを画面下端に揃える */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#content {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.2s ease-in-out;
}

a:hover,
a:focus {
  color: var(--accent-dark);
  text-decoration: underline;
}

:lang(ja) {
  line-break: strict;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.clear::before,
.clear::after {
  display: table;
  content: "";
}

.clear::after {
  clear: both;
}

/* スクリーンリーダー用アクセシビリティ */
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  clip: auto;
  width: auto;
  height: auto;
  padding: 12px 20px;
  background: #ffffff;
  color: #222222;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* キーボード操作時のフォーカス表示 */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================================
   2. ヘッダー & ナビゲーションバー
   ========================================================================== */

header.header {
  position: relative;
  width: 100%;
  /* 固定ナビ（高さ75px）の下に本文が潜り込まないよう確保 */
  min-height: 75px;
}

#main-nav {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  min-height: 75px;
  margin-bottom: 0;
  background: #ffffff;
  border: none;
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

#main-nav.fixed {
  position: fixed;
  top: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

#main-nav .container {
  position: relative;
}

.navbar-header {
  float: left;
}

.navbar-brand {
  display: inline-block;
  height: 75px;
  padding: 0 15px;
  line-height: 75px;
  text-align: center;
}

.site-title-tagline-wrapper {
  display: inline-block;
  vertical-align: middle;
}

.site-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 75px;
  letter-spacing: 0.12em;
}

.site-title a {
  color: var(--ink);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ナビゲーションリンク */
.main-nav-list {
  margin: 0;
}

.navbar-inverse .navbar-nav > li {
  display: inline-block;
  margin-top: 20px;
  margin-right: 20px;
}

.navbar-inverse .navbar-nav > li:last-child {
  margin-right: 0 !important;
}

.navbar-inverse .navbar-nav > li > a {
  position: relative;
  display: block;
  padding: 0 4px 6px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 35px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
  color: var(--accent);
  background: transparent;
  text-decoration: none;
}

/* カレントページの下線インジケーター */
.navbar-inverse .navbar-nav > li.is-current > a {
  color: var(--accent);
}

.navbar-inverse .navbar-nav > li.is-current > a::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: var(--accent);
}

/* ハンバーガーメニューボタン */
.navbar-toggle {
  margin-top: 21px;
  margin-right: 15px;
  padding: 9px 10px;
  background-color: #7a7a7a;
  border: none;
  border-radius: 3px;
}

.navbar-toggle:hover,
.navbar-toggle:focus {
  background-color: var(--accent) !important;
}

.navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background-color: #ffffff;
}

.navbar-toggle .icon-bar + .icon-bar {
  margin-top: 4px;
}

/* ==========================================================================
   4. ヒーローセクション
   ========================================================================== */

.home-header-wrap {
  position: relative;
  overflow: hidden;
  background-image: url("/images/sunset.jpg");
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
}

.header-content-wrap {
  position: relative;
  padding: 230px 0 180px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.55));
  text-align: center;
}

.intro-text {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 58px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  text-wrap: balance;
}

.intro-text:lang(ja) {
  font-size: 46px;
  letter-spacing: 0.08em;
}

/* 日本語見出しを文節単位で改行させる（中黒などで分断しない） */
.nobr {
  display: inline-block;
}

/* トップページの言語切り替え（白の細枠ボタン） */
.hero-lang {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}

.hero-lang-btn {
  display: inline-block;
  min-width: 150px;
  padding: 11px 30px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: center;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.hero-lang-btn:hover,
.hero-lang-btn:focus {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  text-decoration: none;
}

.hero-lang-btn[aria-current="page"] {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-lang-btn:focus-visible {
  outline-color: #ffffff;
}

/* ==========================================================================
   5. コンテンツエリア
   ========================================================================== */

#content.site-content {
  padding: 80px 0 96px;
  background: #ffffff;
}

/* 読みやすい行長（英文で約70字）に本文幅を制限 */
#primary {
  max-width: 700px;
  margin: 0 auto;
}

.page-title {
  position: relative;
  margin: 0 0 40px;
  padding-bottom: 22px;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.page-title:lang(ja) {
  font-size: 32px;
  letter-spacing: 0.1em;
}

.page-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 1px;
  background: var(--accent);
}

.entry-content {
  color: var(--text);
  font-size: 17px;
  line-height: 1.9;
}

.entry-content:lang(ja) {
  font-size: 16px;
  line-height: 2.05;
  letter-spacing: 0.04em;
}

.entry-content p {
  margin-bottom: 1.4em;
}

.entry-content p:last-child {
  margin-bottom: 0;
}

/* 事業終了などの注記 */
.entry-content em {
  display: block;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
  line-height: 1.8;
}

/* 和文に斜体は用いない */
.entry-content em:lang(ja) {
  font-style: normal;
}

/* ==========================================================================
   6. フッター
   ========================================================================== */

#footer {
  background: #262626;
  color: #9a9a9a;
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 56px 15px 44px;
  text-align: center;
}

.memorial-notice {
  margin-bottom: 0;
  color: #c4c4c4;
  font-size: 14px;
  line-height: 1.85;
  text-wrap: pretty;
}

.memorial-notice:lang(ja) {
  letter-spacing: 0.04em;
}

.site-copyright {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8a8a8a;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   7. 言語切り替えトグル（Language Toggle - セグメント型ピルボタン）
   ========================================================================== */

.lang-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.lang-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9e9e9e;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.globe-icon {
  stroke: #9e9e9e;
  vertical-align: middle;
  flex-shrink: 0;
}

.lang-toggle-group {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 3px;
}

.lang-btn {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

/* アクティブ（表示中の言語） */
span.lang-btn.active {
  background: #ffffff;
  color: #1a1a1a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: default;
}

/* 非アクティブ（切り替えリンク） */
a.lang-btn {
  color: #d6d6d6;
}

a.lang-btn:hover,
a.lang-btn:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

/* ==========================================================================
   8. レスポンシブメディアクエリ
   ========================================================================== */

/* タブレット（768px〜1024px） */
@media (min-width: 768px) and (max-width: 1024px) {
  .header-content-wrap {
    padding: 200px 0 140px;
  }

  .intro-text {
    font-size: 50px;
  }

  .intro-text:lang(ja) {
    font-size: 40px;
  }
}

/* モバイル（767px以下） */
@media (max-width: 767px) {
  #main-nav {
    min-height: auto;
  }

  .navbar-collapse {
    background: #ffffff;
    border-top: 1px solid #eeeeee;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  }

  .navbar-inverse .navbar-nav {
    margin: 10px 0;
    text-align: center;
  }

  .navbar-inverse .navbar-nav > li {
    display: block;
    margin: 6px 0;
  }

  .navbar-inverse .navbar-nav > li > a {
    display: inline-block;
    padding: 6px 16px;
    line-height: 24px;
  }

  .navbar-inverse .navbar-nav > li.is-current > a::before {
    bottom: 2px;
  }

  .site-title {
    font-size: 18px;
  }

  .header-content-wrap {
    padding: 140px 0 110px;
  }

  .intro-text {
    font-size: 40px;
  }

  .intro-text:lang(ja) {
    font-size: 30px;
  }

  #content.site-content {
    padding: 56px 0 64px;
  }

  .page-title {
    margin-bottom: 32px;
    font-size: 34px;
  }

  .page-title:lang(ja) {
    font-size: 26px;
  }

  .entry-content {
    font-size: 16px;
  }

  .entry-content:lang(ja) {
    font-size: 15px;
  }

  .footer-inner {
    padding: 44px 20px 36px;
  }
}

/* スマートフォン小型（480px以下） */
@media (max-width: 480px) {
  .intro-text {
    font-size: 34px;
  }

  .intro-text:lang(ja) {
    font-size: 26px;
  }

  .hero-lang-btn {
    min-width: 130px;
  }
}
