/* 全体設定 */
html, body {
    overflow-x: hidden; /* 横方向のはみ出しを隠す */
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Zen Maru Gothic', sans-serif;
    background-color: #2c2c2c; /* 濃いめのグレー */
    background-image: url('images/haikeigazou_02.jpg');
    background-attachment: fixed;
    background-size: cover;
    color: #fff;
    line-height: 1.8;
}

/* タイトルカラー */
h1, h2, .logo {
    color: #f5deb3; /* Wheatカラー */
}

/* ヘッダー・ナビゲーション */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    position: fixed;
    width: 100%;
    box-sizing: border-box;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

/* ハンバーガーメニュー */
.hamburger {
    width: 30px;
    height: 25px;
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 200;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #f5deb3;
    transition: all 0.4s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 12px; }
.hamburger span:nth-child(3) { top: 24px; }

/* メニュー展開時 */
.hamburger.active span:nth-child(1) { transform: translateY(12px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-12px) rotate(-45deg); }

.nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    transition: all 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav.active { right: 0; }

.nav ul { list-style: none; text-align: center; padding: 0; }
.nav ul li { margin: 20px 0; }
.nav ul li a {
    color: #f5deb3;
    text-decoration: none;
    font-size: 1.5rem;
}

/* スライドショー (簡易版CSSアニメーション) */
.main-visual {
    width: 100%;
    height: 70vh;
    position: relative;
    overflow: hidden;
}

.slider {
    display: flex;
    width: 400%;
    height: 100%;
    animation: slide 16s infinite;
}

.slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* スライド画像（適宜ファイル名を変更してください） */
.slide1 { background-image: url('images/main_visual_9.jpg'); }
.slide2 { background-image: url('images/main_visual_15.png'); }
.slide3 { background-image: url('images/main_visual_16.jpg'); }
.slide4 { background-image: url('images/main_visual_14.jpg'); }


@keyframes slide {
    0% { transform: translateX(0); }
    25% { transform: translateX(0); }
    30% { transform: translateX(-25%); }
    50% { transform: translateX(-25%); }
    55% { transform: translateX(-50%); }
    75% { transform: translateX(-50%); }
    80% { transform: translateX(-75%); }
    100% { transform: translateX(-75%); }
}

.main-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    color: #f5deb3;
    font-size: 1.3rem;
}

/* セクション共通 */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 20px;
}

.section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(245, 222, 179, 0.2);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

ul{
    list-style: none;
}

/* コンテンツ配置 */
.flex-content {
    display: flex;
    align-items: stretch;
    gap: 40px;
    flex-wrap: wrap;
}

.text-area, .image-area { flex: 1; min-width: 300px; }
.image-area img { 
    width: 100%; 
    border-radius: 8px;
    margin-top: 20px;
}

.about-info {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid #f5deb3;
    color: #f5deb3;
    text-decoration: none;
    margin-top: 20px;
    transition: 0.3s;
}

.btn:hover {
    background: #f5deb3;
    color: #2c2c2c;
}

footer {
    text-align: center;
    padding: 40px;
    background: rgba(0,0,0,0.8);
}

/* 詳細ページ固有のスタイル */
.sub-page header {
    position: relative; /* 詳細ページでは固定せず、自然に流す */
    background: rgba(0, 0, 0, 0.8);
}

.back-link {
    color: #f5deb3;
    text-decoration: none;
    font-size: 0.9rem;
}

.news-detail {
    background: rgba(0, 0, 0, 0.4);
    padding: 40px;
    border-radius: 12px;
    margin-top: 40px;
}

.news-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #f5deb3;
    padding-bottom: 20px;
}

.news-header h1 {
    font-size: 1.8rem;
    margin-top: 10px;
}

.news-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.news-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.product-info {
    background: rgba(245, 222, 179, 0.1);
    padding: 20px;
    border-left: 4px solid #f5deb3;
    margin: 30px 0;
}

.date {
    font-weight: bold;
    color: #f5deb3;
    /*letter-spacing: 1.5px;*/
}

.btn-area {
    text-align: center;
    margin-top: 20px;
}

.insta-placeholder{
    margin: 2px
}

/* スマホ対応 */
@media (max-width: 768px) {
    .news-detail {
        padding: 20px;
    }
    .news-header h1 {
        font-size: 1.4rem;
    }
}

/* --- 全体の中央寄せ設定 --- */
body {
  text-align: center; /* テキストを中央寄せ */
  margin: 0;
  padding: 0;
}

.section-container {
  padding: 40px 20px;
  max-width: 1200px; /* PCでの最大幅 */
  margin: 0 auto;    /* コンテンツ全体を中央に */
}

/* 画像がはみ出さないように設定 */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto; /* 画像自体も中央寄せ */
}

/* --- フレックスボックスの設定（モバイル優先） --- */
.flex-container {
  display: flex;
  flex-direction: column; /* スマホでは縦並び */
  gap: 20px;             /* 文と画像の間隔 */
  align-items: center;    /* 垂直方向の中央寄せ */
  margin: 30px;
}

.text-content, .image-content {
  width: 100%;
}

/* --- MAPの設定（画面幅いっぱい） --- */
.map-container {
  width: 100vw;          /* ビューポートの横幅いっぱい */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 30px;
}

.map-container iframe {
  width: 100%;
  vertical-align: bottom;
}

/* --- PC画面（768px以上）での表示切り替え --- */
@media (min-width: 768px) {
  .flex-container {
    flex-direction: row;    /* PCでは横並び */
    text-align: left;       /* PCでは文を左寄せにしたい場合はここを調整 */
    justify-content: space-between;
  }

  .text-content, .image-content {
    width: 48%;             /* 2段組み（隙間を考慮して約半分） */
  }

  /* 偶数番目のセクション（ABOUTなど）で画像と文を左右反転させたい場合 */
  #about .flex-container {
    flex-direction: row-reverse;
  }
}