@import 'variables.css';

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-base);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

ul,
ol {
    list-style: none;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding-pc) 0;
}

@media screen and (max-width: 767px) {
    .section {
        padding: var(--section-padding-sp) 0;
    }
}

.sp-only {
    display: none !important;
}

.pc-only {
    display: block !important;
}

@media screen and (max-width: 767px) {
    .sp-only {
        display: block !important;
    }

    .pc-only {
        display: none !important;
    }
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header__top {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.header__top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo img {
    display: block;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__search {
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.search-form input {
    padding: 8px 12px;
    border: none;
    outline: none;
    width: 200px;
    font-size: 14px;
}

.search-form button {
    padding: 8px 16px;
    background-color: var(--color-main);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.search-form button:hover {
    background-color: #6a0000;
}

.header__contact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__tel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #00004d;
    color: var(--color-white);
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    min-width: 180px;
}

.header__tel::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: "\f095";
    font-size: 16px;
}

.header__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #00004d;
    color: var(--color-white);
    border-radius: 4px;
    font-weight: 500;
    min-width: 180px;
}

.header__btn::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    content: "\f0e0";
    font-size: 16px;
}

/* Navigation */
.header__nav {
    background-color: var(--color-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.nav-menu>li {
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-menu>li:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-menu>li>a {
    display: block;
    padding: 16px 24px;
    color: var(--color-white);
    font-weight: 500;
    transition: background-color 0.3s;
}

.nav-menu>li>a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.nav-menu .has-dropdown:hover .dropdown {
    display: block;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 100;
}

.dropdown li a {
    display: block;
    padding: 12px 20px;
    color: var(--color-text);
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
}

.dropdown li a:hover {
    background-color: #f9f9f9;
    opacity: 1;
}

/* Hamburger Menu */
.header__hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    align-items: center;
}

.header__hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--color-white);
    transition: all 0.3s;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--color-main);
    overflow-y: auto;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    padding: 0;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu li a {
    display: block;
    padding: 15px 20px;
    color: var(--color-white);
    font-weight: 500;
}

/* Main Visual */
.main-visual {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.main-visual__slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.main-visual__slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-visual__content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 600px;
}

.content-box {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-left: 5px solid var(--color-main);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.content-box h1 {
    font-size: 28px;
    line-height: 1.6;
}

.text-small {
    font-size: 20px;
    font-weight: 400;
}

.text-highlight {
    color: var(--color-main);
    font-size: 32px;
    font-weight: 700;
}

.text-main {
    color: var(--color-main);
    font-size: 28px;
    font-weight: 700;
}

.text-sub {
    font-size: 18px;
    font-weight: 400;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    margin-top: 10px;
}

.brand-underline {
    color: var(--color-main);
    border-bottom: 2px solid var(--color-main);
    padding-bottom: 2px;
}

/* SP/PC 改行制御 */
.sp-br {
    display: none;
}

.pc-br {
    display: block;
}

/* Swiper Customization */
.swiper-button-prev,
.swiper-button-next {
    color: var(--color-white);
    background-color: rgba(128, 0, 0, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 20px;
}

.swiper-pagination-bullet {
    background-color: var(--color-white);
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background-color: var(--color-main);
    opacity: 1;
}

/* Introduction Section */
.intro-section {
    background-color: var(--color-white);
    text-align: center;
}

.section-title {
    font-size: 32px;
    margin-bottom: 30px;
    font-family: var(--font-heading);
}

.section-title .highlight {
    color: var(--color-main);
}

.intro-text {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.intro-list {
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}

.intro-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.intro-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-main);
    font-size: 20px;
}

/* Features Section */
.features-section {
    background-color: var(--color-bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card {
    background-color: var(--color-white);
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-title {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.feature-title .highlight {
    color: var(--color-main);
}

.feature-text {
    font-size: 14px;
    line-height: 1.7;
}

.section-cta {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--color-main);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #fff;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

/* Responsive - SP */
@media screen and (max-width: 767px) {
    .header__top .container {
        flex-wrap: nowrap;
        padding: 0 10px;
    }

    .header__logo {
        flex: 1 1 auto;
        min-width: 0;
        order: 1;
    }

    .header__logo img {
        max-width: 120px;
        width: 100%;
    }

    .header__actions {
        display: flex;
        align-items: center;
        gap: 0;
        flex-shrink: 0;
        order: 2;
    }

    .header__search {
        display: none;
    }

    .header__contact {
        display: flex;
        align-items: center;
        gap: 0;
    }

    .header__tel,
    .header__btn {
        padding: 0;
        font-size: 0;
        width: 40px;
        height: 40px;
        min-width: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        color: var(--color-main);
    }

    .header__tel::before {
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        content: "\f095";
        font-size: 20px;
    }

    .header__btn::before {
        font-family: 'Font Awesome 6 Free';
        font-weight: 400;
        content: "\f0e0";
        font-size: 20px;
    }

    .header__hamburger {
        display: flex !important;
        flex-direction: column !important;
        width: 55px;
        height: 55px;
        background-color: var(--color-main);
        align-items: center;
        justify-content: center;
        order: 3;
        flex-shrink: 0;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .header__hamburger span {
        display: block !important;
        width: 24px !important;
        height: 2px !important;
        background-color: var(--color-white) !important;
        margin: 2px 0 !important;
        flex-shrink: 0;
    }

    .header__hamburger span:first-child {
        margin-top: 10px !important;
    }

    .header__hamburger span:last-child {
        margin-bottom: 0 !important;
    }

    .header__hamburger::after {
        content: 'menu';
        display: block;
        font-size: 10px;
        color: var(--color-white);
        margin-top: 1px;
        font-weight: 400;
        letter-spacing: 1px;
    }

    .main-visual {
        height: auto;
        position: relative;
        overflow: hidden;
    }

    .main-visual__slider {
        position: relative;
        height: auto;
        width: 100%;
    }

    .main-visual__slider .swiper-wrapper {
        width: 100%;
    }

    .main-visual__slider .swiper-slide {
        width: 100%;
    }

    .main-visual__slider img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }

    .main-visual__slider .swiper-slide:not(:first-child) {
        display: none;
    }

    .main-visual__slider .swiper-slide:first-child {
        overflow: hidden;
    }

    .main-visual__slider .swiper-slide:first-child picture,
    .main-visual__slider .swiper-slide:first-child img {
        width: 100%;
        height: auto;
        object-fit: cover;
        margin-top: -50%;
    }

    .main-visual__slider .swiper-pagination {
        display: none;
    }

    .main-visual__slider .swiper-button-prev,
    .main-visual__slider .swiper-button-next {
        display: none;
    }

    .main-visual__content {
        position: absolute;
        top: 0;
        left: 5%;
        right: 5%;
        transform: none;
        max-width: none;
        padding: 0;
        background-color: transparent;
        z-index: 10;
    }

    .content-box {
        background-color: rgba(255, 255, 255, 0.85);
        border-left: none;
        border-radius: 8px;
        box-shadow: none;
        padding: 10px 15px;
        text-align: center;
    }

    .content-box h1 {
        font-size: 14px;
        line-height: 1.6;
    }

    .content-box h1 .pc-br {
        display: none;
    }

    .content-box h1 .sp-br {
        display: block;
    }

    .text-small {
        font-size: 14px;
    }

    .text-highlight {
        font-size: 22px;
    }

    .text-main {
        font-size: 22px;
    }

    .text-sub {
        font-size: 11px;
    }

    .brand-name {
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .intro-text {
        font-size: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}