/* ============================================================
   共通：CSS変数（色）・基本タグ・全ページで使う部品（ボタン・見出し・SPメニュー・ページ送りなど）
   ============================================================ */

/* ============================================================
   共通
   ============================================================ */

/* ── 基本タグ ── */
@charset "UTF-8";
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Noto Serif JP', "Noto Sans JP", sans-serif;

  font-weight: bold;
}
a {
  display: block;
  color: currentcolor;
  cursor: pointer;
  text-decoration: none;
}
a:hover{
  cursor: pointer;
}
ul, li{
  margin-left: 0 !important;
  list-style: none !important;
}

/* ── PC／SPの表示切り替え ── */
.p-sub_pc_on {
  display: block;
}
.p-sub_sp_on {
  display: none !important;
}
table .p-sub_sp_on {
  display: none;
}

/* ── 基本タグ ── */
h1, h2, h3, section, [id] {
  scroll-margin-top: 88px;}

/* ── CSS変数（色・影など） ── */
:root {

  --primary-color : #5c043a;
  --secondary-color : #8b6914;

  --color-text: #000000;
  --color-text-light: #666666;
  --color-text-white: #ffffff;
  --color-text-gray:#716E61;
  --color-text-accent: #a73d68;

  --color-bg: #ffffff;
  --color-bg-gray: #EDF4FD;
  --color-bg-dark: #222222;
  --color-bg-gray1: #EDF4FD;
  --color-bg-contact:#EDF4FD;
  --color-bg-cream: #fffefc;
  --color-bg-beige: #f6f0eb;
  --color-bg-box-light: rgba(255, 255, 255, .4);
  --color-bg-overlay-light: rgba(255, 255, 255, .35);
  --shadow-box: 0 4px 20px rgba(0, 0, 0, .1);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, .08);
  --color-bg-flow: rgba(247, 247, 247, .7);
  --color-bg-header-sp: rgba(255, 255, 255, .5);

  --color-line-gold: rgba(139, 105, 20, .3);
  --color-glow-gold: rgba(216, 181, 106, .5);
  --shadow-btn: 0 3px 4px rgba(0, 0, 0, .25);

  --color-gold: #b8995a;
  --color-bg-sp-cta: rgba(255, 255, 255, .92);

  --color-cat-essay: #7B4570;
  --color-cat-case: #B04A6E;
  --color-cat-daily: #6B6A9E;
  --color-cat-insight: #8B6914;

  --top-head     :64px;
  --top-subhead_h1  :27px;
  --top-subhead_h2  :36px;
  --top-subhead_h2  :27px;
  --top-text     :28px;
  --top-subtext  :16px;
}

/* ── セクション見出し（英語＋和文＋飾り） ── */
.c-heading {
  text-align: center;
}
.c-heading::after {
  content: "";
  display: block;
  width: 242px;
  height: 20px;
  margin: 20px auto 0;
  background: url(../img/common/program_ornament.png) center / 242px 20px no-repeat;
}
.c-heading__en {
  font-size: 36px;
  line-height: 1.4;
  letter-spacing: 1.4px;
  color: var(--color-text-accent);
}
.c-heading__ja {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 1.4px;
  color: var(--color-text-accent);
}

/* ============================================================
   TOPページ
   ============================================================ */

/* ── 共通 ── */
.p-top_text{
  font-size: 28px;
  color: var(--color-text);
  line-height: 2.2 !important;
  margin-bottom: 1rem;
}
.p-sub_text{
  font-size: var(--top-subtext);
  color: var(--sub-color);
  line-height: 2.2 !important;
  margin-bottom: 1rem !important;
}

/* ============================================================
   共通
   ============================================================ */

/* ── SPメニュー（ハンバーガー） ── */
#c-menu {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 299;
  will-change: transform;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  -webkit-transform: translateX(100%);
  transform: translateX(100%);
}
#c-menu.active {
  display: block;
  -webkit-transform: translateX(0%);
  transform: translateX(0%);
}
.c-menu-bg {
  background: var(--color-bg);
  width: 100%;
  height: 100%;
  overflow: scroll;
}
.c-menu_inner {
  width: 90%;
  margin: 0 auto;
  padding: 80px 0;
}
.c-menu_list_wrapper {
  margin-bottom: 1.5rem;
}
.c-menu_list_item {
  border-bottom: 1px solid #ffffff63;
}
.c-menu_list_item_inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem 1rem 1rem;
  border-bottom: 1px solid #cccc;
}
.c-menu_list_item_head_text {
  font-size: 16px;
  font-weight: bold;
  color: var(--color-text-gray);
}
.c-menu_list_item_inner:hover {
  background: #a0cfdf63;
}
.c-menu_sub_list_wrapper {
  display: none;
}
.c-menu_list_item_inner {
  position: relative;
}

/* ── 共通部品 ── */
.c-parent .c-menu_list_item_inner::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  transform: rotate(45deg);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.c-parent.active .c-menu_list_item_inner::after {
  transform: rotate(-135deg);
}

/* ── ボタン ── */
.c-btn{
  color: #fff;
  width: 315px;
  height: 12px;
  padding: 1.8rem;

  background-image: url(../img/common/top_btn_bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  font-size: 14px;
  line-height: 1;
  text-align: left;
  font-weight: bold;

  position: relative;
  display: inline-block;

  border: 1px solid transparent;

  border-color: var(--primary-color);
}
.c-btn::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 1px solid #fff;
  pointer-events: none;
}
.c-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 33px;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 7px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  transition: border-color .5s cubic-bezier(0,0,0,1);
}
.c-btn:hover {
  background: var(--color-bg);
  color: var(--color-text-accent);
  border-color: var(--primary-color);
}
.c-btn:hover::after {
  border-left-color: currentColor;
}
.c-btn:focus-visible{
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.c-btn.c-btn_return{
  width: 230px;
  color: var(--color-bg);
  background: var(--primary-color);
  border-color: transparent;
  padding-left: 3.2rem;
  padding-right: 1.8rem;
  position: relative;
}
.c-btn.c-btn_return::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 33px;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-right: 7px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  transition: border-color .5s cubic-bezier(0,0,0,1);
}
.c-btn.c-btn_return::after{ content: none; }
.c-btn.c-btn_return:hover{
  background: var(--color-bg);
  color: var(--color-text-accent);
  border-color: var(--primary-color);
}
.c-btn.c-btn_return:focus-visible{
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.c-btn.c-btn_return:active{
  filter: brightness(0.96);
}
.c-btn-header:active{
  filter: brightness(0.96);
}
.c-btn_return::after {
  top: calc(50% - 6px);
  left: 45px;
  border-top: 7px solid transparent;
  border-right: 7px solid var(--color-bg);
  border-bottom: 7px solid transparent;
  border-left: none;
}

/* ── ユーティリティ ── */
.u-under_line {
  text-decoration: underline !important;
}
.u-inline{
  display: inline;
}

/* ── reCAPTCHAのバッジ ── */
.grecaptcha-badge {
  visibility: hidden;
}

/* ── アニメーション ── */
@keyframes loop-slide {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ── ページ送り ── */
.c-pagination-inner {
  max-width: 210px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}
.page-nation {
  margin-top: 4vw;
}
.page-nation ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 1vw;
}
.c-pagination-inner a.page-numbers,
.c-pagination-inner span.page-numbers {
  display: block;
  font-size: 14px;
  text-align: center;
  line-height: 40px;
  color: #333333;
  background-color: var(--color-bg-gray);
  width: 40px;
  height: 40px;
}
.c-pagination-inner a.page-numbers.current,
.c-pagination-inner span.page-numbers.current {
  color: var(--color-bg);
  background-color: var(--primary-color);
  font-weight: bold;
}
.c-pagination-inner a.page-numbers.prev,
.c-pagination-inner a.page-numbers.next {
  font-size: 16px;
  color: var(--color-text-accent);
  background: none;
  font-weight: bold;
  width: auto;
  line-height: 40px;
  border-radius: 50%;
}

/* ── スクロールで表示するアニメーション ── */
.anim-box.fadein {
  opacity: 0;
  transform: translateY(40px);
}
.anim-box.fadein.is-animated {
  animation: fadeInUp 0.9s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.anim-box.fadein.delay-1.is-animated { animation-delay: .15s; }
.anim-box.fadein.delay-2.is-animated { animation-delay: .30s; }
.anim-box.fadein.delay-3.is-animated { animation-delay: .45s; }
.anim-box.fadein.delay-4.is-animated { animation-delay: .60s; }

/* ============================================================
   「動きを減らす」設定の端末
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

  /* ── 共通：スクロールで表示するアニメーション ── */
  .anim-box.fadein {
    opacity: 1;
    transform: none;
  }
  .anim-box.fadein.is-animated {
    animation: none;
  }

}

/* ============================================================
   共通
   ============================================================ */

/* ── スクロールで表示するアニメーション ── */
.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  animation: fadeInRight 1s ease forwards;
}
@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
