/*
Theme Name: Uood-2025
Author: Uood
Version: 1.0
Description: Uood リニューアル用 テーマ。2025作成。
*/
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Noto Sans JP", sans-serif;
}

body {
    width: 100vw;
    /* height: 100vh; */
    color: #2c3e50;
    overflow-x: hidden;
}

main {
    min-height: calc(100vh - 19em);
}

a {
    color: inherit;
    text-decoration: none;
}

.btn,
.btn:hover,
.btn:hover:active,
.btn-primary:not(:disabled):not(.disabled):active {
    background: inherit;
    color: inherit;
    border: none;
    padding: 0;
}

/* ---------
    Header
--------- */
header {
    padding: 1em 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 999;
    background-color: #fff;
}

header h1 {
    font-weight: bold;
}

#header_nav ul {
    list-style: none;
    display: flex;
}

header .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
    min-width: auto !important;
    border: none;
}

header .wp-block-navigation .has-child:last-child .wp-block-navigation__submenu-container {
    right: 0;
    left: auto;
    white-space: nowrap;
}

header .wp-block-navigation .has-modal-open .wp-block-navigation__container {
    padding: 1em;
}

header .wp-block-navigation .has-modal-open .has-child .wp-block-navigation__submenu-container {
    box-shadow: none;
    padding: 0 0.5em;
}

header .wp-block-navigation .has-child .wp-block-navigation__submenu-container a:hover {
    text-decoration: underline;
}

header .wp-block-navigation .has-child .wp-block-navigation__submenu-container li {
    padding: 0.5em 0.5em 0;
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

header .wp-block-navigation .has-child .wp-block-navigation__submenu-container li:last-child {
    padding-bottom: 0.5em;
}

header.wp-block-template-part .header_nav li {
    display: block;
    position: relative;
}

header div > ul > li::after {
    content: "";
    display: block;
    margin: 0 auto;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: 0.2s;
    height: 2px;
    width: 0;
    position: absolute;
    top: 1.5em;
}

header div > ul li:hover::after {
    width: 90%;
}

header .wp-block-navigation .wp-block-navigation-item {
    flex-wrap: wrap;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ---------
    Hero
--------- */
.front-page .hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* パーティクル背景 */
.front-page #particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.6;
}

/* 3D要素コンテナ */
.front-page #canvas-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* 文字のフォーカスエリア - 中央寄り球体用 */
.front-page .focus-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 35% 50%,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.85) 15%,
        rgba(255, 255, 255, 0.6) 40%,
        rgba(255, 255, 255, 0.2) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 2;
}

/* 全画面タイポグラフィエリア */
.front-page .typography-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
}

/* 上下分割のレイアウト */
.front-page .top-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 5%;
    padding-right: 5%;
    position: relative;
}

.front-page .bottom-section {
    height: 80px;
    position: relative;
    border-top: 1px solid rgba(52, 152, 219, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

/* トップバー */
.front-page .top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    border-bottom: 1px solid rgba(52, 152, 219, 0.15);
}

.subheading {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #3498db;
    font-weight: 500;
}

.version-text {
    font-size: 12px;
    color: #7f8c8d;
    letter-spacing: 0.2em;
    margin-top: 0;
}

/* メインコンテンツ */
.content-wrapper {
    max-width: 1200px;
    margin-top: 40px;
}

/* タイトル部分 - タイプライターエフェクト + グラデーションアニメーション */
.front-page .hero-title {
    font-size: 110px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #2c3e50 0%, #3498db 70%, #2980b9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* 波紋効果のオーバーレイ */
.front-page .hero-title::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    white-space: pre-wrap;
    background: linear-gradient(90deg, #3498db 0%, #2980b9 50%, #2c3e50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    opacity: 0;
    animation: wave-text 3s ease-in-out infinite;
}

@keyframes wave-text {
    0%,
    100% {
        opacity: 0;
    }
    50% {
        opacity: 0.7;
    }
}

/* タイプライター効果用のカーソル */
.front-page .hero-title.cursor-visible::after {
    content: "_";
    display: inline-block;
    animation: blink 1s step-end infinite;
    -webkit-text-fill-color: #3498db; /* カーソルの色を青色に */
    background: rgba(0, 85, 184, 0.1);
    height: 2px;
    vertical-align: bottom;
}

@keyframes blink {
    0%,
    100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* 高度なテクノロジーを感じさせるメッセージ表示 */
.front-page .typing-effect-container {
    position: relative;
    margin-bottom: 40px;
    background: rgba(52, 152, 219, 0.05);
    border-left: 3px solid #3498db;
    border-radius: 0 5px 5px 0;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.08);
}

.front-page .message-line {
    position: relative;
}

/* ターミナル風プレフィックス */
.front-page .message-prefix {
    color: #3498db;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
    font-family: "Roboto Mono", monospace;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1s forwards;
}

/* メインメッセージ */
.front-page .hero-message {
    font-size: 28px;
    color: #2c3e50;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.5;
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
    width: 0;
    animation: typing 3s steps(40, end) 1.5s forwards;
}

.front-page .hero-message p {
    display: inline;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* 強調テキスト */
.front-page .hero-message .strong {
    color: #3498db;
    font-weight: 500;
    position: relative;
    padding: 0 2px;
}

.front-page .hero-message .strong::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(52, 152, 219, 0.1);
    z-index: -1;
}

/* コマンド成功ステータス */
.front-page .command-status p {
    display: inline;
    margin: 0;
}

.front-page .command-status {
    font-size: 12px;
    color: #27ae60;
    font-family: "Roboto Mono", monospace;
    margin-top: 10px;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 4.5s forwards;
    display: inline-flex;
    align-items: center;
}

.front-page .command-status::before {
    content: "$ ";
    color: #3498db;
}

/* ステータスアイコン */
.front-page .command-status .status-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #27ae60;
    margin: 0 4px !important;
    animation: pulse 2s infinite;
}

/* アクションボタン */
.primary-button a {
    display: inline-block;
    padding: 16px 45px;
    color: #fff;
    background-color: #3498db;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    border-radius: 2px;
    font-weight: 500;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 5s forwards;
}

.primary-button a::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    width: 0%;
    height: 100%;
    background-color: #fff;
    z-index: -1;
    transition: width 0.3s;
}

.primary-button a:hover {
    color: #3498db;
    border-color: #3498db;
}

.primary-button a:hover::before {
    width: 100%;
}

/* テクノロジーラベル */
.front-page .tech-group {
    display: flex;
    gap: 40px;
    margin-top: 0;
}

.front-page .tech-label {
    font-size: 12px;
    letter-spacing: 0.2em;
    opacity: 0.7;
    color: #3498db;
    margin: 0;
}

/* スクロールインジケーター */
.front-page .scroll-indicator {
    display: flex;
    align-items: center;
}

.front-page .scroll-text {
    font-size: 10px;
    color: #3498db;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.front-page .scroll-text:after {
    content: "↓";
    margin-left: 10px;
    font-size: 14px;
    animation: bounce 2s infinite;
}

/* コーナー装飾 */
.front-page .corner-element {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 40px;
    height: 40px;
    border-top: 2px solid rgba(52, 152, 219, 0.4);
    border-right: 2px solid rgba(52, 152, 219, 0.4);
    z-index: 10;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 5.5s;
}

.front-page .hero-title {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.front-page .typing-effect-container {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.5s;
}

.front-page .top-bar,
.front-page .bottom-section {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 5.5s;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* レスポンシブ対応 */
@media (max-width: 1600px) {
    .front-page .hero-title {
        font-size: 90px;
    }

    .front-page .hero-message {
        font-size: 24px;
    }
}

@media (max-width: 1200px) {
    .front-page .hero-title {
        font-size: 80px;
    }

    .front-page .hero-message {
        font-size: 22px;
    }

    .front-page .typing-effect-container {
        padding: 15px;
    }
}

@media (max-width: 992px) {
    .front-page .hero-title {
        font-size: 60px;
    }

    .front-page .hero-message {
        font-size: 20px;
    }

    .primary-button a {
        padding: 12px 25px;
        font-size: 12px;
    }

    .front-page .tech-group {
        display: none;
    }

    .front-page .focus-area {
        background: radial-gradient(
            circle at 30% 50%,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.8) 30%,
            rgba(255, 255, 255, 0.5) 60%,
            rgba(255, 255, 255, 0.2) 100%
        );
    }
}

@media (max-width: 768px) {
    .front-page .hero-title {
        font-size: 48px;
    }

    .front-page .hero-message {
        font-size: 18px;
    }

    .front-page .top-bar {
        top: 40px;
    }

    .front-page .top-bar,
    .front-page .bottom-section {
        height: 60px;
        animation: none;
        opacity: 1;
    }

    .front-page .corner-element {
        display: none;
    }

    .front-page .focus-area {
        background: linear-gradient(
            to right,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.7) 60%,
            rgba(255, 255, 255, 0.3) 100%
        );
    }

    .front-page .typing-effect-container {
        padding: 15px 10px;
    }

    .front-page .message-prefix {
        font-size: 12px;
    }

    .front-page .command-status {
        font-size: 10px;
    }
}

/* ------------
    services
------------ */
.service-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 120px 0;
    /* background-color: rgba(52, 152, 219, 0.1); */
    background-color: #fff;
}
/* 
.service-section::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: #3498db;
    position: absolute;
    top: 0;
    left: 0;
} */

.service-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* セクションヘッダー */
.service-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 100px;
}

.service-header-left {
    flex: 1;
    min-width: 300px;
    padding-right: 50px;
}

/* サービスグリッド */
.service-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    grid-gap: 30px;
}

/* サービスカード */
.service-card {
    position: relative;
    padding: 40px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.service-card-main {
    grid-column: 1 / span 8;
    grid-row: 1 / span 1;
    background-color: #2c3e50;
    background-color: #3498db;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 350px;
}

.service-card-sub1 {
    grid-column: 9 / span 4;
    grid-row: 1 / span 1;
    border: 1px solid #ecf0f1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card-sub2 {
    grid-column: 4 / span 9;
    grid-row: 2 / span 1;
    border: 1px solid #ecf0f1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: -50px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(44, 62, 80, 0.1);
    z-index: 2;
}

/* サービスカードコンテンツ */
.service-content {
    position: relative;
    z-index: 1;
}

.service-card-main .service-content {
    padding-right: 40%;
}

/* サービス番号 */
.service-number {
    position: absolute;
    font-size: 120px;
    font-weight: 900;
    opacity: 0.05;
    z-index: 0;
}

.service-card-main .service-number {
    top: -30px;
    left: -20px;
    color: #fff;
}

.service-card-sub1 .service-number,
.service-card-sub2 .service-number {
    bottom: -30px;
    right: -10px;
    color: #3498db;
}

/* サービスアイコン */
.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 20px;
}

.service-card-main .service-icon {
    background-color: rgba(255, 255, 255, 0.1);
    /* color: #3498db; */
    color: #fff;
}

.service-card-sub1 .service-icon,
.service-card-sub2 .service-icon {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

/* サービスタイトル */
.service-title {
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.service-card-main .service-title {
    font-size: 36px;
    color: #fff;
}

.service-card-main .service-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.4);
}

.service-card-sub1 .service-title,
.service-card-sub2 .service-title {
    font-size: 24px;
    color: #2c3e50;
    padding-bottom: 15px;
}

.service-card-sub1 .service-title::after,
.service-card-sub2 .service-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #3498db;
}

/* サービス説明 */
.service-description {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-card-main .service-description {
    color: rgba(255, 255, 255, 0.8);
}

.service-card-sub1 .service-description,
.service-card-sub2 .service-description {
    color: #666;
}

/* サービスリンク */
.service-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.service-card-main .service-link {
    /* color: #3498db; */
    color: #fff;
}

.service-card-sub1 .service-link,
.service-card-sub2 .service-link {
    color: #3498db;
}

.service-link-arrow {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.service-card:hover .service-link-arrow {
    transform: translateX(8px);
}

/* 装飾 */
.decoration {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.decoration-1 {
    width: 200px;
    height: 200px;
    background-color: rgba(52, 152, 219, 0.05);
    top: -100px;
    right: -100px;
    border-radius: 0 50% 50% 50%;
    transform: rotate(45deg);
}

.decoration-2 {
    width: 10px;
    height: 10px;
    background-color: #3498db;
    top: 50%;
    left: -5px;
}

.decoration-3 {
    width: 50px;
    height: 2px;
    background-color: #3498db;
    bottom: 40px;
    right: 40px;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .section-header {
        flex-direction: column;
    }

    .section-header-left {
        width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .service-card-main,
    .service-card-sub1,
    .service-card-sub2 {
        grid-column: 1 / span 1;
        grid-row: auto;
        margin-top: 0;
    }

    .service-card-main .service-content {
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    .service-section {
        padding: 80px 0;
    }

    .service-card {
        padding: 30px;
    }

    .service-card-main .service-title {
        font-size: 28px;
    }
}

/* ---------------
    Why we exist 
------------------*/

.purpose-section.scrolled .section-eyebrow {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.purpose-section.scrolled .section-eyebrow {
    opacity: 1;
    transform: translateY(0);
}

.purpose-section {
    position: relative;
    padding: 120px 5%;
    background-color: #2c3e50;
    color: #fff;
    overflow: hidden;
}

.purpose-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    max-width: 1200px;
}

/* 左側コンテンツ */
.purpose-content {
    max-width: 600px;
}

.section-eyebrow {
    font-size: 16px;
    font-weight: 600;
    color: #3498db;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
    display: inline-block;
    position: relative;
}

.section-eyebrow::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #3498db;
}

/* .service-section .section-eyebrow {
    color: #fff;
}

.service-section .section-eyebrow::after {
    background-color: #fff;
} */

.section-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 40px;
}

.section-text {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.purpose-container .cta-btn a {
    display: inline-block;
    padding: 14px 40px;
    background-color: transparent;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border: 2px solid #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    z-index: 1;
}

.purpose-container .cta-btn a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #fff;
    transition: all 0.3s ease;
    z-index: -1;
}

.purpose-container .cta-btn a:hover {
    color: #2c3e50;
}

.purpose-container .cta-btn a:hover::before {
    width: 100%;
    left: 0;
}

/* 右側ビジュアル */
.purpose-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.circle-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
}

.circle {
    position: absolute;
    top: 5%;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(52, 152, 219, 0.3);
}

.circle-1 {
    animation: pulse 4s infinite;
}

.circle-2 {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border: 2px solid rgba(52, 152, 219, 0.5);
    animation: pulse 4s infinite 1s;
}

.circle-3 {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border: 2px solid rgba(52, 152, 219, 0.7);
    animation: pulse 4s infinite 2s;
}

.center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: #3498db;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.8);
}

.visual-text {
    position: absolute;
    color: #ecf0f1;
    font-weight: 700;
    letter-spacing: 1px;
}

.text-1 {
    top: 11%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
}

.text-2 {
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    font-size: 16px;
}

.text-3 {
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    font-size: 16px;
}

.text-4 {
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
}

/* 装飾エレメント */
.decoration {
    position: absolute;
    z-index: 1;
}

.abstract-shape {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background-color: rgba(52, 152, 219, 0.05);
    transform: rotate(45deg);
}

/* アニメーション */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .purpose-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .section-title {
        font-size: 36px;
    }

    .purpose-visual {
        order: -1;
        margin-bottom: 40px;
    }

    .circle-container {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 576px) {
    .purpose-section {
        padding: 80px 6%;
    }

    .section-title {
        font-size: 28px;
    }

    .section-text {
        font-size: 16px;
    }

    .circle-container {
        width: 250px;
        height: 250px;
    }
}

/* ---------
    Voice
--------- */
.voice-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.voice-eyebrow {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.voice-section.scrolled .voice-eyebrow {
    opacity: 1;
    transform: translateY(0);
}

.voice-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.voice-split-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: auto;
}

.text-column {
    width: 60%;
    padding-right: 50px;
}

.image-column {
    width: 40%;
    position: relative;
}

.mega-quote {
    position: absolute;
    top: -80px;
    left: -150px;
    font-size: 300px;
    color: rgba(236, 240, 241, 0.5);
    font-family: Georgia, serif;
    z-index: -1;
    opacity: 0;
    transition: all 1s ease 0.5s;
}

.voice-section.scrolled .mega-quote {
    /* animation: fadeIn 1s ease 0.5s forwards; */
    opacity: 1;
}

.intro-text {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #2c3e50;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.2s;
}

.voice-section.scrolled .intro-text {
    /* animation: fadeInUp 0.8s ease 0.2s forwards; */
    transform: translateY(0);
    opacity: 1;
}

.quote-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.4s;
}

.voice-section.scrolled .quote-text {
    /* animation: fadeInUp 0.8s ease 0.4s forwards; */
    transform: translateY(0);
    opacity: 1;
}

.ceo-info {
    margin: 0;
    padding-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.6s;
}

.voice-section.scrolled .ceo-info {
    /* animation: fadeInUp 0.8s ease 0.6s forwards; */
    transform: translateY(0);
    opacity: 1;
}

.ceo-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #2c3e50;
}

.ceo-title {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
    margin-bottom: 30px;
}

section#voice .cta-button a,
.page_404 .btn-secondary {
    display: inline-block;
    padding: 15px 40px !important;
    background-color: transparent;
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #3498db !important;
    transition: all 0.3s ease;
    border-radius: 0;
    z-index: 1;
    position: relative;
}

.page_404 .btn-secondary {
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

section#voice .cta-button a:hover,
.page_404 .btn-secondary:hover {
    color: #fff;
}

section#voice .cta-button a::before,
.page_404 .btn-secondary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #3498db;
    transition: width 0.3s ease;
    z-index: -1;
}

section#voice .cta-button a:hover::before,
.page_404 .btn-secondary:hover::before {
    width: 100%;
}

.animated-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease 0.6s;
}

.voice-section.scrolled .animated-image-container {
    /* animation: fadeInRight 0.8s ease 0.6s forwards; */
    transform: translateX(0);
    opacity: 1;
}

.diagonal-clip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 20%, 100% 80%, 0 100%);
    background-color: #2c3e50; /* プレースホルダー色 */
}

.ceo-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 20%, 100% 80%, 0 100%);
    background-color: #2c3e50; /* プレースホルダー色 */
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 20%, 100% 80%, 0 100%);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(44, 62, 80, 0));
    z-index: 2;
}

.image-overlay img {
    margin-left: 2em;
}

.background-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

.horizontal-line {
    position: absolute;
    left: 0;
    height: 1px;
    width: 100%;
    background-color: #3498db;
    transform: scaleX(0);
    transform-origin: left;
    animation: lineGrow 1.5s ease forwards;
}

.line-1 {
    top: 20%;
    animation-delay: 0.2s;
}
.line-2 {
    top: 40%;
    animation-delay: 0.4s;
}
.line-3 {
    top: 60%;
    animation-delay: 0.6s;
}
.line-4 {
    top: 80%;
    animation-delay: 0.8s;
}

.vertical-line {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: #3498db;
    transform: scaleY(0);
    transform-origin: top;
    animation: lineGrow 1.5s ease forwards;
}

.line-5 {
    left: 20%;
    animation-delay: 1s;
}
.line-6 {
    left: 40%;
    animation-delay: 1.2s;
}
.line-7 {
    left: 60%;
    animation-delay: 1.4s;
}
.line-8 {
    left: 80%;
    animation-delay: 1.6s;
}

/* アニメーション */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes lineGrow {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

@keyframes lineGrowVertical {
    0% {
        transform: scaleY(0);
    }
    100% {
        transform: scaleY(1);
    }
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .voice-split-layout {
        flex-direction: column-reverse;
    }

    .text-column {
        width: 100%;
        padding-right: 0;
        padding-top: 50px;
        margin-top: 50px;
    }

    .image-column {
        width: 100%;
    }

    .animated-image-container {
        height: 350px;
    }

    .mega-quote {
        top: -40px;
        left: -50px;
        font-size: 200px;
    }

    .intro-text {
        font-size: 24px;
    }
}

/* ---------
    NEWS
--------- */

.news-section {
    position: relative;
    width: 100%;
    padding: 100px 0;
    background-color: #fff;
}

.news-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* セクションヘッダー */
.news-header {
    margin-bottom: 60px;
    position: relative;
}

/* ニュースリスト */
.news-list {
    width: 100%;
}

.news-item li {
    padding: 30px 0;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.news-item li:hover {
    transform: translateX(10px);
}

@media screen and (max-width: 768px) {
    .news-item li {
        display: block;
    }
}

.news-meta {
    flex: 0 0 180px;
    margin-right: 30px;
}

.news-meta .wp-block-post-date {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.news-meta .wp-block-post-terms {
    display: inline-block;
    font-size: 12px;
    padding: 4px 12px;
    margin: 0;
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border-radius: 2px;
    max-width: calc(100% - 8em);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-content {
    flex: 1;
}

.news-content .wp-block-post-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.news-item li:hover .wp-block-post-title {
    color: #3498db;
}

.news-item .wp-block-post-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #7f8c8d;
    margin: 0;
}

.news-more {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
    color: #3498db;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.news-more:hover {
    color: #2980b9;
}

.news-more-arrow {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.news-more:hover .news-more-arrow {
    transform: translateX(5px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }

    .news-meta {
        flex: 0 0 auto;
        margin-right: 0;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
    }

    .news-meta .wp-block-post-date {
        margin-bottom: 0;
        margin-right: 15px;
    }
}

/* ---------
    Footer
--------- */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 2em 5%;
    text-align: center;
}

footer h2 {
    font-weight: bold;
    margin-bottom: 0.5em;
    position: relative;
    margin-bottom: 40px;
    font-size: 1.8rem;
}

footer h2::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #3498db;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    text-decoration: underline;
    color: #3498db !important;
}

footer .footer_nav.wp-block-navigation .wp-block-navigation-item {
    display: block;
}

.wp-site-blocks > footer .footer_nav {
    align-items: flex-start;
    justify-content: center;
    margin-top: 20px;
    font-weight: bold;
}

.wp-site-blocks > footer .footer_nav .wp-block-navigation__submenu-container {
    position: static;
    height: auto;
    width: auto;
    display: inline-block;
    opacity: 1;
    visibility: visible;
    padding-left: 1em;
    color: inherit;
    background-color: inherit;
    border: none;
    min-width: auto !important;
}

.wp-site-blocks > footer .footer_nav .wp-block-navigation__submenu-container:hover {
    min-width: auto;
}

.wp-site-blocks > footer .footer_nav .wp-block-navigation__submenu-container li {
    display: flex;
}

.wp-site-blocks > footer .footer_nav .wp-block-navigation__submenu-container li::before {
    content: "";
    height: 2px;
    display: inline-block;
    width: 0.5em;
    margin-right: 0.25em;
    background: #fff;
}

.wp-site-blocks > footer .footer_nav.footer_nav_small {
    margin: 0.5em 1em 1em;
    font-size: 14px;
}

footer .copyright {
    opacity: 0.6;
}

@media screen and (max-width: 750px) {
    .wp-site-blocks > footer .footer_nav {
        display: block;
    }

    .wp-site-blocks > footer .footer_nav > li {
        margin-bottom: 1em;
    }
}

iframe {
    width: 100%;
}
