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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #2d2d2d;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header Styles */
.header {
    background: #1a1a1a;
    padding: 20px 0;
    border-bottom: 2px solid #555555;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;
    box-sizing: border-box;
}

.header-content {
    display: flex;
    align-items: center;
    position: relative;
}

.hamburger-menu {
    flex-shrink: 0;
}

.logo {
    flex: 1;
    text-align: center;
    overflow: hidden;
    margin: 0 20px;
}

.logo h1 {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #4CAF50;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-content {
    position: relative;
    max-width: 600px;
    margin: 100px auto 0;
    padding: 20px 20px 40px;
    height: calc(100vh - 100px);
    overflow-y: auto;
    box-sizing: border-box;
}

.close-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    z-index: 1003;
}

.nav-header h2 {
    color: #66BB6A;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #66BB6A;
    padding-bottom: 15px;
}

.nav-menu {
    list-style: none;
}

.nav-menu > li {
    margin-bottom: 15px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-link:hover {
    background: rgba(76, 175, 80, 0.2);
    border-left-color: #66BB6A;
    color: #66BB6A;
}

.nav-submenu {
    margin-top: 20px;
}

.submenu-title {
    color: #e0e0e0;
    font-size: 16px;
    font-weight: bold;
    display: block;
    padding: 10px 20px;
    border-bottom: 1px solid #555555;
    margin-bottom: 10px;
}

.submenu {
    list-style: none;
    padding-left: 20px;
}

.submenu .nav-link {
    font-size: 16px;
    padding: 8px 15px;
    color: #e0e0e0;
}

.submenu .nav-link:hover {
    color: #66BB6A;
    background: rgba(76, 175, 80, 0.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background-image: url('./images/hero-section/hero-background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.8) 0%,
        rgba(45, 45, 45, 0.7) 50%,
        rgba(26, 26, 26, 0.9) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    color: #ffffff;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.7em;
    font-weight: bold;
    margin-left: 15px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #66BB6A;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    color: #f5f5f5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: #ffffff;
    border: none;
    padding: 18px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    text-decoration: none;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.6);
    background: linear-gradient(135deg, #66BB6A, #4CAF50);
}

.hero-cta svg {
    transition: transform 0.3s ease;
}

.hero-cta:hover svg {
    transform: translateX(5px);
}

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

/* Main Content */
.main {
    padding: 40px 0;
    min-height: calc(100vh - 120px);
}


.intro-section {
    margin-bottom: 40px;
}

.intro-text {
    color: #f5f5f5;
    font-size: 16px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Site List Styles */
.site-list {
    max-width: 900px;
    margin: 0 auto;
}

.site {
    padding: 30px 0;
}

.site h3 {
    color: #66BB6A;
    font-size: 22px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #66BB6A;
}

.site-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 1px solid #555555;
}

.site p {
    color: #f5f5f5;
    margin-bottom: 12px;
    line-height: 1.7;
}

.site ul {
    list-style: none;
    margin-top: 15px;
}

.site li {
    color: #e0e0e0;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.site li::before {
    content: "▶";
    color: #66BB6A;
    position: absolute;
    left: 0;
    top: 0;
}

/* Link Styles */
a {
    color: #66BB6A;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #81C784;
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

/* URL links with underline */
.site p a, .tool p a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.site p a:hover, .tool p a:hover {
    text-decoration-thickness: 2px;
}

a[target="_blank"] {
    position: relative;
}

a[target="_blank"]:after {
    content: " ↗";
    font-size: 12px;
    opacity: 0.7;
}

/* Download Tools Section */
.download-tools {
    max-width: 900px;
    margin: 40px auto 0;
    padding-top: 40px;
    border-top: 2px solid #555555;
}

@media (max-width: 768px) {
    .download-tools {
        margin: 30px auto 0;
        padding-top: 30px;
    }
}

@media (max-width: 480px) {
    .download-tools {
        margin: 20px auto 0;
        padding-top: 20px;
    }
}

.download-tools h2 {
    color: #66BB6A;
    font-size: 24px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #66BB6A;
}

.download-tools > p {
    color: #f5f5f5;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.tool {
    padding: 25px 0;
    border-bottom: 1px solid #444444;
}

.tool:last-child {
    border-bottom: none;
}

.tool h3 {
    color: #66BB6A;
    font-size: 20px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #555555;
}

.tool p {
    color: #f5f5f5;
    margin-bottom: 10px;
    line-height: 1.7;
}

.tool ul {
    list-style: none;
    margin-top: 12px;
}

.tool li {
    color: #e0e0e0;
    margin-bottom: 6px;
    padding-left: 15px;
    position: relative;
    font-size: 14px;
}

.tool li::before {
    content: "▶";
    color: #66BB6A;
    position: absolute;
    left: 0;
    top: 0;
}

/* Caution Section */
.caution-section {
    max-width: 900px;
    margin: 40px auto 0;
    padding-top: 40px;
    border-top: 2px solid #ff8a8a;
}

@media (max-width: 768px) {
    .nav-content {
        padding: 20px 15px 20px;
        height: calc(100vh - 90px);
        margin-top: 90px;
    }
    
    .caution-section {
        margin: 30px auto 0;
        padding-top: 30px;
    }
    
    .caution-section h2 {
        font-size: 20px;
    }
    
    .caution-item h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .caution-section {
        margin: 20px auto 0;
        padding-top: 20px;
    }
    
    .caution-section h2 {
        font-size: 18px;
    }
    
    .caution-item {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .caution-item h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .caution-item li {
        font-size: 13px;
        margin-bottom: 8px;
        padding-left: 18px;
    }
    
    .safety-checklist {
        padding: 20px;
        margin-top: 20px;
    }
    
    .safety-checklist h3 {
        font-size: 18px;
    }
    
    .checklist li {
        font-size: 13px;
        padding-left: 20px;
    }
}

.caution-section h2 {
    color: #ff8a8a;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff8a8a;
    display: flex;
    align-items: center;
}

.caution-section h2::before {
    content: "⚠️";
    margin-right: 10px;
    font-size: 28px;
}

.caution-item {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    border-left: 4px solid #ff8a8a;
}

.caution-item h3 {
    color: #ff8a8a;
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 107, 107, 0.3);
}

.caution-item ul {
    list-style: none;
    margin-bottom: 15px;
}

.caution-item li {
    color: #f5f5f5;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.7;
}

.caution-item li::before {
    content: "⚠️";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 14px;
}

.reference {
    color: #e0e0e0;
    font-size: 14px;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 107, 107, 0.2);
}

.reference a {
    color: #66BB6A;
    text-decoration: underline;
}

.reference a:hover {
    color: #81C784;
}

/* Safety Checklist */
.safety-checklist {
    margin-top: 30px;
    padding: 25px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    border-left: 4px solid #66BB6A;
}

.safety-checklist h3 {
    color: #66BB6A;
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
}

.safety-checklist h3::before {
    content: "✅";
    margin-right: 10px;
    font-size: 20px;
}

.checklist {
    list-style: none;
}

.checklist li {
    color: #f5f5f5;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    line-height: 1.7;
}

.checklist li::before {
    content: "✓";
    color: #66BB6A;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    font-size: 16px;
}

.caution-item strong {
    color: #ff8a8a;
    font-weight: bold;
}

/* Footer */
.footer {
    background: #1a1a1a;
    padding: 20px 0;
    border-top: 2px solid #555555;
    text-align: center;
    color: #e0e0e0;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #66BB6A;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #66BB6A;
}

.footer-links .separator {
    color: #666666;
    margin: 0 10px;
    font-size: 14px;
}

/* Legal Pages */
.legal-page {
    max-width: 800px;
    margin: 80px auto 0;
    padding: 40px 20px;
    color: #f5f5f5;
}

.legal-page h1 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 1px solid #555555;
    padding-bottom: 15px;
}

.last-updated {
    text-align: center;
    color: #e0e0e0;
    font-size: 14px;
    margin-bottom: 40px;
}

/* Last updated in intro section */
.intro-section .last-updated {
    text-align: center;
    margin-bottom: 10px;
    margin-top: -10px;
    display: block;
    width: 100%;
}

.legal-section {
    margin-bottom: 35px;
}

.legal-section h2 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #555555;
}

.legal-section h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 12px;
}

.legal-section p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #f5f5f5;
}

.legal-section ul {
    list-style: disc;
    margin: 15px 0;
    padding-left: 25px;
}

.legal-section li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: #f5f5f5;
}

.legal-section strong {
    color: #ffffff;
    font-weight: bold;
}

.important-notice {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff8a8a;
    border-radius: 8px;
    padding: 20px;
    margin-top: 40px;
}

.important-notice h3 {
    color: #ff8a8a;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.important-notice p {
    color: #f5f5f5;
    line-height: 1.7;
    margin: 0;
}

/* Contact Page Styles */
.contact-section {
    margin-bottom: 40px;
}

.contact-item {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(76, 175, 80, 0.05);
    border-radius: 8px;
    border-left: 4px solid #66BB6A;
}

.contact-platform h3 {
    color: #66BB6A;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.contact-link {
    margin-bottom: 15px;
}

.contact-link a {
    color: #66BB6A;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 16px;
    font-weight: 500;
}

.contact-link a:hover {
    color: #66BB6A;
    text-decoration-thickness: 2px;
}

.contact-description {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.faq-item {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid #333333;
}

.faq-item h3 {
    color: #66BB6A;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
}

.faq-item p {
    color: #f5f5f5;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Legal pages responsive */
@media (max-width: 768px) {
    .legal-page {
        margin: 70px auto 0;
        padding: 30px 15px;
    }
    
    .legal-page h1 {
        font-size: 26px;
    }
    
    .legal-section h2 {
        font-size: 20px;
    }
    
    .footer-links .separator {
        margin: 0 8px;
    }
}

@media (max-width: 480px) {
    .legal-page {
        margin: 60px auto 0;
        padding: 20px 10px;
    }
    
    .legal-page h1 {
        font-size: 22px;
    }
    
    .legal-section h2 {
        font-size: 18px;
    }
    
    .legal-section p {
        font-size: 14px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-links .separator {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 15px 0;
    }
    
    .logo {
        margin: 0 10px;
    }
    
    .logo h1 {
        font-size: 18px;
        line-height: 1.3;
        padding: 0;
    }
    
    .hamburger-menu {
        padding: 8px;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
    }
    
    .intro-text {
        font-size: 14px;
        padding: 20px 0;
    }
    
    .site {
        padding: 20px 0;
    }
    
    .site h3 {
        font-size: 20px;
    }
    
    .main {
        padding: 30px 0;
    }
}

/* Hero Section Responsive Design */
@media (max-width: 1024px) {
    .hero-section {
        height: 70vh;
        min-height: 500px;
        margin-top: 80px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
        min-height: 450px;
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hero-badge {
        font-size: 0.6em;
        padding: 6px 12px;
        margin-left: 10px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }
    
    .hero-cta {
        padding: 15px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px 0;
    }
    
    .logo {
        margin: 0 5px;
    }
    
    .logo h1 {
        font-size: 13px;
        line-height: 1.2;
        padding: 0;
    }
    
    .hamburger-menu {
        padding: 6px;
    }
    
    .hamburger-line {
        width: 18px;
        height: 2px;
    }
    
    .hero-section {
        height: 50vh;
        min-height: 350px;
        margin-top: 60px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .hero-badge {
        font-size: 0.5em;
        padding: 4px 8px;
        display: block;
        margin-top: 8px;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .hero-description {
        font-size: 0.75rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .hero-cta {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .intro-text {
        font-size: 13px;
        padding: 15px 0;
        line-height: 1.6;
    }
    
    .site {
        padding: 15px 0;
    }
    
    .site h3 {
        font-size: 18px;
    }
    
    .site-image {
        max-width: 100%;
        height: auto;
    }
    
    .main {
        padding: 20px 0;
    }
    
    .close-nav {
        top: 15px;
        right: 15px;
        font-size: 35px;
        padding: 8px;
    }
    
    .nav-content {
        padding: 20px 15px 20px;
        height: calc(100vh - 80px);
        margin-top: 80px;
    }
    
    .nav-header h2 {
        font-size: 24px;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 10px 15px;
    }
    
    .submenu .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }
}

/* Accessibility and Visual Enhancements */
.site:focus-within {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* Selection styling */
::selection {
    background: #4CAF50;
    color: #ffffff;
}

::-moz-selection {
    background: #4CAF50;
    color: #ffffff;
}

/* Browser compatibility */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fix for iOS Safari viewport units */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        height: -webkit-fill-available;
        min-height: 600px;
    }
}