/* Template 62 - Origami Paper / Japanese Fold Art */
@import url('https://fonts.googleapis.com/css2?family=Zen+Antique&family=M+PLUS+1p:wght@300;400;500;700&family=Shippori+Mincho:wght@400;500;600&display=swap');

:root {
    --paper-white: #faf8f5;
    --paper-cream: #f5f0e6;
    --paper-fold: #e8e0d0;
    --ink-black: #1a1a1a;
    --ink-gray: #4a4a4a;
    --origami-red: #c41e3a;
    --origami-gold: #d4a84b;
    --origami-blue: #2b4a7c;
    --origami-green: #4a7c59;
    --shadow-light: rgba(0,0,0,0.08);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'M PLUS 1p', sans-serif;
    line-height: 1.8;
    color: var(--ink-black);
    background: var(--paper-white);
    font-weight: 400;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, transparent 49.5%, var(--paper-fold) 49.5%, var(--paper-fold) 50.5%, transparent 50.5%),
        linear-gradient(-135deg, transparent 49.5%, var(--paper-fold) 49.5%, var(--paper-fold) 50.5%, transparent 50.5%);
    background-size: 60px 60px;
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

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

/* Header - Folded Paper Style */
.site-header {
    background: var(--paper-cream);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 
        0 4px 0 var(--paper-fold),
        0 8px 20px var(--shadow-light);
}

.site-header::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom right, var(--paper-fold) 50%, transparent 50%);
    background-size: 40px 20px;
}

.header-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 1.5rem 0 2rem;
}

.site-logo a {
    font-family: 'Zen Antique', serif;
    font-size: 2.2rem;
    color: var(--ink-black);
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.site-logo a::before {
    content: '折';
    font-size: 0.8rem;
    color: var(--origami-red);
    position: absolute;
    top: -10px;
    left: -20px;
    transform: rotate(-15deg);
}

.site-logo a:hover {
    transform: scale(1.05);
}

.site-nav {
    margin-top: 1rem;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
}

.site-nav li {
    position: relative;
}

.site-nav a {
    color: var(--ink-gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    background: var(--paper-white);
    clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
    margin: 0 -5px;
}

.site-nav a:hover {
    background: var(--origami-red);
    color: var(--paper-white);
    transform: translateY(-3px);
}

/* Hero Section */
.section.head {
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.section.head::before {
    content: '紙';
    font-family: 'Zen Antique', serif;
    font-size: 20rem;
    color: var(--paper-fold);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.3;
}

.section.head h1 {
    font-family: 'Shippori Mincho', serif;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--ink-black);
    letter-spacing: 0.1em;
}



.section.head p {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.15rem;
    color: var(--ink-gray);
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--paper-cream);
    position: relative;
    box-shadow: 
        5px 5px 0 var(--paper-fold),
        10px 10px 0 var(--shadow-light);
}

.section.head p::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--paper-white) 50%, var(--paper-fold) 50%);
}

/* Section Styling */
.section {
    padding: 5rem 0;
}

.section header {
    text-align: center;
    margin-bottom: 3rem;
}

.section header h2 {
    font-family: 'Shippori Mincho', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--ink-black);
    position: relative;
    display: inline-block;
}

.section header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--origami-red);
    margin: 1rem auto 0;
}

.section header p {
    font-size: 1rem;
    color: var(--ink-gray);
    max-width: 600px;
    margin: 1rem auto 0;
}

body:not(.faq) h3,
:not(section.faq) h3 {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.5rem;
    color: var(--ink-black);
    margin-top: 15px;
    margin-bottom: 10px;
    text-align: left;
}

/* Footer */
.footer {
    background: var(--ink-black);
    color: var(--paper-cream);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom left, var(--paper-white) 50%, transparent 50%);
    background-size: 60px 30px;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.footer-about {
    flex: 1;
    max-width: 350px;
}

.footer-tagline {
    color: var(--paper-fold);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--paper-fold);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a::before {
    content: '▸ ';
    color: var(--origami-red);
    transition: transform 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--paper-white);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright a {
    color: var(--paper-fold);
    font-size: 0.9rem;
}

/* Animations */
@keyframes foldIn {
    from {
        opacity: 0;
        transform: rotateX(-90deg);
        transform-origin: top center;
    }
    to {
        opacity: 1;
        transform: rotateX(0deg);
    }
}

.fade-in {
    opacity: 0;
    animation: foldIn 0.8s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}
