/*
Theme Name: TAKEDA FAMILY FARM
Description: 武田ファミリーファームのオリジナルテーマ
Author: TAKEDA FAMILY FARM
Version: 1.0.0
*/
@charset "UTF-8";

/* ==========================================================================
   リセットCSS（ブラウザ固有の余白を初期化）
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Yu Mincho", "游明朝", "Hiragino Mincho ProN", "ヒラギノ明朝 ProN W3", serif;
}

a {
  text-decoration: none;
  color: #333;
}

ul {
  list-style: none;
}

/* ==========================================================================
   ヘッダー全体のレイアウト
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  
  height: 100px;
  padding-right: 30px;
}

/* --------------------------------------------------------------------------
   左側：ロゴエリア
   -------------------------------------------------------------------------- */
.logo-area {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-icon-box {
  background-color: #6a8d5e;
  width: 120px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-icon-box img {
  width: 65px;
  height: auto;
}

.logo-text {
  margin-left: 25px;
}

.logo-text img {
  height: 50px;
  width: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   右側：ナビゲーションエリア
   -------------------------------------------------------------------------- */
.global-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
}

.nav-list li {
  margin: 0 12px;
}

.nav-list li a:hover {
  color: #6a8d5e;
}

.nav-list .en {
  display: none;
}

@media (min-width: 769px) {
  .nav-list li:first-child {
    position: relative;
    padding-right: 35px;
    margin-right: 35px;
  }
  
  .nav-list li:first-child::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 32px;
    background-color: #638165;
  }
}

.separator {
  width: 1px;
  height: 30px;
  background-color: #b3b3b3;
  margin: 0 10px;
}

.sns-icon {
  margin-left: 20px;
  padding-top: 5px;
}

.sns-icon img {
  width: 40px;
  height: auto;
}

/* ==========================================================================
   メインビジュアル
   ========================================================================== */
.main-visual {
  margin-top: 100px;
  width: 100%;
  height: 600px;
  background-image: url('images/main-cauliflower.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* ==========================================================================
   メッセージエリア（縦書き）
   ========================================================================== */
.message-section {
  position: relative;
  z-index: 1;
  margin-top: 200px;
  margin-bottom: 200px;
  display: flex;
  justify-content: center;
  padding: 0 40px;
}

.message-text {
  writing-mode: vertical-rl;
  font-size: clamp(14px, 1.5vw, 19px);
  line-height: 2.5;
  letter-spacing: 0.15em;
  color: #333333;
}

.message-text p {
  margin-left: clamp(30px, 5vw, 60px);
}

.message-text p:last-child {
  margin-left: 0;
}

/* ==========================================================================
   コンテンツエリア（動画背景の箱）
   ========================================================================== */
.content-area {
  position: relative;
  overflow: hidden;
}

.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  opacity: 0.4;
}

/* ==========================================================================
   互い違いレイアウト（画像2枚＋テキスト）
   ========================================================================== */
.staggered-section {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.staggered-left {
  width: 36%;
  max-width: 36%;
  flex-shrink: 0;
  margin-top: 120px;
}

.staggered-right {
  width: 54%;
  max-width: 54%;
  flex-shrink: 0;
}

.staggered-left img,
.staggered-right img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.staggered-text {
  margin-top: 200px;
  font-size: clamp(16px, 2.0vw, 26px);
  line-height: 2.2;
  letter-spacing: 0.08em;
  color: #333333;
}

.staggered-text p {
  margin-bottom: 0.8em;
}

.staggered-text p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   画像重ね合わせセクション
   ========================================================================== */
.overlap-section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 200px auto 0;
  padding: 0 40px;
}

.overlap-image-wrapper {
  position: relative;
  width: 100%;
}

.overlap-bg {
  width: 68%;
  margin-left: auto;
  display: block;
}

.overlap-fg {
  position: absolute;
  left: 0;
  bottom: -15%;
  width: 52%;
}

.overlap-text {
  margin-top: 280px;
  text-align: center;
  font-size: clamp(16px, 2.0vw, 26px);
  line-height: 2.4;
  letter-spacing: 0.1em;
  color: #333333;
}

.overlap-text p {
  margin-bottom: 0.8em;
}

.overlap-text p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   もっと知る誘導エリア
   ========================================================================== */
.learn-more-area {
  text-align: center;
  margin-top: 150px;
  position: relative;
  z-index: 2;
}

.learn-more-text {
  font-size: 26px;
  letter-spacing: 0.1em;
  color: #333333;
  margin-bottom: 30px;
}

.circle-dot-button {
  width: 50px;
  height: 50px;
  margin: 0 auto;
  border: 1px solid #cccccc;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  margin-bottom: -25px;
}

.circle-dot-button span {
  font-size: 20px;
  letter-spacing: 2px;
  color: #999999;
  transform: translateY(-4px);
}

/* ==========================================================================
   グレー背景セクション（枠組みの準備）
   ========================================================================== */
.gray-bg-section {
  background-color: #f8f8f8;
  padding: 125px 0;
  position: relative;
}

/* ==========================================================================
   「私たちについて」セクション
   ========================================================================== */
.info-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: clamp(40px, 6vw, 80px);
  padding: 0 40px;
}

.info-image {
  flex: 1.3;
}

.info-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-right: 0;
  padding-left: 0;
  color: #333333;
}

.info-image img {
  width: 100%;
  height: auto;
  display: block;
}

.info-text h2 {
  font-size: clamp(24px, 2.0vw + 4px, 32px);
  margin-bottom: 40px;
  text-align: center;
}

.info-text p {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 2.2;
  margin-bottom: 2em;
  text-align: justify;
}

.more-button {
  display: inline-block;
  width: 100%;
  padding: 20px 0;
  text-align: center;
  border: 1px solid #D67327;
  color: #D67327;
  text-decoration: none;
  font-size: 18px;
  transition: 0.3s;
  margin-top: auto;
}

.more-button:hover {
  background-color: #fdf5f0;
}

/* ==========================================================================
   ジグザグレイアウト用の追加調整
   ========================================================================== */
.info-section + .info-section {
  margin-top: 200px;
}

.info-container.reverse {
  flex-direction: row-reverse;
}

@media (max-width: 1200px) {
  .info-text {
    padding-right: 30px;
  }

  .info-container.reverse .info-text {
    padding-right: 0;
    padding-left: 30px;
  }
}

/* ==========================================================================
   開閉アニメーションとボタンスタイル
   ========================================================================== */
.expandable-wrapper {
  display: none;
}

.expandable-wrapper.is-open {
  display: block;
}

.circle-dot-button {
  background: none;
  cursor: pointer;
}

/* ==========================================================================
   上のボタン（開閉トグル用）のバツ印
   ========================================================================== */
.icon-close {
  display: none;
}

.circle-dot-button.is-open .icon-dots {
  display: none;
}

.circle-dot-button.is-open .icon-close {
  display: block;
  font-size: 20px;
  color: #999;
  line-height: 1;
  transform: translate(1px, 1px);
}

/* ==========================================================================
   下のボタン（閉じる専用）のバツ印
   ========================================================================== */
.icon-close-only {
  font-size: 20px;
  color: #999;
  line-height: 0;
  position: relative;
  top: 4px;
  left: 1px;
}

.bottom-close-area {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.bottom-close-area .circle-dot-button {
  margin: 0;
  background-color: transparent;
}

/* ==========================================================================
   農園だよりセクションとTagembedの調整
   ========================================================================== */
.farm-news-section {
  padding-top: 350px;
  padding-bottom: 100px;
  text-align: center;
}

.farm-news-section h2 {
  font-size: 32px;
  letter-spacing: 0.1em;
  color: #333333;
  margin-bottom: 30px;
}

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

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer {
  background-color: #638165;
  color: #ffffff;
  padding: 80px 20px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-logo {
  width: 160px;
  height: auto;
}

.footer-address {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
  color: #ffffff;
}

.footer-links {
  display: flex;
  gap: 80px;
}

.link-col {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.link-col li a {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
}

.link-col li a:hover {
  opacity: 0.7;
}

.footer-action {
  display: flex;
  align-items: center;
  padding-top: 20px;
}

.btn-page-top {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background-color: #ffffff;
  color: #638165;
  border-radius: 50%;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  transition: transform 0.3s ease;
  box-sizing: border-box;
  padding-bottom: 4px;
}

.btn-page-top:hover {
  transform: translateY(-5px);
}

.footer-copyright {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-copyright p {
  margin: 0;
  font-size: 12px;
  color: #ffffff;
}

/* ==========================================================================
   フェードインアニメーション
   ========================================================================== */
.fade-target {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.fade-target.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   PC版の初期設定（ハンバーガーボタンは隠しておく）
   ========================================================================== */
.hamburger-btn {
  display: none;
}

/* ==========================================================================
   タブレット対応：1000px以下（ナビゲーションをSP版に切り替え）
   ========================================================================== */
@media (max-width: 1000px) {

  .nav-list {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 999;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.4s ease;
  }

  .nav-list.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .nav-list li {
    margin: 0;
    width: 60%;
    border-bottom: 1px solid #638165;
    padding-bottom: 20px;
    margin-bottom: 20px;
    text-align: center;
  }

  .nav-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  .nav-list li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333 !important;
    text-decoration: none;
  }

  .nav-list li a .ja {
    font-size: 18px;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
  }

  .nav-list li a .en {
    display: block;
    font-size: 11px;
    color: #638165;
    letter-spacing: 0.2em;
    font-family: sans-serif;
  }

  .separator {
    display: none;
  }

  .sns-icon {
    margin-left: 0;
    margin-right: 20px;
    padding-top: 0;
  }
  
  .sns-icon img {
    width: 34px;
    transform: translateY(3px);
  }

  .hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 34px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
  }
  
  .hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #638165;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger-btn.is-active .hamburger-line:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
  }
  .hamburger-btn.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .hamburger-btn.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
  }
}


/* ==========================================================================
   スマートフォン用レスポンシブ対応 (768px以下)
   ========================================================================== */
@media (max-width: 768px) {

  .header {
    height: 70px;
    padding-right: 15px;
  }
  .logo-icon-box {
    width: 80px;
  }
  .logo-icon-box img {
    width: 45px;
  }
  .logo-text img {
    height: 35px;
  }

  .main-visual {
    margin-top: 70px;
    height: 520px;
  }
  .mv-pc {
    display: none;
  }
  .mv-sp {
    display: block;
    width: 100%;
    height: 520px;
    background: url('images/main-cauliflower-sp.jpg') center/cover;
  }

  .message-section {
    margin-top: 80px;
    margin-bottom: 80px;
    padding: 0 20px;
  }

  .message-text {
    writing-mode: horizontal-tb;
    font-size: clamp(15px, 4vw, 20px);
    letter-spacing: 0.05em;
    line-height: 2.2;
    width: 100%;
    max-width: 96%;
    margin-left: auto;
  }

  .message-text p {
    margin-left: 0;
    margin-bottom: 2em;
  }

  .staggered-text {
    margin-top: 30px;
    font-size: clamp(15px, 4vw, 20px);
    letter-spacing: 0.05em;
  }

  .overlap-text {
    margin-top: 50px;
    font-size: clamp(15px, 4vw, 20px);
    letter-spacing: 0.05em;
  }

  .staggered-section {
    display: flex;
    flex-direction: column-reverse;
    padding: 0 20px;
  }
    
  .staggered-right {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
  }

  .staggered-right img {
    width: 90vw;
    margin-left: -20px;
    margin-right: auto;
  }

  .staggered-text {
    margin-top: 80px;
    font-size: clamp(15px, 4vw, 20px);
    letter-spacing: 0.05em;
    line-height: 2.2;
    width: 100%;
    max-width: 96%;
    margin-left: auto;
  }
    
  .staggered-text p {
    margin-bottom: 2em;
  }

  .staggered-left {
    width: 100%;
    max-width: 66%;
    margin-top: 80px;
    margin-left: 5%;
  }

  .staggered-left img {
    width: 100%;
  }

  .overlap-section {
    margin-top: 80px;
    padding: 0 20px;
    display: flex;
    flex-direction: column-reverse;
  }

  .overlap-text {
    margin-top: 0;
    font-size: clamp(15px, 4vw, 20px);
    letter-spacing: 0.05em;
    line-height: 2.2;
    width: 100%;
    max-width: 96%;
    margin-left: auto;
    text-align: left;
  }

  .overlap-text p {
    margin-bottom: 2em;
  }

  .overlap-image-wrapper {
    display: block;
    position: relative;
    width: 100%;
    margin-top: 80px;
    margin-bottom: 30%;
  }

  .overlap-bg {
    width: 75vw;
    margin-left: auto;
    margin-right: -20px;
  }

  .overlap-fg {
    width: 60%;
    bottom: -30%;
    left: 0;
    margin-left: -20px;
  }

  /* ==========================================================================
     「もっと知る」エリアとグレー背景セクション
     ========================================================================== */
  .learn-more-area {
    margin-top: 100px;
  }
    
  .learn-more-text {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .gray-bg-section {
    padding: 80px 0;
  }

  .info-container {
    flex-direction: column;
    gap: 40px;
    padding: 0 20px;
  }

  .info-container.reverse {
    flex-direction: column;
  }

  .info-image {
    flex: auto;
    width: 100%;
  }
    
  .info-text {
    flex: auto;
    width: 100%;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .info-text h2 {
    font-size: 24px;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
  }

  .info-text p {
    font-size: clamp(16px, 3vw, 20px);
    line-height: 2.2;
    margin-bottom: 1.5em;
  }

  .more-button {
    font-size: 20px;
    padding: 30px 0;
  }

  .info-section + .info-section {
    margin-top: 100px;
  }

  .bottom-close-area {
    bottom: -25px;
  }

  /* ==========================================================================
     フッターのSP対応
     ========================================================================== */
  .site-footer {
    padding: 60px 20px 40px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 40px;
  }

  .footer-info {
    align-items: center;
    text-align: center;
    width: 100%;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 40px;
    margin-bottom: 40px;
  }

  .footer-logo {
    width: 110px;
    height: auto;
    margin-bottom: 20px;
  }

  .footer-address {
    text-align: center;
    font-size: 16px;
  }

  .footer-links {
    flex-direction: column;
    gap: 24px;
    width: 100%;
    align-items: center;
  }

  .link-col {
    align-items: center;
    gap: 24px;
  }

  .link-col li a {
    color: #ffffff !important;
  }

  .footer-action {
    width: 100%;
    justify-content: center;
    padding-top: 40px;
  }

  .footer-copyright p {
    text-align: center;
  }
}

/* ==========================================================================
   極小スマホ画面対応（500px以下）のテキスト微調整
   ========================================================================== */
@media (max-width: 500px) {

  .message-text,
  .staggered-text,
  .overlap-text,
  .info-text p {
    letter-spacing: 0;
  }
}