@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+Antique&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ysabeau:ital,wght@0,1..1000;1,1..1000&display=swap');



/* --- 全体の設定 --- */
:root {
  --vivid-pink: #ff00a2; /* 添付いただいた鮮やかなピンク */
  --accent-pink: #e06c9f; /* 少し落ち着いたアクセントピンク */
  --light-pink: #ff85c0; /* ボタン用の薄いピンク */
  --text-dark: #2c2c2c; /* 濃いダークグレー */
  --text-light: #ffffff; /* 白 */
  --base-white: #ffffff;
  --light-gray: #f0f0f0; /* 背景などに使う薄いグレー */
}

html {
  scroll-behavior: smooth; /* スムーズスクロールを有効化 */
}

body {
  font-family: "Zen Kaku Gothic Antique", "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
  margin: 0;
  color: var(--text-dark); /* デフォルトの文字色 */
  line-height: 1.8;
  background: var(--base-white);
}

h1,
h2,
h3 {
  font-weight: 600;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 80px 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: var(--vivid-pink); /* セクションタイトルに鮮やかなピンク */
}

/* --- ヘッダー --- */
.header {
  background-color: rgba(255, 255, 255, 0.95); /* 少し透明度のある白 */
  padding: 10px 30px;
  padding-bottom: 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  box-sizing: border-box;
}

.header-logo {
  font-size: 2.5rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--vivid-pink); /* ロゴに鮮やかなピンク */
}

.header-logo img {
  width: 200px;
}

.header-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.header-nav li {
  margin-left: 30px;
}

.header-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 1.5rem;
  font-weight: 500;
  transition: color 0.3s;
}

.header-nav a:hover {
  color: var(--vivid-pink); /* ホバー時に鮮やかなピンク */
}

/* --- ファーストビュー --- */
.hero {
  height: 100vh;
  background-color: var(
    --vivid-pink
  ); /* ファーストビュー背景に鮮やかなピンク */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  color: var(--text-light); /* ファーストビューの文字は白 */
}

.hero-content {
  position: relative;
}

.hero-content h1 {
  font-size: 3rem;
  margin: 0 0 20px 0;
  line-height: 1.4;
  font-weight: 300; /* 文字を細くする */
  /* 3つのメッセージが表示された後に全体を少し透過させる */
  opacity: 0.7;
}

.hero-phrase {
  opacity: 0;
  transition: opacity 2s ease-in-out; /* フェードイン時間を2秒に延長 */
  display: block; /* 各フレーズを改行して表示 */
}

.hero-phrase.visible {
  opacity: 1;
}

.hero-phrase.is-company-name {
  font-size: 4rem; /* 会社名のフォントサイズを大きくする */
  margin-top: 20px; /* 上のメッセージとの間隔を調整 */
}

/* --- ABOUTセクション --- */
#about {
  background-color: var(--base-white);
}

.about-content {
  max-width: 800px; /* 中央揃えにした際の最大幅を制限 */
  margin: 0 auto;
  text-align: center; /* テキストを中央揃えに */
}
.about-text {
  flex: 1;
}
.about-text h3 {
  font-size: 1.8rem; /* h3のフォントサイズを調整 */
}
.about-text p {
  font-size: 1.1rem; /* pのフォントサイズを調整 */
}

/* --- SERVICEセクション --- */
#services {
  background-color: var(
    --light-gray
  ); /* サービスセクションの背景を薄いグレーに */
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--base-white);
  padding: 30px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  margin-top: 0;
  color: var(--vivid-pink); /* サービスカードタイトルに鮮やかなピンク */
}

.service-card p {
  text-align: left;
}

/* --- COMPANYセクション --- */
#company {
  background-color: var(--base-white);
}

.company-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  border: 1px solid var(--light-gray);
}

.company-table th,
.company-table td {
  border: 1px solid var(--light-gray);
  padding: 15px;
  text-align: left;
}

.company-table th {
  background-color: var(--light-gray);
  width: 30%;
  font-weight: 600;
}

/* --- フッター --- */
.footer {
  background-color: var(--light-gray); /* フッター背景を濃いダークグレー */
  color: var(--text-dark); /* 文字は薄いグレー */
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* --- トップへ戻るボタン --- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background-color: var(--light-pink);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, box-shadow 0.3s;
  z-index: 999;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: var(--text-light);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.logo-font-w100 {
  font-family: Ysabeau;
  font-weight: 100;
}

.logo-font-w200 {
  font-family: Ysabeau;
  font-weight: 200;
}

.logo-font-w300 {
  font-family: Ysabeau;
  font-weight: 300;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    padding: 10px;
  }

  .header-logo img {
    width: 150px;
  }

  .header-nav {
    margin-top: -15px;
  }

  .header-nav ul {
    margin-top: 10px;
  }
  .header-nav li {
    margin: 0 10px;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-phrase.is-company-name {
    font-size: 3rem; /* スマホ表示では会社名のサイズを少し調整 */
  }
  .section-title {
    font-size: 2rem;
  }
  .about-content {
    flex-direction: column;
  }
  .about-image {
    width: 200px;
    height: 200px;
    margin-top: 30px;
  }
  .company-table th,
  .company-table td {
    padding: 10px;
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .company-table th {
    text-align: center;
    border-bottom: none;
  }
  .company-table td {
    text-align: center;
    border-top: none;
    margin-bottom: 10px;
    border: none;

  }
  /* .company-table tr {
    display: block;
    margin-bottom: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
  } */
}
