/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Global Styles */
  body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #fff;
    color: #333;
  }
  
  .header {
    background-color: #38b6ff; 
    padding: 10px 0; /* ヘッダーの上下の余白 */
  }
  
  .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* 要素を左右に配置 */
    align-items: center; /* 垂直方向に中央揃え */
    max-width: 1200px;  
    margin: 0 auto;  
    padding: 0 20px; /* コンテナ内の余白 */
  }

  .container2 {
    display: flex;
    /* flex-direction: column; */
    flex-wrap: wrap;
    justify-content:space-around; /* 要素を左右に配置 */
    align-items: center; /* 垂直方向に中央揃え */
    max-width: 1200px;  
    margin: 0 auto;  
    padding: 0 20px; /* コンテナ内の余白 */
    margin-top: 0;
  }
  
  .logo {
    height: 70px; /* ロゴ全体の高さ */
  }
  
  .logo img {
    height: 100%; /* ロゴ画像の高さを親要素に対して100%に設定 */
    width: auto; /* 幅は自動調整 */
  }
  
  .nav ul {
    list-style-type: none; /* リストのマーカーを削除 */
    margin: 0; /* リストの外側の余白を削除 */
    padding: 0; /* リストの内側の余白を削除 */
    display: flex; /* リスト項目を横並びに配置 */
    /* font-size: large; */
  }
  
  .nav ul li {
    margin-right: 50px; /* リスト項目の間の余白 */
  }
  
  .nav ul li:last-child {
    margin-right: 0; /* 最後のリスト項目の余白を削除 */
  }
  
  .nav ul li a {
    text-decoration: none; /* リンクの下線を削除 */
    color: #fff; /* リンクのテキスト色 */
    font-size: 20px; /* リンクのテキストサイズ */
  }
  
  
  /* Hero Section */
  .hero {
    background-image: url('hero-background.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 100px 0;
  }
  
  .hero .container-left {
    width: 600px;
    font-size: 1.9rem;
    margin-bottom: 20px;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
  }

  .hero .container-right {
    /* margin-top: 50px; */
    width: 530px;
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  .container-left img {
    margin-top: 0;
    max-width: 100%; /* 親要素に合わせて最大幅まで拡大 */
    height: auto; /* 高さは自動調整 */
  }
  .container-left2 img {
    max-width: 100%; /* 親要素に合わせて最大幅まで拡大 */
    height: auto; /* 高さは自動調整 */
  }

  .container-left h3{
    font-size: 20px;
    margin-left: auto;
    text-align: left;
  }

  /* .hero2 .container-right {
    width: 500px;
    font-size: 1.5rem;
    margin-bottom: 30px;
  } */

  .hero2{
    margin-top: 100px;
  }

  .hero2 .container-left {
    color: #000;
    width: 50%;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
  }
/* 
  .hero2 .container-left {
    width: 600px;
    font-size: 2rem;
    margin-bottom: 20px;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
  } */

  .hero2 .container-left h1{
    color: #1997ff;
  }

  .hero2 .container-right {
    width: 50%;
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  .hero2 .container {
    margin-top: 100px;
  }

  .container-left2{
    margin-top: 0;
    width: 300px;
  }

  .container-right{
    width: 80%;
  }

  h5{
    color: #ababab;
    font-size: 1rem;
    font-weight: 500;
  }
  
 .btn-primary {
    background-color: #ffffff;
    color: #1997ff !important;
    padding: 10px 20px;
    /* text-decoration: none; */
    border-radius: 20px;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
  }

  .btn-primary2{
    background-color: #ffffff;
    color: #324b9a !important;
    padding: 10px 20px;
    text-align: center;
    /* text-decoration: none; */
    border-radius: 25px;
    font-size: 1.2rem;
    width: 300px;
    transition: background-color 0.3s ease;
    display: inline-block; /* ボタンをインラインブロック要素にする */
    vertical-align: middle; /* 垂直方向に中央揃え */
  }

  
  .btn-primary:hover {
    background-color: #f5f5f5;
    color: #fff;
  }

  .btn-primary2:hover {
    cursor: pointer;
    background-color: #f5f5f5;
    color: #fff;
  }
  
  /* About Section */
  .about {
    background-color: #324b9a;
    margin-top: 100px;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .about .section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
  }
  
  .about p {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 20px;
  }
  
  /* Services Section */
  .services {
    background-color: #38b6ff;
    padding: 80px 0;
    margin-top: 100px;
  }
  
  .services .section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
  }
  
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }
  
  .services .service {
    background-color: #f0f0f0;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
  }
  
  .services .service h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  
  .services .service p {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .function{
    width: 65%;
    margin-bottom: 20px;
  }

  .functionimg{
    width: 150px;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 50px;

  }

  .functionimgcontent{
    display: flex;
    align-items: center;

  }

  .ajust{
    height: 270px;
  }
  
  /* Portfolio Section */
  .portfolio {
    padding: 0;
    background-color: #ffde59;
  }
  
  .portfolio .section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
  }
  
  .portfolio-gallery {
    /* margin: auto 0; */
    padding-top: 30px;
    width: 550px;
    /* display: grid; */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
  
  .portfolio-item {
    /* position: relative; */
    width: 100%;
    margin-bottom: 20px;
  }
  
  .portfolio-item img {
    width: 100%;
    /* height: auto; */
    border-radius: 10px;
    transition: transform 0.2s ease;
  }
  
  .portfolio-item:hover img {
    transform: scale(1.1);
  }
  
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
  }
  
  .overlay:hover {
    opacity: 1;
  }
  
  .overlay h3 {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  .overlay p {
    font-size: 1.2rem;
    text-align: center;
  }
  
  /* Testimonials Section */
  .testimonials {
    background-color: #f0f0f0;
    padding: 80px 0;
  }
  
  .testimonials .section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
  }
  
  .testimonial-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
  }
  
  .testimonial {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .testimonial blockquote {
    font-size: 1.4rem;
  }
  
  .testimonial cite {
    font-style: normal;
    font-size: 1.2rem;
  }
  
  /* Contact Section */
  .contact {
    padding: 80px 0;
  }
  
  .contact .section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
  }
  
  .contact-form {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .contact-form .form-group {
    margin-bottom: 20px;
  }
  
  .contact-form label {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
  }
  
  .contact-form textarea {
    resize: vertical;
  }
  
  .contact-form button {
    background-color: #ffc107;
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
  }
  
  .contact-form button:hover {
    background-color: #333;
    color: #fff;
  }
  
  /* Footer Styles */
  .footer {
    margin-top: 100px;
    background-color: #ededed;
    color: #000;
    padding-bottom: 10px;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
  }
  
  .footer .footer-logo img {
    height: 40px;
    width: auto;
  }

  .footer .footer-nav {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 20px;
  }
  
  .footer .footer-nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 20px;
  }
  
  .footer .footer-nav ul li {
    margin: 0 10px;
  }
  
  .footer .footer-nav ul li a {
    color: #000;
    text-decoration: none;
    font-size: 1rem;
  }
  
  .footer .social-links {
    margin-top: 20px;
  }
  
  .footer .social-links a {
    margin: 0 10px;
  }
  
  .footer .social-links img {
    width: 30px;
    height: auto;
  }
  
  .footer .footer-copy {
    font-size: 0.9rem;
    margin-top: 20px;
  }

  .element {
    background-image: url('../img/backgroundimg1.png');
    background-size: cover; /* 画像を要素全体に広げる */
    background-position: center bottom; /* 画像を中央横に、下部に配置する */
    background-repeat: no-repeat; /* 画像を繰り返さない */
    width: 100%;
    height: 750px;
  }

  .app-container {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    height: 5vh; /* 画面全体の高さにする */
    margin: 5px;
    padding: 0;
    position: relative;
    margin-right: 20px;
}

.app-badge {
    width: 120px; /* サイズ調整 */
    height: 40px; /* サイズ調整 */
}

.app-badge img {
    width: 100%;
    height: 100%;
    border-radius: 8px; /* 角を丸くする */
}