/* リセット & 共通設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.5;
  background: #ffffff;
}

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

/* カラー変数 */
:root {
  --color-primary: #FFD100;
  /* 黄色系（山吹色に近いコーポレートカラー） */
  --color-dark: #222222;
  --color-lightgrey: #f5f5f5;
  --color-white: #ffffff;
  --color-accent: #FFC700;
  --color-btn-primary: #FFD100;
  --color-btn-primary-hover: #e6c000;
}

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(90deg, #000000, #f21d89);
  z-index: 1000;
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 48px;
  /* ロゴ部は下線なし */
}

.logo-link {
  display: flex;
  /* 横並びにする */
  align-items: center;
  /* 画像と文字を縦方向中央揃え */
  text-decoration: none;
  /* リンク下線を消す */
}

.logo-img {
  height: 50px;
  /* ロゴの高さ調整 */
  margin-right: 10px;
  /* 文字との間隔 */
}

.company-name {
  font-size: 20px;
  /* 文字サイズ */
  color: #ffffff;
  /* 文字色 */
  font-weight: bold;
  /* 太字 */
}


/* ナビメニュー（PC） */
.nav__list {
  display: flex;
  gap: 30px;
}

.nav__item a {
  position: relative;
  padding: 5px 0;
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s;
}

.nav__item a:hover {
  color: var(--color-primary);
}

/* 下線アニメーション */
.nav__item a {
  position: relative;
  display: inline-block;
}

.nav__item a::after {
  content: "";
  position: absolute;
  bottom: -28px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  /* ←右端から縮む */
  transition: transform 0.3s ease;
}

.nav__item a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
  /* ←左端へ向かって消える */
}

/* active 状態（常に下線表示） */
.nav__item a.active {
  color: var(--color-primary);
  /* テキストも色付き */
}

.nav__item a.active::after {
  transform: scaleX(1);
  transform-origin: left;
  /* 常に線が出た状態 */
}


.logo a::after {
  display: none;
}

/* ハンバーガーメニュー */
.menu-btn {
    display: flex;
    flex-direction: column; /* ← 縦に並べる */
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border: 4px solid #f21d89;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.menu-btn__bar {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #f21d89;
    margin: 4px 0;   /* 上下に間隔を作る */
    border-radius: 2px;
    transition: all 0.4s ease;
}


.menu-btn.open .menu-btn__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-btn.open .menu-btn__bar:nth-child(2) {
  opacity: 0;
}

.menu-btn.open .menu-btn__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
/* デフォルトは非表示 */
.menu-btn {
    display: none;
}

/* 画面幅950px以下のときだけ表示 */
@media (max-width: 950px) {
    .menu-btn {
        display: flex;           /* 縦並びにするなら flex-direction: column; はここに入れてもOK */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        border: 4px solid #f21d89;
        border-radius: 50%;
        background-color: #fff;
        cursor: pointer;
        padding: 0;
        position: relative;
    }
}

/* レスポンシブ（スマホ） */
@media (max-width: 950px) {
  .nav__list {
    display: none;
    flex-direction: column;
    gap: 20px;
    background: linear-gradient(90deg, #000000, #f21d89);
    position: absolute;
    top: 100%;
    right: 0%;
    width: 100%;
    text-align: center;
    line-height: 2.5;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
  }

  .nav__list.active {
    display: flex;
  }

  .menu-btn {
    display: flex;
  }

  .nav__item a::after {
    bottom: -1px;
  }


}

/* ===== ヒーローセクション ===== */
.hero {
  position: relative;
  height: 600px;
  background: url('hero-image.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero__content {
  position: relative;
  text-align: center;
  padding: 0 20px;
}

.hero__title {
  font-size: 48px;
  color: var(--color-white);
  margin-bottom: 20px;
  font-weight: bold;
}

.hero__sub {
  font-size: 20px;
  color: var(--color-white);
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 18px;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}

.btn--accent {
  background: var(--color-btn-primary);
  color: var(--color-dark);
}

.btn--accent:hover {
  background: var(--color-btn-primary-hover);
}

.btn--primary {
  background: var(--color-dark);
  color: var(--color-white);
}

.btn--primary:hover {
  background: #111111;
}

/* ===== セクション共通 ===== */
.section {
  padding: 80px 20px;
}

.section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section--white {
  background: var(--color-white);
}

.section--lightgrey {
  background: var(--color-lightgrey);
}

.section__title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 40px;
  text-align: center;
  color: var(--color-dark);
}

.section__text {
  font-size: 18px;
  margin: 0 auto;
  line-height: 1.6;
}


/* お知らせリスト */
.news-list {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 20px;
}

.news-item {
  font-size: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
}

.news-item:last-child {
  border-bottom: none;
}

/* ===== フッター ===== */
/* ===== フッター ===== */
.footer {
  position: relative;
  /* ロゴをはみ出させるために relative */
  background: var(--color-dark);
  color: var(--color-white);
  padding: 80px 20px 40px;
  /* 上に余白を広めに */
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* ロゴ */
.footer-logo-wrap {
  position: absolute;
  top: -50px;
  /* フッターの上にはみ出させる */
  left: 17%;
  transform: translateX(-50%);
}

.footer-logo {
  width: 100px;
  height: auto;
  animation: spin 10s linear infinite;
  /* 無限回転 */
}

/* 回転アニメーション */
@keyframes spin {
  from {
    transform: translateX(-50%) rotate(0deg);
  }

  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

.footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-nav__list a {
  color: var(--color-white);
  transition: color 0.3s;
}

.footer-nav__list a:hover {
  color: var(--color-primary);
}

.footer__copy {
  font-size: 14px;
  padding-top: 40px;
}

@media (max-width: 768px) {
  .footer-nav__list {
    flex-direction: column;
    /* 縦並び */
    gap: 15px;
  }

  .footer-nav__list a {
    font-size: 16px;
    /* タップしやすいサイズ */
  }

  .footer-logo {
    width: 80px;
    /* ロゴを少し小さめに */
  }
}

@media (max-width: 480px) {


  .footer-nav__list a {
    font-size: 18px;
  }

  .footer-logo {
    width: 70px;
  }

  .company-name {
    font-size: 17px;
  }
  
}

/* リストの黒丸を消す */
.nav__list,
.footer-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/***********************************
top pageに戻るボタン　start
***********************************/
/* TOPボタン */
.btn-top-scroll {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #000000, #f21d89);
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(242, 29, 137, 0.4);
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 999;
  pointer-events: none;
  /* 非表示時はクリック不可 */
}

/* 表示用クラス */
.btn-top-scroll.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ホバー効果 */
.btn-top-scroll:hover {
  transform: translateY(0) scale(1.1);
  box-shadow: 0 6px 20px rgba(242, 29, 137, 0.6);
}