@charset "utf-8";

/* Bootstrap v4.4.1 */
@import url('https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css');

:root {
    --accent: #4871b3;
    --accent-dark: #365a94;
    --accent-soft: #eaf0f8;
    --ink: #222222;
    --muted: #555555;
}

/* --- 基本設定 --- */
body {
    font-family: "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
    color: #333;
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, .navbar-brand, .nav-link, .btn {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

img { max-width: 100% !important; height: auto !important; }

/* --- ナビゲーション --- */
.navbar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: auto !important;
}

.navbar-brand {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    margin-right: 0;
}

.navbar-brand-logo {
    height: 42px !important;
    width: auto;
    margin-right: 12px;
    vertical-align: middle;
}

.navbar-brand strong {
    font-size: 1.15rem;
    line-height: 1 !important;
    letter-spacing: 1px;
    color: var(--ink);
}

.ml-auto a {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
    line-height: 1 !important;
    display: inline-block;
    transition: 0.3s;
}

.ml-auto a:hover {
    color: var(--accent) !important;
    text-decoration: none;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
.lang-switch a {
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 400;
}
.lang-switch a.is-active {
    color: var(--accent) !important;
    font-weight: 700;
}
.lang-switch a:hover {
    color: var(--accent) !important;
}
.lang-sep {
    margin: 0 0.35rem;
    color: #999;
}

/* セクション設定 */
.section-padding { padding: 100px 0; }
.section-title-wrapper { margin-bottom: 60px; text-align: center; }
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent);
}
.section-lead {
    max-width: 720px;
    margin: 1.25rem auto 0;
    color: var(--muted);
    font-size: 1.05rem;
}

/* ヒーロー */
.hero-section {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    background-color: #0c203a;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    /* 1本の animation にまとめる（delay を各枚に付けても切替が壊れない） */
    animation: heroFade 42s infinite ease-in-out;
}

.bg1 {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.4)),
        url('images/momochi.jpg');
    z-index: 1;
    animation-delay: 0s;
}

.bg2 {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.4)),
        url('images/tenjin.jpg');
    z-index: 2;
    animation-delay: 7s;
}

.bg3 {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.4)),
        url('images/hakozaki.jpg');
    z-index: 3;
    animation-delay: 14s;
}

.bg4 {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.4)),
        url('images/hutami.jpg');
    z-index: 4;
    animation-delay: 21s;
}

.bg5 {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.4)),
        url('images/yanagawa.jpg');
    z-index: 5;
    animation-delay: 28s;
}

.bg6 {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.4)),
        url('images/karatsu.jpg');
    z-index: 6;
    animation-delay: 35s;
}

/* 6枚 × 約7秒で1周42秒。切替後に約2秒静止してから拡大 */
@keyframes heroFade {
    0% { opacity: 1; transform: scale(1); }
    5% { opacity: 1; transform: scale(1); }
    13% { opacity: 1; transform: scale(1.06); }
    17% { opacity: 0; transform: scale(1.07); }
    100% { opacity: 0; transform: scale(1.07); }
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10001;
    background: #4871b3;
    color: #fff;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    font-family: "Helvetica Neue", Arial, Meiryo, sans-serif;
    font-weight: 700;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    outline: 2px solid #fff;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: #fff;
    padding-left: 10% !important;
    padding-right: 5%;
}

.hero-catch {
    display: block;
    margin-top: 0.65rem;
    font-size: 0.62em;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.45;
    opacity: 0.95;
}

/* 初回ロード時のキャッチ（戻す: 下の animation 4つを削除） */
.hero-brand {
    animation: heroTextIn 0.85s ease 0.12s both;
}
.hero-business {
    animation: heroTextInSoft 0.85s ease 0.28s both;
}
.hero-title {
    animation: heroTextIn 0.9s ease 0.44s both;
}
.hero-sub {
    animation: heroTextInSub 0.85s ease 0.68s both;
}
@keyframes heroTextIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}
@keyframes heroTextInSoft {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 0.95; transform: none; }
}
@keyframes heroTextInSub {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 0.92; transform: none; }
}

.hero-brand {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #fff;
    margin: 0 0 0.35rem;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.45);
}

.hero-business {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #fff;
    margin: 0 0 1.25rem;
    opacity: 0.95;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.4);
    border-left: 3px solid #7eb6e8;
    padding-left: 0.75rem;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.25;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.5);
}

.hero-sub {
    margin-top: 1.25rem;
    font-size: 1.05rem;
    opacity: 0.92;
    max-width: 34em;
}

/* 共通コンテナ */
.news-container, .message-container, .card-custom {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
    border-radius: 8px;
    border: 1px solid #eee;
}

/* お知らせ */
.news-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    display: flex;
    text-align: left;
}
.news-date {
    font-weight: bold;
    color: var(--accent-dark);
    min-width: 120px;
}
.news-text { flex: 1; }

/* 代表挨拶 */
.message-lead {
    font-family: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", serif;
    font-weight: 600;
    line-height: 1.6;
    color: #333;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
}
.message-footer {
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 30px;
    clear: both;
}

/* 事業内容 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.feature-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 28px 24px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.feature-num {
    display: inline-block;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}
.feature-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.feature-item ul {
    padding-left: 1.1rem;
    margin: 0;
    color: #444;
}
.feature-item li { margin-bottom: 0.4rem; }

.method-box {
    max-width: 1000px;
    margin: 0 auto 40px;
    background: var(--accent-soft);
    border-left: 5px solid var(--accent);
    padding: 28px 32px;
    border-radius: 0 8px 8px 0;
    text-align: left;
}
.method-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.method-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 1000px;
}
.method-list li {
    position: relative;
    padding: 18px 0 18px 1.5rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.method-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.55rem;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}
.method-list strong {
    display: block;
    margin-bottom: 0.35rem;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto 0;
}
.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 24px;
    text-align: left;
    background: #fff;
}
.product-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-soft);
}
.product-card ul {
    padding-left: 1.1rem;
    margin: 0;
    font-size: 0.95rem;
}

.reason-list {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}
.reason-item {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #eee;
}
.reason-item:last-child { border-bottom: none; }
.reason-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.reason-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.invoice-note {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
}
.invoice-note ul { padding-left: 1.2rem; }

/* 会社案内テーブル */
.company-table th {
    background-color: #f8f9fa !important;
    color: #000000 !important;
    font-weight: 800 !important;
    width: 30%;
    vertical-align: middle;
}

.placeholder-note {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #a06700;
    background: #fff8e6;
    padding: 2px 8px;
    border-radius: 3px;
}

/* 沿革 */
.history-item {
    position: relative;
    padding-bottom: 30px;
    border-left: 1px solid #dee2e6;
    padding-left: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.history-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 8px;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
}
.history-year {
    font-weight: 700;
    color: var(--accent-dark);
    font-size: 1.1rem;
}

/* お問い合わせ・ボタン・フッター */
.tel-link {
    color: var(--accent-dark) !important;
    font-size: 2.8rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: 0.3s;
}
.tel-link:hover { opacity: 0.7; }

.btn-success {
    background-color: var(--accent-dark) !important;
    border-color: var(--accent-dark) !important;
    color: #ffffff !important;
}
.btn-success:hover {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
}

.btn-outline-accent {
    color: var(--accent-dark);
    border: 2px solid var(--accent);
    background: transparent;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
}
.btn-outline-accent:hover {
    background: var(--accent);
    color: #fff;
}

footer {
    background-color: #343a40 !important;
    color: #ffffff !important;
    padding: 50px 0;
    text-align: center;
}
footer p { color: #eeeeee !important; }
footer a {
    color: #ffffff !important;
}
footer a.text-muted,
footer a.text-muted.small,
footer .footer-nav a {
    color: #ffffff !important;
    text-decoration: underline;
    opacity: 1;
}
footer a[href^="tel"] {
    color: #ffd666 !important;
    font-weight: 700;
    text-decoration: underline;
}
footer a.text-muted:hover,
footer a.text-muted.small:hover,
footer .footer-nav a:hover,
footer a[href^="tel"]:hover {
    color: #ffe8a3 !important;
    text-decoration: none;
}
footer .footer-nav a {
    text-decoration: none;
    white-space: nowrap;
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background-color: var(--accent);
    color: #fff !important;
    text-align: center;
    border-radius: 50%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-decoration: none !important;
}
#back-to-top.show { opacity: 1; visibility: visible; }

.text-muted { color: var(--muted) !important; }
.text-dark { color: var(--ink) !important; }

.badge-danger { background-color: #c82333 !important; }

a:focus, button:focus {
    outline: none !important;
    box-shadow: none !important;
}

#contact-form a {
    color: var(--accent-dark) !important;
    text-decoration: underline;
}

.news-container, .card-custom, .history-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-container:hover, .card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.js-fade {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: opacity 1.0s ease, transform 1.0s ease !important;
    visibility: visible !important;
}
.js-fade.is-show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.feature-grid .js-fade:nth-child(2),
.product-grid .js-fade:nth-child(2) { transition-delay: 0.1s; }
.feature-grid .js-fade:nth-child(3),
.product-grid .js-fade:nth-child(3) { transition-delay: 0.2s; }
.reason-list .js-fade:nth-child(2) { transition-delay: 0.08s; }
.reason-list .js-fade:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
    /* 写真の切替は残し、ズームと文字の動きだけ止める */
    @keyframes heroFade {
        0% { opacity: 1; transform: none; }
        5% { opacity: 1; transform: none; }
        13% { opacity: 1; transform: none; }
        17% { opacity: 0; transform: none; }
        100% { opacity: 0; transform: none; }
    }
    .hero-brand,
    .hero-business,
    .hero-title,
    .hero-sub {
        animation: none;
        transform: none;
    }
    .hero-brand,
    .hero-title { opacity: 1; }
    .hero-business { opacity: 0.95; }
    .hero-sub { opacity: 0.92; }
    .js-fade {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* --- Q&Aページ --- */
.page-hero {
    background: #f8f9fa;
    color: var(--ink);
    padding: 56px 0 40px;
    border-bottom: 1px solid #e9ecef;
}
.page-hero-label {
    font-family: "Helvetica Neue", Arial, Meiryo, sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.page-hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--ink);
}
.page-hero-lead {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 36em;
}

.qa-note {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.92rem;
    color: var(--muted);
    background: #fff8e6;
    border: 1px solid #f0e0b8;
    border-radius: 8px;
    padding: 14px 18px;
}

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

/* Q1+A1 を1セットとしてまとめる */
.qa-pair {
    display: block;
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dde3ea;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    background: #fff;
}

.qa-panel {
    padding: 0;
}

.qa-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.qa-panel-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 30px;
    padding: 0 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    color: #fff;
}

.qa-panel-name {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
}

.qa-panel-num {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    opacity: 0.75;
}

/* 質問セクション：薄い青 */
.qa-panel-q {
    background: var(--accent-soft);
    border-bottom: 1px solid #d5e2f2;
}

.qa-panel-q .qa-panel-head {
    background: transparent;
    color: var(--accent-dark);
    border-bottom: 1px solid #d5e2f2;
}

.qa-panel-q .qa-panel-tag {
    background: var(--accent);
}

/* 回答セクション：薄いグレー（サイトの説明枠に合わせる） */
.qa-panel-a {
    background: #f8f9fa;
}

.qa-panel-a .qa-panel-head {
    background: transparent;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
}

.qa-panel-a .qa-panel-tag {
    background: #6c757d;
}

/* 本文サイズは Q / A とも同じ */
.qa-panel-text {
    margin: 0;
    padding: 20px 22px 24px;
    font-size: 1.02rem;
    font-weight: 400;
    line-height: 1.9;
    color: #333;
    text-align: left;
}

.qa-panel-q h2.qa-panel-text {
    font-size: 1.02rem;
    font-weight: 400;
    font-family: inherit;
}

.qa-panel-text p {
    margin-bottom: 0.85rem;
    font-size: 1.02rem;
    line-height: 1.9;
}

.qa-subnote {
    background: #fff;
    border-left: 4px solid var(--accent);
    padding: 12px 14px;
    border-radius: 0 6px 6px 0;
    font-size: 1.02rem;
}

/* --- スマホ --- */
@media (max-width: 991px) {
    .navbar { padding: 5px 10px !important; }
    .navbar-brand-logo { height: 34px !important; margin-right: 8px; }
    .navbar-brand strong { font-size: 0.95rem; }

    .section-padding { padding: 50px 0; }
    .hero-title { font-size: 1.7rem !important; }
    .hero-brand { font-size: 1.25rem; letter-spacing: 0.08em; }
    .hero-business { font-size: 0.9rem; margin-bottom: 0.85rem; }
    .hero-content { padding-left: 6% !important; }

    .container { padding-right: 20px !important; padding-left: 20px !important; }

    .feature-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .company-table th, .company-table td {
        display: block !important;
        width: 100% !important;
        border: none !important;
        padding: 12px 10px !important;
        text-align: left !important;
    }
    .company-table th {
        background-color: #eee !important;
        color: #000 !important;
        font-weight: bold !important;
        border-bottom: 1px solid #ddd !important;
    }

    .news-container, .message-container, .card-custom { padding: 20px !important; margin-bottom: 20px !important; }
    .news-item { flex-direction: column; }
    .news-date { margin-bottom: 6px; }
    .tel-link { font-size: 1.8rem; }
    .reason-item { gap: 14px; }
    .method-box { padding: 20px; }

    .page-hero { padding: 45px 0 35px; }
    .page-hero-title { font-size: 1.6rem; }
    .qa-pair { margin-bottom: 28px; }
    .qa-panel-text,
    .qa-panel-q h2.qa-panel-text,
    .qa-panel-text p,
    .qa-subnote {
        font-size: 0.98rem;
    }
    .qa-panel-text { padding: 16px 18px 20px; }
}
