/* ============================================
   Front Page CSS
   TOPページ専用スタイル
   ============================================ */

/* 変数定義 */
:root {
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-text: #262626;
    --color-text-light: rgba(38, 38, 38, 0.7);
    --color-text-white: #ffffff;
    --color-bg: #ffffff;
    --color-bg-light: #ffffff;
    --color-bg-dark: #0f172a;
    --color-bg-overlay: rgba(15, 23, 42, 0.4);
    --border-radius: 8px;
    --spacing-unit: 8px;
}

/* 基本リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg-light);
}

/* Typography - コーディングルールに従う */
h1 {
    font-size: 48px;
    line-height: 1.4;
    font-weight: 900;
}

@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }
}

h2 {
    font-size: 36px;
    line-height: 1.5;
    font-weight: 700;
}

@media (max-width: 768px) {
    h2 {
        font-size: 24px;
    }
}

h3 {
    font-size: 24px;
    font-weight: 700;
}

p {
    font-size: 18px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    p {
        font-size: 16px;
    }
}

/* Container - コーディングルールに従う */
.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto 0 auto;
    padding: 0 16px;
}

/* ============================================
   ヒーローセクション
   コーディングルール: ファーストビューの特別ルール
   ============================================ */
.top__hero {
    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 36px);
    width: 100%;
    overflow: hidden;
    background-color: #ffffff;
    /* ファーストビューの特別ルール */
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 36px;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .top__hero {
        margin-top: 0;
        height: 100vh;
    }
}

@media (min-width: 768px) {
    .top__hero {
        flex-direction: row;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top__hero-badge {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-white);
    background-color: var(--color-primary);
    border-radius: var(--border-radius);
}

.top__hero-title {
    color: var(--color-text-white);
    margin-bottom: 32px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.top__hero-title-accent {
    color: var(--color-primary-light);
}

.top__hero-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .top__hero-description {
        font-size: 18px;
    }
}

.top__hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .top__hero-buttons {
        flex-direction: row;
    }
}

.top__hero-btn {
    padding: 16px 32px;
    font-weight: 700;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
}

.top__hero-btn--primary {
    background-color: var(--color-bg);
    color: var(--color-text);
}

.top__hero-btn--primary:hover {
    background-color: #f1f5f9;
}

.top__hero-btn--secondary {
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    color: var(--color-text-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.top__hero-btn--secondary:hover {
    background-color: rgba(15, 23, 42, 0.7);
}

/* ヒーロー画像 */
.top__hero-image {
    width: 100%;
    height: 50%;
    position: relative;
    overflow: hidden;
}

@media (max-width: 767px) {
    .top__hero-image {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
    }
}

@media (min-width: 768px) {
    .top__hero-image {
        width: 75%;
        height: 100%;
        position: relative;
    }
}

.top__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ヒーローテキスト（縦書き） */
.top__hero-text {
    width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 24px;
}

@media (max-width: 767px) {
    .top__hero-text {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
        background-color: transparent;
        padding: 24px;
    }
}

@media (min-width: 768px) {
    .top__hero-text {
        width: 25%;
        height: 100%;
        position: relative;
        padding: 0;
        background-color: #ffffff;
    }
}

.top__hero-text-inner {
    height: 60%;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 48px;
    opacity: 0;
    transform: translateY(24px);
    animation: fadeInUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 外側（右側）: メッセージ */
.top__hero-message {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-family: 'Shippori Mincho', serif;
    font-size: 22px;
    font-weight: 700;
    font-style: normal;
    line-height: 34px;
    color: #262626;
    letter-spacing: 0.12em;
    text-align: center;
    padding: 16px 0;
}

/* 内側（左側）: 会社名 */
.top__hero-company-name {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 34px;
    font-weight: 700;
    font-style: normal;
    line-height: 48px;
    color: #262626;
    letter-spacing: 0.1em;
    text-align: center;
    padding: 16px 0;
    font-family: 'Shippori Mincho', serif;
    align-self: flex-start;
}

.top__hero-company-name--hand {
    font-family: 'Shippori Mincho', serif;
    letter-spacing: 0.08em;
    font-size: 34px;
    font-weight: 700;
}

.hand-accent {
    font-family: 'Shippori Mincho', serif;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 1em;
    opacity: 1;
}

@media (max-width: 767px) {
    .top__hero-text-inner {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 24px;
        height: auto;
        width: 100%;
    }
    
    .top__hero-company-name {
        font-size: 28px;
        color: #262626;
    }
    
    .top__hero-message {
        font-size: 18px;
        color: #262626;
    }
}

/* ============================================
   2カラムセクション（画像と文章）
   ============================================ */
.top__two-column {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #ffffff;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .top__two-column {
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

/* このセクション専用にコンテナの幅を広げる */
.top__two-column .container {
    max-width: 1600px;
}

.top__two-column-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
}

@media (max-width: 767px) {
    .top__two-column-content {
        gap: 32px;
    }
    
    .top__two-column-images {
        order: 2;
    }
    
    .top__two-column-text {
        order: 1;
    }
}

@media (min-width: 768px) {
    .top__two-column-content {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.top__two-column-images {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
}

@media (max-width: 767px) {
    .top__two-column-images {
        flex-direction: column;
        gap: 16px;
    }
}

.top__two-column-image {
    width: 50%;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

@media (max-width: 767px) {
    .top__two-column-image {
        width: 100%;
        transform: translateY(20px);
    }
    
    .top__two-column-image:last-child {
        display: none;
    }
}

/* 1枚目の画像を上にずらす（初期状態は下から） */
.top__two-column-image:first-child {
    margin-top: 0;
}

/* 2枚目の画像を下にずらす（初期状態は下から） */
.top__two-column-image:last-child {
    margin-top: 0;
}

/* アニメーション表示状態 */
.top__two-column-image.is-visible {
    opacity: 1;
}

/* 1枚目の画像を上にずらす（最終位置） */
.top__two-column-image.is-visible:first-child {
    transform: translateY(-120px);
}

@media (max-width: 767px) {
    .top__two-column-image.is-visible:first-child {
        transform: translateY(0);
    }
}

/* 2枚目の画像を下にずらす（最終位置） */
.top__two-column-image.is-visible:last-child {
    transform: translateY(120px);
}

@media (max-width: 767px) {
    .top__two-column-image.is-visible:last-child {
        transform: translateY(0);
    }
}

.top__two-column-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.top__two-column-text {
    width: 100%;
    text-align: right;
    position: relative;
}

@media (max-width: 767px) {
    .top__two-column-text {
        text-align: left;
    }
}

.top__two-column-title {
    font-size: 32px;
    font-weight: 300;
    font-style: normal;
    line-height: 48px;
    color: #262626;
    margin-bottom: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
    text-align: right;
    position: relative;
    padding-bottom: 32px;
    width: 100%;
}

@media (max-width: 767px) {
    .top__two-column-title {
        font-size: 16px;
        line-height: 36px;
        text-align: left;
        padding-bottom: 24px;
        margin-bottom: 16px;
    }
}

.top__two-column-title::after {
    content: '';
    position: absolute;
    bottom: 16px;
    right: 0;
    left: 0;
    height: 1px;
    background-color: #262626;
}

@media (max-width: 767px) {
    .top__two-column-title::after {
        left: 0;
        right: 0;
        bottom: 12px;
    }
}

@media (min-width: 768px) {
    .top__two-column-title::after {
        left: 0;
        right: 0;
    }
    
    .top__two-column-text::after {
        display: none;
    }
    
    .top__two-column-content::after {
        display: none;
    }
}

.top__two-column-description {
    font-size: 24px;
    font-weight: 300;
    font-style: normal;
    line-height: 55px;
    color: #262626;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
    text-align: right;
}

@media (max-width: 767px) {
    .top__two-column-description {
        font-size: 16px;
        line-height: 36px;
        text-align: left;
        font-weight: 300;
        font-style: normal;
    }
}

.top__two-column-description p {
    margin-bottom: 16px;
}

@media (max-width: 767px) {
    .top__two-column-description p {
        margin-bottom: 0;
        line-height: 36px;
        font-size: 16px;
    }
}

.top__two-column-description p:last-child {
    margin-bottom: 0;
}

/* ============================================
   代表メッセージセクション
   ============================================ */
.top__about {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: var(--color-bg);
}

/* このセクション専用にコンテナの幅を広げる */
.top__about .container {
    max-width: 1600px;
}

.top__about-content {
    display: grid;
    gap: 64px;
    align-items: center;
}

@media (min-width: 768px) {
    .top__about-content {
        grid-template-columns: 1fr 1fr;
    }
}

.top__about-text {
    width: 100%;
    text-align: left;
    position: relative;
}

.top__about-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 16px;
    position: relative;
    z-index: 10;
    text-align: left;
}

.top__about-title {
    font-size: 32px;
    font-weight: 300;
    font-style: normal;
    line-height: 48px;
    color: #262626;
    margin-bottom: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
    text-align: left;
    position: relative;
    padding-bottom: 16px;
    width: 100%;
}

.top__about-description {
    font-size: 24px;
    font-weight: 300;
    font-style: normal;
    line-height: 55px;
    color: #262626;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
    text-align: left;
    margin-bottom: 40px;
}

.top__about-description p {
    margin-bottom: 16px;
}

.top__about-description p:last-child {
    margin-bottom: 0;
}

.top__about-signature {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(226, 232, 240, 1);
    display: flex;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
    font-style: normal;
    color: #262626;
    text-align: left;
}

@media (max-width: 767px) {
    .top__about-signature {
        flex-direction: row;
        align-items: flex-end;
        gap: 16px;
        margin-top: 24px;
        padding-top: 24px;
    }
}

.top__about-signature-item {
    flex: 1;
    min-width: 120px;
}

@media (max-width: 767px) {
    .top__about-signature-item {
        flex: 1;
        min-width: 0;
    }
}

.top__about-signature-label {
    font-size: 12px;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
    font-style: normal;
}

.top__about-signature-name {
    font-size: 32px;
    font-weight: 300;
    font-style: normal;
    line-height: 48px;
    color: #262626;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
}

@media (max-width: 767px) {
    .top__about-signature-name {
        font-size: 24px;
        line-height: 36px;
    }
}

.top__about-signature-divider {
    display: none;
    height: 48px;
    width: 1px;
    background-color: rgba(226, 232, 240, 1);
}

@media (min-width: 640px) {
    .top__about-signature-divider {
        display: block;
    }
}

.top__about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.top__about-images-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.top__about-images-col:first-child {
    padding-top: 48px;
}

.top__about-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.top__about-images-col:first-child .top__about-image:first-child {
    height: 256px;
}

.top__about-images-col:first-child .top__about-image:last-child {
    height: 192px;
}

.top__about-images-col:last-child .top__about-image:first-child {
    height: 192px;
}

.top__about-images-col:last-child .top__about-image:last-child {
    height: 256px;
}

/* ABOUTボタン */
.top__about-button-wrapper {
    margin-top: 40px;
    text-align: left;
}

@media (max-width: 767px) {
    .top__about-button-wrapper {
        margin-top: 24px;
    }
}

/* 左右に動き続けるアニメーション */
@keyframes aboutButtonMove {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
    100% {
        transform: translateX(0);
    }
}

.top__about-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    background-color: transparent;
    border: 2px solid var(--color-text);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
    letter-spacing: 0.05em;
    animation: aboutButtonMove 2s ease-in-out infinite;
}

.top__about-button:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation-play-state: paused;
}

.top__about-button:active {
    transform: translateX(0);
}

@media (max-width: 767px) {
    .top__about-button {
        padding: 14px 28px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   事業内容セクション
   ============================================ */
.top__services {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: var(--color-bg-light);
}

.top__services-header {
    text-align: center;
    margin-bottom: 64px;
}

.top__services-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
    font-style: normal;
}

.top__services-title {
    font-size: 32px;
    font-weight: 300;
    font-style: normal;
    line-height: 48px;
    color: #262626;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
}

@media (max-width: 768px) {
    .top__services-title {
        font-size: 24px;
        line-height: 36px;
    }
}

.top__services-grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 768px) {
    .top__services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.top__services-card {
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 1);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, box-shadow 0.3s ease;
    /* スクロールアニメーション用の初期状態（JavaScriptで上書きされる） */
    /* 下から上にフェードインするため、translateYのみ使用 */
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
}

.top__services-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.top__services-card-image {
    height: 192px;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.top__services-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.top__services-card:hover .top__services-card-image img {
    transform: scale(1.1);
}

.top__services-card-content {
    padding: 32px;
}

.top__services-card-icon {
    color: var(--color-primary);
    margin-bottom: 24px;
}

.top__services-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.top__services-card-description {
    color: var(--color-text-light);
    line-height: 1.75;
    margin-bottom: 24px;
}

.top__services-card-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

/* ============================================
   強みセクション
   ============================================ */
.top__strengths {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    position: relative;
    overflow: hidden;
}

.top__strengths::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: rgba(37, 99, 235, 0.1);
    transform: skewX(-12deg) translateX(96px);
}

.top__strengths-content {
    display: grid;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .top__strengths-content {
        grid-template-columns: 1fr 1fr;
    }
}

.top__strengths-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary-light);
    margin-bottom: 16px;
}

.top__strengths-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .top__strengths-title {
        font-size: 48px;
    }
}

.top__strengths-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.top__strengths-item {
    display: flex;
    gap: 24px;
}

.top__strengths-item-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
}

.top__strengths-item-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.top__strengths-item-description {
    font-size: 14px;
    color: rgba(148, 163, 184, 1);
    line-height: 1.75;
}

.top__strengths-visual {
    position: relative;
}

.top__strengths-visual-card {
    background-color: rgba(30, 41, 59, 1);
    padding: 32px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.top__strengths-visual-image {
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.top__strengths-visual-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.7s ease;
}

.top__strengths-visual-image:hover img {
    filter: grayscale(0%);
}

.top__strengths-visual-stats {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top__strengths-visual-stat-value {
    font-size: 24px;
    font-weight: 700;
}

.top__strengths-visual-stat-label {
    font-size: 12px;
    color: rgba(148, 163, 184, 1);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.top__strengths-visual-stat-divider {
    height: 32px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   FLOWセクション
   ============================================ */
.top__flow {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: var(--color-bg);
}

.top__flow-header {
    text-align: center;
    margin-bottom: 64px;
}

.top__flow-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
}

.top__flow-title {
    font-size: 32px;
    font-weight: 300;
    line-height: 1.4;
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
}

@media (max-width: 768px) {
    .top__flow-title {
        font-size: 24px;
    }
}

.top__flow-section {
    margin-bottom: 80px;
}

.top__flow-section:last-child {
    margin-bottom: 0;
}

.top__flow-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 48px;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

@media (max-width: 768px) {
    .top__flow-section-title {
        font-size: 20px;
        margin-bottom: 32px;
    }
}

/* アコーディオン形式 */
.top__flow-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.top__flow-accordion-item {
    background-color: var(--color-bg);
    border: 1px solid rgba(226, 232, 240, 1);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.top__flow-accordion-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.top__flow-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background-color: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: inherit;
}

.top__flow-accordion-header:hover {
    background-color: var(--color-bg-light);
}

.top__flow-accordion-header[aria-expanded="true"] {
    background-color: var(--color-bg-light);
}

.top__flow-accordion-header[aria-expanded="true"] .top__flow-accordion-icon {
    transform: rotate(180deg);
}

.top__flow-accordion-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: var(--color-text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

@media (min-width: 768px) {
    .top__flow-accordion-number {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
}

.top__flow-accordion-title {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
}

@media (min-width: 768px) {
    .top__flow-accordion-title {
        font-size: 20px;
    }
}

.top__flow-accordion-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top__flow-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.top__flow-accordion-item[aria-expanded="true"] .top__flow-accordion-content {
    max-height: 500px;
    padding: 0 24px 24px 24px;
}

.top__flow-accordion-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin: 0;
    padding-top: 16px;
}

@media (max-width: 768px) {
    .top__flow-accordion-content p {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .top__flow {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .top__flow-header {
        margin-bottom: 48px;
    }

    .top__flow-section {
        margin-bottom: 64px;
    }

    .top__flow-accordion {
        gap: 12px;
    }

    .top__flow-accordion-header {
        padding: 16px 20px;
        gap: 12px;
    }

    .top__flow-accordion-number {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .top__flow-accordion-title {
        font-size: 16px;
    }

    .top__flow-accordion-content {
        padding: 0 20px;
    }

    .top__flow-accordion-item[aria-expanded="true"] .top__flow-accordion-content,
    .top__flow-accordion-header[aria-expanded="true"] + .top__flow-accordion-content {
        padding: 0 20px 20px 20px;
    }
}

/* ============================================
   実績ギャラリー
   ============================================ */
.top__gallery {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: var(--color-bg);
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    display: flex;
    align-items: center;
    min-height: 100vh;
}

@media (max-width: 767px) {
    .top__gallery {
        padding-top: 40px;
        padding-bottom: 40px;
        min-height: 60vh;
    }
}

.top__gallery .container {
    max-width: none;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.top__gallery-header {
    text-align: center;
    margin-bottom: 64px;
    padding: 0 16px;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767px) {
    .top__gallery-header {
        margin-bottom: 16px;
        padding: 0 16px;
    }
}

.top__gallery-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
    font-style: normal;
}

.top__gallery-title {
    font-size: 32px;
    font-weight: 300;
    font-style: normal;
    line-height: 48px;
    color: #262626;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .top__gallery-title {
        font-size: 24px;
        line-height: 36px;
    }
}

.top__gallery-description {
    color: var(--color-text-light);
    margin-top: 16px;
}

.top__gallery-marquee {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    .top__gallery-marquee {
        margin-top: 0;
        margin-bottom: 0;
        height: auto;
        min-height: 30vh;
        padding: 0 16px;
    }
}

.top__gallery-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: galleryMarquee 48s linear infinite;
    align-items: center;
}

.top__gallery-track:hover {
    animation-play-state: paused;
}

.top__gallery-item {
    position: relative;
    flex: 0 0 auto;
    width: 300px;
    aspect-ratio: 16 / 9;
    height: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.25);
}

@media (min-width: 640px) {
    .top__gallery-item {
        width: 400px;
    }
}

@media (min-width: 1024px) {
    .top__gallery-item {
        width: 500px;
    }
}

.top__gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.top__gallery-item:hover .top__gallery-image {
    transform: scale(1.1);
}

.top__gallery-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
}

.top__gallery-item:hover .top__gallery-overlay {
    opacity: 1;
}

.top__gallery-overlay-text {
    color: var(--color-text-white);
    font-weight: 700;
    font-size: 14px;
}

@keyframes galleryMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ============================================
   会社概要
   ============================================ */
.top__company {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: var(--color-bg-light);
}

.top__company-header {
    text-align: center;
    margin-bottom: 48px;
}

.top__company-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.top__company-title {
    font-size: 32px;
    font-weight: 300;
    line-height: 1.4;
    color: #262626;
}

@media (max-width: 768px) {
    .top__company-title {
        font-size: 24px;
    }
}

.top__company-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #ffffff;
    box-shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.15);
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.top__company-table thead {
    background-color: #bfbfbf;
}

.top__company-table th,
.top__company-table td {
    padding: 18px 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #1f2937;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.top__company-table th {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.top__company-table tbody tr:last-child td {
    border-bottom: none;
}

.top__company-cell--muted {
    color: #9ca3af;
}

.top__company-map {
    margin-top: 32px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.15);
    border: 1px solid #e2e8f0;
    height: 480px;
}

.top__company-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(100%) invert(100%) brightness(0.8) contrast(1.2);
    -webkit-filter: grayscale(100%) invert(100%) brightness(0.8) contrast(1.2);
}

@media (max-width: 768px) {
    .top__company-table,
    .top__company-table thead,
    .top__company-table tbody,
    .top__company-table th,
    .top__company-table td,
    .top__company-table tr {
        display: block;
        width: 100%;
    }

    .top__company-table thead {
        display: none;
    }

    .top__company-table tr {
        border: 1px solid #e2e8f0;
        border-radius: var(--border-radius);
        margin-bottom: 12px;
        overflow: hidden;
        background-color: #ffffff;
    }

    .top__company-table td {
        border: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 12px 16px;
    }

    .top__company-table td:last-child {
        border-bottom: none;
    }

    .top__company-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        font-weight: 700;
        color: #6b7280;
        margin-bottom: 4px;
        letter-spacing: 0.02em;
    }
}

/* ============================================
   お問い合わせセクション
   ============================================ */
.top__contact {
    position: relative;
    min-height: 668px;
    padding-top: 80px;
    padding-bottom: 80px;
    background-image: url('../../images/image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top__contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.top__contact-label {
    display: none;
}

.top__contact-glass {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.top__contact-form-wrapper {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
}

.top__contact-form-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 0 0 32px 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .top__contact-form-wrapper {
        padding: 24px 16px;
        max-width: 100%;
    }

    .top__contact-form-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
}

/* Contact Form 7のスタイル（フロントページ用） */
.top__contact-form-wrapper .wpcf7 {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 非表示フィールドコンテナを白色に */
.top__contact-form-wrapper .hidden-fields-container {
    background-color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: var(--border-radius);
}

/* メッセージ本文フィールド（テキストエリア）を非表示 */
.top__contact-form-wrapper .wpcf7-form p:has(.wpcf7-textarea),
.top__contact-form-wrapper .wpcf7-form p .wpcf7-textarea {
    display: none;
}

/* テキストエリアを含む親要素（pタグ）を非表示 */
.top__contact-form-wrapper .wpcf7-form p:has(textarea) {
    display: none;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.top__contact-form-wrapper .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.top__contact-form-wrapper .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    margin-bottom: 0;
}

.top__contact-form-wrapper .wpcf7-form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.5;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-family: inherit;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.top__contact-form-wrapper .wpcf7-form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.top__contact-form-wrapper .wpcf7-form-control:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.top__contact-form-wrapper .wpcf7-textarea {
    min-height: 140px;
    resize: vertical;
    font-family: inherit;
}

.top__contact-form-wrapper .wpcf7-form-control-wrap label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ラベルテキストを白色に */
.top__contact-form-wrapper .wpcf7-form-control-wrap label,
.top__contact-form-wrapper .wpcf7-form p label {
    color: #ffffff;
}

.top__contact-form-wrapper .wpcf7-form-control-wrap label .wpcf7-required {
    color: #fbbf24;
    margin-left: 4px;
}

.top__contact-form-wrapper .wpcf7-submit {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    background-color: #ffffff;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: center;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.top__contact-form-wrapper .wpcf7-submit:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.top__contact-form-wrapper .wpcf7-submit:active {
    transform: translateY(0);
}

.top__contact-form-wrapper .wpcf7-submit:disabled {
    background-color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.top__contact-form-wrapper .wpcf7-response-output {
    margin-top: 20px;
    padding: 16px;
    border-radius: var(--border-radius);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: block;
    visibility: visible;
}

/* aria-hidden="true"でも表示されるようにする（Contact Form 7がメッセージを表示する際に使用） */
.top__contact-form-wrapper .wpcf7-response-output[aria-hidden="true"]:not(:empty) {
    display: block;
    visibility: visible;
}

.top__contact-form-wrapper .wpcf7-mail-sent-ok {
    background-color: rgba(16, 185, 129, 0.2);
    color: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.top__contact-form-wrapper .wpcf7-mail-sent-ng,
.top__contact-form-wrapper .wpcf7-aborted,
.top__contact-form-wrapper .wpcf7-spam {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ffffff;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.top__contact-form-wrapper .wpcf7-validation-errors {
    background-color: rgba(245, 158, 11, 0.2);
    color: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.5);
}

.top__contact-form-wrapper .wpcf7-acceptance-missing {
    background-color: rgba(245, 158, 11, 0.2);
    color: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.5);
}

.top__contact-form-wrapper .wpcf7-not-valid-tip {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #fbbf24;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.top__contact-form-wrapper .wpcf7-form-control.wpcf7-not-valid {
    border-color: #fbbf24;
    background-color: rgba(251, 191, 36, 0.15);
}

.top__contact-form-wrapper .wpcf7-not-valid:focus {
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.top__contact-form-wrapper .wpcf7-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(38, 38, 38, 0.3);
    border-top-color: var(--color-text);
    border-radius: 50%;
    animation: wpcf7-spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes wpcf7-spin {
    to {
        transform: rotate(360deg);
    }
}

.top__contact-form-wrapper .wpcf7-checkbox,
.top__contact-form-wrapper .wpcf7-radio {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top__contact-form-wrapper .wpcf7-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top__contact-form-wrapper .wpcf7-list-item input[type="checkbox"],
.top__contact-form-wrapper .wpcf7-list-item input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ffffff;
}

.top__contact-form-wrapper .wpcf7-list-item label {
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.top__contact-form-wrapper .wpcf7-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
    appearance: none;
    cursor: pointer;
}

/* フォームが見つからない場合のエラーメッセージを非表示 */
.top__contact-form-wrapper .wpcf7-contact-form-not-found {
    display: none;
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* フォームが見つからない場合の通知スタイル */
.top__contact-form-notice {
    padding: 32px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    text-align: center;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.top__contact-form-notice p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
    color: #ffffff;
}

.top__contact-form-notice p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .top__contact-form-notice {
        padding: 24px 16px;
    }
    
    .top__contact-form-notice p {
        font-size: 13px;
    }
}
