@charset "UTF-8";
/* ==========================================================================
   株式会社キャステック 共通スタイル
   旧ホームページ・ビルダー テンプレート「1Ad」（hpb-template-01-01d-01）の
   デザインをそのまま引き継ぎ、HTML5化・スマートフォン表示を追加したもの。
   - PC（901px〜）  : 旧サイトと同じ 900px 固定レイアウト
   - スマホ（〜900px）: 1カラムの可変レイアウト（末尾の @media を参照）
   ========================================================================== */

/* --------------------------------------------------------------------------
   基本
   -------------------------------------------------------------------------- */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-size: 70%;
    font-family: 'メイリオ', Meiryo, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'Noto Sans JP', 'ＭＳ Ｐゴシック', Osaka, sans-serif;
    color: #666666; /* 標準文字色 */
    min-width: 900px;
    background: #ffffff url(../images/bg_1Ad_01_02.png) repeat-x left top;
}

/* トップページは背景なし（白） */
.hpb-layoutset-01 {
    background-image: none;
}

/* お問い合わせページのみ下地がわずかに生成り色 */
.page-contact {
    background-color: #fefef8;
}

img {
    border: 0;
}

/* 本文へスキップ（キーボード操作時のみ表示） */
.skip-link {
    position: absolute;
    top: 0;
    left: -9999px;
    z-index: 100;
    padding: 8px 12px;
    background: #3b7901;
    color: #ffffff !important;
}
.skip-link:focus {
    left: 8px;
}

/* --------------------------------------------------------------------------
   レイアウト
   -------------------------------------------------------------------------- */
#hpb-container {
    position: relative;
    background: url(../images/fbg_1Ad.png) repeat-x left bottom;
}

/* トップページはヘッダー直下の帯として表示（旧サイトの見た目を再現） */
.hpb-layoutset-01 #hpb-container {
    background-position: 0 240px;
}

#hpb-header {
    position: relative;
    width: 900px;
    height: 89px;
    margin: 0 auto;
}

.hpb-layoutset-01 #hpb-header {
    height: 111px;
}

#hpb-inner {
    position: relative;
    width: 900px;
    margin: 0 auto;
}

#hpb-inner::after {
    content: "";
    display: block;
    clear: both;
}

#hpb-wrapper {
    width: 650px;
    float: left;
}

.hpb-layoutset-02 #hpb-wrapper {
    padding-top: 53px;
}

#hpb-main {
    width: 650px;
    text-align: left;
}

.hpb-layoutset-01 #hpb-main {
    padding-top: 20px;
}

#hpb-aside {
    width: 220px;
    float: right;
    padding-bottom: 50px;
}

.hpb-layoutset-02 #hpb-aside {
    margin-top: 39px;
}

#hpb-footer {
    width: 900px;
    height: 128px;
    margin: 0 auto;
    clear: both;
    padding-top: 50px;
}

/* --------------------------------------------------------------------------
   ヘッダー
   -------------------------------------------------------------------------- */
#hpb-headerMain {
    height: 19px;
    margin: 0 auto;
}

#hpb-headerMain .tagline {
    margin: 0;
    padding: 0;
    text-align: left;
    font-weight: normal;
    line-height: 18px;
    font-size: 10px;
    color: #ffffff; /* ヘッダー説明文文字色 */
}

#hpb-headerLogo {
    float: left;
    padding-top: 21px;
}

#hpb-headerLogo h1 {
    margin: 0;
    font-size: 1em;
    line-height: 0;
}

#hpb-headerLogo img {
    vertical-align: top;
}

#hpb-headerExtra1 {
    width: 330px;
    margin: 0 10px 0 0;
    padding-top: 20px;
    float: right;
}

#hpb-headerExtra1 p {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    text-align: right;
}

#hpb-headerExtra1 p.tel {
    /* 電話番号の文字設定 */
    font-size: 1.7em;
    font-weight: bold;
    color: #6cbd1e;
}

#hpb-headerExtra1 p.tel span {
    /* 電話番号の「TEL」文字設定 */
    color: #cccccc;
}

#hpb-headerExtra1 p.tel a {
    color: inherit;
    text-decoration: none;
}

/* スマホ用メニューボタン（PCでは非表示） */
.nav-toggle {
    display: none;
}

/* --------------------------------------------------------------------------
   ナビゲーション
   -------------------------------------------------------------------------- */
#hpb-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 900px;
    height: 38px;
    overflow: hidden;
    border-left: 1px solid #cccccc;
}

.hpb-layoutset-01 #hpb-nav {
    top: 220px;
}

/* 6項目を900pxの帯いっぱいに均等配置（採用情報の削除で右側が空かないように） */
#hpb-nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-align: left;
}

#hpb-nav li {
    flex: 1 1 0;
    font-size: 13px;
    line-height: 38px;
    height: 38px;
    overflow: hidden;
    border-right: 1px solid #cccccc;
}

#hpb-nav li a {
    display: block;
    height: 37px;
    overflow: hidden;
    padding-left: 27px;
    padding-right: 10px;
    text-align: center;
    font-weight: bold;
    color: #666666;
    text-decoration: none;
    background: url(../images/mainmenu_1Ad_01.png) no-repeat left top;
}

#hpb-nav li a:hover,
#hpb-nav li a:focus-visible,
#hpb-nav li a:active {
    color: #ffffff;
    background: url(../images/mainmenu_1Ad_01_on.png) repeat-x left top;
}

/* --------------------------------------------------------------------------
   サイドバー
   -------------------------------------------------------------------------- */
#banner {
    margin-top: 15px;
    background-color: #f4f4f4;
    padding-top: 10px;
}

#banner ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#banner li {
    padding-bottom: 10px;
}

#banner li a {
    display: block;
    width: 200px;
    height: 70px;
    margin: 0 auto;
    text-indent: -9999px;
    overflow: hidden;
    background-position: top left;
    background-repeat: no-repeat;
}

#banner a#banner-service {
    /* お問い合わせバナー */
    background-image: url(../images/top_banner_1Ad_0121.png);
}

#banner a#banner-access {
    /* アクセスバナー */
    background-image: url(../images/top_banner_1Ad_0312.png);
}

#companyinfo {
    padding-top: 0;
    padding-bottom: 10px;
    background-color: #f3f3f3;
}

#companyinfo h2 {
    margin: 1em 0;
    padding: 5px 5px 5px 15px;
    color: #ffffff;
    text-align: left;
    font-weight: bold;
    background-color: #4c9d01;
    font-size: 1em;
}

#companyinfo address {
    font-style: normal;
}

#companyinfo p {
    margin-bottom: 10px;
    padding-left: 15px;
    padding-right: 5px;
}

/* --------------------------------------------------------------------------
   基本パーツ
   -------------------------------------------------------------------------- */
a:link,
a:visited {
    color: #6cbd1e;
    text-decoration: underline;
}

a:hover,
a:active {
    color: #6cbd1e;
    text-decoration: none;
}

p {
    margin-top: 0.5em;
    margin-bottom: 2em;
    padding-right: 0.1em;
    padding-left: 0.1em;
    line-height: 1.4;
    text-align: left;
}

p.large {
    color: #3c7a01;
    font-weight: bold;
}

strong.new {
    color: #ff0000;
}

hr {
    /* 旧サイトでは区切り線を余白としてのみ使用（線は表示しない） */
    width: 100%;
    height: 1px;
    margin: 10px auto 20px;
    padding: 0;
    clear: both;
    border: none;
}

/* ページタイトル */
#hpb-title h1 {
    width: 650px;
    height: 50px;
    margin: 0 auto 0.5em 0;
    font-size: 1.5em;
    line-height: 57px;
    text-align: left;
    overflow: hidden;
    background-image: url(../images/content_title_1Ad.png);
}

#hpb-title h1 .ja {
    font-size: 1.15em;
    color: #ffffff;
    padding-right: 10px;
    line-height: 50px;
    padding-left: 18px;
}

#hpb-title h1 .en {
    font-size: 0.9em;
    color: #c4f493;
}

/* 本文見出し */
.hpb-layoutset-02 #hpb-main h2 {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    text-align: left;
    padding-top: 3px;
    padding-left: 1px;
    border-bottom: 2px solid #3c7c00;
    font-size: 1.3em;
    color: #3c7a01;
}

#hpb-main ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#hpb-main ul li {
    text-align: left;
    line-height: 1.4;
    padding: 10px 15px 10px 25px;
    background: url(../images/point_1Ad.png) no-repeat 5px 12px;
    border-bottom: 1px dotted #dddddd;
    color: #000000;
}

#hpb-main dl {
    margin: 0 0 20px;
    padding: 0;
}

#hpb-main dl::after {
    content: "";
    display: block;
    clear: both;
}

#hpb-main dt {
    float: left;
    margin: 0;
    text-align: left;
    line-height: 16px;
    min-height: 16px;
    font-weight: bold;
    width: 170px;
    padding: 10px 0 10px 25px;
    background: url(../images/point_1Ad.png) no-repeat 5px 12px;
    color: #57a110;
}

#hpb-main dd {
    margin: 0;
    padding: 10px 15px 10px 195px;
    text-align: left;
    line-height: 16px;
    min-height: 16px;
    border-bottom: 1px dotted #dddddd;
}

#hpb-main img.left {
    margin: 5px 20px 10px 0;
    float: left;
}

/* ページの先頭へ（背景画像版） */
#pagetop {
    margin: 10px auto 0;
    text-align: right;
}

#pagetop a {
    display: block;
    margin-left: auto;
    width: 125px;
    height: 21px;
    overflow: hidden;
    background: url(../images/returnTop_1Ad.png) no-repeat top left;
    text-align: left;
    text-indent: -9999px;
}

#pagetop a img {
    display: block;
    text-indent: 0;
}

/* ページの先頭へ（画像リンク版） */
.to-top {
    margin: 0;
    padding: 0;
    line-height: normal;
    text-align: right;
}

.to-top img {
    vertical-align: bottom;
}

/* --------------------------------------------------------------------------
   スライドショー（旧Flash部分の置き換え）
   -------------------------------------------------------------------------- */
.slideshow {
    position: relative;
    overflow: hidden;
    container-type: inline-size;
}

.slideshow .slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition-property: opacity;
    transition-duration: 1000ms;
    transition-timing-function: ease-in-out;
}

.slideshow .slide.is-active {
    opacity: 1;
}

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

/* トップページ メインイメージ */
#hpb-title.hpb-top-image {
    position: relative;
    height: 257px;
}

.hero {
    position: absolute;
    top: 17px;
    left: -13px;
    width: 937px;
    height: 216px;
    background-color: #6cbd1e;
}

.hero .cap {
    position: absolute;
    margin: 0;
    padding: 0;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    font-family: 'HG丸ｺﾞｼｯｸM-PRO', 'Hiragino Maru Gothic ProN', 'ヒラギノ丸ゴ ProN', 'Rounded Mplus 1c', 'メイリオ', Meiryo, sans-serif;
}

.hero .cap .ja {
    display: block;
    font-size: max(12px, 1.72cqw);
}

.hero .cap .en {
    display: block;
    margin-top: 0.9em;
    font-size: max(11px, 1.52cqw);
    font-family: Arial, Helvetica, sans-serif;
}

.hero .slide .cap {
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 1.5s ease-out 0.6s, transform 1.5s ease-out 0.6s;
}

.hero .slide.is-active .cap {
    opacity: 1;
    transform: none;
}

/* 文字の位置は旧Flash（990×220）の座標を百分率に換算 */
.hero .cap-1 { left: 25.0%; top: 8%; }
.hero .cap-2 { left: 30.1%; top: 17%; }
.hero .cap-3 { left: 4.7%;  top: 50%; }

.hero .cap-4 {
    left: 43.3%;
    top: 0;
    width: 56.7%;
    height: 100%;
    display: flex;
    align-items: center;
    font-family: 'Arial Black', Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 9.6cqw;
    letter-spacing: 0.02em;
    color: #2020ff;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

/* トップページ 秋田の風景 */
.slideshow.akita {
    width: 634px;
    height: 368px;
    margin: 5px 0 6px;
    background-color: #ffffff;
}

/* --------------------------------------------------------------------------
   トップページ
   -------------------------------------------------------------------------- */
.top-intro {
    margin: 0;
    padding: 0;
    line-height: normal;
}

.top-intro .divider {
    vertical-align: baseline;
}

#toppage-news h2 {
    width: 120px;
    margin: 0.5em 0;
    height: 26px;
    overflow: hidden;
    background: url(../images/top_indexBg_1Ad.png) no-repeat top left;
    line-height: 28px;
    padding-left: 10px;
    box-sizing: border-box;
    text-align: left;
    color: #ffffff;
    font-size: 1.2em;
    font-family: Arial, Helvetica, sans-serif;
}

#toppage-news h2 .ja {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* 旧サイトでは一覧の上に空行があり、点線が1本入っていた */
#toppage-news dl::before {
    content: "";
    display: block;
    height: 36px;
    border-bottom: 1px dotted #dddddd;
}

/* --------------------------------------------------------------------------
   下層ページ
   -------------------------------------------------------------------------- */
/* 会社概要 */
#company .to-top {
    margin: 18px 0 2px;
}

/* 施工実績 */
.works {
    margin-top: 0;
    margin-bottom: 2em;
    line-height: normal;
}

.service-photo {
    margin: 30px 0 30px 440px;
    padding: 0;
}

.service-photo img {
    display: block;
}

/* 新着情報 */
#news .indent {
    margin: 0 40px;
}

.news-photo {
    margin: 0 auto 30px;
    text-align: center;
}

.news-photo img {
    display: inline-block;
    width: 582px;
    height: 370px;
    object-fit: cover;
}

/* アクセス */
.map {
    display: block;
    width: 600px;
    max-width: 100%;
    height: 450px;
    border: 0;
}

/* お問い合わせ */
.contact-top {
    margin-top: 150px;
    text-align: left;
}

/* ==========================================================================
   スマートフォン・タブレット（900px以下）
   ========================================================================== */
@media (max-width: 900px) {
    body {
        min-width: 0;
        font-size: 87.5%;
        background-image: none;
    }

    img,
    iframe {
        max-width: 100%;
    }

    img {
        height: auto;
    }

    /* ---- ヘッダー ---- */
    #hpb-container,
    .hpb-layoutset-01 #hpb-container {
        background-position: left bottom;
    }

    .hpb-layoutset-01 #hpb-container {
        background-image: none;
    }

    #hpb-header,
    .hpb-layoutset-01 #hpb-header {
        width: auto;
        height: auto;
        padding: 0 16px 12px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px 12px;
    }

    #hpb-headerMain {
        flex: 1 0 100%;
        height: auto;
        margin: 0 -16px;
        padding: 3px 16px;
        background-color: #3b7901;
    }

    .hpb-layoutset-01 #hpb-headerMain {
        display: none;
    }

    #hpb-headerMain .tagline {
        font-size: 11px;
    }

    #hpb-headerLogo {
        float: none;
        padding-top: 14px;
    }

    #hpb-headerLogo img {
        width: 200px;
    }

    #hpb-headerExtra1 {
        float: none;
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        margin: 0;
        padding-top: 0;
    }

    .hpb-layoutset-01 #hpb-headerExtra1 {
        order: 3;
        flex-basis: 100%;
    }

    #hpb-headerExtra1 p {
        text-align: left;
    }

    #hpb-headerExtra1 p.tel {
        font-size: 1.6em;
    }

    #hpb-headerExtra1 p.address {
        font-size: 0.85em;
    }

    .js .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        margin-left: auto;
        width: 52px;
        height: 48px;
        padding: 0;
        border: 0;
        border-radius: 4px;
        background-color: #4c9d01;
        color: #ffffff;
        font: bold 10px/1 'メイリオ', Meiryo, sans-serif;
        cursor: pointer;
    }

    .hpb-layoutset-01 .nav-toggle {
        margin-top: 14px;
    }

    .nav-toggle-bar,
    .nav-toggle-bar::before,
    .nav-toggle-bar::after {
        display: block;
        width: 22px;
        height: 2px;
        background-color: #ffffff;
        transition: transform 0.2s, background-color 0.2s;
    }

    .nav-toggle-bar {
        position: relative;
        margin: 6px 0 7px;
    }

    .nav-toggle-bar::before,
    .nav-toggle-bar::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .nav-toggle-bar::before { top: -6px; }
    .nav-toggle-bar::after  { top: 6px; }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar {
        background-color: transparent;
    }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
        transform: translateY(6px) rotate(45deg);
    }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* ---- 本体：ナビ → 本文 → サイドバー の順に縦積み ---- */
    #hpb-inner {
        width: auto;
        display: flex;
        flex-direction: column;
    }

    #hpb-inner::after {
        content: none;
    }

    #hpb-nav,
    .hpb-layoutset-01 #hpb-nav {
        order: -1;
        position: static;
        width: auto;
        height: auto;
        border-left: 0;
        border-top: 1px solid #cccccc;
    }

    .js #hpb-nav {
        display: none;
    }

    .js #hpb-nav.is-open {
        display: block;
    }

    #hpb-nav ul {
        display: block;
    }

    #hpb-nav li {
        float: none;
        height: auto;
        font-size: 15px;
        line-height: 48px;
        border-right: 0;
        border-bottom: 1px solid #cccccc;
    }

    #hpb-nav li a {
        height: auto;
        padding-left: 43px;
        text-align: left;
        background-color: #ffffff;
        background-position: 16px 50%;
    }

    #hpb-nav li a:hover,
    #hpb-nav li a:focus-visible,
    #hpb-nav li a:active {
        background-size: auto 100%;
    }

    #hpb-nav li a[aria-current="page"] {
        color: #3c7a01;
    }

    #hpb-wrapper,
    .hpb-layoutset-02 #hpb-wrapper {
        float: none;
        width: auto;
        padding: 16px 16px 0;
    }

    #hpb-main {
        width: auto;
    }

    .hpb-layoutset-01 #hpb-main {
        padding-top: 4px;
    }

    #hpb-aside,
    .hpb-layoutset-02 #hpb-aside {
        float: none;
        width: auto;
        margin: 24px 16px 0;
        padding-bottom: 24px;
    }

    #hpb-footer {
        width: auto;
        height: auto;
        padding-top: 40px;
    }

    /* ---- サイドバー ---- */
    #banner ul {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 0 10px 10px;
    }

    #banner li {
        flex: 0 1 200px;
        min-width: 0;
        padding: 0;
    }

    /* 2枚を横並びにし、狭い画面では比率を保って縮小 */
    #banner li a {
        width: 100%;
        height: auto;
        aspect-ratio: 200 / 70;
        background-size: 100% 100%;
    }

    /* ---- 共通パーツ ---- */
    p {
        line-height: 1.6;
    }

    #hpb-title h1 {
        width: auto;
        background-size: 100% 100%;
    }

    #hpb-main dt {
        float: none;
        width: auto;
        padding-bottom: 0;
    }

    #hpb-main dd {
        padding-left: 25px;
        line-height: 1.6;
    }

    #hpb-main ul li {
        line-height: 1.6;
    }

    #hpb-main img.left {
        float: none;
        display: block;
        margin: 5px 0 12px;
    }

    #pagetop,
    .to-top {
        margin-top: 16px;
    }

    /* ---- トップページ ---- */
    #hpb-title.hpb-top-image {
        height: auto;
        margin: 0;
    }

    .hero {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        height: auto;
        aspect-ratio: 990 / 400;
    }

    .hero .cap-3 { top: 55%; }

    .top-intro {
        line-height: 1.7;
    }

    .top-intro br.pc {
        display: none;
    }

    .slideshow.akita {
        width: auto;
        height: auto;
        aspect-ratio: 634 / 368;
    }

    #toppage-news dl::before {
        height: 8px;
    }

    /* ---- 下層ページ ---- */
    .works {
        line-height: 1.7;
    }

    .service-photo {
        margin: 24px 0;
    }

    .service-photo img {
        margin: 0 auto;
    }

    #news .indent {
        margin: 0;
    }

    .news-photo img {
        width: 100%;
        height: auto;
        aspect-ratio: 582 / 370;
    }

    .map {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .contact-top {
        margin-top: 24px;
    }
}

/* 動きを減らす設定の端末ではアニメーションしない */
@media (prefers-reduced-motion: reduce) {
    .slideshow .slide,
    .hero .slide .cap,
    .nav-toggle-bar,
    .nav-toggle-bar::before,
    .nav-toggle-bar::after {
        transition: none !important;
    }
}

/* 電話・FAX番号の画像（迷惑電話対策。文字の大きさに合わせて伸縮） */
img.num {
    width: auto;
    vertical-align: -0.06em;
}

img.num-tel-l {
    height: 0.842em;
}

img.num-tel,
img.num-fax {
    height: 0.882em;
}
