* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Serif JP', 'Noto Sans JP', serif;
}
body {
  margin: 0;
  font-family: 'Noto Serif JP', 'Noto Sans JP', serif;
  color: #222;
  overflow-x: hidden;
}

/* ヘッダー */
header {
    background: #232833;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    height: 50px;
    top: 0;
    left: 0;
    z-index: 1000;
}


#headleft {
    flex-grow: 2;
    margin-right: auto;
    margin-top: 0px;
    margin-left: 15px;
}

#headleft img{
  width: 40px;
  height: 40px;
}

#container {
    display: flex;
    margin-right: 25px;
}

nav ul {
    list-style: none;
    display: flex;
    /* justify-content: center; */
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    /* padding: 10px; */
}

nav ul li a:hover {
    color: #0d47a1;
}

.hero {
    height: 380px;
    max-width: 900px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    padding: 20px;
    margin-bottom: 0px;
}

/* タイトル */
.hero h2 {
  font-size: 36px;
  line-height: 1.4;
  margin-bottom: 20px;
  font-weight: bold;
  justify-content: center;       /* 縦中央 */
  align-items: center;           /* 横中央 */
  text-align: center;
}

/* サブテキスト */
.hero p {
  font-size: 16px;
  color: #333;
  margin-bottom: 30px;
  justify-content: center;       /* 縦中央 */
  align-items: center;           /* 横中央 */
  text-align: center;
}


#top {
  justify-content: center;       /* 縦中央 */
  align-items: center;           /* 横中央 */
  text-align: center;
  padding: 20px;
  
  max-width: 950px;
  margin: 0px auto;
  padding: 0 20px;
  line-height: 1.8;

  /* 背景（グラデーション） */
  background: #FFF;
}

.tt span{
  align-items: center;
  justify-content: center;
  font-size: 10px;
    opacity: 0.9;
    margin-top: 1px;

  font-size: 15px;
}

.tt {
  text-align: left;
  margin-top: 0px;
  padding-top: 0px;
  margin-bottom: 0px;
  padding-bottom: 0px;

}

.tt h1 {
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-top: 0px;
  padding-top: 0px;
  margin-bottom: 0px;
  padding-bottom: 0px;
}

.content {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  line-height: 1.8;
}

.content h3 {
  font-size: 24px;
  margin-bottom: 50px;
  border-left: 5px solid #000;
  padding-left: 10px;
}

.problem-cards1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card1 {
  color: #FFF;
  background: linear-gradient(145deg, #111, #333);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: none;
  color: #FFF;
  border-radius: 10px;
  justify-content: center; /* 中央に寄せる */
  align-items: center;
  padding: 5% 10%;
  border-top: 5px solid #0d47a1;
  transition: 0.5s;
}

.card1:hover {
  transform: translateY(-5px);
}

.card-img1 {
  width: 100%;
  height: 100px;              /* ← 高さは固定 */
  display: flex;              /* ← これがないと中央にならない */
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.card-img1 img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;        /* ← 中央に収まる */
  border-radius: 8px;
}

.card1 p {
  font-size: 14px;
  line-height: 1.6;
}

.biz-structure {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 20px;
  line-height: 1.8;

  background: #fff;        /* ← 白に変更 */
  color: #222;             /* ← 黒寄りに */
}

.biz-structure h3 {
  font-size: 24px;
  margin-bottom: 50px;

  border-left: 5px solid #000; /* ← 青に */
  padding-left: 10px;
}

.biz-structure p {
  text-align: center;
}

/* 横並び */
.structure-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
}

/* 横ライン */
.structure-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5%;
  width: 90%;
  height: 2px;
  background: #e5e7eb;   /* ← 薄グレーに */
  z-index: 0;
}

/* カード */
.card {
  position: relative;
  z-index: 1;
  width: 180px;
  height: 130px;
  padding: 25px 15px;
  border-radius: 12px;
  text-align: center;

  background: #fff;                 /* ← 白 */
  border: 2px solid #e5e7eb;       /* ← 枠で浮かせる */
  box-shadow: 0 9px 25px rgba(0,0,0,0.05);

  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* タイトル */
.card span {
  display: block;
  font-size: 14px;
  letter-spacing: 2px;
  color: #3f7bff;
  margin-bottom: 10px;
  font-weight: bold;
}

/* テキスト */
.card p {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

/* 下の説明 */
.desc {
  margin-top: 40px;
  font-size: 14px;
  color: #666;
}


#contact {
    max-width: 900px;
    margin: 0px auto;
    min-height: 60vh;
    background: #fff;
}

#contact h3{
  font-size: 24px;
  margin-bottom: 50px;
  border-left: 5px solid #000;
  padding-left: 10px;
}

/* フォーム */
.formtab {
    display: flex;
    gap: 7px;
    flex-direction: row;
}

.formtab > label {
    text-align: left;
    flex: 2;
}

.formtab > input {
    flex: 1;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 480px;
    margin: 0 auto;
    margin-top: 70px;
}

input, textarea {
    text-align: left;
    margin-bottom: 10px;
    padding: 5px;
    font-size: 16px;
}


button {
    background: #3a3a3b;
    color: #D9D9D9;
    border: #D9D9D9;
    padding: 10px;
    margin: 5px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #555;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100vw; 
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
}

  /* モーダル本体 */
.modal-content {
    background: #ddd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
    overflow-y: auto;
    max-height: 80vh;
}

.modal h2 {
    text-align: center;
    margin-bottom: 20px;
}

.close-btn {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    background: #111;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.policy-section {
    margin-bottom: 20px;
}

.policy-section h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.policy-section p {
    font-size: 14px;
    line-height: 1.6;
}
/* フッター */
footer {
    background: #111;
    color: #FFF;
    text-align: center;
    padding: 10px 0;
}

#openpolicy {
  background: #111;
  color: #FFF;
  padding: 10px 10px;
  margin: 10px 10px;
  border-radius: 12px;
}

#submit {
  background: #111;
  color: #FFF;
  padding: 10px 10px;
  margin: 10px 10px;
  border-radius: 12px;
}

@media screen and (max-width: 768px) {
    body, html {
        font-size: 12px;
    }
    
    header {
        font-size: 10px;
    }
    
    .hero{
      width: 100vw;
      height: 100%;
      margin: 0px auto;
    }

    .hero h2{
      font-size: 18px;
    }

    .hero p{
      font-size: 14px;
    }

    .tt h1{
      font-size: 14px;
    }

    .tt span {
      font-size: 10px;
    }

    .structure-container::before {
      top: 0%;
      left: 50%;
      width: 2px;
      height: 90%;
    }

    .structure-container {
      flex-direction: column;
      gap: 10px;
    }

    .card {
      width: 50%;
      height: 90px;
      padding: 10px 5px;
    }

    .card p{
      font-size: 12px;
    }

    .card span{
      padding-bottom: 0px;
      font-size: 10px;
    }

    .problem-cards1 {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 10px;
      margin-top: 20px;
    }
    .card1 {
      border-radius: 10px;
      justify-content: center; /* 中央に寄せる */
      align-items: center;
      padding: 5% 10%;
      border-top: 4px solid #0d47a1;
    }
    
    .card-img1 {
      width: 100%;
      height: 50px;       
      border-radius: 6px;
      margin-bottom: 15px;
    }

    .content p,li {
      font-size: 15px;
    }

    #home > h1 {
        color: #D9D9D9;
        margin: 0 5px;
        text-align: left;
        font-size: 20px;
    }    

    #headleft {
        margin-right: auto;
        margin-left: 10px;
    }

    nav ul li {
        margin: 0 5px;
    }
    
    nav ul li a {
        color: #D9D9D9;
        text-decoration: none;
        font-size: 10px;
        /* padding: 10px; */
    }
  
    #contact{
      height: 80vh;
    }

    form {
        display: flex;
        flex-direction: column;
        max-width: 340px;
        margin: 7px auto;
        margin-top: 30px;
    }
    
    input, textarea {
        text-align: left;
        margin-bottom: 2px;
        padding: 5px;
        font-size: 10px;
    }
}

@media (max-width: 768px) {

  header {
   background: none;
  }
  #container {
    position: fixed;
    top: -10px;
    right: -120vw;
    width: 50vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    transition: 0.4s;
    z-index: 100;
  }

  #headleft img {
    display: none;
  }

  #container.open {
    right: -30px;
  }

  #headright{
    margin-top: 100px;
    margin-right: 30px;
  }
  nav ul {
    display: flex;
    flex-direction: column; /* ← 縦並び */
    align-items: flex-start; /* ← 左寄せ */
  }

  nav ul li a {
    color: #111;
    text-decoration: none;
    font-size: 20px;
    /* padding: 10px; */
  }

  /* ハンバーガー */
  header::before {
    content: "";
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 20px;
    z-index: 99999;
    cursor: pointer;

    background:
      linear-gradient(#000, #333) 0 0 / 100% 1px no-repeat,
      linear-gradient(#000, #333) 0 50% / 100% 1px no-repeat,
      linear-gradient(#000, #333) 0 100% / 100% 1px no-repeat;
  }
}

