*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body{
    font-family: "Poppins"Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

a{
    text-decoration: none;
    list-style: none;
}


.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 8px;
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
    color: #666;
    font-family: 'M PLUS 2', sans-serif;
}

.lang-btn:hover:not(.active) {
    background: #f0f0f0;
}

.lang-btn.active {
    background: linear-gradient(to top, #2F6DD1, #00a8ff);
    color: white;
    box-shadow: 0 4px 12px rgba(47, 109, 209, 0.3);
}

section{
    padding: 40px 0;
    margin-bottom: 40px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

header{
    display: flex;
    justify-content: start;
    padding: 40px;
}

.top {
    height: auto;
    text-align: center;
}
.service-item-wrap {
    display: grid;
    /* 最小幅を 300px に引き上げます。これで「細すぎる」のを防ぎます */
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px; /* アイテム同士の間隔を広げてゆとりを持たせる */
    padding: 20px;
    max-width: 1200px; /* 全体が広がりすぎないよう制限 */
    margin: 0 auto;    /* 全体を中央寄せ */
}

.service-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* 少し影をつけると形がはっきりします */
    padding: 16px;
}

/* 画像をしっかり正方形に見せる */
.service-item .img {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.service-item .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* テキストが縦に伸びるのを防ぐ */
.service-item-text {
    text-align: center;
}

.service-item h2 {
    font-size: 1.2rem;
    margin: 16px 0;
    color: #2F6DD1;
}

.service-item p {
    font-size: 1rem;
    color: #606060;
    line-height: 1.5;
}

/* スマホでも「細く」ならないための調整 */
@media (max-width: 400px) {
    .service-item-wrap {
        /* スマホでは横幅いっぱいに使うことで細長さを解消 */
        grid-template-columns: 1fr; 
        padding: 10px;
    }
}
.service-btn {
    margin-top: auto; /* 説明文が短くても、ボタンを一番下に固定する */
    padding-top: 10px;
}

.service-btn a {
    display: block;           /* 幅いっぱいのボタンにする */
    background-color: #2F6DD1;   /* ボタンの色（黒・グレー系） */
    color: #fff;              /* 文字の色（白） */
    text-decoration: none;    /* 下線を消す */
    padding: 12px 20px;       /* ボタンの上下左右の余白 */
    border-radius: 8px;       /* 角を少し丸くする */
    font-weight: bold;        /* 文字を太く */
    font-size: 14px;
    text-align: center;       /* 文字を中央に */
    transition: all 0.3s;     /* 変化をなめらかにする */
    border: 2px solid #2F6DD1;   /* 枠線 */
}

/* マウスを乗せた時の動き（ホバー） */
.service-btn a:hover {
    background-color: #fff;   /* 背景を白にする */
    color: #2F6DD1;              /* 文字を黒にする */
}

.header-logo {
    width: 20%;
    height: auto;
}

.header-logo img {
    width: 100%;
    height: auto;
}

.hero {
    width: 90%;
    margin: 0 auto 100px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    width: 50%;
}

.hero-text h2 {
    font-size: 1.5rem;
    margin: 20px 0;
    color: #606060;
}

.hero-text p {
    line-height: 1.6;
}

.hero-img {
    width: 45%;
}

.hero-img img {
    width: 100%;
    height: auto;
}

.btn-wrap {
    margin-top: 60px;
}

.btn-wrap a {
    background: linear-gradient(to top, #2F6DD1, #00a8ff);
    color: #fff;
    border-radius: 8px;
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    transition: all 0.5s ease;
    box-shadow: 0 8px 16px rgba(47, 109, 209, 0.3);
}

.btn-wrap a:hover {
    transform: translateY(3px);
    box-shadow: none;
}

h1 {
    font-size: 2.5rem;
    color: #2F6DD1;
    margin-bottom: 10px;
}

.content-title {
    text-align: center;
    font-size: 1.5rem;
    color: #2F6DD1;
    margin-bottom: 24px;
}

/* =========================
   News Section
========================= */
.announcement {
  max-width: 1100px;
  margin: 40px auto 0;

}

.announcement h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4f6cff;
  margin-bottom: 16px;
  text-align: center;
}

/* 中身 */
.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: linear-gradient(135deg, #f7f9ff, #eef2ff);
  padding: 24px 28px;
  margin-top: 24px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ロゴ */
.announcement-logo{
    width: 30%;
}

.announcement-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.announcement-text {
  flex: 1;
}

/* テキスト */
.announcement-text p {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

.announcement-text strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* CTA */
.announcement-link {
  display: inline-block;
  margin-top: 8px;
  color: #4f6cff;
  font-weight: 600;
  /* text-decoration: underline; */
}

.announcement-link:hover {
  opacity: 0.8;
}

/* =========================
   SP
========================= */
@media (max-width: 768px) {
  .announcement {
    padding: 20px 18px;
    margin-top: 24px;
  }

  .announcement-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }


  .announcement-logo {
    width: 50%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .announcement-logo img {
    width: 100%;
  }

  .announcement-link {
text-align: center;
  /* text-decoration: underline; */
}

  .announcement-text p {
    font-size: 14px;
    text-align: center;
  }

  .announcement-text strong {
    font-size: 15px;
  }
}

/* overview */
.overview-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.overview-text {
    width: 50%;
}

.overview-img {
    width: 40%;
}

.overview-img img {
    width: 100%;
    height: auto;
    display: block;
}

.overview-wrap{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.overview-item {
    width: 30%;
    border-radius: 16px;
    background: #effbff;
    padding: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.overview-icon{
    text-align: center;
    margin-bottom: 24px;
}

.icon-gradient {
        background: linear-gradient(to top, #2F6DD1, #00a8ff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-size: 48px;
}

/* footer */
footer {
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
}

.footer-left p {
    font-size: 0.8rem;
    color: #606060;
}

.footer-links ul {
    list-style: none;
}

.footer-links a{
    margin-bottom: 8px;
    text-decoration: none;
    font-size: .8rem;
    color: #606060;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copy {
    width: 100%;
    background: #000;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .header-logo {
    width: 30%;
    }


    .container {
        width: 90%;
        margin: 0 auto;
    }

    .top-item {
        width: 80%;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        margin-bottom: 30px;
    }

    .hero-text {
        width: 100%;
    }

    h1 {
    font-size: 2rem;
    }

    .btn-wrap {
    margin-top: 40px;
    }


    .hero-img {
    margin-top: 40px;
    width: 90%;
    }

    .content-title {
        font-size: 1.3rem;
    }

    .overview-wrap {
        flex-direction: column;
        align-items: center;
    }

    .overview-top {
        display: block;
    }

    .overview-item {
        width: 90%;
        text-align: center;
    }

    .overview-text {
    width: 90%;
    margin: 0 auto 40px auto;
    text-align: center;
    }

    .overview-img {
        width: 90%;
        margin: 0 auto 40px auto;
    }

    .service-items {
        flex-direction: column;
        align-items: center;
    }

    .service-item {
        width: 100%;
    }

    .footer-logo {
        width: 60%;
        margin: 0 auto 20px auto;
    }

    .footer-logo img {
        width: 100%;
        height: auto;
    }

    .footer-left p {
    font-size: 0.6rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}