/* ============================================
   基本設定
============================================ */
:root {
    /* カラーパレット - 温かく明るい配色 */
    --primary-color: #FF9F43;      /* 温かみのあるオレンジ */
    --primary-dark: #FF8C1A;       /* 濃いオレンジ */
    --secondary-color: #54C9A1;    /* 爽やかなミントグリーン */
    --accent-color: #FFD93D;       /* 明るいイエロー */
    --text-color: #2C3E50;         /* 濃いグレー */
    --text-light: #6C757D;         /* ライトグレー */
    --bg-light: #FFF9F0;           /* 温かみのあるベージュ */
    --bg-white: #FFFFFF;
    --border-color: #E9ECEF;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

/* ============================================
   ヘッダー
============================================ */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--bg-light);
    padding: 10px 0;
}

.header-info {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.header-info i {
    margin-right: 5px;
    color: var(--primary-color);
}

.header-main {
    padding: 20px 0;
}

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

.logo h1 {
    font-size: 1.3rem;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.4;
}

.logo-name {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.company-name {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav a:hover {
    color: var(--primary-color);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

.contact-btn {
    background-color: var(--primary-color);
    color: var(--bg-white) !important;
    padding: 10px 20px !important;
    border-radius: 25px;
    transition: all 0.3s;
}

.contact-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.contact-btn::after {
    display: none;
}

/* モバイルメニュー */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s;
}

/* ============================================
   メインビジュアル - スライドショー
============================================ */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.slide-title {
    font-size: 3rem;
    color: var(--bg-white);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    animation: slideInUp 0.8s ease-out;
}

.slide-subtitle {
    font-size: 1.1rem;
    color: var(--bg-white);
    margin-bottom: 40px;
    line-height: 1.8;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    animation: slideInUp 1s ease-out;
}

.slide-content .btn {
    animation: slideInUp 1.2s ease-out;
}

/* スライドアニメーション */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ナビゲーションボタン */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--bg-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 30px;
}

.slider-btn.next {
    right: 30px;
}

/* インジケーター */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background-color: var(--bg-white);
    width: 30px;
    border-radius: 6px;
}

/* ============================================
   ボタン
============================================ */
.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   新着情報
============================================ */
.news {
    padding: 60px 0;
    background-color: var(--bg-white);
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: var(--bg-white);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.news-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.news-date {
    color: var(--primary-color);
    font-weight: 600;
    min-width: 100px;
}

.news-label {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.news-text {
    flex: 1;
    color: var(--text-color);
}

/* ============================================
   ほほえみについて
============================================ */
.about {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.about-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.about-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-icon i {
    font-size: 2rem;
    color: var(--bg-white);
}

.about-card h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 心得 */
.philosophy {
    background-color: var(--bg-white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.philosophy h3 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
}

.philosophy-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.philosophy-item {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.philosophy-item:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: scale(1.05);
}

.philosophy-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 50px;
}

.philosophy-item:hover .philosophy-number {
    color: var(--bg-white);
}

.philosophy-item p {
    font-weight: 500;
}

/* ============================================
   サービス内容
============================================ */
.service {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.service-overview {
    max-width: 900px;
    margin: 0 auto 60px;
    background-color: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.service-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid var(--border-color);
}

.service-row:last-child {
    border-bottom: none;
}

.service-label {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.service-content {
    padding: 20px 30px;
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
}

/* 仕事内容 */
.work-content {
    max-width: 1200px;
    margin: 0 auto;
}

.work-content h3 {
    font-size: 2rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 40px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.work-card {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.work-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), #3EAFA4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.work-icon i {
    font-size: 1.8rem;
    color: var(--bg-white);
}

.work-card h4 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.work-card ul {
    list-style: none;
}

.work-card ul li {
    color: var(--text-light);
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.work-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

/* ============================================
   ご利用までの流れ
============================================ */
.flow {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.flow-steps {
    max-width: 700px;
    margin: 0 auto;
}

.flow-step {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s;
}

.flow-step:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.flow-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.flow-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.flow-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.flow-step h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.flow-step p {
    color: var(--text-light);
    line-height: 1.8;
}

.flow-arrow {
    text-align: center;
    padding: 20px 0;
}

.flow-arrow i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* ============================================
   企業概要
============================================ */
.company {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.company-info {
    max-width: 900px;
    margin: 0 auto;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 60px;
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    border-radius: 15px;
    overflow: hidden;
}

.company-table th,
.company-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.company-table th {
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-weight: 600;
    width: 180px;
}

.company-table td {
    background-color: var(--bg-white);
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

/* 沿革 */
.history {
    background-color: var(--bg-light);
    padding: 50px;
    border-radius: 15px;
}

.history h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 40px;
    text-align: center;
}

.history-timeline {
    position: relative;
    padding-left: 40px;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.history-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
}

.history-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 15px;
    height: 15px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-white);
}

.history-year {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.history-content {
    color: var(--text-color);
    line-height: 1.8;
}

/* ============================================
   アクセス
============================================ */
.access {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.access-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.access-info {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.access-info h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.access-address,
.access-tel,
.access-fax {
    margin-bottom: 20px;
    color: var(--text-color);
}

.access-address i,
.access-tel i,
.access-fax i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
}

.access-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ============================================
   お問い合わせ
============================================ */
.contact {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-method {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-method-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-method-icon i {
    font-size: 2rem;
    color: var(--bg-white);
}

.contact-method h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.contact-method-detail {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-method-time {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* お問い合わせフォーム */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bg-light);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.required {
    color: #E74C3C;
    font-size: 0.85rem;
    margin-left: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    margin-top: 20px;
}

/* ============================================
   フッター
============================================ */
.footer {
    background-color: var(--text-color);
    color: var(--bg-white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.footer-info p {
    color: #BDC3C7;
    margin-bottom: 8px;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links ul li a {
    color: #BDC3C7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #BDC3C7;
    font-size: 0.9rem;
}

/* ============================================
   トップに戻るボタン
============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.back-to-top i {
    font-size: 1.2rem;
}

/* ============================================
   レスポンシブデザイン
============================================ */
@media (max-width: 992px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--bg-white);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s;
        padding: 80px 30px 30px;
        z-index: 999;
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

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

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

    .service-row {
        grid-template-columns: 1fr;
    }

    .access-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .slide-title {
        font-size: 2rem;
    }

    .slide-subtitle {
        font-size: 1rem;
    }

    .hero-slider {
        height: 500px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-btn.prev {
        left: 15px;
    }

    .slider-btn.next {
        right: 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-grid,
    .philosophy-grid,
    .work-grid {
        grid-template-columns: 1fr;
    }

    .philosophy {
        padding: 30px 20px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .history {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .header-info {
        flex-direction: column;
        gap: 10px;
        font-size: 0.8rem;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .logo-name {
        font-size: 1.6rem;
    }

    .slide-title {
        font-size: 1.6rem;
    }

    .slide-subtitle {
        font-size: 0.9rem;
    }

    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .company-table th,
    .company-table td {
        padding: 15px;
        font-size: 0.9rem;
    }
}
