
/* ==========================================================================
  一括テーマカラー変数設定 (CSS Custom Properties)
  ========================================================================== */
:root {
  --bg-main: #f8f8f6;
  --bg-secondary: #4a4f55;
  --text-primary: #33383d;
  --text-secondary: #f8f8f6;
  --text-muted: #9e9e9e;
  --border-color: #33383d;
  --border-secondary: #f8f8f6;
  --accent-color: #d4af37;
  --header-bg: rgb(248 248 246 / 76%);
  --font-serif: 'Shippori Mincho', 'Yu Mincho', serif;
  --font-sans: 'Inter', sans-serif;
}

/* 基本スタイル */
body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-serif);
  letter-spacing: 0.08em;
  line-height: 2.1;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  margin: 0;
  padding: 0;
}

/* リンクの基本設定 */
a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease, color 0.3s ease;
}
a:hover {
  opacity: 0.85;
}

/* ページ切り替え用表示設定 */
.page-view {
  transition: opacity 0.5s ease-in-out;
}

/* ==========================================================================
  1. ローディング画面 (Opening Loader)
  ========================================================================== */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-main);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
}

#loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#loading-screen .logo-brand {
  width: 80px;
  height: auto;
  animation: pulseLogo 1.6s infinite ease-in-out;
}

@keyframes pulseLogo {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

/* ==========================================================================
  2. 固定追尾ヘッダー (Sticky / Fixed Navigation Header)
  ========================================================================== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 2rem;
  transition: background-color 0.4s ease, border-color 0.4s ease, padding 0.3s ease;
}

.header-nav .logo-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  cursor: pointer;
}

.nav-link-custom {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  font-weight: 900;
  color: var(--text-primary);
  margin-left: 2rem;
  position: relative;
  cursor: pointer;
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--text-primary);
  transition: width 0.3s ease;
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  width: 100%;
}

.site-header {
  /* transitionでpaddingなどの変化を滑らかにアニメーションさせます */
  transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.4s ease, 
              backdrop-filter 0.4s ease;
}

/* ▼ JSでスクロール時に付与されるクラス */
.site-header.is-scrolled {
}

/* ロゴ自体の可変アニメーション */
.site-header .logo-brand {
  height: 80px;
  width: auto;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header.is-scrolled .logo-brand {
  height: 45px; /* スクロール時：小さなロゴに縮小 */
}


@media (max-width: 600px) {
  .header-nav {
    padding: 0.5rem 1rem;
  }
  .site-header .logo-brand {
    height: 45px;
  }
  .site-header.is-scrolled .logo-brand {
    height: 35px; /* スクロール時：小さなロゴに縮小 */
  }
  .nav-link-custom {
    font-size: 0.75rem;
    margin-left: 1.5rem;
  }
}
/* ==========================================================================
  3. ヒーローセクション (Hero Section)
  ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgb(7 7 7 / 0%) 0%, rgb(255 255 255 / 29%) 100%), url(../images/top.jpg) center / cover no-repeat;
  padding-top: 80px;
}

.hero-title-wrapper {
  padding-left: max(5%, 2rem);
  padding-bottom: 20vh;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-secondary);
  text-shadow: 0 0px 5px #000000b0, 0 0px 15px #000000bf, 0 0px 30px #000000b8;
  margin: 0;
}

/* ヒーロータイトルの順序アニメーション制御 */
.hero-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
}

body.is-loaded .hero-title span {
  animation: heroFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 1: 「お金持ちに」 */
body.is-loaded .hero-title span:nth-of-type(1) {
  animation-delay: 0.2s;
}

/* 2: 「なってほしい。」 */
body.is-loaded .hero-title span:nth-of-type(2) {
  animation-delay: 0.7s;
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
  4. コンテンツセクション & テーブルスタイル
  ========================================================================== */
.section-padding {
  padding: 7.5rem 0;
}

.bg-secondary-custom {
  background-color: var(--bg-secondary);
  transition: background-color 0.4s ease;
  color: var(--text-secondary);
}

.bg-secondary-custom .section-line {
    border-top: 1px solid var(--border-secondary);
    background: var(--bg-secondary);
}
.bg-secondary-custom .section-line::before {
    background: var(--border-secondary);
}

/* セクションヘッダー＆ライン */
.section-header {
  margin-bottom: 3.5rem;
}

.section-title-en {
  font-size: 1.2rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-right: 1.5rem;
  font-weight: 900;
}

.section-line {
  position: relative;
  border-top: 1px solid var(--border-color);
  background: var(--bg-main);
  height: 0.5em;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: -0.8em;
}
.section-line::before {
  content: "";
  width: 10%;
  max-width: 50px;
  height: 0.2rem;
  display: block;
  position: absolute;
  top: -0.2em;
  background: var(--border-color);
  right: 0;
}

.section-line.is-visible {
  transform: scaleX(1);
}

/* メインの見出し */
.main-heading {
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 3rem;
  word-break: break-word;
}

/* 本文テキスト */
.body-text-block {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 2.2;
  margin-bottom: 2.2rem;
  font-weight: 500;
  opacity: 0.9;
}

/* スクロールアニメーション用共通クラス */
.reveal-element {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* アクションリンクボタン */
.link-button-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.35rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  text-decoration: none;
  cursor: pointer;
}

.link-text-underline {
  position: relative;
}

.link-text-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--text-secondary);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-button-wrapper:hover .link-text-underline::after {
  width: 100%;
}

.play-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
  background-color 0.4s ease, 
  color 0.4s ease,
  border-color 0.4s ease;
}

.link-button-wrapper:hover .play-icon-btn {
  transform: translateX(8px) scale(1.08);
  background-color: var(--text-secondary);
  color: var(--bg-secondary);
}

/* 会社概要テーブルデザイン */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.company-table th,
.company-table td {
  padding: 1.5rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.company-table th {
  width: 33%;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
}

.company-table td {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 2;
}

/* サブヒーロー（下層ページヘッダー） */
.sub-hero-section {
  padding-top: 160px;
  padding-bottom: 60px;
  background: linear-gradient(180deg, rgb(233 233 225) 0%, var(--bg-main) 100%);
}

.sub-hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.sub-hero-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .section-padding {
      padding: 4.5rem 0;
  }
}
/* ==========================================================================
  5-2. プロフィール＆沿革（タイムライン）スタイル
  ========================================================================== */
.profile-img-box {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.profile-img-box img {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: grayscale(20%) contrast(105%);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.profile-name-ja {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 3.5rem;
}

.profile-name-en {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

/* 沿革（タイムライン） */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 2rem;
  border-left: 1px solid #e1e1e1;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.8rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-2rem - 4.5px);
  top: 0.6rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-primary);
  border: 2px solid var(--bg-main);
}

.timeline-date {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: 0.12em;
  margin-bottom: 0.3rem;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-primary);
  opacity: 0.85;
  line-height: 1.9;
}

/* ==========================================================================
  6. フッター (Footer)
  ========================================================================== */
footer {
  padding: 5rem 0 3.5rem 0;
  background-color: var(--bg-main);
  text-align: center;
}
footer .logo-brand {
  width: 65px;
}

.footer-copyright {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-top: 2.5rem;
}


/* ==========================================================================
           3. CONTACT PAGE CUSTOM STYLES (お問い合わせページ専用スタイル)
    ========================================================================== */
.contact-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 140px 1.5rem 0 1.5rem;
}

.contact-heading {
    margin-bottom: 3.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2.5rem;
}

.contact-heading .eyebrow {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.28em;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.contact-heading h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-body {
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--border-color);
}
/* フォーム通知メッセージ */
.form-notice {
    border: 0px solid !important;
    color: #d35555;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: bold;
}

/* フォームフィールドレイアウト */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
}

.form-field label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-field label span {
    color: #d35555;
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea,
.form-field select {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    outline: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

.form-field textarea {
    resize: vertical;
    min-height: 180px;
    line-height: 1.8;
}

.field-error {
    font-size: 0.9rem;
    color: #d35555;
    margin-top: 0.2rem;
    margin-bottom: 0;
    font-weight: bold;
}

/* 注意書き (.sales-notice) */
.sales-notice {
  font-size: 0.9em;
  margin: 0.5rem 0 1rem 0;
  letter-spacing: 0.05em;
  font-weight: bold;
}

/* ボタン (.submit-button / .text-button) */
.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.1rem 2.8rem;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: fit-content;
    margin-top: 0.5rem;
    background-color: var(--text-primary);
    color: var(--bg-main);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
    border: 1px solid var(--text-primary);
}

.submit-button i {
    font-style: normal;
    transition: transform 0.3s ease;
}

.submit-button:hover {
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
}

.submit-button:hover i {
    transform: translateX(6px);
}

.text-button {
color: var(--text-muted) !important;
    font-weight: bold !important;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
    text-align: left;
    padding: 15px 15px 0 !important;
}

.text-button:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* 確認画面用リスト (.confirm-list) */
.confirm-list {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2.5rem !important;
    margin-bottom: 3rem !important;
}

.confirm-list dt {
    font-size: 1rem !important;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: bold !important;
    margin-bottom: 0.3rem;
}

.confirm-list dd {
    margin-left: 1rem !important;
}

.confirm-list dd .empty {
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* 完了画面注意書き (.complete-note) */
.complete-note {
    padding: 0 !important;
}

/* ページ下部戻るリンク (.back-link) */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-top: 3rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--text-primary);
}