/*
 Theme Name:   Understrap for CCCJ
 Theme URI:    http://example.com/twenty-fifteen-child/
 Description:  Theme for CCCJ
 Author:       John Doe
 Author URI:   http://example.com
 Template:     understrap
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  understrap-cccj
*/

:root {
  --primary: #a31219;
  --secondary: #b3936f;
  --succeess: #5cb85c;
  --info: #5bc0de;
  --warning: #f0ad4e;
  --danger: #d9534f;
  --primary2: #6f0d12;
  /*primaryのホバー時カラー*/
  --secondary2: #80684d;
  /*secondaryのホバー時カラー*/
  --succeess2: #449d44;
  /*successのホバー時カラー*/
  --info2: #31b0d5;
  /*infoのホバー時カラー*/
  --warning2: #ee9800;
  /*warningのホバー時カラー*/
  --danger2: #cb2e25;
  /*dangerのホバー時カラー*/
  --white: #ffffff;
  --font-base: #212121;
  --gray: #707070;
  --white-gray: #f8f8f8;
  --light-gray: #e5e5e5;
  --footer-gray: #aaaaaa;
  --beige: #fffaf2;
  /* 22/2リニューアル時追加色↓ */
  --pale-primary: #f29894;
  --pale-secondary: #f7f4e8;
  --pale-gray: #eeeaeb;
}

html {
    font-size: 15px;
    overflow: -webkit-paged-y;
}

body {
    font-size: 1rem;
    line-height: 1.8;
    font-family: "acumin-pro","source-han-sans-japanese", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-style: normal;
}

.en {
    font-family: acumin-pro, sans-serif;
    font-style: normal;
    font-weight: 400;
}

.en-cond {
    font-family: acumin-pro-condensed, sans-serif;
    font-style: normal;
    font-weight: 400;
}

.fw-400 { font-weight: 400!important; }
.fw-700 { font-weight: 700!important; }

.font-serif {
    font-family: kepler-std, noto-serif, serif;
}

p {
    font-size: 1rem;
}

a:hover {
    color: var(--primary);
}

/* CONTAINER ==================== */

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    width: 100%;
    padding-right: var(--bs-gutter-x, 2rem);
    padding-left: var(--bs-gutter-x, 2rem);
    margin-right: auto;
    margin-left: auto;
}

.contents-wrap {
    padding: 80px 0 80px !important;
}

.container {
    max-width: 1090px;
    margin: 0 auto;
}


/* LINK ==================== */

a {
    color: #000;
}

a {
    color: #000;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.container a.link,
.container-fluid a.link,
.link>a {
    color: #0066cc;
    font-weight: bold;
}

/* a:visited { 20220412_arai コンフリクトするため一旦削除
    color: #000;
    }*/

a:hover {
    opacity: 0.6;
}


/* BOOTSTRAP 5 ==================== */

.row {
    /*--bs-gutter-x: 1.5rem;*/
    --bs-gutter-x: 3rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(var(--bs-gutter-y) * -1);
    margin-right: calc(var(--bs-gutter-x)/ -2);
    margin-left: calc(var(--bs-gutter-x)/ -2);
}

/* GATTER */

.gx-1 {
    --bs-gutter-x: 1rem;
}

.gx-2 {
    --bs-gutter-x: 2rem;
}

.gx-3 {
    --bs-gutter-x: 3rem;
}

.gx-4 {
    --bs-gutter-x: 4rem;
}

.gx-5 {
    --bs-gutter-x: 5rem;
}

.gy-1 {
    --bs-gutter-y: 1rem;
}

.gy-2 {
    --bs-gutter-y: 2rem;
}

.gy-3 {
    --bs-gutter-y: 3rem;
}

.gy-4 {
    --bs-gutter-y: 4rem;
}

.gy-5 {
    --bs-gutter-y: 5rem;
}


/* MARGIN ==================== */

.mt-0 {
    margin-top: 0rem !important;
}

.mt-05 {
    margin-top: 0.5rem !important;
}

.mt-1 {
    margin-top: 1rem !important;
}

.mt-2 {
    margin-top: 2rem !important;
}

.mt-3 {
    margin-top: 3rem !important;
}

.mt-4 {
    margin-top: 4rem !important;
}

.mt-5 {
    margin-top: 5rem !important;
}

.mt-6 {
    margin-top: 6rem !important;
}

.mt-7 {
    margin-top: 7rem !important;
}

.mt-8 {
    margin-top: 8rem !important;
}

.mt-9 {
    margin-top: 9rem !important;
}

.mt-10 {
    margin-top: 10rem !important;
}

.mb-0 {
    margin-bottom: 0rem !important;
}

.mb-05 {
    margin-bottom: 0.5rem !important;
}

.mb-1 {
    margin-bottom: 1rem !important;
}

.mb-2 {
    margin-bottom: 2rem !important;
}

.mb-3 {
    margin-bottom: 3rem !important;
}

.mb-4 {
    margin-bottom: 4rem !important;
}

.mb-5 {
    margin-bottom: 5rem !important;
}

.mb-6 {
    margin-bottom: 6rem !important;
}

.mb-7 {
    margin-bottom: 7rem !important;
}

.mb-8 {
    margin-bottom: 8rem !important;
}

.mb-9 {
    margin-bottom: 9rem !important;
}

.mb-10 {
    margin-bottom: 10rem !important;
}

.mr-0 {
    margin-right: 0rem !important;
}

.mr-05 {
    margin-right: 0.5rem !important;
}

.mr-1 {
    margin-right: 1rem !important;
}

.mr-2 {
    margin-right: 2rem !important;
}

.mr-3 {
    margin-right: 3rem !important;
}

.mr-4 {
    margin-right: 4rem !important;
}

.mr-5 {
    margin-right: 5rem !important;
}

.mr-6 {
    margin-right: 6rem !important;
}

.mr-7 {
    margin-right: 7rem !important;
}

.mr-8 {
    margin-right: 8rem !important;
}

.mr-9 {
    margin-right: 9rem !important;
}

.mr-10 {
    margin-right: 10rem !important;
}

.ml-1 {
    margin-left: 1rem !important;
}

.ml-2 {
    margin-left: 2rem !important;
}

.ml-3 {
    margin-left: 3rem !important;
}

.ml-4 {
    margin-left: 4rem !important;
}

.ml-5 {
    margin-left: 5rem !important;
}

.ml-6 {
    margin-left: 6rem !important;
}

.ml-7 {
    margin-left: 7rem !important;
}

.ml-8 {
    margin-left: 8rem !important;
}

.ml-9 {
    margin-left: 9rem !important;
}

.ml-10 {
    margin-left: 10rem !important;
}


/* PADDING ==================== */

.p-1 {
    padding: 1rem !important;
}

.p-2 {
    padding: 2rem !important;
}

.p-3 {
    padding: 3rem !important;
}

.p-4 {
    padding: 4rem !important;
}

.p-5 {
    padding: 5rem !important;
}


/* HEADER & NAVI ==================== */

#wrapper-navbar.header--member {
    background: var(--primary);
    color: var(--white);
}

#wrapper-navbar.header--home {
    background: transparent;
    color: var(--white);
}


.header-area-label {
    margin-left: 15px;
}

.navbar-toggler {
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    font-size: 1.8rem;
    line-height: 1;
    background-color: transparent;
    border: none;
    border-radius: 0.25rem;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.navbar-white .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 1)' stroke-width='1.5' stroke-linecap='square' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: none;
}

.navbar {
    padding-top: 0px;
    padding-bottom: 0px;
}

.navbar-collapse {
    /*background: #fff;*/
}

.navbar-nav .nav-link {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
}

.navbar-collapse {
    padding-top: 20px;
    padding-bottom: 20px;
}

.header--default .navbar-brand {
    width:390px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 18px;
    line-height: 1;
}

@media(min-width:577px){
.header--default .navbar-brand {
    font-size: 24px;
}
}

@media(min-width:992px) and (max-width:1140px){
    .header--default .navbar-brand {
        font-size: 20px;
    }
}

.header--default .navbar-brand .main-logo {
    display: block;
    width: 60px;
    height: 60px;
    float: left;
    margin: 0 .7rem 0 0;
}

@media(min-width:577px){
    .header--default .navbar-brand .main-logo {
        width: 70px;
        height: 70px;
        margin: 0 1.2rem 0 0;
    }
}

.header--default .navbar-brand span {
    display: block;
    font-size: 15px;
    font-family: acumin-pro, sans-serif;
    font-weight: 700;
}

.header--default .navbar-brand span:first-of-type {
    margin-top: 8px;
    font-size: 13px;
}

.header--default .nav-link {
    font-family: acumin-pro-condensed, sans-serif;
    font-weight: 700;
    font-size: 18px!important;
    display: block;
    padding: 0.5rem 1rem;
    color: var(--font-base)!important;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.header--member .navbar-brand {
    width:390px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 20px;
}

.header--member .navbar-brand .main-logo {
    display: block;
    width: 60px;
    height: 60px;
    float: left;
    margin: 0 1.2rem 0 0;
    filter: brightness(0) invert(1);
}

.header--member .navbar-brand span {
    display: block;
    font-size: 25px;
    font-family: acumin-pro-condensed, sans-serif;
    font-weight: 700;
}

.header--member .nav-link,
.header--home .nav-link {
    font-family: acumin-pro-condensed, sans-serif;
    font-weight: 700;
    font-size: 18px!important;
    display: block;
    padding: 0.5rem 1rem;
    color: var(--white)!important;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.header--member a,
.header--home a {
    color: var(--white)!important;
    line-height: 1;
}

@media(max-width:576px){

.header--member .nav-link,
.header--home .nav-link {
    padding: .5rem .8rem;
    color: var(--font-base)!important;
}

.header--member a,
.header--home a {
    color: var(--font-base)!important;
}

}

.navbar-brand a {
    text-decoration: none;
}

.header--home a.home {
    position: relative;
    max-width: 70vw;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

@media (min-width:768px){
    .header--home a.home {
        position: absolute;
        max-width: 80vw;
        top: 70px;
        left:70px;
        z-index: 1000;
    }
}

.navbar-toggler{
    border: none!important;
    top: 20px;
    right: 20px;
}

header.header--default .navbar-toggler .navbar-toggler-icon {
    background-image: url("./inc/img/bars-regular-full.svg");
    color: var(--white);
}

header.header--home .navbar-toggler {
    color: var(--white);
    border: none;
    z-index: 10000;
}

header.header--home .navbar-toggler .navbar-toggler-icon {
    background-image: url("./inc/img/bars-regular-full.svg");
}

header.header--home .navbar-toggler.collapsed .navbar-toggler-icon {
    background-image: url("./inc/img/bars-regular-full_white.svg");
}

@media(max-width:576px){
    header.header--home .navbar-collapse {
        position: relative;
        top: -60px;
        z-index:2000;
    }
}

/* ===== Front Page ==== */

/* ===== Hero Marquee 全体 ===== */

    .hero-marquee{position:relative;overflow:hidden;isolation:isolate}
    .hero-marquee .marquee{--gap:2.0rem;--row-h:120px;--scale:1;block-size:var(--row-h);display:flex;align-items:center}
    .hero-marquee .row-top{margin-block-end:1.2rem}
    .hero-marquee .track{display:flex;gap:var(--gap);width:max-content;will-change:transform;
      animation:hero-scroll var(--dur,60s) linear infinite}
    .hero-marquee .row-bottom .track{animation-direction:reverse}

    /* 高密度表示が必要なら高さだけ調整（ブレイクポイント例） */
    @media (min-width:768px){
      .hero-marquee .marquee{--row-h:140px}
    }
    @media (min-width:1200px){
      .hero-marquee .marquee{--row-h:260px}
    }

    /* アニメーション：左右どちらにも対応（clone済みを延々流す） */
    @keyframes hero-scroll{
      from{ transform:translateX(0) }
      to{ transform:translateX(-50%) } /* コンテンツを 200% 並べた前提で半分分を移動 */
    }

    /* 利用者環境に配慮 */
    @media (prefers-reduced-motion:reduce){
      .hero-marquee .track{animation:none}
    }

.hero-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 400px; /* セクション全体の高さ（調整可） */
  background: url("./inc/img/bg_hero_marquee.png") no-repeat center center;
  background-size: cover;
  padding: 280px 0 40px; /* 上下余白 */
  top: -90px;
  z-index: -1;
}

/* 上段と下段の帯 */
.hero-marquee .marquee {
  --row-h: 260px;      /* 各列の高さ */
  --gap: 2rem;         /* 画像間の余白 */
  height: var(--row-h);
  display: flex;
  align-items: center;
}

/* 下段だけ余白調整 */
.hero-marquee .row-bottom {
  margin-bottom: 0;
}

/* 画像トラック */
.hero-marquee .track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  will-change: transform;
}

/* 画像アイテム */
.hero-marquee .item {
  flex: 0 0 auto;
  height: 240px;
  width: 400px;
  list-style: none;
}

/* 画像スタイル */
.hero-marquee .item img {
  height: 100%;
  width: auto;
  object-fit: cover;      /* トリミングしながらフィット */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* 影 */
  transition: transform 0.3s ease;
}

/* ホバー時に軽く拡大 */
.hero-marquee .item img:hover {
  transform: scale(1.05);
}

/* ブレイクポイント調整 */
@media (max-width: 991px) {
  .hero-marquee {
    min-height: 300px;
    padding: 250px 0 30px;
  }
  .hero-marquee .marquee {
    --row-h: 120px;
    --gap: 1.5rem;
  }

  .hero-marquee .item {
  flex: 0 0 auto;
  width: 21vw;
  height: 12.6vw;
  list-style: none;
}
}
@media (max-width: 575px) {
  .hero-marquee {
    min-height: 220px;
    padding: 120px 0 30px;
    top:-70px;
  }
  .hero-marquee .marquee {
    --row-h: 110px;
    --gap: 1rem;
  }

    .hero-marquee .item {
  flex: 0 0 auto;
  height: 30vw;
  width: 50vw;
  list-style: none;
}

}

/* ===== News ===== */

.news-block a {
    color: var(--font-base);
    text-decoration: none;
}



/* ===== Page Hero ===== */

.page-hero--image{
  min-height: clamp(180px, 30vh, 240px);
  display: flex;
  align-items: flex-end;
  padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 6vw, 64px);
  color: #fff;
}

@media(min-width:577px){
.page-hero--image{
  min-height: clamp(240px, 60vh, 520px);
}
}

.page-hero__bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

.page-hero__overlay{
    content: "";
    position: absolute;
    inset: 0;
    /* 上を少し明るく、下で文字を読みやすく */
    background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.25) 65%, rgba(0,0,0,.40) 100%);
}

/* 画像なし：テキストのみの簡易ヘッダー */
.page-hero--plain{
  padding: clamp(28px, 6vw, 56px) 0;
  color: var(--bs-body-color);
  background: none;
  border-bottom: 1px solid rgba(0,0,0,.075);
}
.page-hero--plain .page-hero__title{ text-shadow: none; }
.page-hero--plain .page-hero__sub{
  color: #222;
  opacity: 1;
  text-shadow: none;
}

.page-hero__sub{
    font-family: acumin-pro-condensed, sans-serif;
    line-height: 1.1;
    letter-spacing: .02em;
    text-shadow: 0 2px 10px rgba(0,0,0,.45);
    word-break: keep-all;
    position: relative;
}

.page-hero__title{
    opacity: .95;
    margin-bottom: .5rem;
    text-shadow: 0 1px 6px rgba(0,0,0,.35);
}

/* 画像未設定時の見栄え */
.page-hero:not(:has(.page-hero__bg[style])) .page-hero__bg{
    background: #222;
}

/* モバイルで少し余白を詰める */
@media (max-width: 576px){
    .page-hero{ padding: 48px 0 36px; }
    .page-hero__title{ font-size: clamp(28px, 8vw, 40px); }
}

/* Common Content ==================== */
#page-wrapper.wrapper {
    background: url(./inc/img/bg_content.png) no-repeat center top;
    background-size: cover;
    background-color:rgba(255,255,255,0.8);
    background-blend-mode:lighten;
}

body.home #page-wrapper.wrapper {
    background: none;
}

header.header--member ~ #page-wrapper.wrapper {
    background: none;
}

.title {
    margin: 3rem 0;
}

.title > h2.title-main {
    font-size: 1rem;
    margin: 0;
}

.title > p.title-sub {
    font-family: acumin-pro-condensed, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.content-wrapper {
    line-height: 1.8;
    letter-spacing: 0.04rem;
}

@media (min-width: 576px) { /* PC表示時のコンテンツセンター寄せ設定 */
    .content-wrapper {
        margin-left: 16.66666667%;
        width: 66.66666667%;
    }
}

.text-default { /* aリンク表示リセット用 */
    color: var(--font-base);
    text-decoration: none;
}


/* コンテンツ本文：PC時のみ2カラム */
.content-columns {
  column-count: 1;       /* 初期は1カラム */
  column-gap: 2.5rem;    /* カラム間の余白 */
}

@media (min-width: 992px) {
  .content-columns {
    column-count: 2;     /* PCでは2カラム */
  }
}

/* ロゴ入り区切り線 */
hr.wp-block-separator {
  position: relative;
  border: none;
  border-top: none;
  margin: 5rem 0;
  text-align: center;
}

hr.wp-block-separator::after {
  content: "";
  display: inline-block;
  width: 42px;      /* ロゴサイズ */
  height: 42px;
  background: url("./inc/img/cccj_logo.svg") no-repeat center center;
  background-size: contain;
  padding: 0.5rem;         /* ロゴと線の余白 */
}

/* History */

.page-title {
    margin: 5rem 0;
}

.page-title .year {
    background: #A9A9A9;
    color: var(--white);
    margin-right: 0.5em;
    padding: 10px 20px;
    font-size: 60px;
    line-height: 1;
    display: inline-block;
}

/* Event */

.event-decades {
    font-size: 1.5rem;
}

.event-decades a {
    color: var(--font-base);
}

.event-decades a:hover {
    text-decoration: underline;
}

/* Footer */

footer .navbar-brand .main-logo {
    filter: brightness(0) invert(1);
}

footer .navbar-brand {
    width:390px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 22px;
}

footer .navbar-brand .main-logo {
    display: block;
    width: 70px;
    height: 70px;
    float: left;
    margin: 0 1.5rem 0 0;
}

footer .navbar-brand span {
    display: block;
    font-size: 15px;
    font-family: acumin-pro-condensed, sans-serif;
    font-weight: 700;
}

footer .navbar-brand span:first-of-type {
    margin-top:5px;
    font-size: 13px;
}

footer .navbar-brand a {
    color: #FFF!important;
    text-decoration: none;
    line-height: 1;
}

#menu-footernavigation.menu {
    list-style: none;
    padding-left: 0;
}

#menu-footernavigation.menu li.menu-item {
    display: inline-block;
}

#menu-footernavigation.menu li.menu-item a {
    color: #FFF;
    text-decoration: none;
    margin: 0 1.5rem 1.5rem 0;
}    

/* Login */

#wppb-submit {
    background: var(--gray);
    color: var(--white);
    font-size: 20px;
    padding: 8px 16px;
    line-height: 1;
    border: none;
}

/* Contact */

.gform_required_legend{
    display: none;
}