@charset "UTF-8";

/* 全体の設定 */
html {
    font-size: 100%;
}
body {
    font-size: 18px;
    background-color: rgb(247, 246, 242);
    color: #2E3A59;
    letter-spacing: .01em;
    /* フォント設定 */
    font-family: "Zen Maru Gothic", serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.8;
}
a {
    text-decoration: none;
}
img {
    max-width: 100%;
}
li {
    list-style-type: none;
}
.wrapper {
    max-width: 768px;
    margin: 0 28px 20px;
    padding: 0.4%;
    text-align: left;
}
.wrapper h2 {
    margin-bottom: 60px;
    padding: 0.4rem 1rem;
    text-align: center;
}
/* headerの設定 */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    background-color: rgba(249, 249, 249, 0.5);
    backdrop-filter: blur(5px);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}
/* スクロール後にクラスが追加された場合 */
#header.scrolled {
    background-color: rgb(247, 246, 242);
    backdrop-filter: none;
    border-bottom: 1px solid #ccc;
}
.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    height: 100px;
}
.header-inner h1 a {
    display: block;
    height: 62px;
}
.logo img {
    margin-left: 5px;
    width: 155px;
    min-width: 155px;
}
.header-text {
    display: flex;
    padding: 0 10px;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
    align-items: center;
    justify-content: center;
    margin-top: -4px;
}
.header-text p {
    font-weight: 500;
}
.tel-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-left: 24px;
}
.tel-wrap a {
    color:  #3c3f58;
}
.tel-wrap a:hover {
    color: #5daec8;
}
.tel-wrap img {
    width: 20px;
    align-items: center;
}
/* ロゴとハンバーガーメニューを横並びにする */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
/* ハンバーガーアイコンの見た目 */
.spnav-trigger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 15px;
    align-self: center;
    z-index: 1001;
    background-color: #3c3f58;
    border-radius: 4px;
}
.spnav-trigger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background-color: #e5e7eb;
    border-radius: 2px;
    transition: all 0.3s ease;
}
/* 開いた時のスタイル */
.spnav-trigger.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
  
.spnav-trigger.active span:nth-child(2) {
    opacity: 0;
}
  
.spnav-trigger.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}
/* navの設定 */
#company-info,
#manufacturer,
#company,
#manager,
#privacy-policy {
    padding-top: 120px;
    margin-top: -20px;
    margin-bottom: 40px;
}
.nav-wrapper {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    height: calc(100vh - 90px);
    background-color: rgba(11, 11, 41, 0.95);
    z-index: 1001;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
/* メニュー表示状態 */
.nav-wrapper.open {
    max-height: 1100px;
}
.nav-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
    box-sizing: border-box;
    width: 100%;
}
.nav-list li {
    background-color: transparent;
    text-align: center;
    margin: 13px 0;
    font-size: 20px;
    padding: 4px 10px;
    width: 100%;
}
.nav-list li a {
    display: block;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    width: 100%;
    text-align: center;
}
.nav-list li a:hover {
    color: #4A556B;
}
/* main画像の設定 */
.main-image {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}
.main-image img {
    width: 100%;
    min-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-height: 60vh;
    object-position: center 40%;
    object-fit: cover;
}
/* お知らせの設定 */
.news-wrapper {
    background-color: rgb(237, 242, 246);
    width: 100%;
    margin-bottom: 80px;
}
#news {
    color: #2E3A59;
    padding: 20px 15px;
    max-width: 768px;
    margin: 0 auto;
}
.news-list {
    text-align: left;
}
.news-list li {
    padding-bottom: 15px;
    padding-top: 15px;
    margin: 0;
}
#news h2 {
    font-size: 1.2em;
    font-weight: bold;
    letter-spacing: 0.05em;
    margin: 15px 0;
    border: none;
}
.news-detail {
    display: none;
}
.news-title {
    color: #2E3A59;
    background: none;
    border: none;
    padding: 0;
    width: 100%;
    cursor: pointer;
    font-size: 16px;
    display: block;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #ccc;
    transition: border-color 0.4s ease;
}
.news-title:hover {
    color: #324e80;
    border-bottom-color: #324e80;
}
.news-detail p {
    font-size: 15px;
}
.fade-in-section {
    opacity: 0;
    transform: translateY(110px);
    transition: opacity 1.8s ease-out, transform 1.8s ease-out;
}
.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}
/* ミヤハムについての設定 */
.image-slider-container {
    margin-top: -35px;
}
#company-info {
    border-bottom: 1px solid #ccc;
    padding-bottom: 80px;
}
#company-info p {
    text-align: left;
}
#company-info img {
    margin-bottom: 30px;
}
#company-info p:first-of-type {
    margin-bottom: 10px;
}
/* スライダーの CSS */
.image-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.image-slider.company-wrapper {
    display: flex;
    transition: transform 0.8s ease-in-out;
    flex-wrap: nowrap;
}

.company-image {
    flex-shrink: 0;
    width: 100%;
}

.company-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0;
}
/* ナビゲーションボタン */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    border: none;
    padding: 1px 5px 7px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    border: none;
    font-weight: bold;
}
.slider-nav:hover {
    color: rgba(255, 255, 255, 1);
    opacity: 1;
}
.prev-button {
    left: 0;
}
.next-button {
    right: 0;
}
/* インジケーター */
.slider-indicators {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 5px 7px;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}
.indicator:hover {
    background: white;
}
.indicator.active {
    background: rgba(255, 255, 255, 0.9);
    animation: fadeIn 1s ease forwards;
}
/* 取扱メーカーの設定 */
#manufacturer {
    border-bottom: 1px solid #ccc;
    padding-bottom: 60px;
}
#manufacturer p {
    text-align: left;
}
#manufacturer p {
    margin-bottom: 20px;
}
#manufacturer img {
    margin-bottom: 40px;
}
.manufacturer-image {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.title {
    font-weight: 600;
}
/* 会社概要の設定 */
#company {
    border-bottom: 1px solid #ccc;
    padding-bottom: 80px;
}
.table-design {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 30px;
    overflow: hidden;
}
.table-design th, .table-design td {
    display: block;
    padding: 8px 18px;
    background-color: rgb(249 247 255);
  }
.table-design th {
    background-color: #DDE6F0;
    color: #2E3A59;
    font-weight: bold;
    width: auto;
    min-width: 4em;
    letter-spacing: 0.8em;
}
.table-design td {
    background-color: #F6F6F6;
    border-bottom: 1px solid #E0E0E0;
}
.company-text {
    text-align: left;
    margin: 70px 0  30px;
}
.border {
    border-bottom: dashed 2px red;
    padding-bottom: 3px;
}
.map {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    border-radius: .75rem;
    height: 50vh;
}
.map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* 店長紹介の設定 */
#manager {
    margin-bottom: 100px;
}
#manager img {
    height: 100px;
    display: block;
    margin: 0 auto 15px;
}
.speech {
/*     display: flex; */
    align-items: center;
    position: relative;
    width: fit-content;
    padding: 20px 16px;
    border: 1.5px solid rgb(9 10 51);
    background-color: #ffffff;
}
.comment {
    margin-top: 1em; 
}
.speech::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: -2;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 1.5px solid rgb(9 10 51);
    background-color: #ffffff;
}
/* フッターの設定 */
#footer {
    padding-bottom: 90px;
    position: relative;
    text-align: left;
    background-color: #E6E5F0;
    margin: 0;
    width: 100%;
}
.footer-wrapper {
    margin: 0 28px;
    padding: 35px;
    height: auto;
}
.footerlogo {
    height: 80px;
}
.footernav-list {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}
.footernav-list li {
    font-size: 15px;
    list-style-type: disc;
    list-style-position: inside;
}
.footernav-list a {
    color:  #2E3A59;
}
.footernav {
    position: relative;
}
.footernav-list li a:hover {
    display: inline-block;
    color: #4A556B;
    border-bottom: 2px solid #5daec8;
    padding-bottom: 3px;
    line-height: 1;
}
.footer-image-repeat {
  width: 100%;
  height: 200px;
  background-image: url('images/footer_image.png');
  background-repeat: repeat-x;
  background-position: center bottom;
  animation: slideBackground 30s linear infinite;
}
/* アニメーションの定義 */
@keyframes slideBackground {
  from {
    background-position: 0 bottom;
  }
  to {
    background-position: -100% bottom;
  }
}
.topbutton{
    position: fixed;
    bottom: 103px;
    right: 20px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, filter 0.3s;
    z-index: 1000;
}
.topbutton.visible {
  opacity: 1;
  pointer-events: auto;
}
.topbutton.idle {
  filter: grayscale(100%) brightness(1.5) opacity(0.5);
}
#copyright {
    display: block;
    margin-left: 28px;
    font-size: 11px;
    margin-top: 30px;
    text-align: center;
}
.btn-square-shadow {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: block;
    text-decoration: none;
    background: #2d457e;
    color: white;
    border-bottom: solid 4px #1f2134;
    border-radius: 3px;
    text-align: center;
    font-size: 20px;
    padding: 5px;
    height: 80px;
    z-index: 1000;
}
.btn-square-shadow a {
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    text-decoration: none; 
}
.btn-square-shadow:active {
/*ボタンを押したとき*/
    -webkit-transform: translateY(4px);
    transform: translateY(4px);
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.2);
    border-bottom: none;
}
.btn-square-shadow img {
    width: 25px;
    margin-left: 30px;
    margin-top: 3px;
} 
/* PC用の設定 */
@media screen and (min-width: 1040px) {
.header-text {
    flex-direction: column;
    align-items: flex-end;
}
.header-inner {
    display: flex;
    justify-content: space-between;
}
.header-top {
    width: 72%;
}
}

@media screen and (min-width: 769px) {
body {
    font-size: 20px;
}
.header-text a[href^="tel:"] {
    pointer-events: none;
}
/* PC用　ヘッダーの設定 */
#header {
    display: flex;
}
header .header-inner {
    max-width: none;
    width: 100%;
    align-items: center;
    flex-direction: row;
    margin: 0 auto;
    box-sizing: border-box;
    height: 100%;
    width: 100%;
}
.header-text {
    font-size: 18px;
    margin-top: 0;
    display: flex;
    gap: 5px; 
}
.btn-square-shadow {
    display: none;
}
.wrapper {
    max-width: 960px;
    margin: 0 auto;
    box-sizing: border-box;
}
.wrapper h2 {
    margin-bottom: 70px;
}
.logo img {
    max-width: 100%;
    height: auto;
    display: block;

}
.tel-wrap img {
    width: 25px;
}
/* PC用　navの設定 */
.nav-wrapper {
    margin-bottom: 0;
    position: static;
    width: auto;
    background-color: transparent;
    display: flex;
    justify-content: flex-end;
    overflow: visible;
    align-items: center;
}
.spnav-trigger {
    display: none;
}
.nav-list {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.nav-list li {
    font-size: 18px;
    margin: 0;
    padding: 0;
}
.nav-list li:first-child {
    margin-left: auto;
}
.nav-list li a {
    color: #2E3A59;
    white-space: nowrap;
}
.line-item-link {
    border-bottom: 2px solid transparent;
    transition: border-color 0.4s ease; 
}
.line-item-link:hover {
    border-bottom-color: #5daec8;
    position: relative;
}
.line-item {
    font-size: 18px;
    display: flex;
    align-items: center;
}
.line-item-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2E3A59;
    white-space: nowrap;
}
.line-item:not(:first-child)::before {
    content: "/";
    color: #2E3A59;
    margin: 0 18px 0 -5px;
    font-size: 15px;
    display: inline-block;
}
/* PC用　お知らせの設定 */
#news {
    display: flex;
    gap: 90px;
}
#news h2 {
    margin-right: 0;
    white-space: nowrap;
}
.news-title {
    font-size: 18px;
}
.news-detail p {
    font-size: 16px;
}
/* PC用　main画像の設定 */
.main-image img {
    max-height: 88vh;
    object-position: center 19%;
}
.slider-nav {
    padding: 1px 9px 7px;
}
/* PC用　取扱メーカーの設定 */
.manuimage-1 {
    height: 30px;
}
.manuimage-2 {
    height: 60px;
}
.manuimage-3 {
    height: 40px;
}
/* PC用　会社概要の設定 */
.table-design th,
.table-design td {
    display: table-cell;
}
.table-design th {
    width: auto;
    letter-spacing: normal;
    text-align: center;
    padding: 15px 60px;
    border-bottom: 2px solid #E0E0E0;
}
.table-design td {
    text-align: left;
    padding-left: 20px;
}
.company-text {
    text-align: center;
}
.marker {
    margin-bottom: 10px;
}
/* PC用　店長紹介の設定 */
.speech {
    margin: 0 auto;
    padding: 54px 78px;
    display: flex;
}
#manager img {
    margin: 20px 80px 0 0;
    height: 116px;
}
#manager p {
    font-size: 18px;
}
/* PC用　フッターの設定 */
#footer {
    padding-bottom: 20px;
    height: auto;
}
.footer-wrapper {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
}
.topbutton {
    bottom: 62px;
    right: 78px;
}
.footerlogo {
    margin-top: 50px;
}
.footernav-list {
    margin: 40px 85px 0 0;
}
.footernav-list li {
    margin-bottom: 5px;
    font-size: 18px;
}
}