body {
  font-family: "Inria Serif", "Noto Serif JP", serif;
  margin: 0;
  min-height: 100vh;
  background-image: url("../images/background.png");
  background-repeat:repeat-y;
  background-position: center top;
  background-size: 100% auto;
}

header {
    font-family: "Inria Serif", "Noto Serif JP", serif;
}

.header-logo {
  display: block;
  width: 300px;

  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
}
.title{
  font-size: 20px;
  text-align: center;
  margin-top: 15px;
}

.message {
  display: flex;
  align-items: center;

  width: 90%;
  max-width: 1200px;

  margin: 45px auto 0;

  gap: clamp(15px, 2vw, 30px);

  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 400;

  letter-spacing: 0.03em;
  justify-content: center;

  color: #333333;

  white-space: nowrap;
}


/* 左右の線 */
.message::before,
.message::after {
  content: "";

  width: clamp(50px, 10vw, 140px);
  height: 1px;

  flex: none;

  background-color: rgba(51, 51, 51, 0.22);
}

.menu-card {
  position: relative;

  padding: 10px 6px;

  color: #333333;

  text-decoration: none;
}

.menu-card::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: 0;

  width: 18px;
  height: 1px;

  background-color: rgba(51, 51, 51, 0.25);

  transform: translateX(-50%);

  transition:
      width 0.3s ease,
      background-color 0.3s ease;
}

.menu-card:hover::after {
  width: 100%;

  background-color: rgba(51, 51, 51, 0.55);
}

/* マウスを乗せた時 */
.menu-card:hover {
  transform: none;

  color: #607a7d;

  box-shadow: none;
}

.menu-text {
  font-size: clamp(16px, 1.7vw, 21px);

  white-space: nowrap;
}

nav ul {
  display: flex;
  justify-content: center;

  list-style: none;

  gap: clamp(45px, 6vw, 95px);

  padding-left: 0;

  margin: clamp(45px, 5vw, 80px) auto;
}

nav li {
  margin-top: 0;
  background-position: center top;
}

.main-container {
  display:flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  position: relative;

  padding: 0 30px;
  box-sizing: border-box;
}

.left-item,
.right-item {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 0;
}

.left-line,
.right-line {
  flex: 1;
  width: auto;
  margin: 0;

  opacity: 0.35;
}

.left-mark,
.right-mark {
  margin: 0;
}

.sub-title {
  margin: 0 clamp(8px, 2vw, 20px);
  font-size:clamp(35px,4vw,64px);
  white-space: nowrap;
  color: #333333;
  font-weight: 400;
}

.main-sentence {
  width: 90%;
  max-width: 1300px;

  margin: 0 auto;

  box-sizing: border-box;

  background: rgba(234, 247, 248, 0.62);

  border: 10px solid rgba(255, 255, 255, 0.55);
  border-radius: 25px;

  /* 後ろのトランプ背景をぼかして見せる */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* 外側の影＋内側の光 */
  box-shadow:
      0 14px 30px rgba(70, 90, 100, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);

  position: relative;
  overflow: hidden;
}

.main-sentence::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 45%;

    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.35),
        rgba(255, 255, 255, 0)
    );

    pointer-events: none;
}

.button1 {
  display: block;

  width: fit-content;

  margin-top: 35px;
  margin-left: auto;
  margin-right: auto;

  padding: 14px 25px;

  background-color: #ffffff;

  border: 2px solid #ffffff;
  border-radius: 10px;

  white-space: nowrap;
  font-size: 20px;
  text-decoration: none;

  color: #333333;

  cursor: pointer;

  box-shadow: 4px 4px 10px rgba(100, 100, 100, 0.25);

  transition: 0.2s;
}

.button1:hover {
  transform: translateY(-3px);

  box-shadow: 6px 6px 14px rgba(100, 100, 100, 0.3);
}

.button1:active {
  transform: scale(0.95);
}

.value-card,
.member-card {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

footer {
    margin-top: 60px;
    padding: 20px 0 30px;

    text-align: center;

    font-size: 14px;

    color: #666666;
}

/*マウスをのせた時のみ反映*/
@media (hover: hover) {
    .value-card:hover,
    .member-card:hover {
        transform: translateY(-8px);
    }
}

@media(max-width:1024px){


   nav ul {
        gap:35px;
    }

  }

@media (max-width: 768px) {
   nav ul {
        display:grid;
        grid-template-columns:repeat(2,auto);
        justify-content:center;
        column-gap:120px;
        row-gap:0;
        margin:30px;
    }

    nav li:nth-child(3) {
        grid-column:1/3;
        justify-self:center;
    }

    .message {
    width: 92%;

    gap: 8px;

    font-size: clamp(19px, 5vw, 22px);
}

.message::before,
.message::after {
    width: auto;
    min-width: 0;

    flex: 1;
}
  }

  /* ========================================
   全ページ共通
   スクロールアニメーション
======================================== */


/* JSが動いている時だけ、最初は少し下＋透明 */
.site-motion-enabled .site-reveal,
.site-motion-enabled .home-reveal {
    opacity: 0;

    transform: translateY(22px) scale(0.985);

    transition:
        opacity 0.75s ease,
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}


/* 画面内に入った時 */
.site-motion-enabled .site-reveal.is-visible,
.site-motion-enabled .home-reveal.is-visible,
.home-motion-enabled .home-reveal.is-visible {
    opacity: 1;

    transform: translateY(0) scale(1);
}


/* 少し遅らせて表示する場合 */
.site-motion-enabled .site-reveal-delay,
.site-motion-enabled .home-reveal-delay,
.home-motion-enabled .home-reveal-delay {
    transition-delay: 0.12s;
}


/* ========================================
   スマホ
======================================== */

@media (max-width: 768px) {

    .site-motion-enabled .site-reveal,
    .site-motion-enabled .home-reveal,
    .home-motion-enabled .home-reveal {
        transform: translateY(10px) scale(0.99);
    }


    .site-motion-enabled .site-reveal.is-visible,
    .site-motion-enabled .home-reveal.is-visible,
    .home-motion-enabled .home-reveal.is-visible {
        transform: translateY(0) scale(1);
    }

}


/* ========================================
   動きを減らす設定
======================================== */

@media (prefers-reduced-motion: reduce) {

    .site-motion-enabled .site-reveal,
    .site-motion-enabled .home-reveal,
    .site-motion-enabled .site-reveal.is-visible,
    .site-motion-enabled .home-reveal.is-visible,
    .home-motion-enabled .home-reveal,
    .home-motion-enabled .home-reveal.is-visible {
        opacity: 1;

        transform: none;

        transition: none;
    }

}
