/*
Theme Name: SPACE NTK
Theme URI: https://space-ntk.com/
Author: SPACE NTK
Author URI: https://space-ntk.com/
Description: SPACE NTK - 宇宙葬・宇宙SOHサービスの公式サイト用カスタムテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: space-ntk
*/

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

body {
    font-family: 'Hiragino Sans', 'Yu Gothic', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 1rem;
    background: transparent;
    backdrop-filter: none;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img,
.logo .custom-logo-link img,
.logo .custom-logo {
    height: 40px;
    width: auto;
    max-height: 40px;
}

/* WordPress カスタムロゴのスタイル調整 */
.custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.custom-logo-link img {
    height: 40px;
    width: auto;
    max-height: 40px;
}

nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

nav li {
    position: relative;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.7;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.6rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    min-width: 160px;
    padding: 0.5rem 0;
    border-radius: 8px;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(10px);
        transition: right 0.3s ease-in-out;
        padding-top: 80px;
        z-index: 999;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav a,
    .dropdown-toggle {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .dropdown-toggle::after {
        position: absolute;
        right: 1.5rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0;
        padding: 0;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .dropdown.active .dropdown-menu {
        max-height: 300px;
    }

    .dropdown-menu a {
        padding: 0.8rem 2.5rem;
        font-size: 0.9rem;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: url('images/hero_bgd.jpg') center center / cover no-repeat;
}

/* Gradient overlay for seamless transition */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 50%, #000 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-family: 'YuMincho', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeInText 2s ease-in-out 1.5s forwards;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.9),
        0 0 10px rgba(255, 255, 255, 0.7),
        0 3px 4px rgba(0, 0, 0, 0.9),
        0 2px 2px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-family: 'YuMincho', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    opacity: 0;
    animation: fadeInText 2s ease-in-out 2.5s forwards;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8),
        0 0 8px rgba(255, 255, 255, 0.6),
        0 2px 3px rgba(0, 0, 0, 0.8),
        0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Dark screen animation */
.dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10;
    animation: fadeOutDark 0.5s ease-in-out 1.5s forwards;
}

/* Stars animation */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: fadeInStars 2s ease-in-out 3.5s forwards;
    z-index: 1;
}

.star {
    position: absolute;
    border-radius: 50%;
}

.star-large {
    width: 6px;
    height: 6px;
    animation: twinkleBright 2s ease-in-out infinite, float 20s ease-in-out infinite;
}

.star-medium {
    width: 3px;
    height: 3px;
    animation: twinkleNormal 3s ease-in-out infinite, float 20s ease-in-out infinite;
}

.star-small {
    width: 1.5px;
    height: 1.5px;
    animation: twinkleSoft 4s ease-in-out infinite, float 20s ease-in-out infinite;
}

.star-white {
    background: #fff;
}

.star-white.star-large {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9),
        0 0 15px rgba(255, 255, 255, 0.7);
}

.star-white.star-medium {
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}

.star-blue {
    background: #c5e3f6;
}

.star-blue.star-large {
    box-shadow: 0 0 10px rgba(197, 227, 246, 0.9),
        0 0 15px rgba(197, 227, 246, 0.7);
}

.star-blue.star-medium {
    box-shadow: 0 0 6px rgba(197, 227, 246, 0.7);
}

.star-gold {
    background: #f4e4c1;
}

.star-gold.star-large {
    box-shadow: 0 0 12px rgba(244, 228, 193, 1),
        0 0 18px rgba(244, 228, 193, 0.8);
}

.star-gold.star-medium {
    box-shadow: 0 0 8px rgba(244, 228, 193, 0.8);
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, -30px);
    }
    50% {
        transform: translate(-15px, 20px);
    }
    75% {
        transform: translate(30px, 10px);
    }
}

@keyframes fadeOutDark {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fadeInText {
    to {
        opacity: 1;
    }
}

@keyframes fadeInStars {
    to {
        opacity: 1;
    }
}

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

@keyframes twinkleNormal {
    0%,
    100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes twinkleSoft {
    0%,
    100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes cardTwinkle {
    0%,
    100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.8;
    }
}

/* Services Section */
.services {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1rem;
    position: relative;
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    position: relative;
    background: rgba(0, 10, 20, 0.6);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s;
    overflow: visible;
    animation: cardFloat 4s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.service-card:nth-child(2) {
    animation-delay: 1.3s;
}

.service-card:nth-child(3) {
    animation-delay: 2.6s;
}

@keyframes cardFloat {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.service-card:hover {
    transform: translateY(-20px);
}

/* Orbital white frame */
.orbital-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 120%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: rotateOrbital 4s linear infinite;
}

@keyframes rotateOrbital {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.orbital-line {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(255, 255, 255, 1),
        0 0 36px rgba(255, 255, 255, 0.8),
        0 0 54px rgba(255, 255, 255, 0.6);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Hide other lines - only use one */
.orbital-right,
.orbital-bottom,
.orbital-left {
    display: none;
}

.service-card:nth-child(2) .orbital-frame {
    animation-delay: 1.3s;
}

/* Card inner stars */
.card-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.card-star {
    position: absolute;
    width: 1px;
    height: 1px;
    background: #fff;
    border-radius: 50%;
    animation: cardTwinkle 2s ease-in-out infinite;
}

.service-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 2;
    text-shadow: 0 6px 12px rgba(0, 0, 0, 0.8),
        0 3px 6px rgba(0, 0, 0, 0.6),
        0 1px 3px rgba(0, 0, 0, 0.4);
}

.service-card p {
    color: #ccc;
    line-height: 1.8;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7),
        0 2px 4px rgba(0, 0, 0, 0.5);
}

/* YouTube Section */
.youtube-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1rem;
    text-align: center;
}

.youtube-section h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
}

.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.youtube-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 10, 20, 0.6);
}

.youtube-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.youtube-channel-link {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: rgba(255, 0, 0, 0.8);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.youtube-channel-link:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    background: rgba(255, 0, 0, 1);
}

@media (max-width: 768px) {
    .youtube-grid {
        grid-template-columns: 1fr;
    }
}

/* News Section */
.news {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1rem;
}

.news h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.news-item {
    border-bottom: 1px solid #333;
    padding: 1.5rem 0;
}

.news-item a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.news-item a:hover {
    opacity: 0.7;
}

.news-date {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1rem;
}

/* CTA Section */
.cta {
    text-align: center;
    padding: 5rem 1rem;
    background: transparent;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 3rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-info {
    margin-bottom: 2rem;
    color: #999;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* SNS Links */
.footer-sns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-sns a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-sns a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-sns svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.copyright {
    color: #666;
    font-size: 0.85rem;
}

/* ========================================
   Page Specific Styles - About Page
   ======================================== */

/* Page Hero (for subpages) */
.page-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #000 0%, #0a1628 50%, #000 100%);
    padding-top: 80px;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Company Info Section */
.company-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 5rem 1rem;
}

.company-section h2 {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 0.1em;
}

/* Info Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-table th,
.info-table td {
    padding: 1.5rem 1rem;
    text-align: left;
    vertical-align: top;
}

.info-table th {
    width: 30%;
    color: #999;
    font-weight: normal;
}

.info-table td {
    color: #fff;
}

@media (max-width: 768px) {
    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
        padding: 0.8rem 0;
    }

    .info-table th {
        padding-bottom: 0.3rem;
    }

    .info-table tr {
        padding: 1rem 0;
        display: block;
    }
}

/* Officers Section */
.officers-section {
    background: rgba(255, 255, 255, 0.02);
    padding: 5rem 0;
}

.officers-section h2 {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 0.1em;
}

.officers-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.officer-detail {
    background: rgba(0, 10, 20, 0.4);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.officer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 2rem;
}

.officer-info {
    flex: 1;
}

.officer-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.officer-title {
    color: #999;
    font-size: 0.9rem;
}

.officer-photo {
    flex-shrink: 0;
}

.officer-photo img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.officer-bio {
    color: #ccc;
    line-height: 1.8;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .officer-header {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .officer-photo img {
        width: 150px;
        height: 150px;
    }
}

/* ========================================
   Page Specific Styles - Space Funeral
   ======================================== */

/* Service Hero with background image */
.service-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    padding-top: 80px;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.service-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.service-hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.service-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.8);
}

/* Content Sections */
.content-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 5rem 1rem;
}

.content-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 0.1em;
}

.content-section p {
    color: #ccc;
    line-height: 2;
    margin-bottom: 1.5rem;
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(0, 10, 20, 0.4);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #ccc;
    line-height: 1.8;
}

/* Price Table */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.price-table th,
.price-table td {
    padding: 1.5rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-table th {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.price-table td {
    color: #ccc;
}

/* ========================================
   Contact Form Styles (Contact Form 7)
   ======================================== */

.contact-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 1rem;
}

.contact-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
}

.wpcf7 input[type="submit"] {
    display: inline-block;
    padding: 1rem 3rem;
    background: #fff;
    color: #000;
    border: none;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.wpcf7 input[type="submit"]:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.wpcf7 label {
    color: #ccc;
    display: block;
    margin-bottom: 0.5rem;
}

/* ========================================
   Scroll Progress Indicator
   ======================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #fff, #c5e3f6);
    z-index: 9999;
    transition: width 0.1s ease-out;
}
