@charset "utf-8";

/* =========================================
    *  Style.css
   ========================================= */

/* ------------------------------------------
        フォント
   ------------------------------------------ */

html {
  font-size: 1.25rem; /* ＝20px */
  margin: 0;
}
body {
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 1rem; /* 20px */
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}
/* 見出し */
h1 {
  font-size: 1.6rem;
} /* 32px */
h2 {
  font-size: 1.4rem;
} /* 28px */
h3 {
  font-size: 1.2rem;
} /* 24px */
h4 {
  font-size: 1rem;
} /* 20px */
h5 {
  font-size: 0.75rem;
} /* 16px */
/* 見出し全てを太字に */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

/* 見出し h2設定 */
h2 {
  font-weight: 600;
  font-family: italic;
  line-height: 1.8rem;
  padding-top: 20px;
  padding-bottom: 30px;
  color: var(--color-text);
}
h3 {
  font-weight: 500;
  font-family: normal;
  line-height: 1.8rem;
}

/* テキスト */
p {
  font-size: 0.9rem;
  /* 18px */
  margin-bottom: 0.5rem;
}

small {
  font-size: 0.875rem;
}
strong {
  font-weight: 600;
}

body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #000000;
}

/* PC表示用のスタイル（768px以上） */
@media screen and (min-width: 768px) {
  p {
    font-size: 1rem;
    /* 20px */
    margin-bottom: 1rem;
  }
}

/* ------------------------------------------
        色の設定
   ------------------------------------------ */
/* 共通スタイル */
:root {
  /* +++++文字色+++++ */
  --color-text: #2b6cb7;
  --color-text2: #d29195;
  --color-text3: #f5f5f5;

  /* +++++背景色+++++ */
  --color-bg: #f5f5f5;
  --color-bg1: #ffd6d9;
  --color-bg2: #ffffff;
  --color-bg3: #2b6cb7;

  /* ヘッダー・フッター */
  --color-header-bg: #f5f5f5;
  --color-footer-bg: #3d78bd;

  /* コンテンツ枠 */
  --color-contact: #f8e4e5;
  --color-content-card: #f5f5f5;

  /* +++++アクセント+++++ */
  /* --color-accent: #fff893; */

  /* +++++ボーダー+++++ */
  --color-border: #2b6cb7;

  /* +++++ボタンカラー+++++ */
  --color-button: #ffffff;
  --color-button-text: #2b6cb7;
  --color-button-border: #2b6cb7;
  --color-button-hover: #d29195;
}

/* ------------------------------------------
        header
   ------------------------------------------ */
/* 共通：ヘッダーの装飾 */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  background-color: rgba(255, 255, 255, 0.8); /* 半透明白 */
  border-radius: 50px;
  backdrop-filter: blur(10px); /* 背景ぼかし */
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: auto;
  max-width: 1200px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* デフォルト：スマホ用にナビは非表示 */
.nav-menu {
  display: none;
}

/* サイトロゴ　*/
.site-logo {
  width: 35px;
  height: 35px;
}
/* ------------------------------------------
    ハンバーガーメニュー
   ------------------------------------------ */
/* ハンバーガーアイコン全体のスタイル */
.hamburger {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24px;
  cursor: pointer;
  margin: 10px 15px;
  z-index: 10;
  gap: 6px;
  /* 各線の間隔 */
}

/* 2本の線のスタイル */
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.4s, opacity 0.4s;
  box-sizing: border-box;
}

/* MENU テキストのスタイル */
.hamburger .menu-text {
  font-size: 10px;
  font-weight: bold;
  color: var(--color-text);
  text-align: center;
  margin-top: 2px;
  /* 間隔を狭めるために調整 */
  line-height: 1;
}

/* メニュー表示中のときに「MENU」を非表示に */
.hamburger.active .menu-text {
  display: none;
  /* 「MENU」を非表示に */
}

/* CLOSE テキストのスタイル */
.hamburger .close-text {
  font-size: 10px;
  font-weight: bold;
  color: var(--color-text);
  text-align: center;
  margin-top: 6px;
  display: none;
  /* 初期状態で非表示 */
}

/* ハンバーガーがアクティブなときに「CLOSE」を表示し、「MENU」を非表示 */
.hamburger.active .close-text {
  display: block;
  /* アクティブ時に表示 */
}

.hamburger.active .menu-text {
  display: none;
  /* アクティブ時は「MENU」を非表示 */
}

/* ハンバーガーアイコンの変化（「×」マークの作成） */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
  /* 左右のバランスを調整 */
}

.hamburger.active span:nth-child(2) {
  transform: rotate(-45deg) translate(3px, -3px);
  /* 左右のバランスを調整 */
}

/* ナビゲーションメニューのスタイル */
.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  background-color: var(--color-bg);
  color: #fff;
  border-radius: 25px;
  display: none; /* 初期状態で非表示 */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s;
}

.nav-list {
  list-style: none;
  padding: 50px 30px;
  margin: 0;
}
.nav-item {
  margin: 20px 0;
  padding: 10px 20px;
}
/* メニューがアクティブになったときの表示 */
.nav-menu.active {
  display: flex; /* activeクラスが追加されたときに表示 */
  opacity: 1;
}
.nav-item:hover {
  color: var(--color-text2);
  transition: 0.5s ease;
}

.nav-item a {
  position: relative;
  display: inline-block;
  padding: 5px 0;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-item a:hover {
  color: var(--color-text2);
}
/* 下線の初期状態 */
.nav-item a::after {
  content: "";
  position: absolute;
  bottom: -4px; /* 文字の少し下 */
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-text2);
  transition: width 0.3s ease;
}

/* hover時に下線が伸びる */
.nav-item a:hover::after {
  width: 100%;
  color: #ffd6d9;
}

/* PC表示用のスタイル（768px以上） */
@media screen and (min-width: 768px) {
  .hamburger {
    display: none;
  }

  .nav-menu {
    display: flex !important;
    position: static;
    width: auto;
    height: auto;
    background: none;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    color: var(--color-text);
  }

  .nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0 30px;
    margin: 0;
  }

  .nav-list li a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9rem;
  }
  .nav-item {
    margin: 0;
    padding: 10px 20px;
  }
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.8); /* 半透明白 */
    border-radius: 100px;
    backdrop-filter: blur(10px); /* 背景ぼかし */
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
}

/* ------------------------------------------
    フッター
   ------------------------------------------ */

/* ===== フッター上部の大きな角丸帯（形だけ先に） ===== */
footer .footer-container {
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  background: #3d78bd;
  color: #fff;
  padding: clamp(32px, 6vw, 64px) 20px 10px 20px;
}

/* ====== 流れるテキスト（右→左） ====== */
.marquee {
  --gap: 2.5rem; /* 単語間の間隔 */
  --speed: 50s; /* 速度（小さいほど速い） */
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding: 12px 0;
  /* 両端フェード（対応ブラウザで自然に切れる） */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
}

.marquee__track {
  display: flex;
  gap: var(--gap);
  flex: 0 0 auto; /* 折り返さない */
  min-width: 100%; /* ビューポート幅ぶん動かす */
  animation: marquee-scroll var(--speed) linear infinite;
}

.marquee span {
  white-space: nowrap;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.2em;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--color-text3);
  opacity: 0.7;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  } /* 1本ぶん左へ */
}

/* ホバーで一時停止（読みやすさ配慮） */
.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* 動きを苦手とする設定への配慮 */
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
}

.copyright {
  text-align: center;
  font-size: 0.875rem;
  color: #fff;
  margin-top: 10px;
}

.footer-nav {
  list-style: none;
  padding: 20px;
  margin: 0 auto;
  text-align: center;
}
.footer-nav li a {
  text-decoration: none;
  color: var(--color-text3);
  font-weight: 600;
  font-size: 0.8rem;
}

/* PC表示用のスタイル（768px以上） */
@media screen and (min-width: 768px) {
  .footer-nav {
    display: flex;
    gap: 30px;
    padding: 50px;
    margin: 0;
    justify-content: center;
    align-items: center;
  }
  .footer-nav li a {
    font-size: 1.2rem;
  }
}

/* ------------------------------------------
    コンテンツサイズ
   ------------------------------------------ */
.section {
  margin: 100px auto;
  box-sizing: border-box;
}

/* ------------------------------------------
    カード型コンテンツ
   ------------------------------------------ */

.works-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 100px;
  margin: 20px 0 60px 0;
}
.card {
  width: 300px;
  height: 450px;
  text-align: center;
  display: block;
  background: #fff;
  border-radius: 20px;
  border: 2px solid var(--color-border);
  box-shadow: 8px 8px 0 rgba(22, 120, 233, 0.3);
  padding: 16px;
  transition: transform 0.3s ease;
}
.card-label {
  background: #2b6cb7;
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}

.card {
  display: block;
  text-decoration: none; /* 下線を消す */
  color: inherit; /* テキストの色を親に合わせる */
  transition: transform 0.2s;
}
.card:hover {
  transform: translateY(-4px); /* ホバーで少し浮かせる演出 */
  box-shadow: 12px 12px 0 rgba(22, 120, 233, 0.4);
  background-color: rgba(22, 120, 233, 0.1);
  opacity: 0.8;
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  margin-bottom: 12px;
}

.card-text {
  display: -webkit-box; /* Flexboxみたいに縦に並べる */
  -webkit-box-orient: vertical; /* 縦方向に */
  -webkit-line-clamp: 3; /* 表示する行数を指定（例：3行） */
  overflow: hidden; /* はみ出しを隠す */
  text-overflow: ellipsis; /* …をつける */
  min-height: calc(
    1.6em * 3
  ); /* 3行分の高さを確保（line-heightに合わせて調整） */
  line-height: 1.6;
}

.card-period {
  display: block;
  margin-top: 0.4em;
  font-size: 0.85em;
  color: #666;
}

/* ------------------------------------------
    見出し
   ------------------------------------------ */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.section-title .sub-title {
  display: block;
  font-size: clamp(0.8rem, 4vw, 0.9rem);
  color: #666;
  margin-top: 0.5em;
  font-weight: normal;
  letter-spacing: 0.05em;
}

/* ------------------------------------------
    もっと見るボタン
   ------------------------------------------ */

/* 基本スタイル */
.view-more {
  position: absolute;
  width: 200px;
  display: block;
  right: 15%;
  text-align: center;
  font-style: italic;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  background: #fff;
  border: 2px solid var(--color-bg3);
  border-radius: 20px;
  text-decoration: none;
  overflow: hidden;
  transition: color 0.3s ease;
  z-index: 1;
}

/* 背景スライド（左→右） */
.view-more::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg3);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.45, 0, 0.55, 1);
  z-index: -1;
  border-radius: 18px;
}

/* hover時 */
.view-more:hover {
  color: #fff;
  /* 文字を白に */
  transform: translateY(-2px);
}
.view-more:hover::after {
  transform: scaleX(1);
  /* 背景が左からスライド */
}

/* ========== 基本のリビール初期状態 ========== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.inview {
  opacity: 1;
  transform: none;
}

/* 見出し用：少し大きめ＆ゆっくり */
.reveal-title {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-title.inview {
  opacity: 1;
  transform: none;
}

/* カードのステッガー（段階的に登場） */
.stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.stagger.inview > * {
  opacity: 1;
  transform: none;
}

/* 連番で遅延（1～9まで。必要なら追加） */
.stagger.inview > *:nth-child(1) {
  transition-delay: 0.05s;
}
.stagger.inview > *:nth-child(2) {
  transition-delay: 0.1s;
}
.stagger.inview > *:nth-child(3) {
  transition-delay: 0.15s;
}
.stagger.inview > *:nth-child(4) {
  transition-delay: 0.2s;
}
.stagger.inview > *:nth-child(5) {
  transition-delay: 0.25s;
}
.stagger.inview > *:nth-child(6) {
  transition-delay: 0.3s;
}
.stagger.inview > *:nth-child(7) {
  transition-delay: 0.35s;
}
.stagger.inview > *:nth-child(8) {
  transition-delay: 0.4s;
}
.stagger.inview > *:nth-child(9) {
  transition-delay: 0.45s;
}

/* 省エネ（ユーザーがアニメーションを好まない設定なら無効化） */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-title,
  .stagger > * {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================
   段落（pタグ）フェードアップ
   ========================== */

/* 初期状態 */
.reveal-p {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

/* 表示時 */
.reveal-p.inview {
  opacity: 1;
  transform: none;
}

/* ステッガー的に遅延を少しかけたい場合（任意） */
.reveal-p.inview:nth-of-type(2) {
  transition-delay: 0.1s;
}
.reveal-p.inview:nth-of-type(3) {
  transition-delay: 0.2s;
}
.reveal-p.inview:nth-of-type(4) {
  transition-delay: 0.3s;
}

/* 動きをよりやわらかくしたい場合 */
@media (prefers-reduced-motion: no-preference) {
  .reveal-p {
    transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
  }
}

/* 404 スタイル */
.basic-404{
margin: 100px auto;
}

.basic-404 .container {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 16px;
}
.basic-404 h1 {
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 0.5rem;
}
.basic-404 h2 {
  margin-top: 1.75rem;
  font-size: 1.1rem;
}
.basic-404 p,
.basic-404 li {
  line-height: 1.8;
}
.basic-404 hr {
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid #eee;
}