/* base.css - リセット・共通パーツ・ボタン・カード・レスポンシブ */

/* ========================================
   共通リセット・ベース
======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.8;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
/* ========================================
   共通ユーティリティ
======================================== */
.inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.section-pad {
  padding: 100px 0;
}
.bg-gray {
  background-color: #e4e4e4;
}
.bg-light {
  background-color: #f5f5f5;
}
.bg-dark {
  background-color: #11323b;
}
.text-green {
  color: #257600;
}
.body-text {
  font-size: 16px;
  line-height: 1.8;
  margin-top: 12px;
}
/* ========================================
   セクション見出し
======================================== */
.section-heading {
}
.section-heading.center {
  text-align: center;
}
.section-title-en {
  font-family: 'Genos', sans-serif;
  font-weight: 500;
  font-size: 80px;
  line-height: 0.85;
  color: #11323b;
}
.section-title-ja {
  font-size: 20px;
  color: #000;
  margin-top: 8px;
}
.section-desc {
  font-size: 16px;
  color: #444;
  margin-top: 12px;
}
/* ========================================
   ヘッダー
======================================== */
.site-header {
  background-color: #11323b;
  height: 87px;
  width: 100%;
  position: relative;
  z-index: 100;
}
.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
  text-decoration: none;
  transition: opacity 0.2s;
}
.header-logo:hover {
  opacity: 0.8;
}
.header-logo img {
  width: 40px;
  height: 35px;
  object-fit: cover;
}
.header-logo span {
  font-size: 26px;
  font-weight: 500;
  white-space: nowrap;
}
.pc-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  font-size: 16px;
  color: white;
  position: relative;
  transition: opacity 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link:hover {
  opacity: 0.85;
}
.header-contact-btn {
  background: white;
  color: #444;
  font-size: 16px;
  padding: 4px 16px;
  border-radius: 500px;
  transition: background 0.2s, transform 0.15s;
}
.header-contact-btn:hover {
  background: #e8e8e8;
  transform: translateY(-1px);
}
/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
/* SPナビ */
.sp-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: #11323b;
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.sp-nav.open {
  display: flex;
}
.sp-nav a {
  font-size: 22px;
  color: white;
  transition: opacity 0.2s;
}
.sp-nav a:hover {
  opacity: 0.7;
}
.sp-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
}
/* ========================================
   カード共通
======================================== */
.card {
  background: white;
  border: 1px solid #dbdbdb;
  border-radius: 20px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.13);
}
.card-thumb {
  aspect-ratio: 300/221;
  background: #11323b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-thumb img {
  opacity: 0.8;
}
.card-body {
  padding: 16px;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.card-date {
  font-size: 16px;
  font-weight: 700;
  color: #444;
}
.card-tag {
  border: 1px solid #11323b;
  border-radius: 500px;
  padding: 0 14px;
  font-size: 14px;
  color: #11323b;
}
.card-title {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
}
.card-grid {
  width: 100%;
  margin-bottom: 40px;
	margin-top: 40px;
}
.card-grid.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.card-grid.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
/* ========================================
   ボタン共通
======================================== */
.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #91280b;
  color: white;
  padding: 5px 30px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
	width: fit-content;
}
.more-btn:hover {
  background: #7a1f08;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.more-btn span {
  transition: transform 0.2s;
}
.more-btn:hover span:last-child {
  transform: translateX(5px);
}
.outline-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 1px solid white;
  color: white;
  padding: 6px 24px;
  font-size: 15px;
  transition: background 0.2s, transform 0.2s;
	width: fit-content;
}
.outline-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}
.btn-center {
 text-align: center;
}
/* ========================================
/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 768px) {
  .pc-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .header-inner {
    padding: 0 20px;
  }
  .header-logo span {
    font-size: 18px;
  }
  .section-pad {
    padding: 60px 0;
  }
  .section-title-en {
    font-size: 52px;
  }
  .section-title-ja {
    font-size: 16px;
  }
  .hero-wrap {
    padding: 16px;
  }
  .hero-img {
    height: 180px;
  }
  .hero-title {
    font-size: 32px;
    white-space: normal;
    text-align: center;
    width: 90%;
  }
  /* FVスライダー */
  .fv-section {
    height: auto;
  }
  .slider-container {
    height: 320px;
  }
  .slide {
    height: 280px;
  }
  .slide-inner {
    height: 280px;
    padding: 16px;
  }
  .slide-title {
    font-size: 22px;
    white-space: normal;
  }
  .slider-arrow {
    font-size: 36px;
  }
  .slider-arrow.prev {
    left: 8px !important;
  }
  .slider-arrow.next {
    right: 8px !important;
  }
  /* イントロ */
  .intro-wrap {
    flex-direction: column;
  }
  .intro-illust {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  .intro-lead {
    font-size: 18px;
  }
  .intro-sub {
    font-size: 16px;
  }
  .intro-icons {
    flex-direction: column;
    gap: 20px;
  }
  /* カード */
  .card-grid.three-col {
    grid-template-columns: 1fr 1fr;
  }
  /* カレンダー */
  .cal-layout {
    flex-direction: column;
  }
  .cal-list {
    width: 100%;
  }
  /* About */
  .about-layout {
    flex-direction: column;
  }
  .about-left {
    width: 100%;
  }
  .about-right {
    width: 100%;
  }
  /* Project */
  .project-row-top {
    flex-direction: column;
  }
  .project-row-top .project-card {
    width: 100%;
  }
  .project-row-bottom .project-card {
    width: 100%;
  }
  /* 仲間募集 */
  .nakama-banner {
    width: calc(100% - 48px);
    height: auto;
    margin: 20px 24px;
  }
  .nakama-inner {
    padding: 30px 24px;
  }
  /* フッターtop */
  .footer-top-links {
    flex-direction: column;
    gap: 40px;
  }
  .footer-divider {
    display: none;
  }
  /* フッターbottom */
  .footer-inner {
    flex-direction: column;
    gap: 30px;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 20px;
  }
  /* テーブル */
  .info-table th, .info-table td {
    display: block;
    width: 100%;
  }
  /* フォーム */
  .form-card {
    padding: 24px 20px;
  }
  .form-row {
    flex-direction: column;
    gap: 8px;
  }
  .form-label {
    width: 100%;
    padding-top: 0;
  }
  .form-input, .form-textarea {
    width: 100%;
  }
  /* ニュース＋サイドバー */
  .news-layout {
    flex-direction: column;
  }
  .news-sidebar {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .slide-title {
    font-size: 18px;
  }
  .hero-title {
    font-size: 26px;
  }
  .section-title-en {
    font-size: 40px;
  }
  .card-grid.three-col, .card-grid.two-col {
    grid-template-columns: 1fr;
  }
  .faq-filters {
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-nav {
    gap: 16px;
  }
}


/* ========================================
   SP対応追加
======================================== */
body {
  overflow-x: hidden;
}

/* SPナビ */
.sp-nav {
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  padding: 0 32px;
  box-sizing: border-box;
}
.sp-nav a {
  text-align: center;
  display: block;
  width: 100%;
  box-sizing: border-box;
  word-break: keep-all;
}
.sp-nav-close {
  top: 16px;
  right: 16px;
  font-size: 28px;
}

/* card-thumb img */
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  /* フッターbottom */
  .footer-inner {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 30px;
    padding: 0 20px;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  .footer-info {
    width: 100% !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .footer-logo {
    width: 160px !important;
    margin: 0 auto 8px !important;
    display: block !important;
  }
  .footer-org,
  .footer-address {
    text-align: center !important;
  }

  /* フッタートップ */
  .footer-top {
    height: auto !important;
    padding: 30px 20px;
  }
  .footer-top-links {
    flex-direction: column !important;
    gap: 0 !important;
    align-items: center;
    width: 100%;
  }
  .footer-top-item {
    width: auto !important;
    flex: none !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 0;
  }
  .footer-top-item p {
    font-size: 16px !important;
  }
  .footer-top-item img {
    display: block !important;
    width: 48px !important;
    height: 43px !important;
    max-width: 48px !important;
    object-fit: contain !important;
  }
  .footer-divider {
    width: 60%;
    height: 1px;
    background: rgba(255,255,255,0.5);
    margin: 0 auto;
  }

  /* イントロ */
  .intro-wrap {
    flex-direction: column;
    gap: 24px;
  }
  .intro-illust {
    width: 100% !important;
  }
  .intro-illust img {
    width: 100% !important;
    height: auto !important;
  }
  .intro-text {
    width: 100% !important;
  }
  .intro-icon-item img {
    height: 60px !important;
    width: auto !important;
  }
  .intro-icon-item p {
    font-size: 11px;
    line-height: 1.4;
  }

  /* アバウト */
  .about-layout {
    flex-direction: column;
    gap: 24px;
  }
  .about-left {
    width: 100% !important;
  }
  .about-right {
    width: 100% !important;
    overflow: hidden;
  }
  .map-wrap {
    width: 80% !important;
    margin: 0 auto;
  }
  .map-wrap img {
    width: 100% !important;
    height: auto !important;
  }
  .photo-row {
    flex-direction: column;
    gap: 12px;
  }
  .photo-item {
    width: 100% !important;
  }
  .photo-item img {
    width: 100% !important;
    height: auto !important;
  }

  /* カレンダー */
  .cal-layout {
    flex-direction: column;
  }
  .cal-wrap {
    width: 100%;
  }
  .cal-table {
    width: 100%;
  }
  .cal-table thead th {
    font-size: 8px;
    padding: 4px 0;
  }
  .cal-table tbody td {
    font-size: 10px;
    height: 40px;
    padding: 4px 2px;
  }
  .event-list-head,
  .event-list {
    width: 100% !important;
  }

  /* 共通 */
  .inner {
    padding: 0 16px !important;
    overflow-x: hidden;
  }
  .section-pad {
    padding: 40px 16px !important;
  }
  img:not(.footer-top-item img):not(.footer-logo):not(.slide-img img):not(.hero-img img) {
    width: 100%;
    height: auto;
  }

  /* プロジェクト */
  .project-row-top {
    flex-direction: column;
  }
  .project-row-top .project-card,
  .project-row-bottom .project-card {
    width: 100% !important;
  }

  /* 仲間募集 */
  .nakama-banner {
    margin: 40px 0 !important;
    width: 100% !important;
  }
  .nakama-inner {
    padding: 0 !important;
  }

  /* サイドバー */
  .news-layout,
  .detail-layout {
    flex-direction: column !important;
  }
  .news-sidebar,
  .detail-sidebar {
    width: 100% !important;
  }
}
