*, *::before, *::after {
    box-sizing: border-box;
}

#splash {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 9999;
    top: 0;
    left: 0;
    text-align: center;
    color: #fff;
}

#splash-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
}

.spinner {
    width: 50px;
    height: 50px;
    animation: rotate 2s linear infinite;
}

.spinner .path {
    stroke: #fff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.loader_cover {
    width: 100%;
    height: 50%;
    background-color: #777777;
    transform: scaleY(1);
    position: absolute;
    left: 0;
}

.loader_cover-up {
    top: 0;
    transform-origin: center top;
}

.loader_cover-down {
    bottom: 0;
    transform-origin: center bottom;
}

body, h1, h2, p, ul {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #fff6ee;
    color: #333;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/background.svg'); 
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1; 
    z-index: -1; 
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 40px;
}

.header_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.header_logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.1em;
    color: #d97a23;
}

.header_nav_list {
    display: flex;
}

.header_nav_listItem {
    margin-left: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #d97a23;
    letter-spacing: 0.1em;
}

.header_nav_listItem a {
    position: relative;
    padding-bottom: 5px; 
}

.header_nav_listItem a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: #d97a23;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease-in-out;
}

.header_nav_listItem a:hover::after {
    transform: scaleX(1);
}

.mainVisual {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.mainVisual_title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3vw;
    letter-spacing: 0.2em;
    font-weight: 400;
    color: #333;
}

.mainVisual_subtitle {
    margin-top: 15px;
    font-size: 1.2vw;
    color: #d97a23;
    letter-spacing: 0.1em;
}

.scrolldown {
    position: absolute;
    left: 50%;
    bottom: 20px;
    height: 50px;
    transform: translateX(-50%);
}

.scrolldown span {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    color: #d97a23;
    font-size: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.1em;
}

.scrolldown::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 25px;
    width: 1px;
    height: 30px;
    background: #d97a23;
    animation: scroll-down-effect 1.4s ease-in-out infinite;
    opacity: 0;
}

@keyframes scroll-down-effect {
    0% {
        height: 0;
        top: 25px;
        opacity: 0;
    }
    30% {
        height: 30px;
        opacity: 1;
    }
    100% {
        height: 0;
        top: 55px;
        opacity: 0;
    }
}

.content {
    padding: 80px 0;
}

.content_inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.works_list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 50px;
}

.works_listItem {
    display: block;
}

.works_text {
    padding-top: 10px;
}

.works_title {
    font-size: 20px;
    font-weight: 700;
    color: #d97a23;
}

.works_category {
    margin-top: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #555;
    letter-spacing: 0.05em;
}

.gsap-fade-up {
    opacity: 0;
    transform: translateY(50px);
}

.footer {
    padding: 40px;
    background-color: #191919;
    text-align: center;
}

.footer_copy {
    color: #f6e9da;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 0.1em;
}

.section_title {
    font-size: 2rem;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    margin-top: 200px;
    margin-bottom: 60px;
    color: #333;
}

.section_title:first-of-type {
    margin-top: 100px;
}

@media screen and (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }
    .header_logo {
        font-size: 20px;
    }
    .header_nav_listItem {
        margin-left: 20px;
        font-size: 14px;
    }

    .mainVisual_title {
        font-size: 8vw;
    }
    .mainVisual_subtitle {
        font-size: 3vw;
    }

    .content {
        padding: 160px 0;
    }
    .content_inner {
        padding: 0 50px;
    }
    .works_list {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .works_title {
        font-size: 20px;
    }
}

.page-content {
    padding: 160px 0;
}

.page-title {
    font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: 0.1em;
}

.sub-heading {
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    margin-top: 50px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d97a23;
    color: #d97a23;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    margin-bottom: 60px;
    line-height: 2;
}

.profile-list dt {
    font-weight: bold;
    margin-top: 15px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 20px;
    padding: 0;
}

.skills-list li {
    background-color: #efd9c1;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-lead {
    text-align: center;
    margin-bottom: 40px;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e7cfb5;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #d97a23;
    box-shadow: 0 0 5px rgba(217, 122, 35, 0.5);
}

.submit-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0;
    padding: 15px;
    background-color: #d97a23;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #b6641c;
}

@media screen and (max-width: 768px) {
    .page-title {
        font-size: 2rem;
        margin-bottom: 60px;
    }
}

.skills-list .flex-break {
    flex-basis: 100%;
    width: 0;
    height: 0;
    padding: 0;
    margin: 2px;
}

.work-detail {
    padding-bottom: 80px;
}

.work-hero {
    width: 100%;
    height: 60vh;
    max-height: 600px;
    margin-bottom: 80px;
}

.work-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-summary {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.work-title {
    font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
}

.work-category {
    font-size: 1rem;
    color: #888;
    margin-top: 10px;
}

.work-overview {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px 20px;
    text-align: left;
    margin-top: 40px;
    font-size: 0.9rem;
}

.work-overview dt {
    font-weight: bold;
    color: #d97a23;
}

.work-section {
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

.tech-list {
    list-style: none;
    padding: 0;
}

.tech-list li {
    margin-top: 25px;
}

.tech-list p {
    margin-top: 5px;
    padding-left: 10px;
    border-left: 3px solid #efd9c1;
    font-size: 0.95rem;
    color: #333;
}

.work-inline-image {
    width: 100%;
    margin-top: 20px;
    border-radius: 5px;
    border: 1px solid #efd9c1;
}

.work-link-back {
    text-align: center;
    margin-top: 80px;
}

.back-button {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid #d97a23;
    color: #d97a23;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.back-button:hover {
    background-color: #d97a23;
    color: white;
}
/* ===== PBL詳細ページ用スタイル ===== */

/* ヒーローセクション */
.hero--project {
    padding: 120px 0;
    background-color: #333; /* 背景色を濃くして差別化 */
    color: #fff;
    text-align: center;
}
.hero_title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    letter-spacing: 0.05em;
}
.hero_sub {
    font-size: 1.1rem;
    margin-top: 10px;
    color: #e7cfb5;
}
.hero_lead {
    max-width: 700px;
    margin: 25px auto 0;
    line-height: 1.8;
    color: #efd9c1;
}

/* セクション共通スタイル */
.section {
    padding: 80px 0;
}
.section:nth-of-type(odd) {
    background-color: #fffaf5; /* 背景色を交互に変えて見やすく */
}
.section_title {
    text-align: center;
    font-size: 2rem;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 60px;
    color: #333;
}
.section_subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #d97a23;
}
.section_lead {
    max-width: 700px;
    text-align: center;
    margin: -30px auto 50px;
    line-height: 1.8;
}

/* グリッドレイアウト */
.grid {
    display: grid;
    gap: 40px;
}
.grid--2col {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* リストスタイル */
.list {
    list-style: none;
    padding: 0;
}
.list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}
.list li::before {
    content: '■';
    position: absolute;
    left: 0;
    color: #d97a23;
    font-size: 0.8em;
}

/* カードレイアウト */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #f3e1cf;
}
.card_title {
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.card_text {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 課題とアクションのセクション */
.feature-stack .feature {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #f3e1cf;
    margin-bottom: 30px;
}
.feature_title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}
.feature_text {
    line-height: 1.8;
}

/* タイムライン */
.timeline {
    border-left: 3px solid #d97a23;
    padding-left: 30px;
    margin-top: 50px;
}
.timeline_item {
    position: relative;
    padding-bottom: 50px;
}
.timeline_dot {
    position: absolute;
    left: -38px;
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #d97a23;
}
.timeline_title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.timeline_text {
    font-size: 0.95rem;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .hero_title { font-size: 2.2rem; }
    .section { padding: 60px 0; }
    .section_title { font-size: 1.8rem; }
}

/* 広告枠。本文の下に置く */
.ad-slot {
  margin: 28px 0 0;
  overflow: hidden;
}

.ad-slot ins {
  display: block;
}
