@charset "UTF-8";

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

body {
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
    font-size: 16px;
    color: #333;
    background: #fff;
    line-height: 1.6;
}

header {
    width: 100%;
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    z-index: 10;
}

.header-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 24px;
    color: #000;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
}

.desktop-nav ul li {
    margin-left: 30px;
}

.desktop-nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
}

.desktop-nav ul li a:hover {
    color: #ff6200;
}

main {
    margin-top: 80px;
}

/* セクションのスタイル */
section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

th {
    background-color: #009dff;
    color: #fff;
    padding: 12px;
    font-weight: bold;
    text-align: left;
    vertical-align: top;
    border-bottom: 2px solid #fff;
}

td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    color: #333;
}

tr {
    border-bottom: 1px solid #ddd;
}

tr:last-child {
    border-bottom: none;
}

th[rowspan] {
    vertical-align: middle;
}

tr:hover td {
    background-color: #fff5f0;
}

.hero {
    position: relative;
    width: 100%;
}

.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 600px; /* 固定高さ */
}

.slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

.slide.active {
    display: block;
}

/* スライドインアニメーション */
.slide.slide-in {
    animation: slideInFromRight 1s ease-in-out forwards;
}

/* スライドアウトアニメーション */
.slide.slide-out {
    animation: slideOutToLeft 1s ease-in-out forwards;
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToLeft {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.hero-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: #ff6200;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

.cta-button:hover {
    background: #e55a00;
}

.content {
    width: 90%;
    max-width: 1200px;
    margin: 60px auto;
    text-align: center;
}

.content h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.content p {
    font-size: 16px;
    color: #666;
}

#staff .content-inner p,
#tradition .content-inner p {
    text-align: left;
}

.services-grid {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
}

.service-item {
    width: 45%;
    text-align: center;
}

.service-item img {
    width: 100%;
    height: auto;
}

.service-item h3 {
    font-size: 20px;
    margin: 15px 0;
}

.service-item p {
    font-size: 14px;
    color: #666;
}

.contact {
    background: #f5f5f5;
    padding: 60px 0;
}

.contact h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.contact p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.mobile-menu-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #ff6200;
    color: #fff;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
}

.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 15;
}

.mobile-nav.active {
    display: block;
    transform: translateY(0);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
}

.mobile-nav ul li {
    margin: 10px 0;
}

.mobile-nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    display: block;
    padding: 10px;
}

.mobile-nav ul li a:hover {
    color: #ff6200;
}

footer {
    width: 100%;
    background: #f5f5f5;
    padding: 20px 0;
    border-top: 1px solid #ddd;
}

.footer-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-inner p {
    font-size: 12px;
    color: #666;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    header {
        position: static;
        box-shadow: none;
    }
    main {
        margin-top: 0;
    }
    .header-inner {
        flex-direction: column;
        padding: 10px 0;
    }
    .desktop-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    h1 {
        font-size: 20px;
    }
    .hero {
        margin-top: 0;
    }
    .slider {
        height: 300px;
    }
    .hero-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 10px;
        background: rgba(0, 0, 0, 0.5);
    }
    .hero-text h2 {
        font-size: 24px;
        white-space: nowrap;
    }
    .hero-text p {
        font-size: 14px;
    }
    .cta-button {
        padding: 10px 20px;
    }
    .content h2 {
        font-size: 24px;
    }
    .content p {
        font-size: 14px;
    }
    .services-grid {
        flex-direction: column;
    }
    .service-item {
        width: 100%;
        margin-bottom: 30px;
    }
    .service-item h3 {
        font-size: 18px;
    }
    .service-item p {
        font-size: 12px;
    }
    .contact h2 {
        font-size: 24px;
    }
    .contact p {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    table, tbody, tr, th, td {
        display: block;
        width: 100%;
    }
    tr {
        margin-bottom: 10px;
        background: #fff;
        border-bottom: none;
    }
    th {
        display: none;
    }
    td {
        text-align: left;
        padding: 10px;
        position: relative;
        border-bottom: 1px solid #ddd;
    }
    td:before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        color: #666;
        margin-bottom: 5px;
    }
    td.business-first:before {
        content: "事業内容";
    }
    td.business-item:before {
        content: none;
    }
    td.business-item {
        padding-left: 20px;
        border-top: none;
    }
    tr:last-child td:last-child {
        border-bottom: none;
    }
}