@charset "UTF-8";

/* ====================================
   グローバル設定
==================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    margin: 100px auto;
    margin-bottom: 0;
    padding: 0;
}

img { 
    width: 100%;
}

#top {
  position: relative;
  top: -100px; /* ヘッダーの高さ分 */
}

h1,h2 {
  font-size: 1.6em;
  font-weight: 700;
  line-height: 1.4;
  margin: 40px 0 16px;
  text-align: left; /* デフォルトは左寄せ */
}

.h2 {
  font-size: 2.0em;
  position: relative;
  text-align: center;
  font-weight: 700;
}
.h2::after {
  content: "";
  display: block;
  width: 50px;  /* 線の長さ */
  height: 3px;  /* 線の太さ */
  background: rgb(200, 0, 0);  /* 線の色（赤） */
  margin: 8px auto 0;  /* 上の余白と中央寄せ */
}

h3 {
    font-size: 1.6em;
    margin: 0.8em auto;
}

.btn {
    background-color: #860b5d;
    display: block; /* 幅を効かせたいのでblockに変更 */
    width: 250px;
    text-align: center;
    text-decoration: none;
    padding: 10px 20px;
    margin: 15px auto;
    border-radius: 128px;
}
.btn a {
    text-decoration: none;
    color: #fff;
}
.btn a:hover {
    opacity: 0.8; /* 透明度を80％にする */
    transition: opacity 0.3s; /* スムーズな変化 */
}


/* ====================================
   固定お問い合わせボタン
==================================== */
.contact-fixed {
  position: fixed;
  bottom: 50px;          /* 下からの距離 */
  right: 0;           /* 右からの距離 */
  background-color: #860b5d;  /* ボタンカラー（ブランドに合わせて） */
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 20px 10px;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  writing-mode: vertical-rl; /* ← 縦書き設定 */
  text-orientation: upright; /* ← 文字の向きを正立 */
  letter-spacing: 2px;
  transition: all 0.3s ease;
  z-index: 999;
}

.contact-fixed:hover {
  background-color: #a61370;
  transform: translateY(-3px);
}

/* ====================================
   TOPページ　ニュース
==================================== */
.news {
    margin-bottom: 100px;
}

/* ====================================
   TOPページ　製品ラインナップ
==================================== */
.lineup {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    align-items: center;   /* ← これで上下中央揃え */
}
.lineup h3 {
    font-size: 1.8em;
    margin-bottom: 0;
}
.lineup img {
    width: 50%;
    height: auto;
}
.lineup p {
    font-size: 1.2em;
    line-height: 1.8;
}

/* テキスト側 */
.lineup-text {
  flex: 1; /* テキストを可変に */
}


/* ====================================
   メインコンテンツ
==================================== */
.container {
    width: 100%;
    background-color: #fff;
    padding: 40px;
}


.main_section {
    margin: 20px 50px 20px;
}
.main_section h2 {
    margin-bottom: 60px;
}
/* ====================================
   青枠の中
==================================== */
.name {    
    margin: auto;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    background-color: #1a2453;
    color: #fff;
    padding: 10px;
    max-width: 1500px;
}
/* ====================================
   レスポンシブ対応
==================================== */

/* タブレット以下 */
@media (max-width: 1136px) {
    body {
        margin-top: 75px;
    }
    #top {
        top: -100px; /* スマホ時のヘッダー高さ */
    }
    .main_section {
        margin: 10px;
    }
    .lineup {
        display: block;
        text-align: center;
        margin-bottom: 100px;
    }
    .lineup img {
        max-width: 600px;
        width: 75%;
    }
    .lineup .lineup-text p {
        font-size: 1em;
        line-height: 1.6;
    }
    .news h3 {
        font-size: 1.2em;
    }
    .name p {
        font-size: 16px;
        line-height: 1.6;
    }
}


/* セクション共通の余白 */
.section {
    margin: 50px 0;
}

/* ====================================
   ヘッダー
==================================== */
header {
    font-family: "Noto Sans JP", sans-serif;
    background: #fff;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #ddd;
    position: relative;
    position: fixed;      /* 常に上に固定 */
    top: 0;               /* 上端に配置 */
    left: 0;
    width: 100%;          /* 横幅いっぱいに */
    z-index: 999;         /* 他要素より前面に */
    background: #fff;     /* 背景色をつけると下の要素が透けない */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* optional: 影で浮いてる感 */
}

.logo-left {
    width: 400px;
    height: auto;
}

.logo-right {
    width: 150px;
    height: auto;
}

nav {
    flex: 1;
    justify-content: flex-start;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    margin-left: 60px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    padding: 8px 5px;
    position: relative;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #333;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* navMenu */
#navMenu ul li a {
    font-size: 16px;
}

#navMenu ul li a img {
    width: 30px;
}

/* ====================================
   ハンバーガーメニュー
==================================== */
.header_hm {
    position: relative;
    padding: 20px;
    z-index: 1000;
}

.hamburger {
    display: none;
    position: relative;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1000;
}

.hamburger__line {
    position: absolute;
    left: 11px;
    width: 26px;
    height: 2px;
    background-color: #333;
    transition: all 0.4s;
}

.hamburger__line:nth-of-type(1) { top: 14px; }
.hamburger__line:nth-of-type(2) { top: 23px; }
.hamburger__line:nth-of-type(3) { top: 32px; }

/* メニューオープン時 */
.hamburger.active .hamburger__line:nth-of-type(1) {
    transform: translateY(9px) rotate(-45deg);
}
.hamburger.active .hamburger__line:nth-of-type(2) {
    opacity: 0;
}
.hamburger.active .hamburger__line:nth-of-type(3) {
    transform: translateY(-9px) rotate(45deg);
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #EEEEEE;
    box-shadow: 2px 0 4px rgba(0,0,0,.1);
    transform: translateX(-300%);
    transition: transform 0.4s;
    z-index: 90;
}

.nav.active {
    transform: translateX(0);
}

.nav__list {
    list-style: none;       /* デフォルトのリストマークを消す */
    padding: 70px 20px 50px;  /* 上の余白＋左右のパディング */
    margin: 0;
    display: flex;
    flex-direction: column; /* 縦並び */
    gap: 10px;              /* li間の隙間 */
}

.nav__list img{
    width: 60%;
    height: auto;
}

.nav__item {
    padding: 0 20px;
}

.nav__link {
    display: block;
    padding: 15px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 0.6px solid #000000;
}

/* ====================================
   レイアウト全体（横並び）
==================================== */
.wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}


/* ====================================
    戻るボタン
==================================== */
.button01-wrapper {
    text-align: center;
}

.button01 {
    display: inline-block;
    font-size: 20px;
    font-weight: 600;
    padding: 12px 44px;
    cursor: pointer;
    border: 1.5px solid #000;
    background-color: white;
    color: black;
    border-radius: 40px;
    text-decoration: none;
    margin-bottom: 30px;
    transition: border-color 0.3s, color 0.3s;
}

.button01:hover {
    border-color: #007bff;
    color: #007bff;
}

.buy-button {
  display: inline-block;
}

.buy-button:hover {
  border-color: #007bff !important;
  color: #007bff !important;
  transition: 0.3s;
}


/* ====================================
   フッター
==================================== */
footer {
    width: 100%;
    background-color: #000;
    color: #fff;
    padding: 40px 20px;
    margin-top: 50px;
}

.footer-accordion {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.accordion-btn {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    padding: 8px 0;
    border-bottom: 1px solid #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-btn:hover {
    color: #f0c000;
    border-color: #f0c000;
}

.accordion-btn .arrow {
    transition: transform 0.3s ease;
}

.accordion-item.active .arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-top: 5px;
}

.accordion-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accordion-content li {
    margin: 5px 0;
}

.accordion-content a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
}

.accordion-content a:hover {
    text-decoration: underline;
    color: #f0c000;
}

/* ロゴ・コピーライト */
.tajima-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tajima-logo-wrap {
    text-align: center;
    color: #fff;
    font-size: 12px;
    margin-top: 50px;
}

.tajima-logo-wrap p {
    font-size: 10px;
}

.copy {
    font-size: 10px;
    margin-top: 10px;
}

/* ====================================
   レスポンシブ対応
==================================== */

/* タブレット以下 */
@media (max-width: 1136px) {
    .wrapper {
        height: auto; /* 高さ固定を解除 */
        padding: 10px 20px;
        flex-wrap: wrap; /* ロゴとハンバーガーを縦に整列可能に */
        justify-content: center;
    }

    .container {
        order: 1;
        width: 100%;
        padding: 1.5rem;
    }

    .question { font-size: 1rem; padding: 1rem 0; }
    .button01 { font-size: 1rem; padding: 10px 30px; }
    footer { padding: 2rem 1rem; margin-top: 20px; }
    .breadcrumb { display: none; margin-bottom: 1.5rem; }

    .container { padding: 5px; }
    .text-area { padding: 0; }

    p { font-size: 14px; line-height: 1.8; }
    h1 { font-size: 18px; }

    #navMenu { display: none !important; }
    .hamburger { display: block; }
    .logo-right { margin-left: 80%; }
    



    header {
        display: flex;
        justify-content: right;
        flex-wrap: nowrap; /* 折り返さない */
        padding: 0 10px;
    }

    header a .header_h {
        margin-left: 60%;
    }

    .logo-left {
        width: 350px;
    }

    .logo-right {
        width: 150px;
        margin-left: auto; /* 左側の要素を押しのけて右端へ */
    }

    .header_hm {
        display: flex;
        align-items: center;
        margin-left: 0px; /* ロゴ右とハンバーガーの間の隙間 */
    }

    .hamburger {
        display: block;
    }
        .footer-accordion {
        grid-template-columns: repeat(3, 1fr);
    }

    .header-logo {
        display: flex;
        justify-content: space-between; 
        align-items: center;            
        padding: 0 20px;                
        margin-right: auto;
    }

    .left_logo_box img,
    .right_logo_box img {
        height: auto;
    }


    .left_logo_box{
    margin-left: auto;
}


}

/* スマホ以下 */
@media (max-width: 600px) {
    .footer-accordion {
        grid-template-columns: repeat(2, 1fr);
    }

    header {
        height: 75px;
    }
    .logo-right {
        display: none;
    }
    .logo-left {
        width: 250px;
    }
}
