@charset "UTF-8";

/*
    company/company.css
    - 目的: サイト共通スタイル（背景、レイアウト、アニメーション）
    - 注意: 不必要な `!important` を削除し、主要セクションに説明コメントを追加
*/

html {
    scroll-behavior: smooth;
}

/* ==================================================
   BACKGROUND：会社概要ページ左右の背景画像
   ================================================== */
/* 左右の画像 */
body {
  position: relative;
  z-index: 0;
  margin: 0;
  background: transparent;
}

/* 共通 */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  width: 20vw;
  height: 100vh;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: -1; /* 背景として表示 */
  pointer-events: none; /* ←クリック邪魔しない */
  will-change: opacity, transform;
}

/* 左 */
body::before {
  left: 0;
  background-image: url("../img/compnyhaikeigazouleft.jpg");
  background-position: left center;
  opacity: 0;
  transform: translateX(-24px);
  animation: sideImageLeftIn 1.2s ease-out 0.2s forwards;
}

/* 右 */
body::after {
  right: 0;
  background-image: url("../img/compnyhaikeigazouright.jpg");
  background-position: right center;
  opacity: 0;
  transform: translateX(24px);
  animation: sideImageRightIn 1.2s ease-out 0.2s forwards;
}

@keyframes sideImageLeftIn {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 0.4;
    transform: translateX(0);
  }
}

@keyframes sideImageRightIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 0.4;
    transform: translateX(0);
  }
}
/* 画面横幅が1024px以下（タブレット・スマホサイズ）になったら背景を消す */
@media screen and (max-width: 1024px) {
    body::before,
    body::after {
        /* モバイルでは疑似要素の背景を非表示にする。重要度は下げて通常のカスケードで制御 */
        display: none; /* 画像（疑似要素）自体を非表示にする */
    }
}


/* コンテンツを前に出す */
main, footer, section {
  position: relative;
  z-index: 1;
}
/* フォント定義 ------------------------------------ */
/* Quicksand */
@font-face {
    font-family: "Quicksand";
    src: url("../font/Quicksand-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* Noto Sans JP */
@font-face {
    font-family: "NotoSansJP";
    src: url("../font/NotoSansJP-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}



/* ==================================================
   BASE：基本タグ・リンク・画像・メイン幅
   ================================================== */
body {
    margin: 0;
}

a {
    text-decoration: none;
    outline: 0;
}


/*ページタイトル上から降ってくる*/
.fadeDown {
    animation-name: fadeInDown;
    /*アニメーション名*/
    animation-duration: 1s;
    /*
    animation-fill-mode　要素に適用されるアニメーションが終了した後のスタイルを制御するために使用される便利なプロパティ
    forwards アニメーションが終了した後、最後のフレームのスタイルを維持
    */
    animation-fill-mode: forwards;
    opacity: 0;
}

.animated {
    /*-webkit　古いバージョンのブラウザ用*/
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    /*
    both
    アニメーションが再生される前に要素に適用されているスタイルが保持
    アニメーションが終了した後も最後のフレームのスタイルが保持
    */
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        /*見えない状態*/
        transform: translateY(-100px);
    }

    to {
        opacity: 1;
        /*見える状態*/
        transform: translateY(0);
    }
}

.company_tr {
    opacity: 0;
}

.fadeUp {
    animation-name: fadeInUp;
    /*アニメーション名*/
    animation-duration: 1s;
    /*
    animation-fill-mode　要素に適用されるアニメーションが終了した後のスタイルを制御するために使用される便利なプロパティ
    forwards アニメーションが終了した後、最後のフレームのスタイルを維持
    */
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        /*見えない状態*/
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        /*見える状態*/
        transform: translateY(0);
    }
}

/*logo_pcが見える状態*/
h1 .logo_pc {
    display: inherit;
}

/*logo_spが見えない状態*/
h1 .logo_sp {
    display: none;
}

h1 {
    font-family: 'Quicksand', sans-serif;
    font-size: 50px;
    font-weight: 400;
    margin: 120px 0 0 0;
    text-align: center;
    letter-spacing: 0.15rem;
    /*左右の文字間隔*/
    display: flex;
    align-items: center;
    justify-content: center;
}

img {
    border: 0;
    max-width: 100%;
}

.logo_pc {
    background-color:transparent; /* ⭕ 透明に書き換える */;
    display: inline-block;
    margin-right: 40px;
    vertical-align: middle;
    width: 120px;
}

main {
    max-width: 1100px;
    margin: 0 auto;
}

.company {
    background-color: transparent;
}

/* ==================================================
   COMPANY INFO TABLE：会社情報テーブル・地図・リンク演出
   ================================================== */
.company_info {
    margin: 120px 0 150px
}

.info-table {
    border: 0;
}

table {
    margin: 0 auto;
    width: 600px;
}

tbody {
    font-family: 'Noto Sans JP', sans-serif;
}

th {
    /*thとtdを横並びにするためにflex*/
    display: flex;
    font-weight: 500;
    padding: 20px;
    width: 100%;
    text-align: left;
}

/*テーブル項目のアイコン画像*/
th img {
    width: 11px;
    margin-right: 10px;
}

th span {
    display: inline-block;
    width: 80%;
}

td {
    vertical-align: inherit;
    border-bottom: 1px solid #ddd;
    padding: 20px;
}

.info-table td a,
.info-table .contact-effect {
    display: inline-block;
    color: inherit;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.info-table td a:hover,
.info-table td a:focus,
.info-table .contact-effect:hover {
    color: #0ba29a;
    transform: translateX(4px);
}

.info-table td a::after,
.info-table .contact-effect::after {
    position: absolute;
    left: 0;
    bottom: 0;
    content: '';
    width: 100%;
    height: 2px;
    background: #0ba29a;
    transform: scale(0, 1);
    transform-origin: right top;
    transition: transform 0.3s ease;
}

.info-table td a:hover::after,
.info-table td a:focus::after,
.info-table .contact-effect:hover::after {
    transform: scale(1, 1);
    transform-origin: left top;
}

.info-table .company-name-link {
    padding-bottom: 4px;
}

/*Googleマップの大きさ*/
iframe {
    width: 100%;
    height: 300px;
}

/*画面サイズが最小768pxまで*/
@media(min-width: 768px) {

    /*電話のリンクについて*/
    a[href^="tel:"] {
        /*イベントなし*/
        pointer-events: auto;
        /*カーソル合せたとき手のカーソルに変化させない*/
        cursor: pointer;
    }
}



/*ページの下のoriginについて*/
.origin {
    text-align: center;
}

.origin>p {
    font-size: 1.0rem;
    margin: 70px 0 100px;
    font-family: 'Noto Sans JP', sans-serif;
}



/*横幅がマックス800pxまでの時*/
@media screen and (max-width: 800px) {
    body {
        width: auto;
        font-family: "Noto Sans JP", sans-serif;
    }
}

/*横幅がマックス650pxまでの時*/
@media screen and (max-width: 650px) {

    * {
        font-size: 13px;
    }

    main {
        max-width: 100%;
        margin: 0 10%;
    }

    /*ページタイトル*/
    h1 {
        display: block;
        /*縦並びにするためにflexだったのをblockに変更*/
        font-size: 40px
    }

    /*logo_pcが見えない状態*/
    h1 .logo_pc {
        display: none;
    }

    h1 .logo_sp {
        display: block;
        background: none;
        /*背景なし*/
        margin: 0 auto 50px;
        padding: 0;
    }

    /*table*/
    table {
        margin: 0 auto;
        width: 90%;
    }

    th {
        position: relative;
        /*親*/
        padding: 1rem .5rem;
        width: 100%;
    }

    /*項目名の下の線*/
    th:after {
        position: absolute;
        /*thの子*/
        bottom: 0;
        left: 0;
        width: 100%;
        height: 5px;
        content: '';
        /*グラデーション*/
        /*-webkit　ブラウザが古いバージョン用*/
        background-image: -webkit-gradient(linear, left top, right top, from(#0ba29af2), to(#ffffff));
        background-image: -webkit-linear-gradient(left, #0ba29af2 0%, #ffffff 100%);
        background-image: linear-gradient(to right, #0ba29af2 0%, #ffffff 100%);
    }

    th span {
        font-weight: 500;
    }

    td {
        border-bottom: none;
        display: block;
        padding: 5%;
        font-size: 13px;
    }

    /*origin*/
    .origin {
        margin: 0 auto;
        text-align: center;
        width: 90%;
    }

    .origin>h2 {
        font-size: 30px;
    }

    .origin>p {
        margin: 50px 0 100px;
        text-align: left;
        font-size: 0.9rem;
    }

    .origin a {
        display: block;
        font-size: 150%;
        margin-top: 35px;
        text-align: center;
    }

    .origin img {
        width: 15px;
        margin-right: 10px;
    }
}


/* ==================================================
   PAGE TOP：右下のページトップボタン
   ================================================== */
.fixed_top.show {
    opacity: 1;
    pointer-events: auto;
}
.fixed_top:hover {
    transform: translateY(-4px);
    background: #0ba29a;
    color: white;
}
.footer_info_cap h1 {
    font-size: 35px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: rgb(0, 0, 0);
}
.fixed_top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    border-radius: 50%;
    text-decoration: none;
    font-size: 22px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border: 2px solid rgb(0, 0, 0);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.fixed_top.show {
    opacity: 1;
    pointer-events: auto;
}
.fixed_top:hover {
    transform: translateY(-4px);
    background: #0ba29a;
    color: white;
}

@media (max-width: 768px) {
    .footer_cta {
        width: 90%;
        margin: 0 auto;
    }

    .footer-contact-button {
        font-size: 16px;
        padding: 12px 24px;
    }
}

@media (max-width: 500px) {
    .footer-contact-button {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* ==================================================
   MOBILE POLISH：スマホで会社概要を読みやすくする調整
   ================================================== */
@media screen and (max-width: 650px) {
    main {
        margin: 0 18px;
    }

    .company_info {
        margin: 72px 0 96px;
    }

    table,
    tbody,
    tr,
    th,
    td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    th {
        padding: 18px 8px 10px;
    }

    td {
        padding: 14px 8px 26px;
        line-height: 1.8;
        word-break: break-word;
    }

    iframe {
        height: 240px;
        border-radius: 6px;
    }
}
