/* 基本的なリセットCSS */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5要素をブロック要素として表示 */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
    color:#fff;
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
    
}

ol, ul {
    list-style: none;
}

a{
    color: #d2ff60;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

body {
    -webkit-animation: fadeIn 1.5s ease 0s 1 normal;
    animation: fadeIn 1.5s ease 0s 1 normal;
  }

  @keyframes fadeIn {
    0% {
      opacity: 0
    }

    100% {
      opacity: 1
    }
  }

  @-webkit-keyframes fadeIn {
    0% {
      opacity: 0
    }

    100% {
      opacity: 1
    }
  }

  section{
    
    margin: 5rem 0;
    padding: 20px ;
}

.logo{
    font-size: 5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: auto;
    margin-bottom: 1rem;
    width:30%;
    max-width: 400px;
}

h2{
    font-weight: bold;
    font-size: 28px;
    margin-bottom: 3rem;
}
.comment{
    max-width: 800px;
    margin: auto;
    line-height: 2;
    font-size: 16px;
    letter-spacing: 1.2px;
    margin-bottom: 4rem;
 
}

.company span{
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 26px;
    margin-left: 14px;
    word-break: keep-all; /* 単語の途中で改行しない */
    white-space: normal; /* 必要に応じて折り返す */
}

.comment p{
    margin-bottom: 2rem;
    font-weight: 400;

}

/* 背景固定のスタイルを設定 */
#gk-bg {
    position: fixed; /* 背景を固定 */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-attachment: fixed; /* 背景画像も固定 */
    display: flex;
    align-items: center; /* 垂直方向の中央揃え */
    justify-content: center; /* 水平方向の中央揃え */  

  }

  #gk-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1); /* 透明度を調整して暗さを制御 */
    z-index: 1; /* 背景より後ろに配置 */
  }
  
  /* section要素のスタイリング */
  .wrap {
    width: 100%; /* 必要に応じて幅を調整 */
    max-height: 100vh; /* ビューポートの高さに合わせる */
    overflow-y: auto; /* 垂直方向のスクロールを有効にする */
    position: relative; /* z-indexを有効にするため */
    z-index: 1; 
    margin-top: 2rem; /* 上の余白 */
    margin-bottom: 2rem; /* 下の余白 */

  }

  .section{padding-top: 40rem;}

  .title{
    position: absolute;
    width: 240px;
    top: 8%;
    bottom: 0;
    left: 19%;
    right: 0;
    margin: auto;
  }

  .company{
    -webkit-backdrop-filter: blur(49px); /* Safari用のプレフィックスを追加 */
    backdrop-filter: blur(49px);
    max-width: 700px;
    padding: 1.8rem 3rem 1.8rem 3rem;
    margin: auto;
    border-radius: 2px;
    text-align: left;
    margin-bottom: 3px;
    position: relative;
    min-height: fit-content; /* 内容に応じた高さを確保 */
}

.company::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2); /* 透明度を調整して暗さを制御 */
    z-index: -1; /* 背景より後ろに配置 */
    border-radius: 2px;
}

.company ul{
    display: flex;
    justify-content: space-between;
}

h3{
    font-size: 24px;
    font-weight: bold;
    padding: 1.5rem 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color:#fff;
}

h4{

    color: #fff;
    font-weight: bold;
    font-size: 20px;
    line-height: 1.5; /* 行間を追加 */
    word-wrap: break-word; /* 長い単語も折り返す */
    overflow-wrap: break-word; /* 文字が溢れないように */

}

.list {
    border-bottom:solid 1px #fff;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.list h4{
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 1rem;
    margin-bottom: 0.7rem
}

.wrap{
    padding: 3rem;
}
.sp{
    display: none;
}

.company li{
    display: flex;
    align-items: center; /* 上下中央に配置 */
    justify-content: center; /* 水平方向の中央に配置（必要に応じて） */
    flex-wrap: wrap; /* 必要に応じて折り返し */

}

.bnr{
     margin-top: 3rem;
}

.bnr img{
    width: 100%;
    max-width: 796px;
   
}

.pcn{
display: none;    
}

  @media screen and (max-width: 768px){

.spn{
    display: none;
}
.pcn{
    display: block;
}

.bnr{
     margin-top: 1rem;
}

    section{
    
        margin: 5rem 0;
        padding: 0 ;
    }
    .logo{
        width: 80%;
    }

    .wrap{
        padding: 30px;
    }
    .title{
        top: 16%;
    }
    h2{
        line-height: 1.6;
    }
    .comment{
        font-size:15px;
    }
    .company{
        padding: 1.5rem;
        min-height: 100px; /* height を min-height に変更 */
        height: auto; /* 自動で高さを調整 */
    }
    h4{
        font-size: 14px;
    }
    .company ul{
        flex-direction: column;
        line-height: 1.4;
        align-items: flex-start;
    }
    .sp{
        display: block;
    }

    .company a{
  display: block;
    }

    .company a{
       margin-top: 20px;
          }


          .company span{
            margin-left: 0;
        }

  }


/* ↓↓↓ ここからバナー用のCSS ↓↓↓ */
  .gk-charity-banner-themed {

    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    
    /* 半透明の背景と枠線 */
    background: rgba(255, 255, 255, 0.1);

    max-width: 796px; /* .bnr img の最大幅に合わせる */
    padding: 2.5rem 2rem; /* 内側の余白を調整 */
    margin: 3rem auto 0; /* 上の余白を設定 */
    border-radius: 4px; /* 角を少し丸める */
    text-align: center;
    color: #fff; /* テキストの基本色を白に */
    position: relative;
    z-index: 1;
    overflow: hidden; /* 子要素のはみ出しを制御 */
  }

  /* 「GKグループの奉仕活動」のタイトル */
  .gk-charity-banner-themed h2 {
    font-size: 26px; /* サイトのh2より少し控えめに */
    font-weight: bold;
    color: #fff;
    margin: 0 0 0 0; /* 下の余白を調整 */
    font-family: 'Noto Sans JP', sans-serif; /* フォントを継承 */
  }

  /* 「売上の一部を寄付しています」のテキスト */
  .gk-charity-banner-themed .subtitle {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9); /* 少し透明度を落としてタイトルとの差を出す */
    margin: 0 0 2rem 0; /* 下の余白を調整 */
    font-family: 'Noto Sans JP', sans-serif;
  }

  /* 「詳しくはこちら」のリンク: サイトのアクセントカラーを適用 */
  .gk-charity-banner-themed .details-link {
    display: inline-block;
    background-color: #d2ff60; /* サイトのアクセントカラー */
    color: #1a1a1a; /* 暗い色で文字の視認性を確保 */
    padding: 12px 38px 13px;
    text-decoration: none;
    border-radius: 50px; /* ボタンらしい丸み */
    font-weight: bold;
    font-size: 12px;
    transition: all 0.3s ease;
    border: none;
  }

  /* リンクのホバー効果 */
  .gk-charity-banner-themed .details-link:hover {
    background-color: #fff;
    color: #000;
    transform: scale(1.05); /* 少し拡大するアニメーション */
  }

  /* スマートフォン用の調整 */
  @media screen and (max-width: 768px) {
    .gk-charity-banner-themed {
      padding: 2rem 1.5rem;
      margin-top: 2rem;
    }

    .gk-charity-banner-themed h2 {
      font-size: 24px;
    }

    .gk-charity-banner-themed .subtitle {
      font-size: 14px;
    }

    .gk-charity-banner-themed .details-link {
      padding: 10px 28px;
      font-size: 14px;
    }
  }