:root {
  --main-bg: #f4f7f6;
  --accent: #287271;
  --header-bg: #234e52;
  --text-color: #222;
  --button-bg: #287271;
  --button-color: #fff;
  --menu-active: #166462;
}



.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 3.8s ease, transform 1.8s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}






body {
  margin: 0;
  font-family: 'Helvetica','Hiragino Sans', 'Meiryo', sans-serif;
  background: var(--main-bg);
  color: var(--text-color);
  line-height: 1.7;
}

header {
  background: var(--header-bg);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  font-size: 16px;
  color: #fff;
  padding-top: 10px;
  padding-bottom: 10px;
}



.logo {
  display: flex;
  align-items: center;       /* 縦中央 */
  justify-content: flex-start; /* 左寄せ */
  gap: 8px;
  width: 100%;               /* 親の幅いっぱいに広げる */
  /* 必要なら margin や padding を調整 */
}

.logo img {
  max-width: 10vw; /* 既存のまま or 好みに応じて調整 */
  height: auto;   /* 高さ自動調整 */
}

.logo-text {
  font-size: 1.2em; /* テキストの大きさはお好みで */
  font-weight: bold;
  color: #ffffff;  /* 親要素のトーンに合わせて */
  white-space: nowrap; /* テキストの折り返し防止 */
  margin-left: -40px;
  margin-right: 150px;
}


.navbar {
  display: flex;
  justify-content: flex-start; /* 左詰め */
  align-items: center;
  width: 100%;                 /* 全幅 */
  margin: 0;                   /* 中央寄せ解除 */
}


nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 700px;
  margin-left: 80px; /* ← 好きなpx数を指定 */
}


.right-area {
  display: flex;
  align-items: center;
  margin-right: 300px;
  gap: 20px; /* ボタンとアイコンの間隔 */
}

.social-icons {
  display: flex;
  gap: 6px;
}

.social-icons a img {
  width: 28px;
  height: 28px;
  display: block;
}

.social-icons a[href*="www.instagram"] img {
  margin-top: 2px;
}

.social-icons a[href*="line.me"] img {
  width: 32px;  /* お好みで大きさ調整 */
  height: 32px;
}







nav {
  margin-left: 100px; /* ロゴからの距離を指定（調整可） */
}
nav ul {
  display: flex;
  margin: 0;
  padding: 0;
}



nav a {
  position: relative;
  color: #fff;
  padding: 8px;
  border-radius: 32px;
  transition: 
  background 0.4s cubic-bezier(.77,0,.18,1),
  box-shadow 0.3s cubic-bezier(.77,0,.18,1),
  color 0.3s cubic-bezier(.77,0,.18,1);
  text-decoration: none;
}

nav a:hover {
  background: linear-gradient(90deg, #42e39b 35%, #287271 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(66,227,155,0.18);
}








.cta {
  background: var(--button-bg);
  color: var(--button-color);
  padding: 6px 20px;
  border-radius: 20px;
  margin-left: 1px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
  white-space: nowrap;
}

.cta:hover {
  background: #166462;
}




.hero {
  position: relative;
  width: 100vw;          /* 画面幅の90％ */
  max-width: none;      /* 最大幅制限を外す */
  overflow: hidden;
  border-radius: 0;
  margin: auto auto;
  box-shadow: 0 2px 16px rgba(74,117,153,0.2);
  background: #f0fbff;
  padding: 0;  /* 追加：余白を完全リセット */
}

.hero img {
  display: block;
  width: 100%;           /* 親の幅いっぱい */
  height: 50vw;          /* ビューポートの高さの50% */
  object-fit: cover;     /* 縦横比を保ちつつ、領域を覆う */
  border-radius: 0;
  filter: brightness(0.85);
  padding: 0;
  margin: 0;
}


.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #2e4f66;
  text-align: center;
  width: 80%;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}



.hero-content p {
  font-size: 2.1rem;
  font-weight: 1000;
  margin: 0;
  letter-spacing: 0.09em;
}







.ceo-flex {
  padding-top: 70px;
  display: flex;
  align-items: flex-start;
  max-width: 1500px; /* 幅を制限し中央寄せする場合は親要素に */
}

.ceo-image {
  padding-left: 150px; /* 左側に余白を足す */
}


#ceo p {
  font-size: 18px;
  line-height: 3.0;
  color: #333; /* 少し濃いめの落ち着いた色に */
  background: #f9faf9; /* ごく薄いグリーン風背景で清潔感 */
  padding: 24px 28px;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(40, 114, 113, 0.08);
  flex: 1 1 auto; /* 余白調整によりテキストと画像のバランス良く */
}

.ceo-flex .ceo-image {
  padding-top: 100px;
  flex-shrink: 0;
  max-width: 420px;
}



.ceo-flex .ceo-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ceo-flex .ceo-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

/* テキスト内で代表名や会社名に強調をつける例 */
#ceo p strong,
#ceo p br {
  font-weight: 700;
  font-size: 20px;
  color: #287271; /* ブランドの青緑系カラー */
}



main {
  padding-top: 68px;
  max-width: 1600px;
  margin: 0 auto;
}










section {
  margin: 100px 0;
  background: var(--section-bg);
  border-radius: 12px;
  padding: 48px 0px 36px 0px;
  box-shadow: 0 2px 8px rgba(52, 87, 87, 0.03);
}

section h2 {
  color: var(--accent);
  margin-top: 70px;
  margin-bottom: 20px;
  margin-left: 20px;
  font-size: 1.6em;
  border-left: 6px solid var(--accent);
  padding-left: 12px;
  line-height: 1.2;
}





.services-flex {
  padding-top: 100px;
  margin-left: 20px;
  display: flex;
  align-items: flex-start; /* 上をそろえる */
  gap: 32px; /* 間隔を出す（値はお好みで） */
}


.services-flex ul {
  list-style: none;  /* 「・」を消す */
  margin: 0;         /* 上下余白リセット（お好みで） */
  padding: 0;        /* 左側の余白リセット（これをしないと位置ズレする） */
}


#services ul {
  padding-left: 10px;
  padding-top: 30px;
  font-size: 17px;
  line-height: 1.8;           /* 通常読みやすい行間に調整 */
  margin: 0;
}

#services li {
  position: relative;
  padding: 14px 16px 14px 42px; /* ✔余白 + 全体的にゆとり */
  margin-bottom: 10px;
  background: #f8fbfb;         /* ほんのり背景色 */
  border-radius: 6px;          /* 柔らかい角丸 */
  box-shadow: 0 2px 6px rgba(66,114,113,0.06); /* 控えめな影 */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#services li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66,114,113,0.12);
}

#services li::before {
  content: "✔";
  position: absolute;
  left: 14px;                  /* 背景内にアイコン */
  top: 50%;
  transform: translateY(-50%);
  color: #287271;              /* ブランドカラー */
  font-weight: bold;
  font-size: 16px;
}

/* タイトルと説明を分けた時のオプション（任意） */
#services li strong {
  display: block;
  font-size: 18px;
  color: #287271;
  margin-bottom: 4px;
}
#services li span {
  color: #555;
  font-size: 15px;
}




.price-table {
  margin-top: 100px;
  width: 45%;
  border-collapse: collapse;
  margin-right: 100px;
  margin-left: 100px;
  font-size: 16px;           /* 少し大きめで見やすく */
  background: #fff;          /* 余計な色が混じらないよう */
  box-shadow: 0 2px 18px rgba(66, 114, 113, 0.06); /* わずかに浮き上がり感 */
  border-radius: 8px;        /* さりげない角丸 */
  overflow: hidden;          /* 角丸をしっかり効かせる */
}

.price-table td {
  padding: 5px 5px;
  font-size: 16px;
  background: #fff;
  vertical-align: middle;
  border-bottom: 1px solid #e3f1ee;
  line-height: 1.75;
}

.price-table td:last-child {
  font-weight: bold;
  color: #287271;
  font-size: 17px;
  letter-spacing: 0.03em;
  text-align: right;
}
.price-table th:nth-child(2),
.price-table td:nth-child(2) {
  text-align: right;          /* 金額は右揃えで揃う */
  letter-spacing: 0.02em;
}

.price-table th {
  background: linear-gradient(90deg,#e6faf6 40%,#d3edec 100%);
  color: #287271;
  font-size: 17px;
  font-weight: bold;
  border-bottom: 2px solid #98cfc7;
}

.price-table tr:nth-child(even) td {
  background: #f4f7f6; /* 薄いストライプ色 */
}

.price-table tr:hover td {
  background: #e6faf6; /* ホバー時は淡く反転 */
  transition: background 0.2s;
}


#price p {
  font-size: 17px;
  margin-left: 100px;
  color: #dc143c;
}


.price-flex {
  display: flex;
}

.price-image {
  margin-top: 150px;       /* 位置は現状維持 */
  display: flex;
  justify-content: center; /* 横方向センタリング */
  align-items: center;     /* 縦も中揃え（高さ可変時用） */
}

.price-image img {
  display: block;
  max-width: 600px;        /* 大きすぎない適正サイズ */
  height: auto;
  border-radius: 8px;      /* 少しだけ角丸 */
  border: 1px solid #eee;  /* ごく薄い枠で写真を締める */
  box-shadow: 0 4px 14px rgba(0,0,0,0.08); /* 控えめな影 */
}




/* フォーム全体を中央に寄せる */
#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 0;
}

#contact h2 {
  color: #287271;
  margin-bottom: 150px;
}

#contact form {
  width: 100%;
  max-width: 800px;
  background: #f8fbfb;
  padding: 30px 24px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(40, 114, 113, 0.08);
  margin: 0 auto;
}

#contact label {
  display: block;
  font-weight: bold;
  color: #234e52;
}

#contact input,
#contact textarea {
  width: 100%;
  padding: 10px 50px;
  font-size: 1em;
  border: 1px solid #c4ddde;
  border-radius: 6px;
  box-sizing: border-box;
  margin-bottom: 1px;
  font-family: inherit;
}

#contact textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  background: #287271;
  color: #fff;
  padding: 10px 32px;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
  display: block;
  margin: 0 auto;
}

.btn-submit:hover {
  background: #166462;
}

#contact p {
  color: #dc143c;
}




footer {
  background: var(--header-bg);
  color: #fff;
  padding: 20px 0;
  font-size: 14px;
  text-align: center;
  margin-top: 40px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}


/* タブレット（〜1024px）対応 */
@media (max-width: 1024px) {

  body {
    font-size: 15px;
  }
  .navbar .logo {
    font-size: 17px;
    margin-left: -60px;
  }
  nav ul {
    gap: 18px;
  }
  .cta {
    font-size: 15px;
    padding: 5px 16px;
  }
  .social-icons a img {
    width: 24px;
    height: 24px;
  }
  .hero-content p {
    font-size: 1.3rem;
  }
  .hero img {
    height: 40vw;
    min-height: 160px;
    max-height: 320px;
  }
  section h2 {
    font-size: 1.2em;
  }
  main {
    padding-top: 56px;
  }
  .ceo-flex {
    max-width: 94vw;
    gap: 24px;
  }
  #ceo p {
    font-size: 16px;
    padding: 16px 12px;
    border-radius: 9px;
    line-height: 2.1;
  }
  .ceo-image {
    padding-left: 36px;
    padding-top: 38px;
  }
  .ceo-flex .ceo-image img {
    max-width: 320px;
    border-radius: 9px;
  }
  .price-table {
    font-size: 14px;
    margin-left: 30px;
    margin-right: 30px;
  }
  .price-image img {
    max-width: 340px;
  }
  #price p {
    font-size: 15px;
    margin-left: 18px;
  }
  #services ul {
    font-size: 15px;
    padding-left: 30px;
    padding-top: 10px;
  }
  #services li {
    font-size: 15px;
    padding: 10px 8px 10px 36px;
    border-radius: 5px;
  }
  #services li strong { font-size: 15px; }
  #services li span { font-size: 13px; }
  .services-flex {
    gap: 18px;
    padding-top: 40px;
  }
  .footer-inner {
    font-size: 13px;
    gap: 6px;
  }
}

/* スマートフォン（〜700px）対応 */
@media (max-width: 700px) {
  body {
    font-size: 14px;
  }

  header {
    height: 80px;
  }
  .navbar {
    padding: 0px 4vw 0vw 0;
    flex-wrap: wrap;
  }
  .navbar .logo {
    font-size: 30px;
    letter-spacing: 0.5px;
    margin-left: 0;
    margin-bottom: 12px;
  }


.logo img {
  max-width: 20vw; /* 既存のまま or 好みに応じて調整 */
  height: auto;   /* 高さ自動調整 */
  margin-right: 25px;
}


.logo-text {
  font-size: 0.6em;
  padding-top: 5px;
}


  nav ul {
    position: relative;
    gap: 5px;
    margin-left: -90px; /* ← 好きな値（例:-10px〜-20px辺り）で微調整 */]
  }
  nav a {
    font-size: 13px;
    padding: 6px 10px;
  }
  .cta {
    font-size: 13px;
    padding: 4px 9px;
    border-radius: 15px;
    margin-left: 5px;
  }
  .social-icons a img {
    width: 22px;
    height: 22px;
  }
  .hero img {
    height: 155vw;
    min-height: 200px;
    max-height: 880px;
  }
  .hero {
    top: 100px;
  }



.social-icons a[href*="line.me"] img {
  width: 26px;  /* お好みで大きさ調整 */
  height: 26px;
}

  .social-icons {
    position: relative;
    top: -69px; /* マイナスにすると「上」に移動 */
    left: 300px;
  }





  .hero-content p {
    font-size: 2rem;
  }
  section {
    margin: 42px 0;
    padding: 24px 0 18px 0;
    border-radius: 7px;
  }
  section h2 {
    font-size: 2em;
    margin-top: 100px;
  }
  main {
    padding-top: 40px;
    max-width: 99vw;
  }

  .cta {
    position: absolute;
    left: 70vw;  /* 右からの距離調整 */
    top: 15vw;
  }




  .ceo-flex {
    flex-direction: column;
    align-items: stretch;
    max-width: 100vw;
    gap: 16px;
    padding-top: 26px;
  }
  #ceo p {
    font-size: 10.1px;
    padding: 0px 6vw;
    border-radius: 6px;
    line-height: 1.7;
    margin-bottom: 0;
  }

  #ceo p strong {
    font-size: 17px;
  }
  .ceo-image {
    padding: 0;
    max-width: 97vw;
    text-align: center;
  }

  .ceo-flex {
    gap: 0; /* 隙間をなくす */
  }



  .ceo-flex .ceo-image img {
    max-width: 90vw;
    min-width: 0;
    border-radius: 6px;
  }
  .price-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .price-table {
    width: 99vw;
    margin: 6vw 0 0 0;
    font-size: 11px;
    border-radius: 6px;
  }

  .price-table td {
    font-size: 10px;  /* 好きなサイズに変更 */
  }

  .price-image {
    margin-top: 22px;
    justify-content: flex-start;
  }
  .price-image img {
    max-width: 98vw;
    border-radius: 6px;
  }
  #price p {
    padding-top: 18px;
    font-size: 10.5px;
    margin-left: 1vw;
    margin-right: 1vw;
  }
  .services-flex video {
    margin-left: -15px; /* 左に20px寄せる */
  }
  #services ul {
    font-size: 15px;
    padding-top: 8px;
    margin-left: -40px; /* 左に20px寄せる */
  }
  #services li {
    font-size: 9px;
    border-radius: 5px;
    padding: 8px 4vw 8px 28px;
    margin-bottom: 7px;
    position: relative;
    top: -220px; /* ← これで下に20px移動 */
  }
  #services li strong { font-size: 13px; }
  #services li span { font-size: 12px; }
  .services-flex {
    gap: 10px;
    padding-top: 24px;
    flex-direction: column;
    align-items: stretch;
  }
  video {
    width: 96vw !important;
    max-width: 96vw !important;
    border-radius: 6px !important;
    position: relative;
    top: 240px; /* ← これで下に20px移動 */
  }
  footer {
    font-size: 12px;
    padding: 6px 0;
  }
  .footer-inner {
    gap: 2px;
    padding: 0 2vw;
  }
}




/* タブレット用（〜1024px） */
@media (max-width: 1024px) {
  #contact h2 {
    font-size: 1.4em;       /* タイトル少し小さく */
    margin-bottom: 80px;    /* 余白も少し縮める */
  }
  #contact p {
    font-size: 18px;        /* 注意文 少し小さく */
  }
  #contact input,
  #contact textarea {
    font-size: 0.95em;
    padding: 8px 30px;      /* 横の余白少し減らす */
  }
  .btn-submit {
    font-size: 0.95em;
    padding: 8px 26px;
  }
}

/* スマートフォン用（〜600px） */
@media (max-width: 600px) {
  #contact {
    margin-top: 150px;
  }
  #contact h2 {
    font-size: 1.2em;
    margin-bottom: 50px;
    margin-left: -40px;
  }
  #contact p {
    font-size: 12px;
  }
  #contact form {
    padding: 20px 15px;     /* 内側余白を縮小 */
  }

  #contact form {
    max-width: 90%;
  }
  #contact label {
    font-size: 0.9em;
  }
  #contact input,
  #contact textarea {
    font-size: 0.9em;
    padding: 8px 16px;      /* モバイルに合わせた小さめ余白 */
  }
  .btn-submit {
    font-size: 0.9em;
    padding: 8px 20px;
    width: 250px;
  }
}
