.ymca-root {
  --grad-warm:  #f9efd5;
  --grad-cool:  #37beef;
  --grad-main:  linear-gradient(135deg, #f9efd5 0%, #b8e6f5 60%, #37beef 100%);
  --grad-hero:  linear-gradient(135deg, #f9efd5 0%, #7dd4ee 100%);
  --grad-section: #f2f8fc;
  --red:        #D7000F;
  --red-dark:   #a8000c;
  --blue:       #0060AF;
  --blue-dark:  #003A7A;
  --text:       #1a1a1a;
  --text-mid:   #444;
  --text-light: #666;
  --white:      #ffffff;
  --border:     #e2d9c8;
  --wing: 64px 0 64px 0;
  --wing-sm: 12px 0 12px 0;
  --wing-lg: 146px 0 146px 0;
    color:#1a1a1a;
    background:#fff
}
.ymca-root * {
    box-sizing:border-box
}
.ymca-root [id] {
    scroll-margin-top:96px
}
.ymca-root .wing    {
  border-radius: var(--wing);
}
.ymca-root .wing-sm {
  border-radius: var(--wing-sm);
}
.ymca-root .wing-lg {
  border-radius: var(--wing-lg);
}
.ymca-root a {
    text-decoration:none
}
.ymca-root .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  background: rgba(55,190,239,0.15);
  color: var(--blue);
  margin-bottom: 14px;
}
.ymca-root .section-title {
    margin:0 0 14px;
    color:#1a3a5c;
    font-size:clamp(1.6rem,2.8vw,2.3rem);
    font-weight:900;
    line-height:1.3
}
.ymca-root .section-sub {
  font-size: 0.96rem;
  color: var(--text-light);
  line-height: 1.85;
  text-align: center;
}
.ymca-root .section-header {
    text-align:center;
    margin-bottom:60px
}
.ymca-root .btn {
  display:inline-block;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 13px 30px;
  border-radius: var(--wing-sm);
  text-decoration: none;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.ymca-root .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.ymca-root .btn-red {
  background: var(--red);
  color: #fff;
}
.ymca-root .btn-red:hover {
  background: var(--red-dark);
}
.ymca-root .btn-blue {
  background: var(--blue);
  color: #fff;
}
.ymca-root .btn-blue:hover {
  background: var(--blue-dark);
}
.ymca-root .btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.ymca-root .btn-ghost:hover {
  background: var(--blue);
  color: #fff;
}
.ymca-root .btn-white {
  background: #fff;
}

/* ===== SCROLL ANIMATION ===== */
.ymca-root .fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.ymca-root .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ティッカー */
.ticker-wrap {
    background:linear-gradient(90deg,#0d7dc4,#4bd0f3);
    padding:12px 0;
    overflow:hidden
}
.ticker-flex {
    display:flex;
    align-items:center;
    gap:16px
}
.ticker-label {
    flex:none;
    padding:3px 14px;
    border-radius:12px 0;
    background:var(--red);
    color:#fff;
    font-size:.72rem;
    font-weight:700
}
.ticker-overflow {
    overflow:hidden
}
.ticker-track {
    display:flex;
    width:max-content;
    white-space:nowrap;
    animation:ymca-ticker 30s linear infinite
}
.ticker-item {
    padding-right:40px;
    color:#ffffffe0;
    font-size:.82rem
}
.ticker-item:before {
    content:'◆ ';
    color:#ffffff4d
}
@keyframes ymca-ticker {
    to {
        transform:translateX(-50%)
    }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(140deg, #f9efd5 0%, #cceef9 60%, #37beef 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 28px 80px;
}
.hero-frame {
  position: relative;
  width: 100%; flex: 1;
  min-height: 520px;
  border-radius: 146px 0 146px 0;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,50,120,0.22);
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active {
  opacity: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ymca-kenburns 8s ease-out forwards;
}
@keyframes ymca-kenburns {
  from{transform:scale(1.06);}
  to{transform:scale(1.0);}
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    -90deg,
    rgba(0,0,0,0.38) 0%,
    rgba(0,0,0,0.22) 36%,
    rgba(0,0,0,0.07) 60%,
    rgba(0,0,0,0) 82%
  );
}
.hero-content {
  position: absolute;
  z-index: 10;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 72px;
  max-width: 760px;
  text-align: right;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.7); backdrop-filter: blur(6px);
  border: 1px solid rgba(55,190,239,0.4);
  border-radius: 50px;
  padding: 5px 18px;
  color: var(--blue-dark);
  font-size: 0.78rem; font-weight: 700;
  margin-bottom: 28px;
  animation: ymca-fadeInDown 0.8s 0.3s both;
}
.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-cool);
  flex-shrink: 0;
  animation: ymca-pulse 2s infinite;
}
@keyframes ymca-pulse { 0%,100%{opacity:1;} 50%{opacity:0.4;} }
.hero-catchphrase {
  display: block;
  max-width: 560px;
  width: 100%;
  margin-left: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 3px 14px rgba(0,0,0,0.55));
  animation: ymca-fadeInUp 0.9s 0.5s both;
}
.hero-catchphrase-text {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.3;
  color: var(--blue-dark);
  text-shadow: 0 2px 12px rgba(249,239,213,0.8);
  margin-bottom: 28px;
  animation: ymca-fadeInUp 0.9s 0.5s both;
}
.hero-desc {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.95;
  margin-bottom: 36px;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
  animation: ymca-fadeInUp 0.9s 0.7s both;
}

.hero-cta-group {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  animation: ymca-fadeInUp 0.9s 0.9s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
  animation: ymca-fadeInUp 0.9s 0.9s both;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 26px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 14px;
  padding: 15px 26px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--wing-sm);
  box-shadow: 0 6px 22px rgba(0,40,90,0.18);
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.8;
  animation: ymca-fadeInUp 0.9s 1.1s both;
  text-align: left;
}
.hero-contact-item {
  display: flex;
  gap: 9px;
  align-items: baseline;
}
.hero-contact-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.hero-contact-tel {
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 900;
  font-size: 0.98rem;
}
.hero-contact-tel:hover {
  color: var(--blue);
}

.hero-dots {
  position: absolute;
  bottom: 80px;
  right: 56px;
  z-index: 20;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid rgba(0,58,122,0.3);
}
.hero-dot.active {
  background: var(--blue);
  border-color: var(--blue);
  width: 28px; border-radius: 4px;
}
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--blue-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 20px;
  align-self: center;
  animation: ymca-scrollBounce 2.2s infinite;
  background: transparent;
  border: none;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--blue), transparent);
}
@keyframes ymca-scrollBounce { 0%,100%{transform:translateY(0);} 50%{transform:translateY(8px);} }
@keyframes ymca-fadeInUp { from{opacity:0;transform:translateY(28px);} to{opacity:1;transform:translateY(0);} }
@keyframes ymca-fadeInDown { from{opacity:0;transform:translateY(-16px);} to{opacity:1;transform:translateY(0);} }

/* 私たちの活動 */
.act-card {
    overflow:hidden;
    border-radius:24px 0;
    background:#fff;
    box-shadow:0 4px 28px #005aa014
}
.act-card-img {
  position: relative;
  border-radius: 24px 0 0 0;
  transform: translateZ(0); -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.act-card-img div figure img {
    width:100%;
    height:100%;
    object-fit:cover;
    aspect-ratio: 16 / 9;
}
.act-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  border-radius: var(--wing-sm);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(4px);
}
.badge-blue {
  background: rgba(0,96,175,0.88);
}
.badge-teal {
  background: rgba(0,160,140,0.88);
}
.badge-orange {
  background: rgba(220,110,0,0.88);
}
.act-card-body {
    padding: 0 28px 28px 28px;
}
.act-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: #1a3a5c;
    line-height: 1.4;
    margin-bottom: 10px;
}
.act-desc {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: 18px;
}
.act-tags {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin:18px 0
}
.act-tag {
    padding:3px 10px;
    border:1px solid #37beef4d;
    border-radius:50px;
    background:#37beef1f;
    color:var(--blue);
    font-size:.72rem;
    font-weight:600
}
.act-link {
    color:var(--blue);
    font-size:.84rem;
    font-weight:700
}

/* ギャラリー */
.gallery-item figure img {
    width:100%;
    height:100%;
    object-fit:cover;
    aspect-ratio: 4 / 3;
    border-radius: var(--wing);
}

/* とちぎYMCAとは */
.mission {
  overflow: hidden;
}
.mission::before, .mission::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(55,190,239,0.07);
}
.mission::before {
  width:600px;
  height:600px;
  top:-200px;
  right:-200px; }
.mission::after {
  width:400px;
  height:400px;
  bottom:-100px;
  left:-100px; }
.mission-text {
  color:#fff;
}
.mission-text .tag {
  background:rgba(55,190,239,0.25); color:#93d8f5;
}
.mission-text .section-title {
  color:#fff;
}
.mission-sub {
  font-size:0.95rem;
  color:rgba(255,255,255,0.8);
  line-height:1.9;
  margin-bottom:28px;
}
.mission-img figure img {
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius: var(--wing);
  display:block;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ===== IMPACT NUMBERS ===== */
.impact-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:40px; text-align:center;
}
.impact-num {
  font-size:3.2rem;
  font-weight:900;
  color:var(--blue); line-height:1;
}
.impact-num sub {
  font-size:1.1rem;
  vertical-align:baseline;
}
.impact-label {
  font-size:0.82rem;
  color:var(--text-light);
  margin-top:6px;
  line-height:1.5;
  font-weight:600;
}

/* サポート */
.support-card {
  padding: 48px 40px;
  border-radius: var(--wing);
  position: relative;
  overflow: hidden;
  color: #fff;
}
.support-card::after {
  content:'';
  position:absolute;
  bottom:-50px;
  right:-50px;
  width:220px;
  height:220px;
  border-radius:50%;
  background:rgba(255,255,255,0.07);
}
.support-card-red {
  background: #D96C00;
}
.support-card-green {
  background: #00A08C;
}
.support-card-blue {
  background: #0d7dc4;
}
.support-eyebrow {
  font-size:0.7rem;
  font-weight:700;
  letter-spacing:0.2em;
  text-transform:uppercase;
  opacity:0.65; margin-bottom:14px;
}
.support-title {
  font-size:1.75rem;
  font-weight:900;
  line-height:1.35;
  margin-bottom:14px;
}
.support-desc {
  font-size:0.9rem;
  opacity:0.85;
  line-height:1.85;
  margin-bottom:28px;
}
.support-list {
  margin-bottom:32px;
}
.support-list li {
  list-style:none;
  font-size:0.86rem;
  font-weight:600;
  margin-bottom:9px;
  padding-left:24px;
  position:relative;
  opacity:0.9;
}
.support-list li::before {
  content:'✓';
  position:absolute;
  left:0;
  color:rgba(255,255,255,0.6);
}

/* ボランティア */
.ymca-root .volunteer-photo {
  border-radius: var(--wing);
  overflow:hidden;
  box-shadow:0 16px 48px rgba(0,90,160,0.16); aspect-ratio:4/3;
}
.ymca-root .volunteer-photo img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.ymca-root .volunteer-list {
  margin-bottom:28px;
}
.ymca-root .volunteer-list li {
  list-style:none;
  font-size:0.9rem;
  font-weight:600;
  color:var(--text-mid);
  margin-bottom:10px;
  padding-left:26px;
  position:relative;
}
.ymca-root .volunteer-list li::before {
  content:'✓';
  position:absolute;
  left:0;
  color:var(--blue);
  font-weight:900;
}

/* お知らせ */
.news-header {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin-bottom: 40px;
}
.notice-list {
  display:flex;
  flex-direction:column;
  gap:0;
  margin-bottom:72px; }
.notice-item {
  display:flex;
  align-items:baseline;
  gap:20px;
  padding: 18px 0;
  border-bottom: 1px solid #ede7d8;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.notice-item:hover {
  background:rgba(55,190,239,0.05);
  border-radius:8px;
  padding-left:12px;
}
.notice-date {
  font-size:0.82rem;
  color:var(--text-light);
  font-weight:600;
  white-space:nowrap;
}
.notice-cat {
  font-size:0.7rem;
  font-weight:700;
  padding:2px 10px;
  border-radius:50px;
  white-space:nowrap;
  background:rgba(215,0,15,0.1);
  color:var(--red);
}
.notice-title {
  font-size:0.92rem;
  color:var(--text);
  line-height:1.5;
  font-weight:500;
}

/* 活動レポート */
.blog-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px; }
.blog-card {
  background:#fff;
  border-radius: 24px 0 24px 0;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  border:1px solid #ede7d8;
  transition:all 0.3s;
  display:block;
}
.blog-card:hover {
  border-color: #37beef;
  box-shadow: 0 8px 32px rgba(55,190,239,0.15);
  transform: translateY(-4px);
}
.blog-img {
  height:160px;
  overflow:hidden;
}
.blog-img img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform 0.5s;
}
.blog-card:hover .blog-img img {
  transform:scale(1.06);
}
.blog-body {
  padding: 18px 20px 22px;
}
.blog-meta {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
}
.blog-cat {
  font-size:0.68rem;
  font-weight:700;
  padding:2px 10px;
  border-radius:50px;
  background:rgba(55,190,239,0.15);
  color:var(--blue);
}
.blog-date {
  font-size:0.72rem;
  color:var(--text-light);
}
.blog-title {
  font-size:0.9rem;
  font-weight:700;
  line-height:1.6;
  color:var(--text);
}

/* フッター */
.ymca-footer-pattern {
    padding:72px 0 30px;
    background:#003a7a;
    color:#fff
}
.ymca-footer-pattern h4 {
    margin:0 0 14px;
    color:#fff;
    font-size:.9rem
}
.ymca-footer-pattern ul {
    padding:0;
    list-style:none
}
.ymca-footer-pattern li {
    margin:0 0 7px
}
.ymca-footer-pattern a {
    color:#ffffffbf;
    font-size:.75rem
}
.footer-brand img {
    max-width:150px
}
.footer-desc,.footer-address {
    color:#ffffffbf;
    font-size:.75rem;
    line-height:1.8
}
.footer-subhead {
    margin:14px 0 8px;
    color:#7dd4f0;
    font-size:.72rem;
    font-weight:700
}
.footer-bottom {
    display:flex;
    justify-content:space-between;
    margin-top:40px;
    padding-top:20px;
    border-top:1px solid #ffffff26;
    color:#ffffff99;
    font-size:.7rem
}
@media(max-width:900px) {
    .mission-inner,.volunteer-inner {
        gap:35px
    }
    .hero-content {
        padding:0 40px
    }
}
@media(max-width:600px) {
    .hero {
        min-height:720px;
        padding:16px 14px 55px
    }
    .hero-frame {
        min-height:620px;
        border-radius:64px 0
    }
    .hero-cta-group {
      display: none;
    }
    .hero-content {
        top:initial;
        transform: initial;
        right:0;
        bottom:0;
        left:0;
        padding:0 24px
    }
    .hero-catchphrase {
        max-width:340px
    }
    .hero-desc {
        font-size:.88rem
    }
    .hero-actions {
        justify-content:flex-end
    }
    .hero-dots {
        right:28px;
        bottom:25px
    }
    .gallery-grid>.wp-block-image:first-child {
        grid-column:span 2
    }
    .impact-grid {
        gap:20px
    }
    .impact-num {
        font-size:2.4rem
    }
    .news-header {
        align-items:flex-start;
        gap:15px
    }
    .notice-title {
        grid-column:1/-1
    }
  .blog-grid {
    grid-template-columns:1fr;
  }
  .blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
    .footer-bottom {
        display:block
    }
    .ticker-track {
        animation-duration:22s
    }
}
@media(prefers-reduced-motion:reduce) {
    .ticker-track,.hero-slide img {
        animation:none
    }
    .ymca-root .fade-up {
        opacity:1;
        transform:none
    }
}


/* フルワイド対応 */
.ymca-root {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    margin-right: -50vw;
    margin-left: -50vw;
}
.ymca-root .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
