/*
Theme Name: Tsubomi Corporate Remake
Theme URI: https://www.tsubomi-inc.co.jp/
Author: Tsubomi Inc.
Author URI: https://www.tsubomi-inc.co.jp/
Description: 株式会社蕾の完全再現テーマ - Tailwind風デザイン with アニメーション
Version: 2.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tsubomi-remake
Tags: custom-menu, custom-logo, featured-images, responsive-design, corporate, animation
*/

/* ==========================================================================
   リセット & ベーススタイル
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 10px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', Meiryo, sans-serif;
    font-size: 1.6rem;
    line-height: 1.8;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ==========================================================================
   ユーティリティクラス（Tailwind風）
   ========================================================================== */

.relative { position: relative; }
.absolute { position: absolute; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.w-fit { width: fit-content; }
.w-full { width: 100%; }
.bg-black { background-color: #000; }
.bg-white { background-color: #fff; }
.text-white { color: #fff; }
.text-black { color: #000; }
.font-bold { font-weight: 600; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.1em; }

/* 黄色のグラデーションテキスト */
.tsubomi-yellow {
    color: #FFD700;
}

.philosophy-text-gradient-yellow {
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
}

/* 縦書きテキスト */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 4rem;
    width: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.main-navigation a {
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.4;
}

.main-navigation a:hover {
    opacity: 0.6;
}

.main-navigation small {
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ==========================================================================
   ヒーローセクション
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f5f5f5;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 2rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-title-en {
    font-size: clamp(3rem, 8vw, 9rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 3rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero-title-ja {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.3em;
}

/* ==========================================================================
   理念セクション（完全再現）
   ========================================================================== */

.philosophy-section {
    position: relative;
    padding: 4.5rem 0;
    background: #fff;
}

/* 巨大な縦書き背景テキスト */
.philosophy-bg-text {
    position: absolute;
    writing-mode: vertical-rl;
    text-orientation: upright;
    top: 52px;
    right: 15px;
    font-size: 8.2rem;
    font-weight: 600;
    line-height: 7.5rem;
    letter-spacing: 1.9px;
    z-index: 0;
    pointer-events: none;
}

/* 見出しボックス（黒背景・白文字） */
.philosophy-title-box {
    margin-left: 0.8rem;
    margin-bottom: 2.5rem;
    padding: 0.6rem;
    background: #000;
    color: #fff;
    width: fit-content;
    position: relative;
    z-index: 1;
}

.philosophy-title-box h2 {
    font-size: 4.5rem;
    font-weight: 600;
    line-height: 4.1rem;
    letter-spacing: 1px;
}

.philosophy-title-box .small-char {
    font-size: 3.8rem;
}

/* コンテンツエリア */
.philosophy-content {
    margin-bottom: 2.8rem;
    padding: 0 1.5rem;
    font-size: 1.4rem;
    line-height: 2.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.philosophy-content > div {
    margin-bottom: 2.6rem;
}

.philosophy-lead {
    margin-bottom: 1.8rem;
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 3.3rem;
    letter-spacing: 1px;
    color: #FFD700;
}

.philosophy-highlight {
    font-size: 2.1rem;
    font-weight: 600;
    line-height: 3.3rem;
    letter-spacing: 1px;
    color: #FFD700;
}

/* View Moreボタン */
.view-more-btn {
    margin-left: 1.5rem;
    display: flex;
    width: 197px;
    height: 47px;
    align-items: center;
    justify-content: center;
    border: 1.51px solid #000;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.8rem;
    letter-spacing: 0.9px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.view-more-btn:hover {
    background: #000;
    color: #fff;
}

.view-more-btn svg {
    margin-left: auto;
    width: 24px;
    height: 24px;
}

/* アニメーション用クラス */
.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: calc(var(--index) * 0.03s);
}

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

.scrollTrigger.isActive .char {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: calc(var(--index) * 0.03s);
}

/* ==========================================================================
   サービスセクション
   ========================================================================== */

.service-section {
    padding: 8rem 0;
    background: #f8f8f8;
}

.service-section .section-title {
    text-align: center;
    margin-bottom: 6rem;
}

.service-section .section-title-en {
    font-size: clamp(3rem, 6vw, 7rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
}

.service-section .section-title-ja {
    font-size: 1.6rem;
    letter-spacing: 0.3em;
    color: #666;
}

.service-heading {
    font-size: clamp(3rem, 5vw, 6rem);
    font-weight: 500;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 0.1em;
}

.service-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    font-size: 1.6rem;
    line-height: 2.2;
    font-weight: 500;
}

/* ==========================================================================
   事例セクション
   ========================================================================== */

.case-section {
    position: relative;
    padding: 8rem 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
}

.case-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.case-section .container {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   メンバーセクション（Swiper版）
   ========================================================================== */

.member-section {
    padding: 8rem 0;
    background: #fff;
    overflow: hidden;
}

/* Swiper カスタムスタイル */
.member-swiper {
    width: 100%;
    padding: 2rem 0;
}

.member-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

.member-swiper .swiper-slide {
    width: 158px !important;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .member-swiper .swiper-slide {
        width: 270px !important;
    }
}

/* メンバーカード */
.member-card-wrapper {
    position: relative;
    width: 158px;
    height: 226px;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* メンバーカードオーバーレイ */
.member-card-overlay {
    position: absolute;
    bottom: 15px;
    right: 10.7px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.member-card-name {
    font-size: 1.3rem;
    line-height: 1.47rem;
    letter-spacing: 0.6px;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.member-card-position {
    font-size: 0.7rem;
    line-height: 1.47rem;
    letter-spacing: 0.6px;
    opacity: 0.8;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .member-card-wrapper {
        width: 270px;
        height: 389px;
    }
    
    .member-card-overlay {
        bottom: 20px;
        right: 18px;
    }
    
    .member-card-name {
        font-size: 2.1rem;
        line-height: 2.5rem;
    }
    
    .member-card-position {
        font-size: 1.5rem;
        line-height: 2.5rem;
    }
}

/* ==========================================================================
   ニュースセクション
   ========================================================================== */

.news-section {
    padding: 8rem 0;
    background: #f8f8f8;
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: #fff;
    padding-left: 2rem;
    padding-right: 2rem;
    margin: 0 -2rem;
}

.news-date {
    flex-shrink: 0;
    font-size: 1.4rem;
    color: #999;
    min-width: 100px;
}

.news-title {
    font-size: 1.8rem;
    font-weight: 500;
}

/* ==========================================================================
   お問い合わせセクション
   ========================================================================== */

.contact-section {
    position: relative;
    padding: 8rem 0;
    background-size: cover;
    background-position: center;
    text-align: center;
    color: #fff;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-button {
    display: inline-block;
    margin-top: 4rem;
    padding: 2rem 6rem;
    background: #fff;
    color: #333;
    border-radius: 50px;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background: #333;
    color: #fff;
}

/* ==========================================================================
   フッター
   ========================================================================== */

.site-footer {
    background: #222;
    color: #fff;
    padding: 8rem 0 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
}

.footer-brand {
    text-align: center;
    margin-bottom: 6rem;
}

.footer-tagline {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-tagline-ja {
    font-size: 1.6rem;
    letter-spacing: 0.2em;
    opacity: 0.8;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer-nav-section h4 {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.footer-nav-section ul {
    list-style: none;
}

.footer-nav-section li {
    margin-bottom: 1.2rem;
}

.footer-nav-section a {
    font-size: 1.4rem;
    opacity: 0.8;
}

.footer-nav-section a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3rem;
    margin-top: 6rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-bottom a {
    font-size: 1.3rem;
    opacity: 0.7;
}

.copyright {
    width: 100%;
    text-align: center;
    margin-top: 3rem;
    font-size: 1.3rem;
    opacity: 0.5;
}

/* ==========================================================================
   コンテナ
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title-en {
    font-size: clamp(3rem, 6vw, 7rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
}

.section-title-ja {
    font-size: 1.6rem;
    letter-spacing: 0.3em;
    color: #666;
}

/* ==========================================================================
   レスポンシブ（タブレット以上）
   ========================================================================== */

@media (min-width: 768px) {
    .philosophy-section {
        padding: 12rem 0;
    }
    
    .philosophy-bg-text {
        top: 113px;
        right: 144px;
        font-size: 17rem;
        line-height: 15rem;
        letter-spacing: 3.9px;
    }
    
    .philosophy-title-box {
        margin-left: 12.6rem;
        margin-bottom: 4.5rem;
        padding: 1.5rem;
    }
    
    .philosophy-title-box h2 {
        font-size: 9.4rem;
        line-height: 9.2rem;
    }
    
    .philosophy-title-box .small-char {
        font-size: 8rem;
    }
    
    .philosophy-content {
        margin-bottom: 8rem;
        padding-left: 14.3rem;
        font-size: 2rem;
        line-height: 4.4rem;
    }
    
    .philosophy-content > div {
        margin-bottom: 4.8rem;
    }
    
    .philosophy-lead {
        margin-bottom: 3.2rem;
        font-size: 4rem;
        line-height: 6rem;
    }
    
    .philosophy-highlight {
        font-size: 4rem;
        line-height: 7.5rem;
    }
    
    .view-more-btn {
        margin-left: 14.3rem;
        width: 215px;
        height: 53px;
        font-size: 1.8rem;
    }
    
    .hidden-mobile {
        display: none;
    }
    
    .tab\:block {
        display: block !important;
    }
}

/* ==========================================================================
   レスポンシブ（モバイル）
   ========================================================================== */

@media (max-width: 767px) {
    .header-container {
        padding: 1.5rem 2rem;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 2rem;
    }
    
    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .main-navigation a {
        display: block;
        padding: 1.5rem 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .tab\:block {
        display: none !important;
    }
}
