/* ========================================
CSS Variables
======================================== */

:root {
  --primary-color: #1F3A34;
  --secondary-color: #2E4D38;
  --tertiary-color: #4F7E67;
  --text-color: #333;
  --white: #ffffff;
  --font-serif: 'adobe-garamond-pro', 'EB Garamond', serif;
  --font-sans: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  --font-serif-jp: 'Ryumin Web', 'EB Garamond', 'Times New Roman', serif;
}

/* ========================================
Opening Animation Styles
======================================== */
.opening-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s;
}

.opening-content {
  text-align: center;
}

.opening-title {
  font-size: 2rem;
  font-weight: 400;
  font-family: var(--font-serif-jp);
  color: var(--text-color);
  margin-bottom: 2.5rem;
  letter-spacing: 0.1em;
  /* タイプライター風アニメーション用 */
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--text-color);
  animation: typing 2s steps(15, end) 0.2s 1 normal both, blink-caret 0.7s steps(1) infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--text-color); }
}

.opening-girl {
  width: 180px;
  max-width: 60vw;
  height: auto;
  display: block;
  margin: 0 auto;
}

.opening-animation.fadeout {
  opacity: 0;
  pointer-events: none;
}

/* ========================================
FadeIn Animation
======================================== */
.fadein-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: 1.2s ease-out;
}

.fadein-scroll.show {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
Base Styles
======================================== */
html {
  font-size: 62.5%;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* ========================================
Buttons
======================================== */

.btn-ver1,
.btn-ver2{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
  letter-spacing: 0.08em;
  border-radius: 2px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
    transform 0.1s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-ver1 {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 60px;
  margin: 0 auto;
}

.btn-ver1:hover {
  background-color: var(--tertiary-color);
}

.btn-ver2 {
  background-color: var(--white);
  color: var(--primary-color);
  border-color: var(--primary-color);
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease;
}

.btn-ver2::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  transition: left 0.4s cubic-bezier(0.4,0,0.2,1);
  z-index: 0;
}

.btn-ver2:hover::before {
  left: 0;
}

.btn-ver2:hover {
  color: var(--white);
}

.btn-ver2-icon {
  position: relative;
  z-index: 2;
}

.btn-ver2-icon path {
  stroke: var(--primary-color);
  transition: stroke 0.4s ease;
}

.btn-ver2:hover .btn-ver2-icon path {
  stroke: var(--white);
}

.btn-ver2-text {
  position: relative;
  z-index: 1;
}

/* ========================================
ナビゲーションヘッダー
======================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  overflow-x: hidden;
}

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

.nav-logo img {
  width: auto;
  height: 60px;
}

.nav-container-menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 3rem;
}

.nav-menu li {
  margin: 0;
}

.nav-menu-link {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.08em;
  transition: opacity 0.3s ease;
  position: relative;
}

.nav-menu-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--white);
  transition: width 0.3s ease;
}

.nav-menu-link:hover::after {
  width: 100%;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  border: 1px solid;
  padding: 8px 16px;
  border-radius: 8px;
  gap: 8px;
  color: var(--white);
  background-color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.08em;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease, background-color 0.3s ease;
  z-index: 1;
}

.header-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  transition: left 0.4s cubic-bezier(0.4,0,0.2,1);
  z-index: 0;
}

.header-cta:hover::before {
  left: 0;
}

.header-cta:hover {
  color: var(--primary-color);
}

.header-cta-icon{
  position: relative;
  z-index: 1;
}

.header-cta-icon path {
  stroke: var(--white);
  transition: stroke 0.4s ease;
}

.header-cta:hover .header-cta-icon path {
  stroke: var(--primary-color);
}

.header-cta-text {
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  padding: 5px;
  flex-direction: column;
  justify-content: center;
  z-index: 102;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

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

.hamburger.active .bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 70px;
  right: -100%;
  background-color: var(--primary-color);
  padding: 50px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 101;
  width: 60%;
  height: calc(100vh - 70px);
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
}

.mobile-menu.active {
  right: 0;
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-menu li {
  margin: 0;
}

.mobile-nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.08em;
  display: inline-block;
  padding: 10px 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-menu a {
  position: relative;
}

.mobile-nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 0;
  height: 2px;
  background-color: var(--white);
  transition: width 0.3s;
  pointer-events: none;
}

.mobile-nav-menu a:hover::after,
.mobile-nav-menu a:focus::after {
  width: 100%;
}

/* ハンバーガーメニューを表示 */
@media (max-width: 789px) {
  .hamburger {
    display: flex;
  }
  .nav-container-menu,
  .header-cta-container {
    display: none;
  }
}

/* ========================================
hero section
======================================== */

.about-hero-container {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  min-height: 600px;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.about-hero-image {
  background-image: url("../img/about-hero-img.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: auto;
}

.about-hero-copy {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  width: 35%;
  height: 100%;
  text-align: right;
  background-color: rgba(255, 255, 255, 0.6);
}

.about-hero-catch {
  font-size: 1.8rem;
  letter-spacing: 0.2em;
  line-height: 1.8;
  writing-mode: vertical-rl;
}

.about-hero-title {
  font-size: 4rem;
  letter-spacing: 0.2em;
  line-height: 1.8;
  writing-mode: vertical-rl;
  font-family: var(--font-serif-jp);
}

/* ========================================
about section
======================================== */
.about-concept-container{
  text-align: center;
  margin: 8% auto;
}

.about-concept h2{
  font-size: 3.2rem;
  font-family: var(--font-serif-jp);
}

.about-concept-text {
  font-size: 1.8rem;
  margin: 2% auto 5%;
}

.about-concept-bg {
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  position: relative;
}

.about-concept-bg img {
  width: 100vw;
  max-width: 100vw;
  display: block;
  height: auto;
  object-fit: cover;
}

/* ========================================
important things section
======================================== */
.important-content{
  overflow: hidden;
}

.important-content-inner{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  max-width: 1200px;
  margin: 8% auto;
}

.important-content-inner::before{
  content: '';
  position: absolute;
  top: -140px;
  right: -125px;
  width: 34%;
  height: 100%;
  background-image: url("../img/important-ttl.svg");
  background-size: contain;
  background-position: right;
  background-repeat: no-repeat;
  z-index: 2;
}

.important-content-inner::after{
  content: '';
  position: absolute;
  top: -30px;
  right: -70px;
  width: 30%;
  height: 100%;
  background-image: url("../img/important-des.svg");
  background-size: contain;
  background-position: right;
  background-repeat: no-repeat;
  z-index: 1;
}

.important-content-image{
  width: 100%;
  height: auto;
  object-fit: cover;
}

.important-content-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.important-content-text{
  width: 100%;
  display: flex;
  flex-direction: column;
}

.section-title{
  font-size: 2.4rem;
  font-family: var(--font-serif-jp);
  margin-bottom: 18px;
  position: relative;
  padding-left: 2.5rem;
  font-weight: 600;
  z-index: 3;
}

.section-title::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2rem;
  height: 30px;
  background-color: var(--tertiary-color);
}

.important-text{
  font-size: 1.6rem;
  margin-bottom: 10px;
  z-index: 3;
}

/* ========================================
strength section
======================================== */
.strength{
  background-color: var(--tertiary-color);
  margin: 5% auto 0;
  padding: 5% 0 8%;
  position: relative;
  text-align: center;
}

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

.strength-icon,
.history-icon{
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.strength-container .section-title{
  color: var(--white);
  margin: 30px 0 60px;
  display: inline-block;
}

.strength-container .section-title::before{
  background-color: var(--white);
}

.strength-items{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 5%;
}

.strength-item{
  text-align: center;
  border: 2px solid var(--white);
  padding: 24px 8px;
}

.strength-item-title{
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  margin: 16px auto;
}

.strength-item-text{
  font-size: 1.6rem;
  color: var(--white);
  width: 80%;
  margin: 16px auto;
}

/* ========================================
history section
======================================== */
.history{
  background-color: #f3f3f3;
  margin: 0 auto 8%;
  padding: 8% 0;
  position: relative;
  text-align: center;
}

.history-container .section-title{
  display: inline-block;
  margin: 30px 0;
}

.history-text{
  font-size: 1.6rem;
  margin: 0 auto 5%;
  width: 90%;
  position: relative;
}

.timeline-text::after {
  content: "";
  position: absolute;
  left: 151px;
  top: -17px;
  width: 50px;
  height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
}

.timeline-item:nth-child(1) .timeline-text::after {
  background-image: url("../img/history-icon01.svg");
}

.timeline-item:nth-child(2) .timeline-text::after {
  background-image: url("../img/history-icon02.svg");
}

.timeline-item:nth-child(3) .timeline-text::after {
  background-image: url("../img/history-icon03.svg");
}

.timeline-item:nth-child(4) .timeline-text::after {
  background-image: url("../img/history-icon04.svg");
}

.timeline {
  max-width: 1200px;
  margin: 60px auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--primary-color);
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 80px;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 30px;
}

.timeline-item:nth-child(even) .timeline-img{
  margin-left: auto;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background-color: var(--tertiary-color);
  border-radius: 50%;
  z-index: 2;
}

.timeline-img {
  width: 50%;
  position: relative;
  z-index: 1;
}

.timeline-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.timeline-text {
  width: 45%;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.timeline-item-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  color: var(--tertiary-color);
}

.timeline-item-icon svg {
  width: 100%;
  height: 100%;
}

.timeline-item-year {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 12px 0;
}

.timeline-item-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 16px 0;
}

.timeline-item-text {
  font-size: 1.4rem;
  color: var(--text-color);
  line-height: 1.8;
  margin: 0;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(odd) .timeline-img {
  order: 1;
  padding-right: 40px;
}

.timeline-item:nth-child(odd) .timeline-text {
  order: 2;
  text-align: left;
  padding-left: 40px;
}

.timeline-item:nth-child(even) {
  flex-direction: row;
}

.timeline-item:nth-child(even) .timeline-text {
  order: 1;
  text-align: left;
  padding-right: 40px;
}

.timeline-item:nth-child(even) .timeline-img {
  order: 2;
  padding-left: 40px;
}

/* ========================================
message section
======================================== */

.message-inner{
  max-width: 1200px;
  margin: 0 auto 8%;
  padding: 5%;
  border: 1px solid var(--primary-color);
}

.message-frame{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.message-photo{
  width: 100%;
  height: auto;
  object-fit: cover;
}

.message-photo img{
  width: 100%;
  height: auto;
  object-fit: cover;
}

.message-text{
  width: 100%;
  display: flex;
  flex-direction: column;
}

.message-text p{
  font-size: 1.6rem;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: left;
}

.contact-icons{
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-icons img{
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.contact-buttons{
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.mail-icon {
  position: relative;
  z-index: 1;
  margin-right: 6px;
}

.mail-icon path {
  stroke: currentColor;
  transition: stroke 0.4s ease;
}

.btn-ver2:hover .mail-icon path {
  stroke: var(--white);
}


/* ========================================
footer
======================================== */

.site-footer {
  background-color: #14342b;
  color: var(--white);
  padding: 3% 0;
  font-size: 12px;
}

.footer-container {
  text-align: center;
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 0 0 16px;
  padding: 0;
}

.footer-nav a {
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.16em;
}

.footer-nav a:hover {
  opacity: 0.7;
}

.footer-bottom {
  border-top: 1px solid var(--white);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  margin: 0;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
}

.footer-links a:hover {
  opacity: 0.7;
}

/* ========================================
Responsive
======================================== */

@media (max-width: 1440px) {
  .about-hero-title{
    font-size: 3.2rem;
  }
  .about-hero-catch{
    font-size: 1.6rem;
  }
  .about-concept h2{
    font-size: 2.4rem;
  }
  .about-concept-text{
    font-size: 1.4rem;
  }
  .important-content-inner{
    padding: 0 5%;
  }
  .important-content-inner::before {
    right: -27px;
    width: 26%;
  }
  .important-content-inner::after {
    right: -27px;
    width: 26%;
  }
  .section-title {
    font-size: 2rem;
  }
  .important-text {
    font-size: 1.4rem;
  }
  .strength-item-title{
    font-size: 1.6rem;
  }
  .strength-item-text{
    font-size: 1.2rem;
  }
  .history-text{
    font-size: 1.4rem;
  }
  .timeline-item-year{
    font-size: 1.4rem;
  }
  .timeline-item-title{
    font-size: 1.6rem;
  }
  .timeline-item-text{
    font-size: 1.2rem;
  }
  .message-text p{
    font-size: 1.4rem;
  }
  .contact-icons img{
    width: 32px;
    height: 32px;
  }
  .contact-buttons{
    gap: 16px;
  }
  .timeline{
    padding: 0 5%;
  }
  .timeline-text::after {
    left: 135px;
    top: -22px;
  }
  .btn-ver2 {
    font-size: 1.2rem;
    padding: 8px 16px;
  }
  .mail-icon{
    width: 24px;
    height: 24px;
    margin-right: 6px;
  }
  .message{
    margin: 0 5%;
  }
}

@media (max-width: 1200px) {
  .important-content-inner::before {
    right: 15px;
    top: -120px;
  }
  .about-hero-title {
    font-size: 3.2rem;
  }
}

@media (max-width: 1024px) {
  .nav-logo img {
    height: 50px;
  }
  .nav-menu{
    gap: 1.2rem;
  }
  .nav-menu-link{
    font-size: 1.4rem;
  }
  .about-concept-container{
    margin: 10% auto;
  }
  .strength-container .section-title{
    margin: 30px 0;
  }
  .message-inner{
    margin-bottom: 10%;
  }
}

@media (max-width: 768px) {
  .about-hero-image {
    background-position: 30%;
  }
  .about-hero-copy{
    width: 25%;
  }
  .about-hero-title {
    font-size: 2.4rem;
  }
  .about-hero-catch {
    font-size: 1.2rem;
  }
  .about-concept h2 {
    font-size: 2rem;
  }
  .about-concept-text {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .btn-ver2{
    padding: 8px 16px;
  }
  .footer-nav ul{
    gap: 16px;
  }
}