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

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #261303;
    background-image: url('body_02.jpeg');
    background-size: auto;
    background-position: center;
    background-repeat: repeat;
    background-attachment: fixed;
}

/* Header */
header {
    background-color: #261303;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(38, 19, 3, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.header-button {
    background-color: #8c1604;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.header-button:hover {
    background-color: #a01805;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(140, 22, 4, 0.3);
    text-decoration: none;
    color: #ffffff;
}

/* Main Container */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Spacing */
section {
    margin: 4rem 0;
    padding: 2rem 0;
}

/* Hero Section */
#hero {
    height: 100vh;
    min-height: 600px;
    background-image: linear-gradient(rgba(38, 19, 3, 0.4), rgba(38, 19, 3, 0.4)), url('top_02.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.hero-content {
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    padding: 2rem;
    z-index: 2;
}

#hero h2 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

#hero .hero-content > p {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    line-height: 1.4;
    font-weight: bold;
}

/* Hero Additional Text */
.hero-subtext {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    line-height: 1.4;
    font-weight: 600;
}

.hero-button {
    background-color: #8c1604;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-button:hover {
    background-color: #a01805;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(140, 22, 4, 0.3);
    text-decoration: none;
    color: #ffffff;
}

/* CTA Styles */
.cta {
    background-color: rgba(140, 22, 4, 0.1);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 600px;
    border: 2px solid #8c1604;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #261303;
    font-weight: 600;
}

button {
    background-color: #8c1604;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #a01805;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(140, 22, 4, 0.3);
}

/* Section Headers */
h2 {
    font-size: 2rem;
    color: #261303;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: bold;
    position: relative;
}

h2::after {
    content: '';
    display: inline-block;
    width: 100%;
    height: 3px;
    background-color: #8c1604;
    margin-top: 0.5rem;
    border-radius: 2px;
    position: absolute;
    bottom: -0.8rem;
    left: 0;
}

/* Basics Section */
#basics {
    background-color: #ffffff;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(38, 19, 3, 0.1);
    margin: 2rem 0;
}

.basics-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

.basics-content p {
    font-size: 1.2rem;
    color: #261303;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

.basics-content p:last-child {
    margin-bottom: 0;
}

h3 {
    font-size: 1.5rem;
    color: #261303;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Lists */
ul {
    list-style: none;
    padding: 0;
}

li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #8c1604;
    font-weight: bold;
}

/* Failures Section */
#failures {
    text-align: center;
    background-color: #ffffff;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(38, 19, 3, 0.1);
    margin: 2rem 0;
}

.failure-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.failure-item {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #444;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.failure-item p {
    font-weight: bold;
    text-align: center;
    color: #ffffff;
    margin: 0;
    font-size: 1.1rem;
}

#failures > p {
    font-weight: bold;
    text-align: center;
    margin: 2rem 0;
    font-size: 1.2rem;
}

/* Publishing Types Section */
#types {
    background-color: #ffffff;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(38, 19, 3, 0.1);
    margin: 2rem 0;
}

.publishing-type {
    background-color: rgba(38, 19, 3, 0.05);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    border-left: 4px solid #8c1604;
    text-align: center;
}

.publishing-type h3 {
    color: #8c1604;
    margin-bottom: 1rem;
    font-weight: bold;
    font-size: 2rem;
}

.publishing-type ul {
    text-align: center;
}

.publishing-type li {
    font-weight: bold;
    text-align: center;
    padding-left: 0;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.publishing-type li::before {
    display: none;
}

.publishing-type p {
    margin-top: 1rem;
    font-weight: bold;
    text-align: center;
    font-size: 1.2rem;
}

/* Strengths Section */
#strengths {
    background-image: url('back_01.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 3rem 0;
    position: relative;
}

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

/* Strengths Grid */
.strength-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.strength {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(38, 19, 3, 0.1);
    border: 1px solid rgba(38, 19, 3, 0.1);
    transition: transform 0.3s ease;
}

.strength:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(38, 19, 3, 0.15);
}

.strength h3 {
    color: #8c1604;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.plan-card {
    background-color: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(38, 19, 3, 0.15);
    border: 2px solid rgba(140, 22, 4, 0.1);
    text-align: center;
    height: auto;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-card h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    background-color: #261303;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
    margin: 0 auto 1rem auto;
}

.plan-subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.plan-content {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.plan-item {
    background-color: rgba(140, 22, 4, 0.05);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 6px;
    border-left: 3px solid #8c1604;
    font-weight: 600;
    color: #261303;
    font-size: 1rem;
}

.plan-description {
    color: #8c1604;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: auto;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-header h2 {
    margin-bottom: 0;
}

.tax-note-inline {
    color: #261303;
    font-size: 1.2rem;
    font-weight: normal;
}

.tax-note {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-bottom: 2rem;
}

/* Options */
.options {
    background-color: rgba(140, 22, 4, 0.05);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #8c1604;
    margin-top: 2rem;
    text-align: center;
}

.options h3 {
    color: #8c1604;
    text-align: center;
}

.options ul {
    text-align: center;
}

.options li {
    font-size: 1.2rem;
    text-align: center;
    padding-left: 0;
    font-weight: bold;
}

.options li::before {
    display: none;
}

/* Comparison Table */
#comparison {
    background-color: #261303;
    padding: 3rem 2rem;
    margin: 2rem 0;
}

#comparison h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
}

.comparison-table {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th {
    background-color: #8c1604;
    color: #ffffff;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    color: #261303;
    font-size: 1rem;
}

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

.comparison-table tr:hover {
    background-color: rgba(140, 22, 4, 0.05);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    background-color: #f0f0f0;
}

.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2) {
    background-color: rgba(140, 22, 4, 0.1);
    font-weight: bold;
    color: #261303;
}

.circle {
    color: #8c1604;
    font-weight: bold;
    font-size: 1.2rem;
}

.triangle {
    color: #ff9800;
    font-weight: bold;
    font-size: 1.2rem;
}

.cross {
    color: #666;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.member-card {
    background-color: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(38, 19, 3, 0.15);
    border: 2px solid rgba(140, 22, 4, 0.1);
    text-align: center;
    height: auto;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.member-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem auto;
    border: 2px solid #8c1604;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(140, 22, 4, 0.2);
    display: block;
    object-fit: cover;
}

.member-card h3 {
    color: #8c1604;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.member-role {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.member-description {
    color: #261303;
    line-height: 1.6;
    font-size: 1rem;
    flex-grow: 1;
}

.book-image {
    max-width: 120px;
    height: auto;
    margin: 1.5rem auto 0 auto;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(38, 19, 3, 0.2);
    display: block;
}

/* Testimonials Section */
#testimonials {
    background-image: url('back_03.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 3rem 0;
    position: relative;
}

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

#testimonials h2 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: bold;
    background-color: #261303;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
    margin: 0 auto 2rem auto;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    border-left: 4px solid #8c1604;
    font-style: italic;
    backdrop-filter: blur(5px);
}

.testimonial p {
    color: #261303;
    font-size: 1.1rem;
}

/* Contact Section */
#contact > p {
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    margin: 2rem auto;
    color: #261303;
}

#contact .cta {
    text-align: center;
}

/* Footer */
footer {
    background-color: #261303;
    color: #ffffff;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 0 1rem;
    }
    
    #hero {
        min-height: 500px;
        background-attachment: scroll;
    }
    
    #hero h2 {
        font-size: 2.2rem;
    }
    
    #hero .hero-content > p {
        font-size: 1.2rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .strength-list {
        grid-template-columns: 1fr;
    }
    
    header {
        padding: 1rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    nav h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .header-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    section {
        margin: 2rem 0;
        padding: 1rem 0;
    }
    
    .plans-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .plan-card,
    .member-card {
        min-height: auto;
        padding: 2rem 1.5rem;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.3rem;
    }
    
    .member-image {
        width: 150px;
        height: 150px;
    }
    
    #strengths,
    #testimonials {
        padding: 2rem 0;
    }
    
    .strength {
        padding: 1.5rem;
    }
    
    .failure-items {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .failure-item {
        padding: 1.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    #hero {
        min-height: 400px;
    }
    
    #hero h2 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    #hero .hero-content > p {
        font-size: 1rem;
    }
    
    .hero-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .cta {
        padding: 1.5rem 1rem;
        margin: 1rem auto;
    }
    
    .cta p {
        font-size: 1rem;
    }
    
    button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.4rem 0.2rem;
        font-size: 0.8rem;
    }
    
    .member-image {
        width: 120px;
        height: 120px;
    }
    
    .plan-card h3 {
        font-size: 1.2rem;
        padding: 0.6rem 1rem;
    }
    
    .plan-item {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    #basics,
    #failures,
    #types {
        padding: 2rem 1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tax-note-inline {
        font-size: 1rem;
    }
}