/* --- レスポンシブ対応 --- */

/* 小さめの画面（タブレットなど）向け */
@media (max-width: 768px) {
    .intro-section {
        font-size: 100%; /* タブレットでは少し小さく */
    }

    .container .header {
        font-size: 150%; /* サイト名も調整 */
    }

    .container .text-section {
        font-size: 95%; /* テキストも少し小さく */
    }
}

/* スマートフォン向けの調整 */
@media (max-width: 480px) {
    .intro-section {
        font-size: 90%; /* スマートフォンではさらに小さく */
    }

    .container {
        left: 10px;
        width: calc(100% - 20px);
    }
    
    .container .header {
        font-size: 130%;
    }

    .container .text-section {
        font-size: 90%;
    }
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    font-size: 105%;
    /* 統合: 全体のフォントウェイトと行間を調整 */
    font-weight: 400;
    line-height: 1.6;
}

/* ファーストビュー全体を覆うセクション */
.intro-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    color: #ffffff;
    /* 統合: ファーストビューのフォントを調整 */
    font-size: 105%;
    font-weight: 600;
    line-height: 1.6;
}

.slideshow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0s ease-in-out;
}

.slide.active {
    opacity: 1;
}

#slide-0 {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%), url('./images/bg01.webp');
    opacity: 1;
}

#slide-1 {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%), url('./images/bg02.webp');
}

/* ファーストビューのテキストコンテナ */
.container {
    position: fixed;
    top: 0;
    left: 20px;
    width: calc(100% - 40px);
    max-width: 450px;
    padding: 40px 0 20px 0;
    text-align: left;
    z-index: 2;
}

/* 統合: 強調したい部分（見出しなど）のフォントを調整 */
.header {
    font-size: 190%;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.main-image {
    display: none;
}

/* 統合: テキストセクションの行間とマージンを調整 */
.text-section {
    line-height: 1.8;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* 統合: リンクセクションの行間を調整 */
.links {
    line-height: 1.9;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.links a {
    color: inherit;
    text-decoration: none;
    text-decoration: underline;
    text-decoration-color: #ffffff;
    text-decoration-thickness: 2px;
}

.links a:hover {
    text-decoration-color: #ffffffff;
}

.email {
    margin-top: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* スクロールインジケーター */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    cursor: pointer;
    text-align: center;
}

.scroll-indicator .arrow {
    width: 30px;
    height: 30px;
    border: solid white;
    border-width: 0 3px 3px 0;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* スクロールで表示されるコンテンツのラッパー */
.content-wrapper {
    background-color: #fff;
    padding: 60px 20px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    color: #000;
    z-index: 2;
    position: relative;
}

/* 統合: 各h2要素のスタイルを再定義 */
.content-wrapper h2 {
    font-size: 130%;
    margin-bottom: 25px;
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 1px solid #000;
    letter-spacing: 0.025em;
}

/* 2ページ目以降のコンテンツ幅を600pxに設定 */
.content-wrapper > * {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 各セクション */
.portfolio-section, .profile-section, .clients-section {
    margin-bottom: 40px;
}

/* ポートフォリオカード */
.portfolio-card {
    background-color: #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
}

/* インスタグラムの埋め込み要素（blockquote）の余白を調整 */
.portfolio-card blockquote {
    margin: 0;
}

/* 統合: プロフィールセクションの行間とマージンを調整 */
.profile-section p, .clients-section p {
    line-height: 1.8;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

/* プロフィール末尾のリンク部分 */
.profile-link a {
    color: #000;
    text-decoration: underline;
    text-decoration-color: #000;
}

.profile-link a:hover {
    text-decoration-color: #666;
}