/* === 全体の設定 === */
:root {
  --c-primary: #005A32;
  --c-primary-dark: #004d2a;
  --c-accent: #FFB703;
  --c-text: #343a40;
  --c-text-light: #6c757d;
  --c-bg: #f8f9fa;
  --c-white: #ffffff;
  --c-border: #dee2e6;
  --font-heading: 'Poppins', 'Noto Sans JP', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --transition: all 0.3s ease-in-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-text);
  line-height: 1.8;
  background-color: var(--c-white);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--c-primary-dark);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.content-section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 80px;
  color: var(--c-primary);
  line-height: 1.3;
}

.section-title span {
  display: block;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--c-text-light);
  margin-top: 8px;
  letter-spacing: 1px;
}

/* === ヘッダー === */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 40px;
}

.nav ul {
  display: flex;
  gap: 32px;
}

.nav a {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--c-text);
  position: relative;
  padding: 8px 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--c-accent);
  transition: var(--transition);
}

.nav a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
}

/* === メインビジュアル === */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--c-white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/hero-image.png') center/cover no-repeat;
  animation: kenburns-zoom-in 25s ease-out infinite;
  z-index: -1;
}

.hero-content {
  background-color: rgba(0, 0, 0, 0.45);
  padding: 40px 60px;
  border-radius: var(--border-radius);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 16px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.25rem;
  font-family: var(--font-heading);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid var(--c-white);
  border-radius: 20px;
}

.scroll-down span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 2px;
  height: 8px;
  background: var(--c-white);
  transform: translateX(-50%);
  animation: scroll-indicator 2s infinite;
}

/* === メッセージ === */
.message-section {
  background-color: var(--c-primary);
  color: var(--c-white);
  padding: 80px 0;
}

.message-text {
  font-size: 1.8rem;
  text-align: center;
  line-height: 1.7;
  font-weight: 700;
  margin: 0;
}

/* === 理念 === */
#philosophy {
  background-color: var(--c-bg);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.philosophy-card {
  background-color: var(--c-white);
  padding: 40px;
  text-align: center;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.philosophy-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.philosophy-card h3 {
  color: var(--c-primary);
  font-size: 1.6rem;
  margin: 0 0 16px;
}

.philosophy-card h3 span {
  display: block;
  font-size: 0.9rem;
  color: var(--c-text-light);
}

.philosophy-card .en {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--c-accent);
  font-weight: 700;
  margin: 16px 0 8px;
}

.philosophy-card .ja,
.philosophy-card .ja-vision,
.philosophy-card .ja-mission {
  font-size: 1.25rem;
  font-weight: 700;
}

.philosophy-card .ja-vision,
.philosophy-card .ja-mission {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* === 事業内容 & ブランド === */
#business {
  background-color: var(--c-white);
}

.business-grid,
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.business-item {
  background: var(--c-bg);
  padding: 32px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.business-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.business-item h4 {
  font-size: 1.3rem;
  color: var(--c-primary);
  margin: 0 0 16px;
}

#brand {
  background-color: var(--c-bg);
}

.brand-card {
  background-color: var(--c-white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.brand-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.brand-logo {
  height: 80px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
}

.brand-name {
  font-size: 1.4rem;
  color: var(--c-primary-dark);
  margin: 10px 0 5px;
}

.brand-description {
  font-size: 1rem;
  color: var(--c-text-light);
  margin: 0;
}

/* === 会社概要 === */
#company {
  background-color: var(--c-white);
}

.company-info {
  max-width: 800px;
  margin: 0 auto;
  background: var(--c-bg);
  padding: 48px;
  border-radius: var(--border-radius);
}

.company-info dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
}

.company-info dt {
  font-weight: 700;
  color: var(--c-primary);
  border-right: 2px solid var(--c-accent);
  padding: 8px 16px 8px 0;
}

.company-info dd {
  margin: 0;
  padding: 8px 0;
}

/* === お問い合わせ & SNS === */
#contact,
#sns {
  background-color: var(--c-bg);
}

.contact-info,
.sns-links {
  text-align: center;
}

.contact-info {
  max-width: 700px;
  margin: 0 auto;
}

.contact-info p {
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.contact-info ul li {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.sns-link {
  display: inline-block;
  margin: 0 24px;
  font-size: 48px;
  color: var(--c-text-light);
  transition: var(--transition);
}

.sns-link:hover {
  transform: scale(1.15) translateY(-5px);
}

.sns-link.instagram:hover {
  color: #E1306C;
}

.sns-link.facebook:hover {
  color: #1877F2;
}

/* === フッター & マップ === */
.footer {
  background-color: var(--c-text);
  color: var(--c-white);
}

.map-section {
  width: 100%;
  height: 400px;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.footer-content {
  text-align: center;
  padding: 24px 0;
}

/* === アニメーション === */
@keyframes kenburns-zoom-in {
  0% {
    transform: scale(1.0);
  }

  100% {
    transform: scale(1.1);
  }
}

@keyframes scroll-indicator {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 12px);
    opacity: 0;
  }
}

.animated-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animated-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.philosophy-card:nth-child(2),
.brand-card:nth-child(2) {
  transition-delay: 0.1s;
}

.philosophy-card:nth-child(3),
.brand-card:nth-child(3) {
  transition-delay: 0.2s;
}

.business-item:nth-child(2) {
  transition-delay: 0.05s;
}

.business-item:nth-child(3) {
  transition-delay: 0.1s;
}

.business-item:nth-child(4) {
  transition-delay: 0.15s;
}

.business-item:nth-child(5) {
  transition-delay: 0.2s;
}

/* === レスポンシブ対応 === */
@media (max-width: 992px) {

  .philosophy-grid,
  .brand-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .company-info dl {
    grid-template-columns: 150px 1fr;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }

  .header-container {
    height: 70px;
  }

  .logo img {
    height: 35px;
  }

  .nav {
    display: block;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    transition: left 0.5s ease-in-out;
  }

  .nav.is-active {
    left: 0;
  }

  .nav ul {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 40px;
  }

  .nav a {
    font-size: 1.2rem;
  }

  .hamburger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--c-primary);
    margin: 6px 0;
    transition: var(--transition);
    border-radius: 3px;
  }

  .hamburger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .content-section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 60px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-content {
    padding: 30px;
  }

  .message-text {
    font-size: 1.4rem;
  }

  .company-info dl {
    grid-template-columns: 1fr;
  }

  .company-info dt {
    border-right: none;
    border-bottom: 1px solid var(--c-border);
    padding: 16px 8px;
  }

  .company-info dd {
    padding: 16px 8px;
  }

  .sns-link {
    font-size: 40px;
    margin: 0 16px;
  }
}
