/*  グローバル設定 & CSS変数  */
:root {
    --kiseki-blue: #2D64A5;                  /* サイトのメインカラー（青） */
    --kiseki-red: #FF4757;                   /* アクセントカラー（赤） */
    --text-dark: #1f2937;                    /* 見出しテキスト色 */
    --text-light: #4b5563;                   /* 本文のテキスト色 */
    --bg-light: #f8f9fa;                     /* 薄いグレーの背景色 */
    --border-color: #e5e7eb;                 /* 罫線や区切り線の色 */
    --font-oswald: 'Oswald', sans-serif;     /* サブタイトル用のフォント */
    --font-inter: 'Inter', sans-serif;       /* 見出し用のフォント */
    --font-noto: 'Noto Sans JP', sans-serif; /* 本文用のフォント */
}

/*  基本スタイル  */
body {
    font-family: var(--font-noto);
    color: var(--text-light);
    background-color: #ffffff;
    margin: 0;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4 {
    font-family: var(--font-inter);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

h2 span {
    font-family: var(--font-oswald);
    font-size: 1.25rem;
    color: var(--kiseki-blue);
    letter-spacing: 1px;
}

h3 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.1rem;
    font-weight: 500;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}


.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-oswald);
    font-size: clamp(3rem, 12vw, 8rem);
    letter-spacing: 0.5rem;
    color: #fff;
    margin: 0;
    padding: 0;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.hero-title .word {
    display: block;
    opacity: 0;
    animation: fadeInWord 1s forwards;
}
.hero-title .word:nth-child(2) { animation-delay: 0.5s; }
.hero-title .word:nth-child(3) { animation-delay: 1s; }

.hero-subtitle {
    font-family: var(--font-oswald);
    font-size: 1.2rem;
    letter-spacing: 5px;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: fadeInWord 1s 1.5s forwards;
}

@keyframes fadeInWord {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.story-content {
    padding: 6rem 0;
}
.story-content section {
    margin-bottom: 5rem;
}

.section-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.section-container-small {
    max-width: 720px;
    margin: 0 auto;
}

.text-content { flex: 1; }
.image-content { flex: 1; }
.image-content img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.bg-light {
    background-color: var(--bg-light);
    padding: 5rem 1.5rem;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.system-infographic {
    position: relative;
    margin-top: 3rem;
}
.info-item {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 2rem;
}
.info-item:not(:last-child) {
    padding-bottom: 2rem;
}
.info-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 120px;
    width: 2px;
    height: calc(100% - 100px);
    background-color: var(--kiseki-blue);
    opacity: 0.3;
}
.info-icon-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.info-icon-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.info-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-text h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}
.info-text p {
    margin: 0;
}

.process-grid, .process-grid-software {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}
.process-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.process-grid-software { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: left;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -3px rgba(0,0,0,0.1);
}
.card-full { grid-column: 1 / -1; }
.card img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}
.card:hover img,
.card:hover model-viewer {
    transform: scale(1.05);
}

.sub-heading {
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

/* タブUI */
.tab-ui-wrapper {
    margin-top: 2rem;
}
.tab-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}
.tab-button {
    padding: 0.75rem 1.5rem;
    border: none;
    background-color: transparent;
    font-family: var(--font-inter);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.tab-button:hover {
    color: var(--text-dark);
}
.tab-button.is-active {
    color: var(--kiseki-blue);
    border-bottom-color: var(--kiseki-blue);
}
.tab-content-wrapper {
    position: relative;
}
.tab-pane {
    display: none;
}
.tab-pane.is-active {
    display: block;
}
.tab-pane img, 
.tab-pane model-viewer {
    width: 100%;
    height: auto;
    max-height: 500px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.tab-pane img {
    background-color: #fff;
    object-fit: cover;
}

.tab-pane model-viewer {
    background-color: var(--text-dark);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
}

#tech-spec { text-align: center; }
#tech-spec table {
    width: 100%;
    margin-top: 2rem;
    border-collapse: collapse;
    text-align: left;
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
#tech-spec th, #tech-spec td {
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-color);
}
#tech-spec th {
    background-color: #f9fafb;
    font-weight: 700;
    color: var(--text-dark);
    width: 35%;
}

/* --- 開発メンバー紹介 --- */
.text-center { text-align: center; }
#team h2 { align-items: center; }
.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.team-member-card {
    background: #fff;
    padding: 2rem;
}
.team-member-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--border-color);
}
.member-title {
    font-weight: 700;
    color: var(--kiseki-blue);
    margin: 0.5rem 0;
}
.member-bio {
    font-size: 0.9rem;
}

/* --- 結論 --- */
.conclusion-strong {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* --- フッター --- */
.site-footer {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--text-dark);
    color: #fff;
    font-size: 0.9rem;
}
.site-footer p {
    margin: 0;
    opacity: 0.7;
}

/* --- レスポンシブ対応（スマートフォン表示） --- */
@media (max-width: 768px) {
    .section-container {
        grid-template-columns: 1fr;
    }
    .image-content {
        order: -1;
    }
    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .info-icon-wrapper {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    .info-item:not(:last-child)::before {
       display: none;
    }
    .info-text {
        width: 100%;
        text-align: center;
    }
}