@charset "UTF-8";

/* ==========================================================================
   1. 共通・リセット・デフォルト設定
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

body, input, textarea, select, button {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif !important;
}

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

img.acinst-logo {
    width: auto !important;
    max-width: 100% !important;
}

/* ==========================================================================
   2. ファーストビュー（ヒーロー・特徴・対応施設エリア）
   ========================================================================== */
.acinst-lp, .acinst-lp * {
    box-sizing: border-box;
}

.acinst-lp {
    --acinst-s: 1px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    color: #06634f;
    background: #fff;
    line-height: 1.35;
    overflow: hidden;
    container-type: inline-size;
}

@supports (width: 1cqw) {
    .acinst-lp { --acinst-s: clamp(1px, 0.1cqw, 1.92px); }
}

/* ヒーローエリア */
.acinst-hero {
    position: relative;
    min-height: calc(508 * var(--acinst-s));
    background: #fff;
    overflow: hidden;
}

.acinst-hero__photo {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
    pointer-events: none;
}

.acinst-hero__picture {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.acinst-hero__picture img, .acinst-hero__bg {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

.acinst-hero__content {
    position: relative;
    z-index: 5;
    width: 66%;
    min-height: calc(508 * var(--acinst-s));
    padding: calc(13 * var(--acinst-s)) 0 0 calc(18 * var(--acinst-s));
}

/* ヘッダー・ロゴ */
.acinst-header {
    display: flex;
    align-items: flex-start;
    gap: calc(12 * var(--acinst-s));
    margin-bottom: calc(8 * var(--acinst-s));
}

.acinst-logo {
    width: calc(142 * var(--acinst-s));
    height: auto;
    display: block;
}

.acinst-header__lead {
    font-size: calc(12 * var(--acinst-s));
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: #06634f;
    letter-spacing: .02em;
}

/* テキストコンテンツ */
.acinst-label {
    display: inline-block;
    margin: calc(4 * var(--acinst-s)) 0 calc(10 * var(--acinst-s)) 0;
    padding: calc(5 * var(--acinst-s)) calc(23 * var(--acinst-s));
    background: #06634f;
    color: #fff;
    font-size: calc(19 * var(--acinst-s));
    font-weight: 800;
    line-height: 1;
}

.acinst-title {
    margin: 0;
    color: #06634f;
    font-weight: 900;
    font-size: calc(76 * var(--acinst-s));
    line-height: 1.02;
    letter-spacing: .02em;
    text-shadow: 0 1px 0 rgba(255,255,255,.65);
}

.acinst-subtitle {
    margin: calc(11 * var(--acinst-s)) 0 0;
    font-size: calc(18 * var(--acinst-s));
    font-weight: 900;
    color: #06634f;
    letter-spacing: .03em;
}

/* 導入実績 */
.acinst-achievements {
    display: flex;
    gap: calc(12 * var(--acinst-s));
    align-items: center;
    margin-top: calc(34 * var(--acinst-s));
    padding-left: calc(8 * var(--acinst-s));
    position: relative;
    z-index: 6;
    width: calc(470 * var(--acinst-s));
}

.acinst-achievements__item {
    position: relative;
    flex: 0 0 calc(144 * var(--acinst-s));
    min-width: calc(144 * var(--acinst-s));
    text-align: center;
    color: #4c4a38;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: .01em;
    padding: calc(2 * var(--acinst-s)) calc(3 * var(--acinst-s));
    white-space: nowrap;
}

.acinst-achievements__item:nth-child(3) {
    flex-basis: calc(158 * var(--acinst-s));
    min-width: calc(158 * var(--acinst-s));
}

.acinst-achievements__item span,
.acinst-achievements__item strong,
.acinst-achievements__item em,
.acinst-achievements__item small {
    text-shadow: calc(1 * var(--acinst-s)) 0 0 #fff, calc(-1 * var(--acinst-s)) 0 0 #fff, 0 calc(1 * var(--acinst-s)) 0 #fff, 0 calc(-1 * var(--acinst-s)) 0 #fff, calc(1 * var(--acinst-s)) calc(1 * var(--acinst-s)) 0 #fff, calc(-1 * var(--acinst-s)) calc(1 * var(--acinst-s)) 0 #fff, calc(1 * var(--acinst-s)) calc(-1 * var(--acinst-s)) 0 #fff, calc(-1 * var(--acinst-s)) calc(-1 * var(--acinst-s)) 0 #fff, 0 calc(2 * var(--acinst-s)) calc(2 * var(--acinst-s)) rgba(255,255,255,.75);
}

.acinst-achievements__item span {
    display: block;
    font-size: calc(11 * var(--acinst-s));
    color: #645b42;
    font-weight: 900;
}

.acinst-achievements__item strong {
    display: inline-block;
    font-size: calc(35 * var(--acinst-s));
    color: #b68a25;
    line-height: .98;
    letter-spacing: -.04em;
}

.acinst-achievements__item:nth-child(3) strong {
    font-size: calc(32 * var(--acinst-s));
    letter-spacing: -.06em;
}

.acinst-achievements__item em {
    font-style: normal;
    font-size: calc(16 * var(--acinst-s));
    color: #b68a25;
    margin-left: calc(2 * var(--acinst-s));
    font-weight: 900;
}

.acinst-achievements__item small {
    display: block;
    font-size: calc(10 * var(--acinst-s));
    color: #645b42;
    margin-top: calc(3 * var(--acinst-s));
    font-weight: 900;
    line-height: 1.2;
}

/* かんたん見積もりリンク (PC用) */
.acinst-estimate-link {
    position: absolute;
    z-index: 8;
    right: calc(13 * var(--acinst-s));
    top: calc(10 * var(--acinst-s));
    width: calc(310 * var(--acinst-s));
    height: calc(483 * var(--acinst-s));
    display: block;
    text-decoration: none;
    border-radius: calc(10 * var(--acinst-s));
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 calc(8 * var(--acinst-s)) calc(20 * var(--acinst-s)) rgba(0,35,78,.28);
    transition: transform .24s ease, box-shadow .24s ease, filter .24s ease, opacity .24s ease;
    cursor: pointer;
}

.acinst-estimate-link:hover {
    transform: translateY(calc(-5 * var(--acinst-s))) scale(1.015);
    box-shadow: 0 calc(16 * var(--acinst-s)) calc(32 * var(--acinst-s)) rgba(0,35,78,.38);
    filter: brightness(1.06) saturate(1.08);
    opacity: .98;
}

.acinst-estimate-link__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* 対応サービス特徴（5項目） */
.acinst-features {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    width: calc(585 * var(--acinst-s));
    margin-top: calc(-112 * var(--acinst-s));
    margin-left: 0;
    background: #fff;
    border: 1px solid #edf1f4;
    box-shadow: 0 calc(4 * var(--acinst-s)) calc(10 * var(--acinst-s)) rgba(12,47,91,.12);
}

.acinst-feature {
    min-height: calc(86 * var(--acinst-s));
    padding: calc(12 * var(--acinst-s)) calc(5 * var(--acinst-s)) calc(7 * var(--acinst-s));
    text-align: center;
    border-right: 1px solid #edf1f4;
    background: rgba(255,255,255,.96);
}

.acinst-feature:last-child {
    border-right: 0;
}

.acinst-feature span {
    display: block;
    height: calc(25 * var(--acinst-s));
    margin-bottom: calc(6 * var(--acinst-s));
    font-size: calc(26 * var(--acinst-s));
    line-height: 1;
    color: #06634f;
    font-weight: 900;
}

.acinst-feature strong {
    display: block;
    font-size: calc(12 * var(--acinst-s));
    color: #06634f;
    font-weight: 900;
}

.acinst-feature small {
    display: block;
    font-size: calc(8 * var(--acinst-s));
    color: #666;
    margin-top: calc(3 * var(--acinst-s));
    font-weight: 700;
}

/* 対応施設一覧グリッド */
.acinst-facilities {
    display: grid;
    grid-template-columns: calc(136 * var(--acinst-s)) repeat(6, 1fr) calc(70 * var(--acinst-s));
    gap: calc(10 * var(--acinst-s));
    align-items: center;
    padding: calc(12 * var(--acinst-s)) 0 calc(12 * var(--acinst-s)) calc(2 * var(--acinst-s));
    background: #fff;
}

.acinst-facilities__heading {
    height: calc(80 * var(--acinst-s));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 calc(10 * var(--acinst-s));
    background: #06634f;
    color: #fff;
    font-size: calc(19 * var(--acinst-s));
    font-weight: 900;
    line-height: 1.45;
    clip-path: polygon(0 0, 86% 0, 100% 50%, 86% 100%, 0 100%);
}

.acinst-card {
    position: relative;
    margin: 0;
    height: calc(72 * var(--acinst-s));
    border-radius: calc(3 * var(--acinst-s));
    overflow: hidden;
    background:#06634f;
    box-shadow: 0 calc(1 * var(--acinst-s)) calc(3 * var(--acinst-s)) rgba(0,0,0,.18);
}

.acinst-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.acinst-card p {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: calc(3 * var(--acinst-s)) calc(2 * var(--acinst-s));
    background: #06634f;
    color: #fff;
    text-align: center;
    font-size: calc(11 * var(--acinst-s));
    font-weight: 900;
    line-height: 1.1;
}

.acinst-facilities__etc {
    margin: 0;
    font-size: calc(13 * var(--acinst-s));
    line-height: 1.35;
    font-weight: 900;
    color: #06634f;
    text-align: center;
}

/* ========================================================
   3. スマホ用フローティングナビ (画面最下部固定)
   ======================================================== */
.acinst-floating-nav {
    display: none !important; /* デフォルトPCは非表示 */
    width: 100% !important;
    position: fixed;
    bottom: 0;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999;
}

.acinst-floating-nav__container {
    position: relative;
    width: 100%;
    display: block;
}

.acinst-floating-nav__bg {
    width: 100% !important;
    height: auto !important;
    display: block;
}

.acinst-floating-nav__link-left,
.acinst-floating-nav__link-right {
    position: absolute;
    top: 0;
    height: 100%;
    display: block;
}

.acinst-floating-nav__link-left {
    left: 0;
    width: 40%;
}

.acinst-floating-nav__link-right {
    right: 0;
    width: 60%;
}

/* ========================================================
   4. ページトップへ戻るボタン
   ======================================================== */
.scroll-top-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    width: 65px;
    height: 65px;
    background-color: #333333;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    opacity: 0;
    visibility: hidden;
}

.scroll-top-btn.is-show {
    opacity: 1;
    visibility: visible;
}

@media (hover: hover) {
    .scroll-top-btn:hover {
        background-color: #06634f;
        transform: translateY(-3px);
    }
}

/* ========================================================
   5. 【追加コンポーネント】共通目次 (custom-toc)
   ======================================================== */
.custom-toc-wrapper {
    width: 100%;
    max-width: 1200px;
    background-color: #fafafa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin: 20px auto;
    box-sizing: border-box;
}

.custom-toc-main-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #666666;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.custom-toc-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.custom-toc-item {
    border-bottom: 1px dashed #dddddd !important;
    margin: 0 !important;
    padding: 0 !important;
}

.custom-toc-item:last-child {
    border-bottom: none !important;
}

.custom-toc-link {
    display: flex !important;
    align-items: center;
    padding: 14px 8px !important;
    text-decoration: none !important;
    color: #333333 !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.custom-toc-link:hover {
    background-color: #f0f0f0 !important;
    color: #06634f !important;
    text-decoration: underline !important;
}

.custom-toc-number {
    font-family: "Georgia", serif !important;
    font-size: 0.95rem !important;
    font-weight: bold !important;
    color: #888888 !important;
    margin-right: 20px !important;
    width: 24px !important;
    text-align: right;
    flex-shrink: 0;
}

.custom-toc-text {
    font-size: 1rem !important;
    font-weight: 500 !important;
    line-height: 1.4;
}

/* ========================================================
   6. スマートフォン専用メディアクエリ調整 (max-width: 720px)
   ======================================================== */
@media (max-width: 720px) {
    /* 共通設定 */
    body {
        padding-bottom: 90px !important; /* 固定ナビの高さ分の余白 */
    }

    img.acinst-logo {
        width: 140px !important;
        max-width: 45% !important;
        height: auto !important;
        flex-shrink: 0 !important;
    }

    /* ヒーローエリアスマホ挙動 */
    .acinst-hero {
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        background: #fff !important;
        padding: 0 12px 18px !important;
    }

    .acinst-hero__photo {
        position: absolute !important;
        inset: 0 !important;
        z-index: 1 !important;
        opacity: 0.55 !important;
    }

    /* hero背景画像はHTMLの <picture> タグ内で指定済み:
       images/hero_bg.jpg (PC) / images/hero_bg2.jpg (スマホ) */

    .acinst-hero__content {
        position: relative !important;
        z-index: 2 !important;
        width: 100% !important;
        min-height: auto !important;
        background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.6) 60%, rgba(255,255,255,0) 100%) !important;
        padding: 15px 12px 30px !important;
    }

    .acinst-hero .acinst-estimate-link {
        display: none !important;
    }

    /* ヘッダー・各種テキスト */
    .acinst-header {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .acinst-header__lead {
        flex: 1 !important;
        font-size: 11px !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        white-space: normal !important;
    }

    .acinst-label {
        font-size: 15px !important;
        margin-top: 8px !important;
    }

    .acinst-title {
        font-size: clamp(44px, 15vw, 72px) !important;
    }

    .acinst-subtitle {
        font-size: 15px !important;
    }

    /* 導入実績スマホ */
    .acinst-achievements {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 5px !important;
        margin: 15px 0 0 !important;
        width: 100% !important;
        padding-left: 0 !important;
    }

    .acinst-achievements__item {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }

    .acinst-achievements__item span { font-size: clamp(9px, 1.2vw, 11px) !important; }
    .acinst-achievements__item strong { font-size: 27px !important; }
    .acinst-achievements__item:nth-child(3) strong { font-size: clamp(18px, 2.8vw, 32px) !important; }
    .acinst-achievements__item em { font-size: clamp(10px, 1.5vw, 13px) !important; }
    .acinst-achievements__item small { font-size: clamp(8px, 1vw, 10px) !important; }

    /* 特徴グリッドスマホ */
    .acinst-features {
        width: 100% !important;
        margin: 0 !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .acinst-feature:nth-child(5) {
        grid-column: 1 / -1 !important;
    }

    /* 対応施設スマホ */
    .acinst-facilities {
        grid-template-columns: 1fr 1fr !important;
        padding: 10px 12px !important;
        gap: 8px !important;
    }

    .acinst-facilities__heading {
        grid-column: 1 / -1 !important;
        clip-path: none !important;
        height: auto !important;
        padding: 12px !important;
    }

    .acinst-card {
        height: 84px !important;
    }

    .acinst-facilities__etc {
        grid-column: 1 / -1 !important;
    }

    /* 固定ナビスマホ有効化 */
    .acinst-floating-nav {
        display: block !important;
    }

    /* ページトップボタン位置調整 */
    .scroll-top-btn {
        right: 15px !important;
        bottom: 85px !important;
        width: 60px !important;
        height: 60px !important;
        font-size: 0.7rem !important;
    }

    /* 目次スマホ最適化 */
    .custom-toc-wrapper {
        padding: 16px 14px;
        margin: 14px auto;
    }
    .custom-toc-main-title {
        font-size: 0.95rem;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }
    .custom-toc-link {
        padding: 9px 4px !important;
    }
    .custom-toc-number {
        font-size: 0.8rem !important;
        margin-right: 12px !important;
        width: 18px !important;
    }
    .custom-toc-text {
        font-size: 0.82rem !important;
        line-height: 1.35;
    }
    .custom-toc-detail, .custom-toc-colon, .custom-toc-link br {
        display: none !important;
    }
}

/* ========================================================
   お問い合わせバナー（静的インライン設置用）のクリック領域調整
   ======================================================== */
.inquiry-banner-overlay-wrap {
  position: relative;
  display: inline-block;
  width: 85%;
  margin: 0 7.5%;
}
.inquiry-banner-overlay-wrap img {
  display: block;
  width: 100% !important;
  height: auto !important;
}
.banner-link-left, .banner-link-right {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 10;
  outline: none;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}
.banner-link-left {
  left: 0;
  width: 35%;
}
.banner-link-right {
  right: 0;
  width: 65%;
}

.acinst-hero__photo {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
}
.acinst-hero__picture {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
.acinst-hero__picture img {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.ac-image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin: 20px auto;
}
.ac-pc-90-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
@media screen and (min-width: 769px) {
  .ac-pc-90-img {
    width: 90%;
  }
}