/* --- Hero Section & Water Ripple Blur Animation --- */
.hero-section {
  height: 100vh;
  min-height: 700px;
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--color-bg-dark);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: grayscale(20%) contrast(110%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(44,42,41,0.85) 0%, rgba(44,42,41,0.5) 50%, rgba(44,42,41,0.85) 100%);
}

/* Water Ripple Blur Background Spots */
.hero-ripple-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.ripple-blur-spot {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(249, 246, 240, 0.1) 40%, transparent 70%);
  filter: blur(25px);
  opacity: 0;
  animation: rippleSpread 4s infinite ease-out;
}

.spot-1 {
  top: 20%;
  left: 15%;
  width: 300px;
  height: 300px;
  animation-delay: 0.2s;
}
.spot-2 {
  top: 50%;
  left: 30%;
  width: 400px;
  height: 400px;
  animation-delay: 1.5s;
}
.spot-3 {
  top: 10%;
  left: 45%;
  width: 250px;
  height: 250px;
  animation-delay: 2.8s;
}
.spot-4 {
  top: 60%;
  left: 10%;
  width: 350px;
  height: 350px;
  animation-delay: 0.8s;
}

@keyframes rippleSpread {
  0% {
    transform: scale(0.3);
    opacity: 0;
    filter: blur(35px);
  }
  50% {
    opacity: 0.8;
    filter: blur(20px);
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
    filter: blur(40px);
  }
}

/* Hero Container Layout (Left Motto / Right Content) */
.hero-container-grid {
  position: relative;
  z-index: 3;
  color: var(--color-text-light);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-xxl);
  align-items: center;
  height: 100%;
}

/* Left: "有備無患" Impressive Japanese Motto Typography (Artistic Staggered Layout) */
.hero-motto-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs);
  position: relative;
}

.motto-kanji-wrap {
  writing-mode: vertical-rl;
  font-family: var(--font-serif-ja);
  font-size: clamp(4.5rem, 11vw, 9.5rem);
  font-weight: 700;
  letter-spacing: -0.08em; /* 文字間隔を詰める */
  color: rgba(249, 246, 240, 0.82); /* 真っ白ではなく上品な透過感 */
  text-shadow: 0 0 35px rgba(212, 175, 55, 0.4), 0 0 70px rgba(212, 175, 55, 0.15);
  display: flex;
  line-height: 1;
}

.motto-char {
  display: inline-block;
  opacity: 0;
  filter: blur(35px);
  position: relative;
  transition: transform 0.4s ease;
}

/* 中心線から左右交互にずらすスタッガードレイアウト */
.char-1 {
  /* 有: 左にずらす */
  animation: blurRevealStagger1 2.2s 0.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.char-2 {
  /* 備: 右にずらす */
  animation: blurRevealStagger2 2.2s 1.0s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.char-3 {
  /* 無: 左にずらす */
  animation: blurRevealStagger3 2.2s 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.char-4 {
  /* 患: 右にずらす */
  animation: blurRevealStagger4 2.2s 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes blurRevealStagger1 {
  0% {
    opacity: 0;
    filter: blur(40px);
    transform: translateY(-25px) translateX(-25px) scale(1.25);
  }
  60% {
    opacity: 0.7;
    filter: blur(10px);
  }
  100% {
    opacity: 0.85;
    filter: blur(0px);
    transform: translateY(0) translateX(-22px) scale(1);
  }
}

@keyframes blurRevealStagger2 {
  0% {
    opacity: 0;
    filter: blur(40px);
    transform: translateY(-25px) translateX(25px) scale(1.25);
  }
  60% {
    opacity: 0.7;
    filter: blur(10px);
  }
  100% {
    opacity: 0.9;
    filter: blur(0px);
    transform: translateY(0) translateX(24px) scale(1);
  }
}

@keyframes blurRevealStagger3 {
  0% {
    opacity: 0;
    filter: blur(40px);
    transform: translateY(-25px) translateX(-20px) scale(1.25);
  }
  60% {
    opacity: 0.7;
    filter: blur(10px);
  }
  100% {
    opacity: 0.85;
    filter: blur(0px);
    transform: translateY(0) translateX(-18px) scale(1);
  }
}

@keyframes blurRevealStagger4 {
  0% {
    opacity: 0;
    filter: blur(40px);
    transform: translateY(-25px) translateX(20px) scale(1.25);
  }
  60% {
    opacity: 0.7;
    filter: blur(10px);
  }
  100% {
    opacity: 0.95;
    filter: blur(0px);
    transform: translateY(0) translateX(20px) scale(1);
  }
}

.motto-sub-tag {
  font-size: var(--font-size-xs);
  letter-spacing: 0.45em;
  color: var(--color-accent-gold);
  margin-top: var(--space-lg);
  opacity: 0;
  animation: fadeInTag 1.5s 2.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  padding-top: var(--space-xs);
}

@keyframes fadeInTag {
  to {
    opacity: 0.8;
  }
}

/* Right Content */
.hero-content-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  opacity: 0;
  transform: translateX(30px);
  animation: heroRightReveal 1.5s 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

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

.hero-title {
  font-family: var(--font-serif-ja);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.hero-title-main {
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  line-height: 1.3;
  letter-spacing: 0.08em;
  font-weight: 700;
  white-space: nowrap; /* 途中で途切れる折り返しを完全防止 */
  color: var(--color-bg);
  text-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.hero-title-sub-phrase {
  font-size: clamp(1.05rem, 2.0vw, 1.6rem); /* ジャンプ率を明確にし一回り小さく上品に */
  line-height: 1.4;
  letter-spacing: 0.08em;
  font-weight: 500;
  white-space: nowrap; /* 途中で途切れる折り返しを完全防止 */
  color: rgba(249, 246, 240, 0.85);
  margin-top: 4px;
}

.hero-subtitle {
  font-family: var(--font-serif-ja);
  font-size: var(--font-size-sm);
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: rgba(249, 246, 240, 0.92);
}

.hero-desc-en {
  font-family: var(--font-serif-en);
  font-size: var(--font-size-xs);
  color: var(--color-accent-gold);
  letter-spacing: 0.08em;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.hero-indicators {
  display: none !important;
}

.hero-indicator-item {
  position: relative;
  padding-left: var(--space-md);
}

.hero-indicator-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent-gold);
}

/* --- Intro Section --- */
.intro-section {
  text-align: center;
}

.intro-text-wrap {
  max-width: 750px;
  margin: 0 auto;
}

.intro-lead {
  font-family: var(--font-serif-ja);
  font-size: var(--font-size-xl);
  line-height: 1.8;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.intro-desc {
  font-size: var(--font-size-base);
  line-height: 2;
  color: var(--color-text-muted);
  text-align: justify;
}

.intro-scroll-wrap {
  max-width: 960px;
  margin: var(--space-xl) auto 0;
}

.intro-scroll-frame {
  background: #FDFBF7;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(44, 42, 41, 0.08);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.intro-scroll-wrap a:hover .intro-scroll-frame {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(44, 42, 41, 0.12);
}

.intro-scroll-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.intro-scroll-caption {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 10px;
  text-align: center;
  letter-spacing: 0.05em;
}

/* --- Cycle Section (循環図) --- */
.cycle-section {
  background-color: rgba(229, 222, 201, 0.2);
  overflow: hidden;
}

.cycle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-xl);
}

/* Cycle Diagram SVG Styles */
.cycle-svg-wrap {
  width: 100%;
  max-width: 650px;
  position: relative;
}

.cycle-svg {
  width: 100%;
  height: auto;
}

.cycle-path {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 1.5;
}

.cycle-path-active {
  fill: none;
  stroke: var(--color-accent-gold);
  stroke-width: 2.5;
  stroke-dasharray: 1257; /* 半径200pxの全周長 2πr = 1256.6px をカバー */
  stroke-dashoffset: 1257;
  transition: stroke-dashoffset 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible .cycle-path-active {
  stroke-dashoffset: 0; /* 360度完全な黄金の円環を描く */
}

.cycle-node {
  cursor: pointer;
}

.cycle-node-bg {
  fill: var(--color-bg);
  stroke: var(--color-border);
  stroke-width: 1.5;
  transition: var(--transition-smooth);
}

.cycle-node:hover .cycle-node-bg {
  stroke: var(--color-accent-gold);
  fill: #FFF;
  filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.25));
}

.cycle-node-icon-group {
  transition: transform var(--transition-smooth);
  transform-box: fill-box;
  transform-origin: center;
}

.cycle-icon-stroke {
  stroke: var(--color-text-main);
  stroke-width: 1.8;
  transition: stroke var(--transition-smooth);
}

.cycle-node:hover .cycle-node-icon-group {
  transform: scale(1.22); /* 4つの全アイコンが完璧に一体化してスムーズに拡大 */
}

.cycle-node:hover .cycle-icon-stroke {
  stroke: var(--color-brand-green); /* 全てのパーツが一括で美しくブランドグリーンへ変化 */
}

.cycle-node-title {
  font-family: var(--font-serif-ja);
  font-size: 14px;
  font-weight: bold;
  fill: var(--color-text-main);
  text-anchor: middle;
}

.cycle-node-desc {
  font-family: var(--font-sans-ja);
  font-size: 11px;
  fill: var(--color-text-muted);
  text-anchor: middle;
}

/* Mobile Alternating List (Visible only on mobile) */
.cycle-mobile-list {
  display: none;
  flex-direction: column;
  gap: var(--space-xl);
  width: 100%;
  margin-top: var(--space-lg);
}

.cycle-mobile-item {
  display: flex;
  gap: var(--space-md);
  background-color: var(--color-bg);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  position: relative;
}

.cycle-mobile-num {
  font-family: var(--font-serif-en);
  font-size: var(--font-size-xl);
  color: var(--color-accent-gold);
  line-height: 1;
}

.cycle-mobile-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.cycle-mobile-title {
  font-family: var(--font-serif-ja);
  font-size: var(--font-size-md);
  font-weight: bold;
}

.cycle-mobile-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Agri Land Section --- */
.agri-section-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xxl);
  align-items: center;
}

.agri-image-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.agri-img-large {
  grid-column: span 2;
  height: 320px;
  border-bottom: 2px solid var(--color-accent-gold);
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
}

.agri-img-small {
  height: 180px;
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0 0 4px 4px;
}

.agri-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.agri-img-large:hover img,
.agri-img-small:hover img {
  transform: scale(1.06);
}

.agri-text-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.agri-title-sub {
  font-family: var(--font-serif-ja);
  font-size: var(--font-size-xl);
  font-weight: bold;
  line-height: 1.4;
}

.agri-desc {
  font-size: var(--font-size-base);
  line-height: 1.8;
  color: var(--color-text-muted);
}

/* --- Brands Section --- */
.brands-section {
  background-color: rgba(229, 222, 201, 0.1);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.brand-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  overflow: hidden;
  border-radius: 4px;
}

.brand-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent-gold);
  box-shadow: 0 15px 30px rgba(44, 42, 41, 0.08);
}

.brand-card-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.brand-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition-smooth);
}

.brand-card:hover .brand-card-img-wrap img {
  transform: scale(1.06);
}

.brand-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex-grow: 1;
}

.brand-card-header {
  display: flex;
  flex-direction: column;
}

.brand-card-title {
  font-family: var(--font-serif-ja);
  font-size: var(--font-size-lg);
  font-weight: bold;
}

.brand-card-title-en {
  font-family: var(--font-serif-en);
  font-size: var(--font-size-xs);
  color: var(--color-accent-gold);
}

.brand-card-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.brand-card-badge {
  align-self: flex-start;
  font-size: var(--font-size-xs);
  padding: 2px 8px;
  background-color: rgba(229, 222, 201, 0.5);
  color: var(--color-text-muted);
  border-radius: 2px;
}

/* --- Chujuan Section (岩木十和薬長寿庵) --- */
.chujuan-section {
  text-align: center;
}

.chujuan-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.chujuan-desc-en {
  font-family: var(--font-serif-en);
  font-size: var(--font-size-sm);
  color: var(--color-accent-gold);
  letter-spacing: 0.1em;
}

.chujuan-desc {
  font-size: var(--font-size-base);
  line-height: 1.8;
  color: rgba(249, 246, 240, 0.8);
}

/* --- Message Section (代表メッセージ) --- */
.message-section-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xxl);
  align-items: center;
}

.message-image {
  height: 420px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.message-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.message-image:hover img {
  transform: scale(1.03);
}

.message-text-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.message-lead {
  font-family: var(--font-serif-ja);
  font-size: var(--font-size-lg);
  font-weight: bold;
  color: var(--color-brand-green);
}

.message-quote {
  font-size: var(--font-size-base);
  line-height: 2;
  color: var(--color-text-muted);
}

/* --- News Section --- */
.news-section {
  background-color: rgba(229, 222, 201, 0.05);
}

.news-list {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-xl);
}

.news-row {
  display: grid;
  grid-template-columns: 120px 140px 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-fast);
  align-items: center;
}

.news-row:first-child {
  border-top: 1px solid var(--color-border);
}

.news-row:hover {
  background-color: rgba(229, 222, 201, 0.15);
  padding-left: var(--space-xs);
}

.news-date {
  font-family: var(--font-sans-en);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.news-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  justify-self: start;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  line-height: 1.3;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.news-badge.category-reading {
  background-color: #f0eee9;
  color: #55504a;
  border: 1px solid #dcd8cf;
}
.news-badge.category-agri {
  background-color: #eaf2eb;
  color: #275231;
  border: 1px solid #c5dcc8;
}
.news-badge.category-brand {
  background-color: #fcf0e6;
  color: #a3521e;
  border: 1px solid #f3d4be;
}
.news-badge.category-corporate {
  background-color: #f2f2f2;
  color: #333333;
  border: 1px solid #d9d9d9;
}

.news-title-link {
  font-size: var(--font-size-base);
  font-weight: bold;
  color: var(--color-text-main);
  transition: var(--transition-fast);
}

.news-row:hover .news-title-link {
  color: var(--color-accent-gold);
}

/* --- Responsive Layout for Home --- */
@media (max-width: 1024px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
  /* Hero Mobile Layout Fix */
  .hero-section {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }
  .hero-container-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding-right: 48px; /* Avoid side-tab overlap */
    text-align: left;
  }
  .hero-motto-left {
    align-items: center;
    margin-bottom: var(--space-md);
  }
  .motto-kanji-wrap {
    font-size: clamp(3.2rem, 14vw, 5rem);
    letter-spacing: -0.05em;
  }
  .motto-sub-tag {
    margin-top: var(--space-sm);
    font-size: 11px;
  }
  .hero-content-right {
    padding: 0;
  }
  .hero-title {
    font-size: var(--font-size-xl);
  }
  .hero-title-main {
    font-size: 1.4rem;
  }
  .hero-title-sub-phrase {
    font-size: 1rem;
  }
  .hero-subtitle {
    font-size: 14px !important;
    line-height: 1.85 !important;
    margin-top: var(--space-sm) !important;
  }
  .hero-desc-en {
    font-size: 12px;
    margin-top: var(--space-xs);
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: var(--space-xs);
    margin-top: var(--space-md);
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
  .hero-indicators {
    padding-right: 48px;
    flex-wrap: wrap;
    gap: var(--space-xs) var(--space-md);
  }

  .hero-title {
    font-size: var(--font-size-2xl);
  }
  .agri-section-grid,
  .message-section-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .message-image {
    height: 360px;
  }
  .brands-grid {
    grid-template-columns: 1fr;
  }
  .news-row {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
    padding: var(--space-md);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-sm);
  }
  .news-row:first-child {
    border-top: 1px solid var(--color-border);
  }
  .news-badge {
    margin-top: 2px;
  }
  
  /* Cycle Diagrams Switch */
  .cycle-svg-wrap {
    display: none;
  }
  .cycle-mobile-list {
    display: flex;
  }
}
