/* ===== Design tokens ===== */
:root {
  --crimson:      #7a0019;
  --crimson-dark: #5c0012;
  --crimson-pale: #faf0f2;
  --gold:         #ffd54f;
  --gold-dark:    #f9a825;
  --white:        #ffffff;
  --off-white:    #f8f7f5;
  --text-primary: #1a1a1a;
  --text-muted:   #555;
  --border:       #e4dede;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.08);
  --shadow-md:    0 6px 20px rgba(0,0,0,.10);
  --shadow-lg:    0 12px 36px rgba(0,0,0,.14);
  --radius-sm:    0;
  --radius-md:    0;
  --radius-lg:    0;
  --transition:   .25s ease;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body{
  margin: 0;
  font-family: "Yu Gothic","Hiragino Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background: var(--off-white);
  line-height: 1.75;
  color: var(--text-primary);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container{
  width:min(1200px,100% - 64px);
  margin:0 auto;
}

.section-inner{
  padding: 72px 0;
}

@media (max-width: 768px){
  .container{
    width:min(1200px,100% - 32px);
  }

  .section-inner{
    padding: 48px 0;
  }
}

/* ===== HEADER ===== */
.site-header{
  position: fixed;
  top: 0;
  width:100%;
  z-index: 1000;
  color: #fff;
  background: rgba(122,0,25,0);
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
  box-shadow: none;
  font-family: "Yu Mincho","游明朝","Hiragino Mincho ProN","Hiragino Mincho Pro","MS PMincho",serif;
}

.site-header.scrolled{
  background: rgba(122,0,25,0.97);
  box-shadow: 0 2px 16px rgba(0,0,0,0.22);
  backdrop-filter: blur(6px);
}

.header-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 16px 0;
}

.logo-link{
  display:flex;
  align-items:center;
  gap: 16px; /* ← ロゴ画像と文字の間 */
  text-decoration: none;
}

.logo-text{
  display:flex;
  flex-direction:column;
  margin-top: 4px; /* ← 文字を少し下へ */
  line-height: 1.2;
}

.logo-main{
  font-weight:700;
  font-size: 24px;
}

.logo-sub{
  font-size: 11px;
  opacity:.85;
  letter-spacing:.05em;
  margin: auto;
}

.logo-img-wrap{
  border-radius: 0;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background: transparent;
}

.long-logo{ width: 180px; height:auto; }
.long-logo-img{ width:100%; height:auto; object-fit:contain; display:block; }

.main-nav > ul{
  list-style:none;
  display:flex;
  gap:18px;
  margin:0;
  padding:0;
  font-size: 13px;
}

.main-nav a{
  color:#fff;
  padding-bottom:3px;
  position:relative;
  opacity: .92;
}

.main-nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0;
  height:2px;
  background:#ffd54f;
  transition: width .2s ease;
}

.main-nav a:hover::after{ width:100%; }
.main-nav a.is-active{ opacity: 1; }
.main-nav a.is-active::after{ width:100%; }

/* ===== HERO (index) ===== */
.hero{
  position:relative;
  width:100vw;
  margin-left:50%;
  transform:translateX(-50%);
}

.hero-swiper,
.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide{
  width:100vw;
  height:100vh;
}

.hero-swiper img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.hero-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  color:#fff;
  background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.7));
  z-index:10;
}

.hero-inner{ padding:60px 0; }
.hero-text{ max-width: 640px; }

.hero-label{ font-size:12px; letter-spacing:.1em; margin:0 0 10px; }
/* Upright headline with a horizontal accent. */
.hero .hero-headline {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 28px;
  padding: 0 .12em .2em;
  position: relative;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: clamp(32px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.055em;
  transform: none;
  transform-origin: left center;
  -webkit-text-stroke: .6px currentColor;
  text-shadow: 2px 4px 0 rgba(128,128,128,.65), 0 8px 22px rgba(128,128,128,.45);
}
.hero-headline-sky, .hero-headline-together { display: block; white-space: nowrap; }
.hero-headline-sky { color: var(--crimson); font-size: 1.55em; line-height: 1.12; margin-bottom: .08em; }
.hero-headline-together { color: #fff; }
.hero-headline::after {
  content: "";
  position: absolute;
  left: .15em;
  bottom: 0;
  width: 76%;
  height: 5px;
  background: linear-gradient(90deg, var(--crimson) 0%, var(--crimson) 65%, transparent 100%);
  transform: none;
}
@media (max-width: 768px) {
  .hero .hero-headline { font-size: clamp(28px, 7.5vw, 48px); margin-bottom: 22px; }
  .hero-headline::after { height: 3px; }
}
.hero-desc{ margin:0 0 18px; }

.btn-primary{
  display:inline-block;
  padding:10px 24px;
  border-radius:0;
  background:#ffd54f;
  color:#4a2c0a;
  font-weight:600;
  box-shadow:0 2px 4px rgba(0,0,0,.25);
}

.hero .btn-primary {
  background: var(--crimson);
  color: #fff;
}

/* Swiper pagination */
.hero-swiper { --swiper-pagination-border-radius: 0; }
.hero-swiper .swiper-pagination{ bottom:20px !important; }

/* ===== PAGE HERO (sub pages) ===== */
.page-main{ background:#fff; }
.page-hero{
  background-size: cover;
  background-position: center;
}
.page-hero-inner{ padding: 56px 0; }
.page-title{
  font-size: 34px;
  margin: 0 0 10px;
}
.page-lead{ margin: 0; opacity: .95; max-width: 720px; }

/* ===== Sections ===== */
.section-plain{ background:#fff; }
.section-inner{ padding: 48px 0; }

.section-title{
  font-size: 22px;
  border-left: 4px solid var(--crimson);
  padding-left: 12px;
  margin: 0 0 24px;
  color: var(--text-primary);
  font-family: "Yu Mincho","游明朝","Hiragino Mincho ProN",serif;
  letter-spacing: .04em;
}

.card-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap:16px;
}

.card{
  border-radius: 0;
  padding: 16px;
}

.card-plain{
  background: #faf5ea;
  border-left: 4px solid #7a0019;
}

.card-link{ display:block; }

.simple-list{ padding-left: 20px; margin: 0; }
.simple-list li{ margin-bottom: 6px; }

/* ===== Background image helpers ===== */
.about-bg      { background-image: url("../assets/photos/9-1920.jpg"); }
.activities-bg { background-image: url("../assets/photos/DSC_4546-1920.jpg"); }
.schedule-bg   { background-image: url("../assets/photos/t4-1920.jpg"); }
.access-bg     { background-image: url("../assets/photos/t1-1920.jpg"); }
.members-bg    { background-image: url("../assets/photos/photo6-1920.jpg"); }
.contact-bg    { background-image: url("../assets/photos/4-1920.jpg"); }

/* ===== Overlay ===== */
.overlay{
  color:#fff;
  background: rgba(0,0,0,.55);
  padding: 30px 0;
}

/* ===== Footer ===== */
.site-footer{
  background: var(--crimson-dark);
  color: rgba(255,255,255,.75);
  font-size: 13px;
  border-top: 3px solid var(--gold);
}

.footer-inner{ padding:12px 0; text-align:center; }

/* ===== Social Icons ===== */
.social-icons{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  margin-top:12px;
  flex-wrap:wrap;
}
.social-icons a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:0;
  background:#ffffff;
  color:#5c0012;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.social-icons a svg{ width:18px; height:18px; fill:currentColor; }
.social-icons a:hover,
.social-icons a:focus-visible{ transform: translateY(-2px); }
.social-icons a:is(.ig, .fb, .x, .mail, .yt, .line){ color:var(--crimson); }
.social-icons a:is(.ig, .fb, .x, .mail, .yt, .line):is(:hover, :focus-visible){
  color:var(--crimson);
  background:var(--crimson-pale);
}
.social-icons a.line span{ font-family:Arial,sans-serif; font-size:10px; font-weight:800; letter-spacing:-.4px; }

.social-icons--on-light a{ background:#f4efe9; box-shadow:0 2px 6px rgba(0,0,0,.08); }
.social-icons--on-light a.line, .social-icons--on-light a.line:hover, .social-icons--on-light a.line:focus-visible{ background:#f4efe9; }

/* ===== Loading ===== */
#loading-screen{
  position:fixed;
  inset:0;
  background: var(--crimson);
  color:#fff;
  z-index:9000;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: opacity .5s ease, visibility .5s ease;
}

.loading-inner{ text-align:center; }

.loading-text{
  margin: 0 0 16px;
  letter-spacing: .18em;
  font-family: "Yu Mincho","游明朝","Hiragino Mincho ProN",serif;
  font-size: 15px;
}

.loading-spinner{
  width: 36px;
  height: 36px;
  border-radius: 0;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: var(--gold);
  animation: spin .8s linear infinite;
  margin: 0 auto;
}

@keyframes spin { to{ transform: rotate(360deg); } }

body.loaded #loading-screen{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

/* 部員紹介ドロップダウン（スマホ タップ開閉） */
@media (max-width: 768px) {
  .nav-dropdown.is-open .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
  }
}

/* ===== Fade-in ===== */
.fade-in{
  opacity:0;
  transform: translateY(18px);
  transition: opacity .8s ease-out, transform .8s ease-out;
}
.fade-in.is-visible{ opacity:1; transform: translateY(0); }
.delay-1{ transition-delay: .15s; }
.delay-2{ transition-delay: .3s; }
/* ===== ヘッダー圧縮アニメーション ===== */
.site-header,
.header-inner,
.long-logo,
.logo-text,
.logo-main,
.logo-sub {
  transition: background .25s ease, box-shadow .25s ease,
              padding .25s ease, width .25s ease,
              font-size .25s ease, margin-top .25s ease, opacity .25s ease;
}

/* スクロール後：圧縮状態 */
.site-header.is-compact .header-inner {
  padding: 8px 0;          /* 通常より小さく */
}

.site-header.is-compact .long-logo {
  width: 140px;            /* ロゴ横幅を小さく（好みで） */
}

.site-header.is-compact .logo-main {
  font-size: 20px;         /* ロゴ文字も小さく */
}

.site-header.is-compact .logo-sub {
  font-size: 10px;
}

.site-header.is-compact .logo-text {
  margin-top: 2px;         /* 下げ量を少し減らす */
}


/* ===== Mobile Taskbar ===== */
.taskbar {
  display: none;              /* PCでは非表示 */
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;

  background: rgba(122,0,25,0.98);
  border-top: 1px solid rgba(255,255,255,0.12);

  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  gap: 6px;
  justify-content: space-between;
}

.tb-item {
  flex: 1;
  text-align: center;
  color: #fff;
  font-size: 12px;
  padding: 10px 6px;
  border-radius: 0;
  opacity: 0.9;
}

.tb-item.is-active {
  background: rgba(255,255,255,0.14);
  opacity: 1;
}

/* ===== 部員写真の統一スタイル ===== */
.member-photo-img {
  width: 96px;              /* ← 写真サイズ（好みで変更OK） */
  height: 96px;
  border-radius: 0;       /* 直角に統一 */
  object-fit: cover;        /* はみ出し部分を自動トリミング */
  object-position: center;  /* 中央を基準にトリミング */
  flex-shrink: 0;           /* 潰れ防止 */

  border: 2px solid rgba(122,0,25,0.25);
  background: #f3f3f3;      /* 読み込み前の背景 */
}

/* スマホだけ少し小さく */
@media (max-width: 768px) {
  .member-photo-img {
    width: 72px;
    height: 72px;
  }
}

/* 画面幅が狭い時だけ：上のナビを隠してタスクバーを出す */
@media (max-width: 768px) {
  .main-nav { display: none; }     /* 上の横並びメニューを消す */
  .taskbar { display: flex; }      /* タスクバー表示 */

  body { padding-bottom: 76px; }   /* タスクバーに本文が隠れないように */
}

/* ===== Mobile ===== */
@media (max-width: 768px){
  .header-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .main-nav > ul{ flex-wrap: wrap; gap: 10px; }
  .hero-swiper,
  .hero-swiper .swiper-wrapper,
  .hero-swiper .swiper-slide{ height: 80vh; }
  .section-inner{ padding: 40px 0; }
  .page-title{ font-size: 28px; }
}

/* ===== 部員紹介の強調スタイル ===== */
.highlight {
  background: linear-gradient(transparent 60%, #ffd54f 60%);
  font-weight: 600;
}


/* ===== YouTube Section ===== */
.youtube-wrap{
  position: relative;
  width: 90%;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.youtube-wrap iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.members-cta{
  text-align: center;
}

.members-btn{
  font-size: 16px;
  padding: 14px 32px;
}

/* ===== Horizontal feature photo cards ===== */

.feature-section {
  background: #f7f7f7;
  overflow: hidden;
}

.section-kicker {
  margin: 0 0 6px;
  color: #7a0019;
  font-weight: 700;
  letter-spacing: .12em;
  font-size: 13px;
  text-transform: uppercase;
}

.feature-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 32px 4px 40px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.feature-scroll::-webkit-scrollbar {
  height: 8px;
}

.feature-scroll::-webkit-scrollbar-thumb {
  background: #7a0019;
  border-radius: 0;
}

.feature-card {
  position: relative;
  flex: 0 0 320px;
  height: 430px;
  display: block;
  border-radius: 0;
  overflow: hidden;
  color: #fff;
  scroll-snap-align: start;
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 22px 48px rgba(122,0,25,.35);
  z-index: 5;
}

.feature-card-img {
  position: absolute;
  inset: 0;
}

.feature-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.15),
    rgba(0,0,0,.45),
    rgba(0,0,0,.78)
  );
  z-index: 1;
  transition: background .35s ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(122,0,25,.0);
  z-index: 2;
  transition: background .35s ease;
}

.feature-card:hover::before {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.28),
    rgba(0,0,0,.62),
    rgba(0,0,0,.9)
  );
}

.feature-card:hover::after {
  background: rgba(122,0,25,.22);
}

.feature-card:hover img {
  transform: scale(1.1);
  filter: brightness(.75) contrast(1.12);
}

.feature-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 28px;
}

.feature-label {
  margin: 0 0 8px;
  color: #ffd54f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
}

.feature-card-body h3 {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.35;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}

.feature-card-body p {
  margin: 0 0 18px;
  color: rgba(255,255,255,.88);
  font-size: 14px;
}

.feature-btn {
  display: inline-block;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  opacity: .9;
  transform: translateX(0);
  transition: transform .25s ease, color .25s ease;
}

.feature-btn::after {
  content: " →";
}

.feature-card:hover .feature-btn {
  color: #ffd54f;
  transform: translateX(6px);
}

.feature-card:hover .feature-card-body h3 {
  color: #fff;
  text-shadow:
    0 0 8px rgba(255,255,255,.45),
    0 0 18px rgba(255,213,79,.45);
}

/* スマホ調整 */
@media (max-width: 768px) {
  .feature-card {
    flex-basis: 78vw;
    height: 400px;
  }

  .feature-scroll {
    gap: 18px;
    padding-bottom: 32px;
  }
}

/* ===== NEWS ===== */

.news-section{
  background:#fff;
}

.news-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.news-item{
  display:flex;
  gap:18px;

  padding:14px 20px;
  background:#fafafa;

  border-radius:0;

  border-left:5px solid #7a0019;

  transition:.25s;
}

.news-item:hover{
  transform:translateX(8px);
  background:#f4f4f4;
}

.news-date{
  min-width:110px;
  color:#7a0019;
  font-weight:700;
  font-size:13px;
}

.news-content h3{
  margin:2px 0 3px;
  font-size:16px;
}

.news-content p{
  margin:0;
  color:#666;
  font-size:14px;
  line-height:1.5;
}

.news-tag{
  display:inline-block;

  padding:2px 8px;
  border-radius:0;

  font-size:10px;
  font-weight:700;

  color:#fff;
}

.news-tag.recruit{
  background:#00897b;
}

.news-tag.result{
  background:#1976d2;
}

.news-tag.camp{
  background:#f57c00;
}

@media(max-width:768px){

  .news-item{
    flex-direction:column;
    gap:6px;
    padding:12px 16px;
  }

  .news-date{
    min-width:auto;
  }

}

/* ===== NEWS Header ===== */

.section-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin-bottom:30px;
}

.news-more{
  color:#7a0019;
  font-weight:700;
  font-size:14px;
  transition:.2s;
}

.news-more:hover{
  transform:translateX(4px);
  color:#a3002a;
}

@media(max-width:768px){

  .section-header{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

}

/* ===== NEWS ARCHIVE ===== */

.news-archive{
  display:flex;
  flex-direction:column;
  gap:24px;
}

.news-archive-item{
  display:flex;
  gap:24px;

  padding:28px;

  background:#fff;

  border-radius:0;

  border-left:6px solid #7a0019;

  box-shadow:0 6px 20px rgba(0,0,0,.06);
}

.news-archive-item h3{
  margin:10px 0;
}

.news-archive-item p{
  margin:0;
  color:#666;
}

@media(max-width:768px){

  .news-archive-item{
    flex-direction:column;
  }

}

/* ===== Dropdown Menu ===== */

.main-nav li {
  position: relative;
}

.nav-dropdown {
  position: relative;
}

.main-nav .dropdown-menu {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  width: max-content;
  z-index: 10;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);

  min-width: 180px;
  padding: 10px 0;
  margin: 0;

  background: rgba(122, 0, 25, 0.98);
  border-radius: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);

  list-style: none;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 10px 18px;

  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  background: rgba(255,255,255,0.14);
}

.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/*drop down menu smartphone*/
@media(max-width:768px){

  .nav-dropdown {
    width: 100%;
  }

.main-nav .dropdown-menu {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  width: max-content;
  z-index: 10;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);

  min-width: 180px;
  padding: 10px 0;
  margin: 0;

  background: #1a1a1a;
  border-radius: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);

  list-style: none;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.dropdown-menu a:hover {
  background: rgba(122, 0, 25, 0.85);
}

  .dropdown-menu a {
    padding: 6px 0;
    font-size: 12px;
    color: #fff;
    opacity: .85;
  }

  .nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown:hover .dropdown-menu {
    transform: translateX(-50%) translateY(0);
  }
}
/* ===== Mobile Taskbar : More dropdown ===== */
.tb-more{ position: relative; flex: 1; }
.tb-more > summary{
  list-style: none;
  cursor: pointer;
}
.tb-more > summary::-webkit-details-marker{ display: none; }

.tb-more-menu{
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  background: var(--crimson-dark);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 0;
}

.tb-more-link{
  color: #fff;
  font-size: 13px;
  padding: 11px 14px;
  border-radius: 0;
  opacity: .92;
  white-space: nowrap;
}
.tb-more-link:hover,
.tb-more-link:active{ background: rgba(255,255,255,.13); opacity: 1; }



