/*
Theme Name: 足柄食糧
Theme URI: http://example.com
Author: あなたの名前
Description: 足柄食糧の1ページWordPressテーマ
Version: 1.0
*/

 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
          font-family: "游明朝", "ヒラギノ明朝 ProN", "MS 明朝", serif;
            line-height: 1.6;
            color: #333;
        }

.desktop-hero-text {
      display: block;
    }
    .mobile-hero-text {
      display: none;
    }

        /* Header Styles */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: rgba(128, 79, 33, 0.95);
            backdrop-filter: blur(10px);
            z-index: 1000;
            padding: 10px 0;
            transform: translateY(-100%);
            transition: transform 0.3s ease;
        }

        .header.visible {
            transform: translateY(0);
        }

        .header-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
        }

        .header-logo img {
            height: 60px;
        }

        .header-nav ul {
            display: flex;
            list-style: none;
        }

        .header-nav a {
            color: white;
            text-decoration: none;
            padding: 10px 20px;
            transition: color 0.3s ease;
            font-weight: 500;
        }

        .header-nav a:hover {
            color: #f4e6d0;
        }

        /* Hamburger Menu Styles */
        .hamburger {
            display: none;
            flex-direction: column;
            cursor: pointer;
            padding: 5px;
        }

        .hamburger span {
            width: 25px;
            height: 3px;
            background: white;
            margin: 3px 0;
            transition: 0.3s;
        }

        .hamburger.active span:nth-child(1) {
            transform: rotate(-45deg) translate(-5px, 6px);
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active span:nth-child(3) {
            transform: rotate(45deg) translate(-5px, -6px);
        }

        .mobile-menu {
            display: none;
            position: fixed;
            top: 60px;
            left: 0;
            width: 100%;
            background: rgba(128, 79, 33, 0.98);
            backdrop-filter: blur(10px);
            z-index: 999;
        }

        .mobile-menu.active {
            display: block;
        }

        .mobile-menu ul {
            flex-direction: column;
            padding: 20px 0;
        }

        .mobile-menu a {
            display: block;
            padding: 15px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* Hero Section */
        .hero {
            height: 100vh;
            background: url('http://ctk.ciao.jp/webtest17/wp-content/uploads/2021/10/agghahamkrtthw.jpg') center/cover;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

       
        .hero-logo {
            width: 300px;
            height: 300px;
        }

        .hero-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            opacity: 0;
            animation: fadeInLogo 2s ease-in-out forwards;
            animation-delay: 0.5s;
        }

       /* ===== Hero Content ===== */
.hero-content {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;      /* 子要素を縦中央に配置 → 背景が上下に伸びない */
  justify-content: center;  /* 横方向も中央に配置 */
  gap: 80px;                /* ロゴとテキストの間隔 */

  text-align: center;       /* モバイル時に中央寄せ */
  flex-wrap: wrap;          /* 画面幅が狭いときに折り返し可能にする */
  max-width: 1200px;        /* レイアウトが広がりすぎないように制限 */
  margin: 0 auto;           /* 中央寄せ */
  padding: 0 20px;          /* サイドに余白（スマホ対策） */
}


/* ===== Hero Text ===== */
.hero-text {
  display: inline-block;   /* コンテンツサイズにフィット */
  position: relative;

  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  padding: 30px 25px;      /* 上下に余裕を追加 */
  border-radius: 10px;
 margin:100px;
  max-width: 36ch;         /* 横幅制限（読みやすく） */

  writing-mode: vertical-rl;  /* PC時は縦書き */
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'MS PMincho', serif;
  font-size: 2.2rem;       /* 少し抑えて迫力を残す */
  line-height: 1.7;        /* 行間を広げて余裕を出す */
  letter-spacing: 0.2em;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);

  opacity: 0;
  transform: translateX(50px);
  animation: slideInText 2s ease-out forwards;
  animation-delay: 1.5s;
}


/* hero-text の右側に装飾ライン */
.hero-text::before {
  content: '';
  position: absolute;
  top: 0;
  right: -20px;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, transparent, #804f21, transparent);
  animation: drawLine 2s ease-in-out forwards;
  animation-delay: 2.5s;
}


        .text-emphasis {
            color: #f4d03f;
            font-weight: 600;
            position: relative;
            display: inline-block;
            animation: glowText 3s ease-in-out infinite;
            animation-delay: 3s;
        }

        @keyframes fadeInLogo {
            to {
                opacity: 1;
            }
        }

        @keyframes slideInText {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes drawLine {
            to {
                height: 100%;
            }
        }

        @keyframes glowText {
            0%, 100% {
                text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
            }
            50% {
                text-shadow: 
                    2px 2px 4px rgba(0, 0, 0, 0.7),
                    0 0 20px rgba(244, 208, 63, 0.6),
                    0 0 30px rgba(244, 208, 63, 0.4);
            }
        }

        /* Section Styles */
       

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            color: #804f21;
            margin-bottom: 60px;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: #804f21;
        }

        /* Guide Section */
        .guide {
            background: #faf8f5;
        }

        .guide-content {
            text-align: center;
            max-width: 800px;
            margin: 0 auto;
        }

        .guide-subtitle {
            font-size: 1.8rem;
            color: #804f21;
            margin-bottom: 30px;
            font-weight: 600;
        }

        .guide-description {
            font-size: 1.1rem;
            line-height: 1.8;
            color: #555;
            margin-bottom: 40px;
        }

        .guide-features {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
            margin-top: 50px;
        }

        .feature-card {
            background: white;
            padding: 30px 20px;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        .feature-card:hover {
            transform: translateY(-5px);
        }

        .feature-icon {
            font-size: 2.5rem;
            color: #804f21;
            margin-bottom: 15px;
        }

        .feature-title {
            font-size: 1.2rem;
            color: #804f21;
            font-weight: 600;
            margin-bottom: 10px;
        }

        /* Gallery Section */
        .gallery {
            padding: 80px 0;
        }

        .image-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }

        .image-item {
            position: relative;
            overflow: hidden;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            aspect-ratio: 4/3;
        }

        .image-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .image-item:hover img {
            transform: scale(1.05);
        }

        /* Contact Section */
        .contact {
            background: #804f21;
            color: white;
        }

        .contact .section-title {
            color: white;
        }

        .contact .section-title::after {
            background: white;
        }

        .contact-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 40px;
            margin-top: 50px;
        }

        .contact-item {
            text-align: center;
        }

        .contact-icon {
            font-size: 2.5rem;
            margin-bottom: 15px;
        }

        .contact-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .contact-details {
            font-size: 1.1rem;
            line-height: 1.6;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .header-nav {
                display: none;
            }

            .hamburger {
                display: flex;
            }

            .hero-content {
                flex-direction: column;
                gap: 30px;
                padding: 0 20px;
            }

            .hero-logo {
                width: 200px;
                height: 200px;
            }

            .hero-text {
                font-size: 1.4rem;
                writing-mode: horizontal-tb;
                text-align: center;
                padding: 15px 20px;
                max-width: 90%;
				margin: 0; 
            }

            .hero-text::before {
                display: none;
            }

            .section-title {
                font-size: 2rem;
            }

            .guide-subtitle {
                font-size: 1.5rem;
            }

            .guide-features {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            section {
                padding: 60px 0;
            }
        }

        @media (min-width: 769px) and (max-width: 1024px) {
            .guide-features {
                grid-template-columns: repeat(3, 1fr);
                gap: 25px;
            }
        }
/* カスタムロゴ調整 */
.header-logo img {
  max-height: 60px;   /* 高さ制限 */
  width: auto;        /* 幅は自動縮小 */
  height: auto;       /* 比率維持 */
}
@media (max-width: 768px) {
  .header-logo img {
    max-height: 40px;
  }
}
section#home:empty {
  padding: 0 !important;
  margin: 0 !important;
  display: none;
}
 

section:not(.home) {
  padding: 80px 0;
}

section:not(.home) > *:first-child {
  margin-top: 0; /* タイトルをぴったり上に寄せる */
}

