/* 全体の基本スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Hiragino Sans", sans-serif;
}

body {
    color: #0B1056;
    font-size: 16px;
    background-color: #fff;
}

img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

h2 {
    font-family: "toppan-bunkyu-midashi-go-std", sans-serif;
    font-weight: 400;
}

p,li {
    font-size: 1.2rem;
    margin: 0;
    padding: 0;
}

.small {
    font-size: 0.8em;
}

.grey {
    background-color: #F5F5F5;
}

/* 水玉模様の背景 */
.polka {
    background-image: radial-gradient(circle, #f5f5f5 15px, transparent 15px), radial-gradient(circle, #f5f5f5 15px, transparent 15px);
    background-position: 0 0, 52.5px 50px;
    background-size: 105px 100px;
}

.bold {
    font-weight: 700;
}

#recommended .bold {
    background: linear-gradient(transparent 50%, #EDFF51 50%);
}

/* ヘッダー */
header {
    background-color: #fff;
    padding: 1em 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    height: 50px;
}

.header-nav ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
}

.slide-menu {
    display: none;
}

.header-nav li {
    position: relative;
    z-index: 1;
}
.header-nav li::before{
    content: "";
    position: absolute;
    transform: translate(-50%,-50%);
    top: 50%;
    left: 50%;
    width: 2em;
    height: 2em;
    background-color: #EDFF51;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
}

.header-nav li a {
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8em;
    color: #0B1056;
}

.header-nav li a:hover {
    text-decoration: underline;
}

/* ハンバーガーメニューのスタイル */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger div {
    width: 30px;
    height: 3px;
    background-color: #0B1056;
    margin: 5px;
    transition: 0.3s;
}

.fv {
    text-align: center;
    padding: 80px 20px;
}

.fv-img {
    width: 50%;
    margin: 0 auto;
}  

/* セクションスタイル */
section {
    padding: 60px 20px;
    text-align: center;
}

section h2 {
    font-size: 2.5em;
    color: #0B1056;
    margin-bottom: 20px;
}

section p {
    color: #0B1056;
    line-height: 1.8;
}

#service h2 {
    width: 45%;
    margin: 0 auto;
}

/* イラスト付きテキスト */
.illustration {
    margin: 1em auto 0;
    width: 30%;
    min-width: 280px;
}
#approach .illustration {
    margin: 1em auto 0;
    width: 50%;
    min-width: 320px;
}

/* パートナー（スポンサー）セクション */
#advertisers .partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#advertisers .partners img {
    max-width: 140px;
}

/* 広告掲載例 */
.examples {
    display: flex;
    justify-content: center;
    gap: 2em;
    flex-wrap: wrap;
    margin-top: 1em;
}

.example {
    position: relative;
}

.example img {
    max-height: 220px;
}

.example p {
    position: absolute;
    transform: translateX(-50%);
    left: 50%;
    bottom: 1em;
    width: 100%;
    font-size: 1em;
}

/* おすすめセクション */
.whitebox {
    background-color: #fff;
    border-radius: 2em;
    border: 3px solid;
    padding: 2em 4em;
    list-style-type: disc;
    margin: 1em auto;
    text-align: left;
    width: 70%;

    display: flex;
    flex-direction: column;
    gap: 1em;
    position: relative;
}

#recommended .whitebox {
    width: 45%;
}

#recommended ul li {
    line-height: 2;
}

.recommended-img {
    position: absolute;
    width: 30%;
    left: -23%;
    bottom: -9px;
}

/* FAQセクション */
#faq .faq-item {
    margin: 1em auto;
    max-width: 80%;
    text-align: left;
    cursor: pointer;
}

#faq .faq-item h3 {
    font-size: 1.2em;
    padding: 0.7em 1.2em 0.7em 3em;
    background-color: #F5F5F5;
    border-radius: 5px;
    transition: background-color 0.3s;
    position: relative;
    font-weight: normal;
}

#faq .faq-item h3::before {
    content: "Q";
    position: absolute;
    left: 1.2em;
    font-weight: bold;
}

#faq .faq-item p {
    padding: 0.7em 1.2em;
    display: none;
    transition: background-color 0.3s;
}

#faq .faq-item.active p {
    display: block;
}

/* FAQのJavaScript用 */
#faq .faq-item h3::after {
    content: '▼';
    float: right;
}

/* CTAボタン */
.cta-button {
    background: linear-gradient(#C3C5E6 , #0B1056);
    color: #fff;
    padding: 12px 24px;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    padding: 1em 2em;
    font-size: 1.2em;
    border: none;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: background-color 0.3s;
    box-shadow: 0 2px 6px 0px rgba(0, 0, 0, 0.5);
}

.cta-button:hover {
    opacity: 0.8;
}

/* フッター */
footer {
    background-color: #0B1056;
    color: #F5F5F5;
    text-align: center;
}

.footer-container {
    display: flex;
    gap: 4em;
    margin: 0 auto;
    width: 80%;
    padding: 2em 0;
  }
  
  .footer-section {
    text-align: left;
  }
  
  .footer-section h3 {
    font-size: 1em;
  }
  
  .footer-section ul {
    list-style: none;
    padding: 0;
  }

  .footer-section ul li {
    padding-left: 1em;
    position: relative;
  }
  .footer-section ul li::before {
    position: absolute;
    left: 0;
    transform: translateY(-50%);
    top: 50%;
    content: "";
	width: 6px;
	height: 6px;
	border-top: 2px solid #EDFF51;
	border-right: 2px solid #EDFF51;
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
  }
  
  .footer-section ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.6em;
  }
  
  .footer-section ul li a:hover {
    text-decoration: underline;
  }

.copy {
    background-color: #fff;
    color: #0B1056;
    text-align: center;
    padding: 1em;
    font-size: 0.8em;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    * {
        line-height: 1.4;
    }
    p,li {
        font-size: 1rem;
    }

    .header-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .close-btn {
        position: absolute;
        top: 0px;
        right: 20px;
        font-size: 3em;
        color: #0B1056;
        cursor: pointer;
    }


    .menu-open .slide-menu {
        right: 0;
    }

    .slide-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 90%;
        height: 100%;
        background-color: #FFFFFF;
        color: #0B1056;
        padding-top: 60px;
        transition: right 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .slide-menu ul {
        list-style-type: none;
        padding: 0;
        width: 100%;
        text-align: center;
    }

    .slide-menu ul li {
        border-bottom: 1px solid;
    }
    
    .slide-menu ul li a {
        color: #0B1056;
        text-decoration: none;
        padding: 1em;
        display: block;
    }
    
    .slide-menu ul li a:hover {
        background-color: #F5F5F5;
        border-radius: 5px;
    }

    .fv-img,
    #service h2 {
        width: 90%;
        margin-bottom: 10px;
    }  

    section h2 {
        font-size: 2em;
    }

    #advertisers .partners, #ad-placement .examples {
        flex-direction: column;
        align-items: center;
    }

    .whitebox {
        padding: 2em;
        width: 100%;
    }

    #recommended .whitebox {
        width: 90%;
    }

    #faq .faq-item {
        max-width: 100%;
    }

    #faq .faq-item h3 {
        font-size: 1.2em;
    }

    #approach .illustration {
        width: 100%;
    }

    .recommended-img {
        right: -1%;
        bottom: -20%;
        left: auto;
    }

    .footer-container {
        width: 90%;
        gap: 1em;
        flex-direction: column;
    }

    .footer-section ul li {
        margin-top: 5px;
    }

    .footer-section ul li a {
        font-size: 12px;
    }
}
