/* ==========================================================================
   リセット・基本設定
   ========================================================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffeb3b;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    margin: 50px 0;
    display: block;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    background-color: #fff;
    font-family: Ayuthaya, Arial, sans-serif;
}

.logo {
    display: flex;
    align-items: center;
    padding: 10px;
}

.logo img {
    width: 100%;
    max-width: 100px;
    height: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    font-size: 25px;
    margin: 0;
    padding: 0;
    margin-right: 20px;
}

nav ul li {
    display: inline;
    padding: 5px;
}

nav ul li a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease;
}

nav ul li a:hover {
    border-bottom: 2px solid #84cbfd;
}

/* ==========================================================================
   トップセクション
   ========================================================================== */

#top {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    text-align: center;
}

.top-content h1 {
    font-size: 70px;
    font-family: ゴシック Pr6N, Arial, sans-serif;
    color: #000000;
    margin: 0 0 20px 0;
}

.top-content .blue {
    color: #84cbfd;
}

.top-content p {
    font-size: 25px;
    margin: 0;
}

/* ==========================================================================
   セクション共通
   ========================================================================== */

.section-title {
    background-color: #84cbfd;
    height: 120px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2653b0;
    font-size: 40px;
    font-family: Ayuthaya;
    margin: 0 0 40px 0;
}

/* ==========================================================================
   アバウトセクション
   ========================================================================== */

.about-wrapper {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 100px;
}

.about-content {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 40px;
}

.about-img {
    width: 350px;
    flex-shrink: 0;
}

.about-text {
    flex: 1;
    max-width: 600px;
    font-size: 20px;
    color: #2653b0;
    text-align: left;
}

.career,
.skills {
    margin-bottom: 30px;
}

.career h4,
.skills h4 {
    width: 120px;
    text-align: center;
    margin: 0 0 15px 0;
    background-color: #84cbfd;
    color: #2653b0;
    border-radius: 20px;
    padding: 8px 0;
    font-size: 18px;
}

.skills-list {
    display: flex;
    gap: 30px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.skill-item {
    flex: 1;
    min-width: 200px;
}

.skill-category {
    text-decoration: underline;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.skill-item p {
    margin: 0;
    font-size: 16px;
}

/* ==========================================================================
   サービスセクション
   ========================================================================== */

.service-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-item {
    flex: 1;
    background-color: #ffeb3b;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #2653b0;
}

.service-img {
    margin-bottom: 20px;
    border: 1px solid #2653b0;
    border-radius: 8px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content h3 {
    font-size: 24px;
    color: #2653b0;
    margin: 0 0 15px 0;
    font-weight: bold;
}

.service-list {
    font-size: 16px;
    color: #2653b0;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.service-description {
    font-size: 16px;
    color: #2653b0;
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   コンタクトセクション
   ========================================================================== */

.contact-wrapper {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-icons a {
    transition: transform 0.3s ease;
}

.contact-icons a:hover {
    transform: scale(1.1);
}

.contact-icons img {
    width: 50px;
    height: 50px;
}

.contact-form {
    text-align: center;
}

/* ==========================================================================
   ボタン共通
   ========================================================================== */

.button {
    display: inline-block;
    border-radius: 20px;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
    padding: 15px 30px;
    background: #81d4fa;
    color: #ffffff;
    line-height: 1em;
    transition: all 0.3s ease;
    border: 2px solid #81d4fa;
    text-decoration: none;
    font-weight: bold;
}

.button:hover {
    color: #2653b0;
    background: #ffffff;
    border-color: #2653b0;
}

/* ==========================================================================
   フッター
   ========================================================================== */

footer {
    background-color: #fff;
    color: #000;
    padding: 40px 20px 20px;
    text-align: center;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-nav nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    font-family: Ayuthaya, Arial, sans-serif;
}

.footer-nav nav ul li a {
    text-decoration: none;
    color: #2653b0;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-nav nav ul li a:hover {
    color: #84cbfd;
}

.copyright {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* ==========================================================================
   ワークス（作品）セクション
   ========================================================================== */

.works-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.works-item {
    display: flex;
    align-items: center;
    padding: 30px;
    background-color: #ffeb3b;
    border-radius: 12px;
    border: 2px solid #2653b0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    gap: 30px;
}

.works-img {
    flex: 1;
    max-width: 400px;
}

.works-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #2653b0;
}

.works-description {
    flex: 1;
    padding: 0 20px;
}

.works-description h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #2653b0;
}

.works-description p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   レスポンシブデザイン - タブレット
   ========================================================================== */

@media (max-width: 1024px) {
    .top-content h1 {
        font-size: 50px;
    }
    
    .top-content p {
        font-size: 20px;
    }
    
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .about-text {
        text-align: center;
        max-width: 100%;
    }
    
    .skills-list {
        justify-content: center;
    }
    
    .service-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .works-item {
        flex-direction: column;
        text-align: center;
    }
    
    .works-img {
        max-width: 100%;
    }
}

/* ==========================================================================
   レスポンシブデザイン - スマートフォン
   ========================================================================== */

@media (max-width: 767px) {
    /* ヘッダー */
    header {
        flex-direction: column;
        padding: 10px;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .logo img {
        max-width: 80px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
        font-size: 18px;
        margin-right: 0;
    }
    
    /* トップ */
    #top {
        height: 400px;
        padding: 20px;
    }
    
    .top-content h1 {
        font-size: 32px;
    }
    
    .top-content p {
        font-size: 16px;
    }
    
    /* セクションタイトル */
    .section-title {
        font-size: 32px;
        height: 80px;
    }
    
    /* アバウト */
    .about-content {
        padding: 0 20px;
    }
    
    .about-img {
        width: 250px;
        margin-bottom: 20px;
    }
    
    .about-text {
        font-size: 16px;
    }
    
    .skills-list {
        flex-direction: column;
        gap: 15px;
    }
    
    .skill-item {
        min-width: auto;
    }
    
    /* サービス */
    .service-container {
        padding: 0 15px;
    }
    
    .service-item {
        padding: 15px;
    }
    
    .service-content h3 {
        font-size: 20px;
    }
    
    .service-list,
    .service-description {
        font-size: 14px;
    }
    
    /* コンタクト */
    .contact-icons {
        gap: 15px;
    }
    
    .contact-icons img {
        width: 40px;
        height: 40px;
    }
    
    /* ボタン */
    .button {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    /* ワークス */
    .works-wrapper {
        padding: 0 15px;
    }
    
    .works-item {
        padding: 20px;
    }
    
    .works-description h3 {
        font-size: 22px;
    }
    
    .works-description p {
        font-size: 14px;
    }
    
    /* フッター */
    footer {
        padding: 30px 15px 15px;
    }
    
    .footer-nav nav ul {
        flex-direction: column;
        gap: 10px;
        font-size: 16px;
    }
}