/* トキンファクトリー - Professional Grade CSS */
/* Professional typography and design system styles */

/* Custom text shadows for professional depth */
.text-shadow-subtle {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.text-shadow-strong {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Smooth font rendering */
.font-smooth {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* TCD-inspired minimal hero background */
.hero-bg {
    background: linear-gradient(135deg, #1a1a1a 0%, #27272a 100%);
    position: relative;
}

/* Modern geometric pattern overlay */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(229, 62, 62, 0.1) 50%, transparent 60%);
    z-index: 1;
}

/* Sticky header with proper z-index */
.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

/* Ensure content sections are visible */
section {
    position: relative;
    z-index: 10;
}

/* Scroll animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Logo transparency and optimization */
.logo-transparent {
    background: transparent;
    mix-blend-mode: multiply;
    filter: contrast(1.2) brightness(1.1);
}

/* Logo rotation animation - レコードのような回転 */
@keyframes logo-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.logo-spin {
    animation: logo-spin 6s linear infinite;
}

.logo-spin:hover {
    animation-duration: 2s;
}

/* ブルッと震えながらズームするアニメーション */
@keyframes button-shake-zoom {
    0% { transform: scale(1) translateX(0); }
    10% { transform: scale(1.02) translateX(-2px) translateY(-1px); }
    20% { transform: scale(1.03) translateX(2px) translateY(1px); }
    30% { transform: scale(1.04) translateX(-1px) translateY(-2px); }
    40% { transform: scale(1.05) translateX(1px) translateY(2px); }
    60% { transform: scale(1.05) translateX(-1px) translateY(1px); }
    80% { transform: scale(1.05) translateX(1px) translateY(-1px); }
    100% { transform: scale(1.05) translateX(0); }
}

/* Button styles - 緑色ボタン（左右ラウンド） */
.btn-green {
    background-color: #22c55e;
    color: white;
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-green:hover {
    background-color: #16a34a;
    animation: button-shake-zoom 0.2s ease-out forwards;
}

.btn-green-outline {
    background-color: white;
    color: #22c55e;
    border: 2px solid #22c55e;
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-green-outline:hover {
    background-color: #f0fdf4;
    animation: button-shake-zoom 0.2s ease-out forwards;
}

/* トップに戻るボタン専用スタイル（エフェクトなし） */
#back-to-top {
    background-color: #22c55e;
    color: white;
    border-radius: 50px;
}

#back-to-top:hover {
    background-color: #16a34a;
    animation: none !important;
}

#back-to-top::before {
    display: none !important;
}

/* キラリと光るアニメーション - 記事を参考に改良 */
@keyframes button-shine {
    0% { 
        left: -20%; 
    }
    10% { 
        left: 120%; 
    }
    100% { 
        left: 120%; 
    }
}

.btn-green::before,
.btn-green-outline::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -20%;
    width: 40px;
    height: 120%;
    transform: scale(2) rotate(20deg);
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 90%);
    animation: button-shine 4s ease-in-out infinite;
    animation-delay: 2s;
}

.btn-green:hover::before,
.btn-green-outline:hover::before {
    animation-duration: 0.8s;
    animation-delay: 0s;
}



/* Page Content Styled - 美しい見出しデザイン */
.page-content-styled h1, 
.page-content-styled h2, 
.page-content-styled h3, 
.page-content-styled h4, 
.page-content-styled h5, 
.page-content-styled h6 {
    color: #1f2937;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-family: 'Noto Sans JP', sans-serif;
}

.page-content-styled h1 {
    font-size: 2.5rem;
    color: #e53e3e;
    border-bottom: 3px solid #e53e3e;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    margin-top: 0;
}

.page-content-styled h2 {
    font-size: 2rem;
    color: #1f2937;
    position: relative;
    padding-left: 1.5rem;
    margin-top: 3rem;
}

.page-content-styled h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #e53e3e, #c53030);
    border-radius: 2px;
}

.page-content-styled h3 {
    font-size: 1.5rem;
    color: #374151;
    border-left: 4px solid #e53e3e;
    padding-left: 1rem;
    background-color: #f9fafb;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    margin-top: 2rem;
    border-radius: 0 4px 4px 0;
}

.page-content-styled h4 {
    font-size: 1.25rem;
    color: #4b5563;
    font-weight: 600;
    margin-top: 1.5rem;
}

.page-content-styled h5 {
    font-size: 1.125rem;
    color: #6b7280;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.page-content-styled h6 {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* リスト項目のスタイリング */
.page-content-styled ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.page-content-styled ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.page-content-styled ul li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: #e53e3e;
    font-size: 0.8rem;
    top: 0.2rem;
}

/* 段落のスタイリング */
.page-content-styled p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #374151;
    font-size: 1rem;
}

/* 強調テキスト */
.page-content-styled strong {
    color: inherit;
    font-weight: 700;
}

/* 区切り線 */
.page-content-styled hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, #e53e3e, transparent);
    margin: 3rem 0;
}

/* テーブルスタイル */
.page-content-styled table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.page-content-styled th,
.page-content-styled td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.page-content-styled th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e53e3e;
}

.page-content-styled tr:hover {
    background-color: #f9fafb;
}

/* 連絡先情報のスタイリング */
.page-content-styled blockquote {
    background-color: #f9fafb;
    border-left: 4px solid #e53e3e;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 4px 4px 0;
}

.page-content-styled blockquote p {
    margin: 0;
    font-style: normal;
}

/* ===== 固定ページ汎用スタイル ===== */

/* Basic Card Component */
.page-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.page-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Enhanced Card with stronger hover effect */
.page-card-enhanced {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.page-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Comparison Table Component */
.comparison-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.comparison-table th {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 1.5rem 1rem;
    border: none;
}

.comparison-table th.primary-column {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.comparison-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

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

.comparison-table tr:nth-child(even) {
    background-color: #f9fafb;
}

.comparison-table tr:hover {
    background-color: #f3f4f6;
}

/* FAQ Component */
.faq-item {
    transition: all 0.3s ease;
    border: 1px solid transparent;
    border-radius: 8px;
}

.faq-item:hover {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    transform: translateY(-1px);
}

/* Step Process Component */
.process-step {
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
}

.process-step .step-number {
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

/* Glass Effect Cards */
.glass-card {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.glass-card:hover {
    transform: translateY(-4px);
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Responsive Table Wrapper */
.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .table-responsive table {
        min-width: 600px;
    }
}

/* Icon Animations */
.fas, .far {
    transition: all 0.3s ease;
}

.faq-item:hover .fas {
    transform: scale(1.1);
    color: #dc2626;
}

.page-card:hover .fas,
.page-card-enhanced:hover .fas {
    transform: scale(1.2);
}

/* Button with Shine Effect */
.btn-with-shine {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-with-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-with-shine:hover::before {
    left: 100%;
}

/* Underline Animation */
.text-underline-animated {
    position: relative;
}

.text-underline-animated::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.text-underline-animated:hover::after {
    transform: scaleX(1);
}

/* Content Section Spacing */
.page-section {
    padding: 4rem 0;
}

.page-section-compact {
    padding: 2rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-section {
        padding: 2rem 0;
    }
    
    .page-section-compact {
        padding: 1.5rem 0;
    }
    
    .page-card,
    .page-card-enhanced {
        margin-bottom: 1rem;
    }
}
