@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}


/* ========================================
   TEAM RIDGE BRAND TOP / Cocoon Child追記用
   変数以外は、ブランドHTMLがある固定TOPに限定。
   既存style.cssのテーマ情報・既存CSSは残してください。
======================================== */
:root {
  --ridge-black: #101114;
  --ridge-blue: #145cff;
  --ridge-white: #ffffff;
  --ridge-gray: #f4f5f7;
  --ridge-line: #dfe3e8;
  --ridge-text: #15171a;
  --ridge-muted: #777c84;
  --ridge-max: 1360px;
}

/* ========================================
   COCOON RESET / TOPだけに適用
   :hasで旧TOPや別のホーム構成には作用しない。
======================================== */
body.home:has(.team-ridge-home) { background: var(--ridge-white); }
body.home:has(.team-ridge-home) #content,
body.home:has(.team-ridge-home) .content-in,
body.home:has(.team-ridge-home) #main,
body.home:has(.team-ridge-home) #main .article,
body.home:has(.team-ridge-home) #main .entry-content {
  width: 100%; max-width: none; min-width: 0; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; float: none;
}
body.home:has(.team-ridge-home) .content-in { display: block; }
/* TOP内に専用ブランドバーとフッターを設置。記事・カテゴリの外枠は維持。 */
body.home:has(.team-ridge-home) #header-container,
body.home:has(.team-ridge-home) #footer,
body.home:has(.team-ridge-home) #sidebar,
body.home:has(.team-ridge-home) #main .article-header,
body.home:has(.team-ridge-home) #main .article-footer,
body.home:has(.team-ridge-home) #main .breadcrumb,
body.home:has(.team-ridge-home) #breadcrumb,
body.home:has(.team-ridge-home) #main .date-tags,
body.home:has(.team-ridge-home) #main .sns-share,
body.home:has(.team-ridge-home) #main .sns-follow,
body.home:has(.team-ridge-home) #main .author-info,
body.home:has(.team-ridge-home) #main .under-entry-content,
body.home:has(.team-ridge-home) #main .footer-meta,
body.home:has(.team-ridge-home) #main .toc,
body.home:has(.team-ridge-home) #main .read-time,
body.home:has(.team-ridge-home) .mobile-footer-menu-buttons { display: none; }

/* ========================================
   BASE / TYPE / LINKS
======================================== */
body.home .team-ridge-home {
  color: var(--ridge-text); background: var(--ridge-white);
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Helvetica Neue","Yu Gothic","YuGothic",sans-serif;
  font-size: 17px; line-height: 1.95; text-align: left;
}
body.home .team-ridge-home *,
body.home .team-ridge-home *::before,
body.home .team-ridge-home *::after { box-sizing: border-box; }
body.home .team-ridge-home :where(h1,h2,h3,p,figure,ul) { margin: 0; padding: 0; }
body.home .team-ridge-home :where(h1,h2,h3) { background: none; border: 0; color: inherit; }
body.home .team-ridge-home h2::before,
body.home .team-ridge-home h2::after,
body.home .team-ridge-home h3::before,
body.home .team-ridge-home h3::after { content: none; }
body.home .team-ridge-home a { color: inherit; text-decoration: none; }
body.home .team-ridge-home a:focus-visible { outline: 3px solid var(--ridge-blue); outline-offset: 5px; }
body.home .team-ridge-home img { display: block; width: 100%; max-width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; }
body.home .team-ridge-home [id] { scroll-margin-top: 40px; }
body.home .team-ridge-home .tr-anchor { display: block; }
body.home .team-ridge-home .tr-shell { width: min(calc(100% - 112px),var(--ridge-max)); margin-inline: auto; }
body.home .team-ridge-home .tr-section { padding-block: 140px; }
body.home .team-ridge-home .tr-label { font-size: 12px; font-weight: 700; letter-spacing: .2em; line-height: 1.5; margin-bottom: 36px; }
body.home .team-ridge-home .tr-heading { font-size: clamp(46px,5.6vw,80px); line-height: 1.3; font-weight: 800; letter-spacing: -.055em; margin-bottom: 56px; overflow-wrap: anywhere; }
body.home .team-ridge-home .tr-copy { max-width: 720px; }
body.home .team-ridge-home .tr-copy p + p { margin-top: 24px; }
body.home .team-ridge-home .tr-split { display: grid; grid-template-columns: 1.2fr 1fr; align-items: start; gap: 80px; }
body.home .team-ridge-home .tr-split > * { min-width: 0; }
body.home .team-ridge-home .tr-textlink { display: inline-flex; gap: 32px; align-items: center; min-height: 48px; margin-top: 30px; border-bottom: 1px solid currentColor; font-size: 14px; font-weight: 700; }
body.home .team-ridge-home .tr-arrow,
body.home .team-ridge-home .tr-textlink > span { display: inline-block; transition: transform .22s ease; }
body.home .team-ridge-home .tr-brand-dot { display: inline-block; width: .16em; height: .16em; margin-left: .08em; background: var(--ridge-blue); }
body.home .team-ridge-home .tr-image { position: relative; width: 100%; min-width: 0; overflow: hidden; background: var(--ridge-gray); }
body.home .team-ridge-home .tr-image figcaption { position: absolute; inset: auto 16px 16px auto; background: var(--ridge-white); color: var(--ridge-text); padding: 5px 10px; font-size: 10px; letter-spacing: .16em; line-height: 1.5; }

/* ========================================
   BRAND BAR / HERO
======================================== */
body.home .team-ridge-home .tr-brandbar { min-height: 100px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
body.home .team-ridge-home .tr-wordmark { font: 800 25px/1.2 "Helvetica Neue",Arial,sans-serif; letter-spacing: -.04em; padding-block: 16px; }
body.home .team-ridge-home .tr-topnav { display: flex; gap: 32px; }
body.home .team-ridge-home .tr-topnav a { font-size: 11px; font-weight: 700; letter-spacing: .1em; display: inline-flex; align-items: center; min-height: 44px; }
body.home .team-ridge-home .tr-hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 5%; align-items: center; min-height: calc(100svh - 100px); padding-block: 28px 82px; }
body.home .team-ridge-home .tr-hero-copy { position: relative; z-index: 1; min-width: 0; }
body.home .team-ridge-home .tr-hero-title { font-size: clamp(64px,8vw,112px); font-weight: 800; line-height: 1.18; letter-spacing: -.07em; margin-bottom: 32px; }
body.home .team-ridge-home .tr-hero-sub { font-size: 24px; line-height: 1.55; font-weight: 700; margin-bottom: 24px; }
body.home .team-ridge-home .tr-hero-note { font-size: 15px; line-height: 1.8; }
body.home .team-ridge-home .tr-hero-image { align-self: stretch; min-height: 560px; max-height: 820px; }
body.home .team-ridge-home .tr-hero-image img { position: absolute; inset: 0; object-position: 65% 50%; }
body.home .team-ridge-home .tr-scroll { position: absolute; bottom: 18px; left: 0; min-height: 44px; display: inline-flex; align-items: center; gap: 42px; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
body.home .team-ridge-home .tr-scroll span { color: var(--ridge-blue); font-size: 22px; }

/* ========================================
   INTRO / AREA
======================================== */
body.home .team-ridge-home .tr-intro { border-top: 1px solid var(--ridge-line); }
body.home .team-ridge-home .tr-intro .tr-copy { padding-top: 10px; }
body.home .team-ridge-home .tr-explore { background: var(--ridge-gray); }
body.home .team-ridge-home .tr-area-list { list-style: none; border-top: 1px solid #bfc5ce; }
body.home .team-ridge-home .tr-area-list li { margin: 0; border-bottom: 1px solid #bfc5ce; }
body.home .team-ridge-home .tr-area { display: grid; grid-template-columns: 44px 1fr 150px 145px; align-items: center; gap: 24px; padding: 32px 12px; transition: background-color .22s ease; }
body.home .team-ridge-home .tr-area-number { font-size: 12px; color: #555c66; }
body.home .team-ridge-home .tr-area-name { font: 700 clamp(40px,5vw,72px)/1.05 "Helvetica Neue",Arial,sans-serif; letter-spacing: -.05em; }
body.home .team-ridge-home .tr-area-ja { font-size: 16px; }
body.home .team-ridge-home .tr-area-cta { font-size: 11px; font-weight: 700; letter-spacing: .08em; display: flex; gap: 22px; align-items: center; }
body.home .team-ridge-home .tr-area-cta .tr-arrow { color: var(--ridge-blue); font-size: 25px; }

/* ========================================
   ALPINE
======================================== */
body.home .team-ridge-home .tr-alpine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
body.home .team-ridge-home .tr-story { min-width: 0; }
body.home .team-ridge-home .tr-story-image { aspect-ratio: 4/3; margin-bottom: 30px; }
body.home .team-ridge-home .tr-story-image img { transition: transform .35s ease; }
body.home .team-ridge-home .tr-story .tr-label { margin-bottom: 12px; }
body.home .team-ridge-home .tr-story-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 32px; line-height: 1.5; font-weight: 700; margin-bottom: 18px; }
body.home .team-ridge-home .tr-story > p:last-child { color: #555c66; font-size: 16px; }

/* ========================================
   SEASON PASS
======================================== */
body.home .team-ridge-home .tr-pass { background: var(--ridge-black); color: var(--ridge-white); overflow: hidden; }
body.home .team-ridge-home .tr-pass-inner { position: relative; }
body.home .team-ridge-home .tr-pass-inner > :not(.tr-pass-year) { position: relative; z-index: 1; }
body.home .team-ridge-home .tr-pass .tr-label { color: #84abff; }
body.home .team-ridge-home .tr-pass-title { font: 800 clamp(56px,7vw,104px)/1.08 "Helvetica Neue",Arial,sans-serif; letter-spacing: -.06em; margin-bottom: 42px; }
body.home .team-ridge-home .tr-pass-lead { font-size: 24px; line-height: 1.7; font-weight: 700; margin-bottom: 20px; }
body.home .team-ridge-home .tr-pass .tr-copy { max-width: 600px; color: #d3d7df; }
body.home .team-ridge-home .tr-button { display: inline-flex; justify-content: space-between; gap: 70px; align-items: center; min-height: 64px; margin-top: 36px; padding: 16px 26px; background: var(--ridge-blue); color: white; font-weight: 700; transition: background-color .22s ease; }
body.home .team-ridge-home .tr-pass-note { font-size: 12px; line-height: 1.8; color: #c5cbd5; margin-top: 24px; max-width: 600px; }
body.home .team-ridge-home .tr-pass-year { position: absolute; right: -3%; top: -70px; font: 800 clamp(210px,27vw,410px)/.83 "Helvetica Neue",Arial,sans-serif; color: #20242d; letter-spacing: -.08em; pointer-events: none; }

/* ========================================
   SNOW TRIP
======================================== */
body.home .team-ridge-home .tr-trip { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
body.home .team-ridge-home .tr-trip-copy { min-width: 0; }
body.home .team-ridge-home .tr-trip .tr-heading { margin-bottom: 36px; }
body.home .team-ridge-home .tr-trip-image { aspect-ratio: 5/6; }

/* ========================================
   LATEST / PHP SHORTCODE
======================================== */
body.home .team-ridge-home .tr-latest { background: var(--ridge-gray); }
body.home .team-ridge-home .tr-news-list { list-style: none; border-top: 1px solid #bfc5ce; }
body.home .team-ridge-home .tr-news-item { margin: 0; border-bottom: 1px solid #bfc5ce; }
body.home .team-ridge-home .tr-news-link { display: grid; grid-template-columns: 112px 160px minmax(0,1fr) 32px; gap: 28px; align-items: center; padding: 32px 8px; min-height: 112px; transition: background-color .22s ease; }
body.home .team-ridge-home .tr-news-date { font-size: 13px; color: #555c66; }
body.home .team-ridge-home .tr-news-category { font-size: 11px; line-height: 1.6; border: 1px solid #bfc5ce; padding: 6px 10px; width: fit-content; max-width: 100%; }
body.home .team-ridge-home .tr-news-title { font-size: 18px; line-height: 1.8; font-weight: 600; overflow-wrap: anywhere; }
body.home .team-ridge-home .tr-news-link > .tr-arrow { font-size: 26px; color: var(--ridge-blue); }
body.home .team-ridge-home .tr-news-empty { padding: 30px 0; border-block: 1px solid var(--ridge-line); }

/* ========================================
   ABOUT / FOOTER
======================================== */
body.home .team-ridge-home .tr-about-title { font: 800 clamp(70px,10vw,152px)/.95 "Helvetica Neue",Arial,sans-serif; letter-spacing: -.065em; }
body.home .team-ridge-home .tr-about-lead { font-size: 24px; line-height: 1.7; font-weight: 700; }
body.home .team-ridge-home .tr-footer { background: var(--ridge-black); color: white; padding-block: 90px 32px; }
body.home .team-ridge-home .tr-footer-brand { display: block; font: 800 clamp(60px,11.2vw,174px)/1.1 "Helvetica Neue",Arial,sans-serif; letter-spacing: -.07em; white-space: nowrap; margin-bottom: 64px; }
body.home .team-ridge-home .tr-footnav { display: flex; flex-wrap: wrap; gap: 10px 36px; padding-bottom: 48px; border-bottom: 1px solid #454951; }
body.home .team-ridge-home .tr-footnav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; letter-spacing: .1em; }
body.home .team-ridge-home .tr-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; font-size: 11px; letter-spacing: .08em; }
body.home .team-ridge-home .tr-footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
body.home .team-ridge-home .tr-search { max-width: 540px; margin-top: 32px; }
body.home .team-ridge-home .tr-search label { display: block; font-size: 12px; margin-bottom: 10px; }
body.home .team-ridge-home .tr-search-fields { display: flex; gap: 10px; }
body.home .team-ridge-home .tr-search input { flex: 1; min-width: 0; width: 100%; min-height: 48px; border: 1px solid #838a96; border-radius: 0; padding: 10px 12px; background: white; color: var(--ridge-text); }
body.home .team-ridge-home .tr-search button { flex: 0 0 auto; min-height: 48px; border: 0; border-radius: 0; padding: 10px 18px; background: var(--ridge-blue); color: white; font: inherit; cursor: pointer; }
body.home .team-ridge-home .tr-search :is(input,button):focus-visible { outline: 3px solid white; outline-offset: 4px; }
body.home .team-ridge-home .tr-pass a:focus-visible,
body.home .team-ridge-home .tr-footer a:focus-visible { outline-color: #fff; }

/* ========================================
   HOVER / MOTION
======================================== */
@media (hover: hover) {
  body.home .team-ridge-home .tr-area:hover,
  body.home .team-ridge-home .tr-news-link:hover { background: #e8ebf0; }
  body.home .team-ridge-home a:hover .tr-arrow,
  body.home .team-ridge-home .tr-textlink:hover > span { transform: translateX(6px); }
  body.home .team-ridge-home .tr-story:hover img { transform: scale(1.025); }
  body.home .team-ridge-home .tr-button:hover { background: #0048e6; }
  body.home .team-ridge-home .tr-topnav a:hover,
  body.home .team-ridge-home .tr-footnav a:hover { text-decoration: underline; text-underline-offset: 6px; }
}

/* ========================================
   RESPONSIVE / 1200 / 1024 / 768 / 480
======================================== */
@media (max-width: 1200px) {
  body.home .team-ridge-home .tr-shell { width: calc(100% - 80px); }
  body.home .team-ridge-home .tr-section { padding-block: 120px; }
  body.home .team-ridge-home .tr-split,
  body.home .team-ridge-home .tr-trip { gap: 48px; }
  body.home .team-ridge-home .tr-area { grid-template-columns: 30px 1fr 110px 135px; }
}
@media (max-width: 1024px) {
  body.home .team-ridge-home .tr-hero-title { font-size: clamp(58px,8.3vw,86px); }
  body.home .team-ridge-home .tr-hero-image { min-height: 540px; }
  body.home .team-ridge-home .tr-news-link { grid-template-columns: 100px 130px minmax(0,1fr) 24px; gap: 18px; }
  body.home .team-ridge-home .tr-story-title { font-size: 26px; }
}
@media (max-width: 768px) {
  body.home .team-ridge-home .tr-shell { width: calc(100% - 48px); }
  body.home .team-ridge-home .tr-section { padding-block: 84px; }
  body.home .team-ridge-home .tr-brandbar { min-height: 76px; gap: 12px; flex-wrap: wrap; }
  body.home .team-ridge-home .tr-wordmark { font-size: 22px; }
  body.home .team-ridge-home .tr-topnav { gap: 18px; }
  body.home .team-ridge-home .tr-topnav a { font-size: 9px; }
  body.home .team-ridge-home .tr-hero { grid-template-columns: 1fr; min-height: calc(100svh - 76px); padding-block: 32px 64px; gap: 36px; }
  body.home .team-ridge-home .tr-hero-title { font-size: clamp(56px,16vw,88px); margin-bottom: 24px; }
  body.home .team-ridge-home .tr-hero-sub { font-size: 20px; margin-bottom: 16px; }
  body.home .team-ridge-home .tr-hero-image { align-self: start; min-height: 0; height: auto; aspect-ratio: 4/3; }
  body.home .team-ridge-home .tr-hero-image img { object-position: 65% 45%; }
  body.home .team-ridge-home .tr-heading { font-size: clamp(40px,7vw,56px); line-height: 1.35; margin-bottom: 40px; }
  body.home .team-ridge-home .tr-label { margin-bottom: 26px; }
  body.home .team-ridge-home .tr-split,
  body.home .team-ridge-home .tr-alpine-grid,
  body.home .team-ridge-home .tr-trip { grid-template-columns: 1fr; gap: 40px; }
  body.home .team-ridge-home .tr-area { grid-template-columns: 24px minmax(0,1fr) auto; gap: 14px; padding: 26px 0; }
  body.home .team-ridge-home .tr-area-name { font-size: clamp(36px,8.5vw,56px); }
  body.home .team-ridge-home .tr-area-ja { grid-column: 2; font-size: 14px; }
  body.home .team-ridge-home .tr-area-cta { grid-column: 3; grid-row: 1/3; flex-direction: column; gap: 4px; font-size: 9px; }
  body.home .team-ridge-home .tr-alpine-grid { gap: 54px; }
  body.home .team-ridge-home .tr-pass-title { font-size: clamp(42px,9vw,70px); }
  body.home .team-ridge-home .tr-pass-lead { font-size: 21px; }
  body.home .team-ridge-home .tr-pass-year { top: 0; right: -10px; font-size: 230px; }
  body.home .team-ridge-home .tr-trip-image { aspect-ratio: 4/3; }
  body.home .team-ridge-home .tr-news-link { grid-template-columns: 100px minmax(0,1fr) 24px; gap: 14px; padding-block: 26px; }
  body.home .team-ridge-home .tr-news-title { grid-row: 2; grid-column: 1/3; font-size: 16px; }
  body.home .team-ridge-home .tr-news-link > .tr-arrow { grid-column: 3; grid-row: 1/3; }
  body.home .team-ridge-home .tr-about-title { font-size: clamp(86px,16vw,124px); }
  body.home .team-ridge-home .tr-footer { padding-top: 64px; }
  body.home .team-ridge-home .tr-footer-brand { font-size: 11vw; margin-bottom: 40px; }
  body.home .team-ridge-home .tr-footnav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
}
@media (max-width: 480px) {
  body.home .team-ridge-home { font-size: 16px; }
  body.home .team-ridge-home .tr-section { padding-block: 76px; }
  body.home .team-ridge-home .tr-brandbar { padding-block: 8px; }
  body.home .team-ridge-home .tr-topnav { width: 100%; justify-content: space-between; gap: 12px; }
  body.home .team-ridge-home .tr-heading { font-size: clamp(36px,10.3vw,48px); }
  body.home .team-ridge-home .tr-story-title { font-size: 25px; }
  body.home .team-ridge-home .tr-button { width: 100%; gap: 18px; padding-inline: 20px; }
  body.home .team-ridge-home .tr-textlink { gap: 16px; font-size: 12px; }
  body.home .team-ridge-home .tr-about-lead { font-size: 20px; }
  body.home .team-ridge-home .tr-footer-bottom { gap: 8px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  body.home .team-ridge-home *,
  body.home .team-ridge-home *::before,
  body.home .team-ridge-home *::after { transition: none; animation: none; scroll-behavior: auto; }
}
