/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* ==============================
   1. Design Tokens（グローバル）
   ============================== */
:root {
  /* カラー（Elementorのグローバルに合わせる想定） */
  --color-primary: #2A5672;       /* 藍（あい） */
  --color-primary-dark: #011640;  /* 鉄紺（てつこん） */
  --color-accent: #BB935D;        /* 黄橙（きつるばみ） */
  --color-text: #3A3A3A;          /* テキスト */
  --color-bg: #F8F7F6;            /* 薄いグレー */
  --color-white: #FFFFFF;
  --color-black: #000000;

  /* フォント（必要に応じて実フォント名に変更） */
  --font-sans: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ベースのサイズ・余白（お試し用のごく簡易版） */
  --fs-base: 16px;
  --fs-lg: clamp(20px, 2vw, 24px);
  --fs-xl: clamp(24px, 3vw, 32px);
  --line-height-base: 1.7;
  --radius-md: 4px;
  --space-4: 16px;
  --space-8: 32px;
}

/* ==============================
   2. ベーススタイル（全ページ共通）
   ============================== */

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em 1.5em;
  padding: 0;
}

li {
  margin-bottom: 0.25em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  color: var(--color-primary-dark);
  margin: 0 0 0.5em;
  line-height: 1.3;
}

h1 {
  font-size: var(--fs-xl);
}

h2 {
  font-size: var(--fs-lg);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.5em 0.75em;
  border-bottom: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

/* ==============================
   3. フォーム・ボタンのベース
   ============================== */

input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='tel'],
textarea,
select {
  width: 100%;
  padding: 0.75em 1em;
  border-radius: var(--radius-md);
  border: none;
  background-color: #f7f7f7;
  box-sizing: border-box;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

button,
input[type='submit'],
.btn-primary {
  font-family: inherit;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6em 1.4em;
  border-radius: var(--radius-md);
  border: none;
  background-color: var(--color-primary);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

button:hover,
input[type='submit']:hover,
.btn-primary:hover {
  background-color: var(--color-primary-dark);
}

button:focus-visible,
input[type='submit']:focus-visible,
.btn-primary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ==============================
   4. WooCommerce フォーム共通
   ============================== */

/* Woo すべてのフォームのフォーム間隔をゆったりと */
.woocommerce form .form-row {
  margin-bottom: 1.0rem;
}

.woocommerce form label {
  display: block;
  margin-bottom: 0.25rem;
}

/* Woo 登録フォーム内の注意書きテキストをやや小さく（本文より一段小さい） */
.woocommerce-form-register .woocommerce-privacy-policy-text,
.woocommerce-account .woocommerce-privacy-policy-text {
  font-size: 0.8rem;
  line-height: 1.6;
}

/* Woo すべてのフォーム入力欄を上書き（ログイン・登録・マイアカウント・チェックアウト等） */
.woocommerce input.input-text,
.woocommerce input[type='text'],
.woocommerce input[type='email'],
.woocommerce input[type='password'],
.woocommerce input[type='tel'],
.woocommerce textarea,
.woocommerce select {
  background-color: #f7f7f7 !important;
  border: none !important;
  padding: 1em !important;
  border-radius: var(--radius-md) !important;
}

/* 「パスワードの変更」エリアの枠線を消す */
.woocommerce-MyAccount-content fieldset {
  border: none;
  padding: 1.5rem 0 0;
  margin: 1.5rem 0 0;
}

.woocommerce-MyAccount-content fieldset legend {
  padding: 0;
  margin-bottom: 0.75rem;
}

/* Woo ログイン／登録ボタンを全幅に */
.woocommerce-form-login .button,
.woocommerce-form-register .button,
.woocommerce form.login .button,
.woocommerce form.register .button {
  width: 100%;
  justify-content: center;
}

/* Woo ログインフォームの「ログイン状態を保持」をボタンの下に配置 */
.woocommerce-form-login .form-row .woocommerce-button {
  order: 1;
}

.woocommerce-form-login .form-row .woocommerce-form__label-for-checkbox {
  order: 2;
  margin-top: 0.75rem;
}

/* ボタンとチェックボックスを入れ替える行だけ縦並びにする */
.woocommerce-form-login .form-row:has(.woocommerce-button) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ==============================
   4. WooCommerce マイアカウント
   ============================== */

/* 左側ナビゲーション全体のボックス（PCベース） */
.woocommerce-MyAccount-navigation {
  background-color: #f7f7f7;
  padding: 0;
  margin-bottom: 2.0rem;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-MyAccount-navigation li {
  margin: 0;
}

.woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 0.9rem 1.25rem;
  text-decoration: none;
}

.woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li a:focus {
  background-color: #f0f0f0;
}

.woocommerce-MyAccount-navigation li.is-active a {
  background-color: #ffffff;
  font-weight: 600;
}

/* ---------- PC (縦メニュー) アクティブ状態の強調 ---------- */
@media (min-width: 767px) {
  .woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
  .woocommerce-account .woocommerce-MyAccount-navigation li.current-menu-item a {
    border-left: 4px solid var(--color-primary);
    padding-left: calc(1.25rem - 4px);
    border-bottom: 0;
  }
}

/* ---------- 横スクロールナビ (<=1024px) ---------- */
@media (max-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
    display: none;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 0;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: inline-block;
    padding: 10px 18px;
    white-space: nowrap;
    text-align: center !important;
  }

  /* アクティブ下線 */
  .woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
  .woocommerce-account .woocommerce-MyAccount-navigation li.current-menu-item a {
    border-top: 4px solid var(--color-primary);
    border-left: 0;
  }

  /* 矢印ボタン */
  .ma-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
  }

  .ma-nav-arrow svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #666;
    stroke-width: 2;
  }

  .ma-arrow-prev {
    left: -12px;
  }

  .ma-arrow-next {
    right: -12px;
  }
}

/* ==============================
   5. WooCommerce テーブル
   ============================== */

/* Woo のテーブルをシンプルな1本線の罫線に揃える */
.woocommerce table.shop_table {
  border-collapse: collapse !important;
  border-radius: 0;
  background-color: #fff;
  box-shadow: none;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border: 1px solid #ddd;
  box-shadow: none;
}

/* マイアカウント内を含む WooCommerce ボタンをブランドカラーに統一 */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .woocommerce-button {
  font-family: inherit;
  font-size: 1rem;
  padding: 1.0em 1.4em;
  border-radius: var(--radius-md);
  border: none;
  background-color: var(--color-primary-dark);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .woocommerce-button:hover {
  background-color: var(--color-accent);
  color: #fff;
}

.woocommerce a.button:focus-visible,
.woocommerce button.button:focus-visible,
.woocommerce input.button:focus-visible,
.woocommerce #respond input#submit:focus-visible,
.woocommerce .woocommerce-button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}


/* ==============================
   6. グローバル言語スイッチャー UI
   ============================== */

.lang-switcher {
  position: relative;
  display: flex;
  justify-content: flex-end;
  z-index: 10;
  font-family: var(--font-sans);
}

.lang-switcher__button {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--color-white) !important;
  border: 1px solid var(--color-bg) !important;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  font-size: 14px;
  color: var(--color-text) !important;
}

.lang-switcher__button:hover,
.lang-switcher__button:focus-visible,
.lang-switcher.is-open .lang-switcher__button {
  background: var(--color-accent) !important;
  color: var(--color-text) !important;
  border-color: var(--color-bg) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lang-switcher__icon {
  width: 16px;
  height: 16px;
  color: currentColor;
  flex-shrink: 0;
}

.lang-switcher__current {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.lang-switcher__arrow {
  width: 8px;
  height: 8px;
  opacity: 0.6;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.lang-switcher.is-open .lang-switcher__arrow {
  transform: rotate(180deg);
}

.lang-switcher__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}

.lang-switcher.is-open .lang-switcher__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher__option {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.lang-switcher__option:last-child {
  border-bottom: none;
}

.lang-switcher__option:hover {
  background: #f8f7f6;
}

.lang-switcher__option.is-active {
  background: #f8f7f6;
  font-weight: 700;
}

.lang-name {
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}


/* ==============================
   7. LearnDash Course Content
   ============================== */

/* LearnDash ボタンをブランドカラーに統一 */
body .learndash-wrapper .ld-button:not(.ld-button-reverse):not(.ld-button-transparent):not(.ld--ignore-inline-css),
body .learndash-wrapper .btn-join:not(.ld--ignore-inline-css) {
  background-color: var(--color-primary-dark) !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  padding: 1em 1.4em !important;
  border-radius: var(--radius-md) !important;
  border: none !important;
  color: #fff !important;
  transition: background-color 0.2s ease;
}

body .learndash-wrapper .ld-button:not(.ld-button-reverse):not(.ld-button-transparent):not(.ld--ignore-inline-css):hover,
body .learndash-wrapper .btn-join:not(.ld--ignore-inline-css):hover {
  background-color: var(--color-accent) !important;
}

/* Lesson Content / Progress バー（ブルー背景）を非表示 */
.ld-table-list-header {
  display: none !important;
}

/* 展開時の白い三角形の装飾を非表示 */
.learndash-wrapper .ld-item-list-item-expanded:before {
  display: none !important;
}

/* Collapse/Expand の文言を非表示（アイコンのみ残す） */
.ld-expand-button .ld-text,
.ld-expand-button-text {
  display: none !important;
}

/* トピックス項目の背景・罫線・余白 */
.ld-table-list-items {
  background-color: var(--color-bg) !important;
  padding: 12px 20px !important;
  border-top: 2px solid #e2e7ed !important;
}

.ld-table-list-item {
  background-color: var(--color-bg) !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ld-table-list-item a {
  padding: 8px 0 !important;
}

/* トピックス項目の状態アイコン（小さく・正円に） */
.ld-table-list-item .ld-status-icon {
  height: 18px !important;
  flex-basis: 18px !important;
  flex-shrink: 0 !important;
}

/* チェックマークアイコンを小さく */
.learndash-wrapper .ld-status-icon.ld-status-complete .ld-icon {
  font-size: 0.8em !important;
}

/* ==============================
   8. LearnDash 進捗エリア
   ============================== */

/* 「最後のアクティビティ」を非表示 */
.ld-progress-steps {
  display: none !important;
}




