/* カスタムプロパティ */
:root {
  --color-feature-bg: #fafdff; /* F4FAFF */
  --color-feature-title: #3b6ea5; /* 3B6EA5 */
  --color-header-bg: #85a3d3; /* ヘッダー背景 */
  --color-contact-btn: #6c8ebf; /* CONTACTボタン背景 */
  --privacy-font-size: 0.55rem;
}

/* 基本リセット */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* フォントは基本「Noto Sans JP」に、主要な見出し部分は「Open Sans」にする */
body,
h1,
h2,
h3,
p,
ul,
li,
a,
button {
  font-family: "Noto Sans JP", sans-serif;
  color: #222222;
}

/* Open Sansを使いたい部分用のクラス */
.open-sans {
  font-family: "Open Sans", sans-serif;
}

body {
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}

/* コンテナ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
header {
  background: var(--color-header-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
}
.header-logo img {
  width: 200px;
  height: 55px;
  object-fit: contain;
}
nav ul {
  display: flex;
  list-style: none;
}
nav ul li {
  margin: 0 15px;
}
nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: color 0.3s ease;
}
nav ul li a:hover {
  color: #e0f0ff;
}

/* セクション共通 */
section {
  scroll-margin-top: 120px;
  padding: 60px 0;
}

/* ヒーローセクション */
#hero {
  height: 800px;
  display: flex;
  align-items: center;
  background: url("img/hero.webp") center/cover no-repeat;
  color: #000;
  position: relative;
}
.hero-content {
  max-width: 1200px;
  width: 100%;
  margin: auto;
  padding: 0 20px;
}
.hero-content h1 {
  width: 100%;
  font-size: 4.5rem;
  margin-bottom: 20px;
  text-align: left;
}
.hero-content p {
  width: 100%;
  font-size: 1.25rem;
  margin-bottom: 30px;
  text-align: right;
  font-weight: 600;
}

/* Feature セクション */
#features {
  text-align: left;
}
.features-grid {
  display: flex;
  flex-direction: column;
  gap: 120px;
  max-width: 1200px;
  margin: auto;
}
.feature {
  background: var(--color-feature-bg);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s ease-in-out;
}

/* -- Feature 1：IPを創出する -- */
.feature-top .feature-header {
  margin-bottom: 20px;
}
.feature-header h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: left;
  color: var(--color-feature-title);
}
.feature-header p {
  font-size: 1.125rem;
  margin-bottom: 20px;
  text-align: left;
}
.feature-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.feature-images figure {
  margin: 0;
}
.feature-images img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}
.copyright {
  font-size: 0.75rem;
  text-align: right;
  margin-top: 5px;
}
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.feature-split p {
  font-size: 1.125rem;
  margin: 0;
  text-align: left;
}
.feature-final {
  font-size: 1.125rem;
  text-align: left;
  margin-bottom: 20px;
}
#feature-first {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 28px;
  color: var(--color-feature-title);
}

/* -- Feature 2 & 4：画像左、テキスト右 -- */
.feature-left {
  display: flex;
  align-items: center; /* 上下中央揃え */
  margin: 0;
}
.feature-left .feature-image {
  flex: 0 0 450px;
  width: 450px;
  height: 600px;
  overflow: hidden;
}
.feature-left .feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.feature-left .feature-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* 上下中央揃え */
}
.feature-left .feature-content h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-align: left;
  color: var(--color-feature-title);
}
.feature-left .feature-content p {
  font-size: 1.125rem;
  margin-bottom: 10px;
  text-align: left;
}

/* -- Feature 3：テキスト左、画像右 -- */
.feature-right {
  display: flex;
  align-items: center; /* 上下中央揃え */
  margin: 0;
}
.feature-right .feature-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* 上下中央揃え */
}
.feature-right .feature-content h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-align: left;
  color: var(--color-feature-title);
}
.feature-right .feature-content p {
  font-size: 1.125rem;
  margin-bottom: 10px;
  text-align: left;
}
.feature-right .feature-image {
  flex: 0 0 450px;
  width: 450px;
  height: 600px;
  overflow: hidden;
}
.feature-right .feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* ご挨拶セクション（カードデザイン） */
.greeting-grid {
  display: flex;
  align-items: center; /* 上下中央揃え */
  gap: 20px;
  background: var(--color-feature-bg);
  padding: 40px 20px;
  border-radius: 20px;
  max-width: 1200px;
  margin: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 120px;
}
.greeting-content {
  flex: 1;
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center; /* 上下中央揃え */
}
.greeting-content h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--color-feature-title);
}
.greeting-content p {
  font-size: 1.125rem;
  margin-bottom: 10px;
  text-align: left;
}
.greeting-content .ceo-signature {
  font-size: 1.125rem;
  font-weight: bold;
  margin-top: 10px;
  text-align: right;
}
.greeting-image {
  flex: 0 0 450px;
  overflow: hidden;
}
.greeting-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

/* 会社情報セクション：背景色はヘッダー色、全幅、上下余白拡大 */
#company-info {
  background: var(--color-header-bg);
  width: 100%;
  padding: 100px 20px;
  text-align: center;
}
.company-info-container {
  max-width: 1200px;
  margin: auto;
}
#company-info h2 {
  font-size: 3rem;
  margin-bottom: 30px;
  color: #fff;
}
.company-details {
  display: inline-block;
  text-align: center;
}
.company-details p {
  font-size: 1.25rem;
  margin-bottom: 12px;
  text-align: left;
  color: #fff;
}

/* お問い合わせセクション：背景画像、全幅 */
#contact {
  background: url("img/contact.webp") center/cover no-repeat;
  width: 100%;
  padding: 40px 20px 100px;
  text-align: center;
}
#contact .container {
  max-width: 1200px;
  margin: auto;
}
#contact h2 {
  font-size: 3rem;
  margin-bottom: 30px;
  color: black;
}
#contact p {
  font-size: 0.75rem;
  margin-bottom: 15px;
  color: black;
}
#contact #contactinfo {
  font-size: 1.125rem;
}
#contact .btn {
  display: inline-block;
  background: var(--color-contact-btn);
  color: #fff;
  padding: 20px 45px;
  font-size: 1.25rem;
  border-radius: 15px;
  text-decoration: none;
  transition: background 0.3s ease;
  margin: 2rem 0 3rem;
}
#contact .btn:hover {
  background: #a5c9ea;
}
/* プライバシーポリシー */
.privacy-policy {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.privacy-policy h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  text-align: center;
  color: black;
}
.privacy-policy p {
  font-size: 0.55rem;
  margin-bottom: 10px;
  text-align: left;
  color: #fff;
}

/* すべての画像を選択不可に */
img {
  user-select: none;
  -webkit-user-select: none;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .feature-left,
  .feature-right,
  .greeting-grid {
    flex-direction: column;
    text-align: center;
  }
  .feature-left .feature-image,
  .feature-right .feature-image,
  .greeting-image {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
  }
  .feature-left .feature-content,
  .feature-right .feature-content {
    padding: 20px;
  }
}

/* フェードインアニメーション */
.fade-in {
  transform: translateY(0);
  opacity: 1;
}

@media screen and (max-width: 768px) {
  /* 1. 画像の角を全て丸くする */
  .feature-left .feature-image img,
  .feature-right .feature-image img,
  .greeting-image img {
    border-radius: 20px;
  }

  /* 2. ヒーローセクションの高さとテキストサイズの調整 */
  #hero {
    height: 500px;
  }

  .hero-content h1 {
    font-size: 3rem;
    text-align: center;
  }

  .hero-content p {
    font-size: 1rem;
    text-align: center;
  }

  /* 3. ヘッダーや各セクションのフォントサイズの調整 */
  .header-logo img {
    width: 150px;
    height: auto;
  }

  #company-info h2 {
    font-size: 2rem;
  }

  .company-details p {
    font-size: 1rem;
  }

  #contact h2 {
    font-size: 2rem;
  }

  #contact p {
    font-size: 0.9rem;
  }
}
@media screen and (max-width: 768px) {
  header {
    display: none;
  }
}