/* =====================================================
   yokohashikawa.jp — Custom Styles
   Child theme of Kadence
   ===================================================== */

/* Google Fonts は functions.php で enqueue（@import はレンダリング直列化のため廃止 2026-07-27） */

/* ====== BASE ====== */
body { font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif; }

/* ====== FLOAT CTA ====== */
/* ラッパー：位置指定＋スクロールで出現（JSはfunctions.php／閉じたら24h非表示） */
.yoko-float-cta {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: auto;
    max-width: calc(100% - 48px);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.yoko-float-cta.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

.floating-cta {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    background: linear-gradient(135deg, #ff9b2f 0%, #ff6a00 55%, #ec4c0a 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
    transition: .3s;
    overflow: hidden;
}
.floating-cta:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 25px 55px rgba(0,0,0,.35);
}
/* アイコン */
.floating-cta__icon {
    flex: none;
    font-size: 34px;
    color: #fff;
    line-height: 1;
}
/* テキスト（バッジ→タイトル→テキストを縦積み・左揃え） */
.floating-cta__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
/* 初めての方はこちら（タイトルの真上に配置） */
.floating-cta__label {
    display: inline-block;
    margin-bottom: 3px;
    background: #fff;
    color: #ff6a00;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    letter-spacing: .04em;
}
.floating-cta__title {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}
/* 矢印（お申込みはこちらの行末にインライン配置） */
.floating-cta__arrow {
    display: inline-block;
    margin-left: 7px;
    font-size: 19px;
    font-weight: 300;
    vertical-align: -3px;
}
/* 閉じるボタン（アンカーの外＝クリップされない） */
.floating-cta__close {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 2;
    width: 30px;
    height: 30px;
    min-width: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #003049;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s;
}
.floating-cta__close:hover { background: #ff6a00; }

/* ===== スマホ：ファーストビューでは非表示（スクロールで下部にバー表示） ===== */
@media (max-width: 768px) {
    .yoko-float-cta {
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
    }
    .floating-cta {
        border-radius: 16px 16px 0 0;
        padding: 11px 16px;
        gap: 12px;
    }
    .floating-cta__label { font-size: 10px; padding: 2px 10px; margin-bottom: 3px; }
    .floating-cta { justify-content: center; }
    .floating-cta__body { flex: none; }
    .floating-cta__icon { font-size: 32px; }
    .floating-cta__title { font-size: 15px; }
    .floating-cta__arrow { font-size: 18px; margin-left: 7px; vertical-align: -2px; }
    .floating-cta__close { top: 6px; right: 8px; }
}

/* ====== HEADER ====== */
.site-header { border-bottom: 1px solid #e4e0d8; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.site-title, .site-description { display: none !important; }

/* ====== NAV LINKS ====== */
#site-navigation .menu-item > a { display: flex; flex-direction: column; align-items: center; text-decoration: none; padding: 0 16px; gap: 0; }
#site-navigation .nav-link-wrap { display: flex; flex-direction: column; align-items: center; line-height: 1; }
#site-navigation .nav-link-wrap > span:first-child { font-size: 13px; font-weight: 500; color: #003049; letter-spacing: 0.03em; line-height: 1; padding-bottom: 6px; border-bottom: 1px solid #d0cdc8; transition: border-color 0.2s, color 0.2s; }
#site-navigation .menu-item > a:hover .nav-link-wrap > span:first-child,
#site-navigation .current-menu-item > a .nav-link-wrap > span:first-child,
#site-navigation .current-page-ancestor > a .nav-link-wrap > span:first-child { border-bottom-color: #d62828; color: #d62828; }
#site-navigation .menu-item-description { display: block; font-family: 'Courier New', Courier, monospace; font-size: 10px; letter-spacing: 0.16em; color: #9aa4ae; margin-top: 5px; line-height: 1; }
.popup-drawer .menu-item-description { display: none; }

/* お問合せ ナビCTAボタン */
#site-navigation .menu-item-contact > a,
#site-navigation .menu-item > a.nav-cta { border: 2px solid #d62828; color: #d62828; padding: 9px 18px; border-radius: 3px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; line-height: 1; transition: background 0.18s, color 0.18s; }
#site-navigation .menu-item-contact > a:hover,
#site-navigation .menu-item > a.nav-cta:hover { background: #d62828; color: #fff; }

/* ====== FOOTER NAV ====== */
.site-footer .widget_nav_menu .menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-footer .widget_nav_menu .menu a { color: rgba(255,255,255,0.85); font-size: 12px; text-decoration: none; transition: color 0.15s; }
.site-footer .widget_nav_menu .menu a:hover { color: #fff; text-decoration: underline; }
.site-footer .wp-block-navigation .wp-block-navigation-item__content { color: rgba(255,255,255,0.85) !important; font-size: 12px; text-decoration: none; }
.site-footer .wp-block-navigation .wp-block-navigation-item__content:hover { color: #fff !important; text-decoration: underline; }

/* ====== FOOTER CTA ====== */
.yoko-footer-cta { background-color: #f77f00; padding: 80px 40px; text-align: center; }
.yoko-footer-cta-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.8); margin-bottom: 16px; font-family: 'Courier New', Courier, monospace; }
.yoko-footer-cta-title { font-size: 28px; font-weight: 700; color: #fff; margin: 0 0 16px; line-height: 1.4; }
.yoko-footer-cta-text { font-size: 15px; color: rgba(255,255,255,0.88); margin: 0 0 32px; line-height: 1.7; }
.yoko-footer-cta-btn { display: inline-block; background: #fff; color: #f77f00; padding: 16px 40px; border-radius: 4px; font-size: 15px; font-weight: 700; text-decoration: none; letter-spacing: 0.04em; transition: opacity 0.15s; }
.yoko-footer-cta-btn:hover { opacity: 0.85; }
@media (max-width: 768px) {
  .yoko-footer-cta { padding: 60px 20px; }
  .yoko-footer-cta-title { font-size: 22px; }
}

/* ====== FOOTER ====== */
.yoko-footer { background-color: #177e89; padding: 0; }
.yoko-footer-inner { max-width: 1100px; margin: 0 auto; padding: 32px 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.yoko-footer-logo a { display: inline-block; text-decoration: none; }
.yoko-footer-nav-wrap .yoko-footer-nav { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.yoko-footer-nav-wrap .yoko-footer-nav li a { color: rgba(255,255,255,0.85); font-size: 12px; text-decoration: none; transition: color 0.15s; }
.yoko-footer-nav-wrap .yoko-footer-nav li a:hover { color: #fff; text-decoration: underline; }
.yoko-footer-social { display: flex; gap: 12px; align-items: center; }
.yoko-social-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.5); color: #fff; text-decoration: none; transition: border-color 0.15s, background 0.15s; }
.yoko-social-icon:hover { border-color: #fff; background: rgba(255,255,255,0.12); }
.yoko-footer-copy { border-top: 1px solid rgba(255,255,255,0.22); background-color: #177e89; }
.yoko-footer-copy-inner { max-width: 1100px; margin: 0 auto; padding: 16px 40px; font-size: 11px; color: rgba(255,255,255,0.6); text-align: center; }
@media (max-width: 768px) {
  .yoko-footer-inner { flex-direction: column; align-items: flex-start; padding: 28px 20px; gap: 20px; }
  .yoko-footer-copy-inner { padding: 14px 20px; }
}

/* ====== MOBILE: ハンバーガーを左に ====== */
@media (max-width: 1024px) {
  .site-header .header-inner { flex-direction: row-reverse; }
  .site-header .header-column-center { position: absolute; left: 50%; transform: translateX(-50%); pointer-events: none; }
  .site-header .header-column-center > * { pointer-events: auto; }
}

/* ====== MOBILE: セクション余白縮小 ====== */
@media (max-width: 767px) {
  .entry-content .wp-block-group[style*="padding-top:88px"] { padding-top: 48px !important; padding-bottom: 48px !important; }
  .entry-content .wp-block-group[style*="padding-top:64px"] { padding-top: 36px !important; padding-bottom: 36px !important; }
  .entry-content .wp-block-group[style*="padding-bottom:72px"] { padding-bottom: 48px !important; }
  .entry-content .wp-block-cover { min-height: 360px !important; }
}

/* ====== CAROUSEL SLIDER: ページネーション（細バー・スライド内） ====== */
.wp-block-cb-carousel-v2 { position: relative; }
.wp-block-cb-carousel-v2 .swiper { padding-bottom: 0 !important; }
.wp-block-cb-carousel-v2 .swiper-horizontal { margin-bottom: 0 !important; }
.wp-block-cb-carousel-v2 .cb-pagination.swiper-pagination { position: absolute; bottom: 20px; left: 0; right: 0; z-index: 20; text-align: center; line-height: 1; }
.wp-block-cb-carousel-v2 .swiper-pagination-bullet { display: inline-block !important; width: 36px !important; height: 3px !important; border-radius: 2px !important; background: rgba(255,255,255,0.4) !important; opacity: 1 !important; margin: 0 4px !important; transition: background 0.3s; }
.wp-block-cb-carousel-v2 .swiper-pagination-bullet-active { background: #ffffff !important; }

/* ====== CAROUSEL SLIDER: PCの高さ抑え（下のコンテンツを覗かせる） ====== */
@media (min-width: 1025px) {
  .wp-block-cb-carousel-v2 .wp-block-cover { min-height: 480px !important; }
}

/* ====== CAROUSEL SLIDER: スライド内ボタン（白アウトライン） ====== */
.wp-block-cb-carousel-v2 .wp-block-button.is-style-outline .wp-block-button__link { background-color: transparent !important; color: #fff !important; border: 1px solid rgba(255,255,255,0.7) !important; font-size: 1rem !important; }
.wp-block-cb-carousel-v2 .wp-block-button.is-style-outline .wp-block-button__link:hover { background-color: rgba(255,255,255,0.15) !important; border-color: #fff !important; }

/* ====== BUTTONS ====== */

/* ====== SECTION DECORATIVE LABEL ====== */
.section-en-label,
.wp-block-heading.is-style-section-label { font-family: 'Caveat', cursive; font-size: 48px; font-weight: 400; color: #f77f00; line-height: 1; letter-spacing: 0.01em; }

/* ====== QUOTE BLOCK ====== */
.wp-block-quote { border-left: 3px solid #fcbf49 !important; background: #fffdf5; padding: 12px 18px; border-radius: 0 6px 6px 0; }

/* ====== HERO SLIDER (旧カスタムスライダー用・現在はCarousel Slider Blockを使用) ====== */
.yoko-hero { position: relative; height: 620px; overflow: hidden; }
.yoko-slides { display: flex; width: 400%; height: 100%; animation: yoko-autoplay 16s infinite; }
@keyframes yoko-autoplay {
  0%,22%  { transform: translateX(0); }
  25%,47% { transform: translateX(-25%); }
  50%,72% { transform: translateX(-50%); }
  75%,97% { transform: translateX(-75%); }
  100%    { transform: translateX(0); }
}
.yoko-slide { width: 25%; height: 100%; position: relative; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.yoko-slide-ov { position: absolute; inset: 0; background: rgba(0,30,50,0.48); }
.yoko-slide-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 0 48px; max-width: 760px; }
.yoko-slide-tag { font-family: 'Courier New', Courier, monospace; font-size: 11px; letter-spacing: 0.22em; color: #fcbf49; margin-bottom: 14px; text-transform: uppercase; font-weight: 700; }
.yoko-slide-title { font-size: 40px; font-weight: 700; line-height: 1.45; margin-bottom: 14px; text-shadow: 0 2px 16px rgba(0,0,0,0.35); }
.yoko-slide-sub { font-size: 15px; opacity: 0.88; line-height: 1.7; margin-bottom: 28px; }
.yoko-slide-btn { display: inline-block; background: #f77f00; color: #fff; padding: 13px 32px; border-radius: 4px; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-decoration: none; }
.yoko-hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.yoko-hero-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); }
.yoko-hero-dots .dot.active { background: #f77f00; width: 24px; border-radius: 4px; }
@media (max-width: 768px) {
  .yoko-hero { height: 340px; }
  .yoko-slide-content { padding: 0 20px; }
  .yoko-slide-title { font-size: 22px; line-height: 1.4; }
  .yoko-slide-sub { display: none; }
  .yoko-slide-btn { padding: 10px 22px; font-size: 13px; }
}

/* ====== PROFILE CIRCLES ====== */
.yoko-prof-img-wrap { position: relative; height: 520px; }
.yoko-prof-circle-main { position: absolute; top: 0; left: 0; width: 320px; height: 320px; border-radius: 50%; object-fit: cover; object-position: center top; border: 5px solid #fff; box-shadow: 0 8px 32px rgba(0,0,0,0.18); display: block; }
.yoko-prof-circle-sub { position: absolute; bottom: 0; right: 0; width: 230px; height: 230px; border-radius: 50%; object-fit: cover; object-position: center top; border: 5px solid #fff; box-shadow: 0 8px 28px rgba(0,0,0,0.16); display: block; }
@media (max-width: 768px) {
  .yoko-prof-img-wrap { height: 300px; }
  .yoko-prof-circle-main { width: 200px; height: 200px; }
  .yoko-prof-circle-sub { width: 140px; height: 140px; }
}

/* ====== JSMC BAR ====== */
.yoko-jsmc-bar { background: #0d5560; padding: 22px 40px; }
.yoko-jsmc-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
.yoko-jsmc-label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.45); font-family: 'Courier New', Courier, monospace; white-space: nowrap; }
.yoko-jsmc-bar img { height: 54px; display: block; }
.yoko-jsmc-text { font-size: 11px; line-height: 1.7; color: rgba(255,255,255,0.55); max-width: 380px; }
.yoko-jsmc-text strong { color: rgba(255,255,255,0.85); font-size: 12px; }
@media (max-width: 768px) {
  .yoko-jsmc-bar { padding: 16px 20px; }
}

/* ====== NOTE FEED CARDS ====== */
.note-feed-wrap { width: 100%; }
.note-feed-heading { font-size: 22px; font-weight: 700; color: #003049; margin-bottom: 20px; }
.note-feed-grid { display: grid; gap: 20px; }
.note-feed-cols-2 { grid-template-columns: repeat(2, 1fr); }
.note-feed-cols-3 { grid-template-columns: repeat(3, 1fr); }
.note-feed-cols-4 { grid-template-columns: repeat(4, 1fr); }
.note-feed-card { display: flex; flex-direction: column; text-decoration: none; border: 1px solid #e8e0cc; border-radius: 8px; overflow: hidden; background: #fff; transition: box-shadow 0.2s, transform 0.2s; }
.note-feed-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.note-card-thumb { position: relative; aspect-ratio: 1280/670; overflow: hidden; background: #eae2b7; }
.note-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.note-feed-card:hover .note-card-thumb img { transform: scale(1.04); }
.note-card-thumb-placeholder { width: 100%; height: 100%; background-image: url('https://yokohashikawa.jp/wp/wp-content/uploads/2026/05/chander-r-z4WH11FMfIQ-unsplash.jpg'); background-size: cover; background-position: center; }
.note-card-badge { display: none; }
.note-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.note-card-title { font-size: 14px; font-weight: 700; color: #003049; line-height: 1.55; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.note-card-date { font-size: 11px; color: #9aa4ae; margin-top: auto; font-family: 'Courier New', Courier, monospace; letter-spacing: 0.06em; }
.note-feed-link-wrap { text-align: right; margin-top: 40px !important; }
.note-feed-more { font-size: 13px; color: #f77f00; font-weight: 700; text-decoration: none; letter-spacing: 0.04em; }
.note-feed-more:hover { text-decoration: underline; }
.note-feed-notice { color: #9aa4ae; font-size: 13px; }
@media (max-width: 768px) {
  .note-feed-cols-3, .note-feed-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .note-feed-cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .note-feed-cols-2, .note-feed-cols-3, .note-feed-cols-4 { grid-template-columns: 1fr; }
}

/* ====== NEWS LIST ====== */
.yoko-news-list { list-style: none; margin: 0; padding: 1rem 0 0 0 !important; }
.yoko-news-item { display: flex; align-items: baseline; gap: 20px; padding: 14px 0; border-bottom: 1px solid #e8e0cc; }
.yoko-news-item:first-child { border-top: 1px solid #e8e0cc; }
.yoko-news-date { font-family: 'Courier New', Courier, monospace; font-size: 12px; color: #9aa4ae; letter-spacing: 0.06em; flex-shrink: 0; }
.yoko-news-title { font-size: 14px; color: #003049; font-weight: 500; text-decoration: none; line-height: 1.55; }
.yoko-news-title:hover { color: #d62828; text-decoration: underline; }
.yoko-news-empty { color: #9aa4ae; font-size: 13px; }
.yoko-news-more-wrap { text-align: right; margin-top: 12px; }
.yoko-news-more { font-size: 13px; color: #f77f00; font-weight: 700; text-decoration: none; letter-spacing: 0.04em; }
.yoko-news-more:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .yoko-news-item { flex-direction: column; gap: 4px; }
}

/* ====== PROFILE 資格リスト 余白除去 ====== */
.entry-content [style*="opacity:0.8"] .wp-block-paragraph { margin-top: 0 !important; margin-bottom: 0 !important; }

/* ====== COLUMN PAGE: タイトルバー非表示 ====== */
.page-id-770 .entry-header,
.page-id-770 .kadence-page-header,
.page-id-770 .site-hero,
.page-id-770 .page-hero-section { display: none !important; }
.page-id-770 .site-content,
.page-id-770 .content-container,
.page-id-770 .entry-content,
.page-id-770 .site-content .content-container { padding-top: 0 !important; margin-top: 0 !important; }
.page-id-770 .wp-block-cover:first-child,
.page-id-770 .entry-content > .wp-block-cover:first-child { margin-top: 0 !important; }

/* ====== SECTION GAP REMOVAL ====== */
.entry-content > .wp-block-group + .wp-block-group,
.entry-content > .wp-block-cover + .wp-block-group,
.entry-content > .wp-block-group + .wp-block-cover,
.entry-content > .wp-block-html + .wp-block-group,
.entry-content > .wp-block-group + .wp-block-html { margin-top: 0 !important; }

/* ====== CONCEPT COLOR CHIPS ====== */
.yoko-flag-chips { display: flex; gap: 6px; margin: 16px 0 20px; }
.yoko-flag-chip { width: 28px; height: 28px; border-radius: 50%; display: inline-block; border: 2px solid rgba(255,255,255,0.6); box-shadow: 0 1px 4px rgba(0,0,0,0.18); }
.yoko-flag-label { font-family: 'Courier New', Courier, monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 6px; }

/* ====== SNOW MONKEY FORMS ====== */
.snow-monkey-form .smf-form { margin: 0; }

.snow-monkey-form .smf-item {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #e8e5e2;
    padding: 20px 0;
    gap: 32px;
}
.snow-monkey-form .smf-item:first-of-type { border-top: 1px solid #e8e5e2; }
.snow-monkey-form .smf-item:last-of-type { border-bottom: none; }

.snow-monkey-form .smf-item__col--label {
    width: 260px;
    flex-shrink: 0;
    padding-top: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #3a3530;
    letter-spacing: 0.04em;
    text-align: left;
}
.snow-monkey-form .smf-item__label__text { font-weight: 500; }
.snow-monkey-form .smf-item:not(.smf-consent-item):has([required],[aria-required="true"],[data-validations*="required"]) .smf-item__label__text::after {
    content: ' *';
    color: #d62828;
    font-weight: 700;
}

.snow-monkey-form .smf-item__col--controls { flex: 1; min-width: 0; text-align: left; }

/* 入力欄：枠なし・下線のみ */
.snow-monkey-form input[type="text"],
.snow-monkey-form input[type="email"],
.snow-monkey-form input[type="tel"],
.snow-monkey-form input[type="url"],
.snow-monkey-form textarea,
.snow-monkey-form select {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e0dcd8;
    border-radius: 0;
    background: transparent;
    padding: 6px 2px;
    font-size: 14px;
    color: #3a3530;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
}
.snow-monkey-form input[type="text"]:focus,
.snow-monkey-form input[type="email"]:focus,
.snow-monkey-form input[type="tel"]:focus,
.snow-monkey-form textarea:focus,
.snow-monkey-form select:focus { border-bottom-color: #d62828; }

.snow-monkey-form textarea { min-height: 100px; resize: vertical; }

/* ラジオボタン */
.snow-monkey-form .smf-radio-buttons { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 4px; }
.snow-monkey-form .smf-radio-buttons__item { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.snow-monkey-form .smf-radio-buttons__item input[type="radio"] { accent-color: #d62828; width: 16px; height: 16px; flex-shrink: 0; border: none; border-bottom: none; padding: 0; }

/* 必須バッジ */
.snow-monkey-form .smf-item__required {
    display: inline-block;
    font-size: 10px;
    background: #d62828;
    color: #fff;
    padding: 1px 5px;
    border-radius: 2px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.04em;
}

/* 同意エリア */
.smf-consent-item { flex-direction: column; align-items: center; text-align: center; border-bottom: none; }
.smf-consent-item .smf-item__col--controls { width: 100%; display: flex; flex-direction: column; align-items: center; }
.smf-consent-text { font-size: 13px; color: #3a3530; margin: 0 0 12px; text-align: center; }
.smf-consent-text a { color: #003049; }
.smf-consent-item .smf-item__controls { display: flex; justify-content: center; }

/* 送信ボタン */
.snow-monkey-form .smf-action { text-align: center; margin-top: 32px; border-top: none !important; }
.snow-monkey-form .smf-action::before { display: none; }
.snow-monkey-form .smf-action button,
.snow-monkey-form [type="submit"] {
    background: #d62828;
    color: #fff;
    border: none;
    padding: 14px 48px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.18s;
}
.snow-monkey-form .smf-action button:hover,
.snow-monkey-form [type="submit"]:hover { background: #b01e1e; }

/* タブレット・スマホ */
@media (max-width: 1024px) {
    .snow-monkey-form .smf-item__col--controls { width: 100% !important; }
}
@media (max-width: 767px) {
    .snow-monkey-form .smf-item { flex-direction: column; gap: 8px; padding: 16px 0; }
    .snow-monkey-form .smf-item__col--label { width: 100%; padding-top: 0; }
}

/* ====== YOKO STEPS（体験コーチングのステップ図） ====== */
.yoko-steps {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding: 1.5rem 1rem 1rem;
}

.yoko-steps::before {
  content: '';
  position: absolute;
  top: 68px; /* 32px(padding) + 36px(circle半径72px) */
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: #F7630C;
  z-index: 0;
}

.yoko-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 0 8px;
}

.yoko-step-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #F7630C;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.yoko-step-num {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #F7630C;
  margin: 0 0 5px;
  text-align: center;
}

.yoko-step-name {
  font-size: 17px;
  font-weight: 700;
  color: #003049;
  text-align: center;
  margin: 0 0 5px;
}

.yoko-step-sub {
  font-size: 14px;
  color: #5a6a72;
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 640px) {
  .yoko-steps {
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    padding-left: 0;
    padding-right: 0;
  }
  .yoko-steps::before {
    top: 36px;
    left: 36px;
    right: auto;
    width: 2px;
    height: auto;
    bottom: calc(1rem + 24px + 36px);
  }
  .yoko-step {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 0 0 24px;
    width: 100%;
  }
  .yoko-step-circle {
    margin-bottom: 0;
  }
  .yoko-step-text {
    padding-top: 6px;
  }
  .yoko-step-num,
  .yoko-step-name,
  .yoko-step-sub {
    text-align: left;
  }
  .yoko-step-sub br { display: none; }
}

/* ====== Features ページ ====== */
/* h2 下横棒 */
.feat-s1 .wp-block-kadence-column:last-child h2::after {
  content: ''; display: block;
  width: 40px; height: 3px;
  background-color: #F77F00; margin-top: 12px;
}
.feat-s2 .wp-block-kadence-column:first-child h2::after {
  content: ''; display: block;
  width: 40px; height: 3px;
  background-color: #177E89; margin-top: 12px;
}
.feat-s3 .wp-block-kadence-column:last-child h2::after {
  content: ''; display: block;
  width: 40px; height: 3px;
  background-color: #D62828; margin-top: 12px;
}


/* モバイル：Kadenceのグラデーションを消す */
@media (max-width: 767px) {
  .feat-s1, .feat-s2, .feat-s3 {
    background-image: none !important;
  }
}

/* ====== NOTE カテゴリフィルター ====== */
.note-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.note-cat-btn {
    background: none;
    border: 1px solid #d0cdc8;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    color: #5a6a72;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    font-family: inherit;
    line-height: 1.4;
}
.note-cat-btn:hover,
.note-cat-btn.is-active {
    background: #003049;
    border-color: #003049;
    color: #fff;
}

/* ====== h2.form-title 見出し ====== */
h2.form-title {
  text-align: center;
  margin-bottom: 32px;
}
h2.form-title .form-en {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  color: rgb(211, 204, 161);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 6px;
}
h2.form-title .form-jp {
  font-size: 28px;
  font-weight: 700;
  color: #003049;
  display: block;
}
h2.form-title .form-line {
  width: 40px;
  height: 3px;
  background: rgb(211, 204, 161);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ====== h3.trial 見出し ====== */
h3.trial {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  border-left: 3px solid rgb(211, 204, 161);
  padding-left: 12px;
}

h3.trial .trial-jp {
  display: flex;
  align-items: center;
  flex: 1;
  font-size: 20px;
  font-weight: 700;
  color: #003049;
  letter-spacing: 0.06em;
}

h3.trial .trial-jp::after {
  content: '';
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    rgb(211, 204, 161) 0,
    rgb(211, 204, 161) 6px,
    transparent 6px,
    transparent 10px
  );
  margin-left: 12px;
  display: block;
}

h3.trial .trial-en {
  font-family: 'Courier New', Courier, monospace;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  color: rgb(211, 204, 161);
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}


/* ── スマホ：英語ラベルを上に小さく置き、日本語→点線を縦積みにする ── */
@media (max-width: 767px) {
  h3.trial { flex-direction: column; align-items: stretch; gap: 6px; }
  h3.trial .trial-en { order: -1; font-size: 12px; letter-spacing: 0.1em; }
  h3.trial .trial-jp { flex: none; flex-direction: column; align-items: flex-start; font-size: 18px; }
  h3.trial .trial-jp::after { flex: none; width: 100%; height: 1px; margin-left: 0; margin-top: 10px; }
}

/* ====== INSTAGRAM FEED ====== */

.yoko-ig-wrap { width: 100%; }
ul.yoko-ig-grid { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0 !important; }
.yoko-ig-cols-2 { grid-template-columns: repeat(2, 1fr); }
.yoko-ig-cols-3 { grid-template-columns: repeat(3, 1fr); }
.yoko-ig-cols-4 { grid-template-columns: repeat(4, minmax(0, 210px)); justify-content: space-between; }
.yoko-ig-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.yoko-ig-item { margin: 0; }
.yoko-ig-item a {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f4f1e8;
}
.yoko-ig-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.yoko-ig-item a:hover img { transform: scale(1.06); }

.yoko-ig-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: rgba(0, 48, 73, 0.55);
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.yoko-ig-item a:hover .yoko-ig-overlay { opacity: 1; }
.yoko-ig-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
.yoko-ig-meta svg { display: block; }

.yoko-ig-video {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 48, 73, 0.7);
    color: #fff;
    border-radius: 50%;
}

.yoko-ig-date {
    display: block;
    margin-top: 7px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    line-height: 1;
    color: #9aa4ae;
    text-align: center;
}

p.yoko-ig-link-wrap { text-align: right; margin-top: 40px !important; margin-bottom: 0; }
.yoko-ig-link {
    font-size: 14px;
    font-weight: 700;
    color: #003049;
    text-decoration: none;
    border-bottom: 1px solid #d0cdc8;
    padding-bottom: 3px;
    transition: color 0.2s, border-color 0.2s;
}
.yoko-ig-link:hover { color: #f77f00; border-bottom-color: #f77f00; }

@media (max-width: 767px) {
    .yoko-ig-cols-3, .yoko-ig-cols-4, .yoko-ig-cols-5 { grid-template-columns: repeat(2, 1fr); }
    .yoko-ig-grid { gap: 14px; }
    /* スマホは先頭4件のみ 2×2 表示 */
    .yoko-ig-grid .yoko-ig-item:nth-child(n+5) { display: none; }
}

/* ====== SCROLL TO TOP（矢印のみ・フロートCTAと非干渉 2026-07-27） ====== */
.yoko-scroll-top {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 9998;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #003049;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s, background 0.2s;
}
.yoko-scroll-top.is-visible {
    opacity: 0.85;
    pointer-events: auto;
    transform: translateY(0);
}
.yoko-scroll-top:hover { background: #f77f00; opacity: 1; }
@media (max-width: 768px) {
    .yoko-scroll-top { left: 16px; bottom: 86px; }
}
