@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@400;500;700&display=swap');

/* Reset CSS */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'M PLUS 1p', sans-serif;
  font-size: 1.6rem;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: #554c45;
  background-color: #fafcef;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: #ffb89a;
  transition: all 0.3s ease;
}

a:hover {
  color: #ff9776;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 2rem;
}

p {
  margin-bottom: 2.4rem;
}

button, .button {
  cursor: pointer;
  display: inline-block;
  background-color: #ffb89a;
  color: #fff;
  padding: 1.2rem 3rem;
  border: none;
  border-radius: 5rem;
  font-size: 1.6rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

button:hover, .button:hover {
  background-color: #ff9776;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 184, 154, 0.3);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 10rem 0;
}

/* ヘッダー */
header {
  display: none;
}

.site-header {
  display: none;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  width: 18rem;
}

.site-logo img {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: #554c45;
  cursor: pointer;
}

.main-menu {
  display: flex;
}

.main-menu li {
  margin-left: 3rem;
}

.main-menu a {
  color: #554c45;
  font-weight: 500;
  font-size: 1.6rem;
  position: relative;
}

.main-menu a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #ffb89a;
  transition: width 0.3s ease;
}

.main-menu a:hover:after {
  width: 100%;
}

/* ヒーローセクション */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.45), rgba(255,255,255,0.25));
  z-index: 0;
}

.hero-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px);
  background-size: 2px 2px;
  z-index: 0;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 80rem;
  padding: 0 2rem;
}

.hero-logo {
  width: 50rem;
  margin: 0 auto 3rem;
}

.hero-title {
  font-size: 3.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 2rem;
  line-height: 1.8;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 2.34rem;
  color: #fff;
  margin-bottom: 4rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle img {
  display: inline-block;
  vertical-align: middle;
  margin-left: 1rem;
  width: 195px;
}

.hero.no-video .hero-video {
  display: none;
}

.hero.no-video {
  background-image: url('../assets/img/hero-poster.jpg');
  background-size: cover;
  background-position: center;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

/* セクション見出し */
.section-header {
  text-align: center;
  margin-bottom: 6rem;
}

.section-title {
  font-size: 4.9rem;
  font-weight: 700;
  color: #554c45;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.section-subtitle {
  font-size: 2.16rem;
  color: #ffb89a;
  margin-bottom: 2rem;
}

.section-description {
  max-width: 70rem;
  margin: 0 auto;
  font-size: 1.8rem;
}

/* 白背景セクション共通の斜めライン */
.what-project,
.how-to,
.news,
.contact,
.medical-wigs {
  background-image: repeating-linear-gradient(
    45deg,
    #fff,
    #fff 3px,
    #fafafa 3px,
    #fafafa 6px
  );
}

/* What Project セクション */
.what-project {
  background-color: #fff;
}

.what-project-content {
  display: flex;
  align-items: center;
  gap: 6rem;
}

.what-project-text {
  flex: 1;
}

.what-project-image {
  flex: 1;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  margin: 0 auto;
}

.what-project-image img {
  width: 100%;
  height: auto;
}

/* Founder セクション */
.founder {
  background-color: #fafcef;
}

.founder-content {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.founder-intro {
  display: flex;
  align-items: center;
  gap: 6rem;
}

.founder-text {
  flex: 1;
}

.founder-image {
  flex: 1;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.founder-name {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.founder-position {
  font-size: 1.8rem;
  color: #ffb89a;
  margin-bottom: 2rem;
}

.founder-message {
  margin-bottom: 3rem;
}

.founder-shop {
  padding: 4rem;
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-top: 4rem;
}

.shop-title {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.shop-info {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.shop-details {
  flex: 1;
  order: 2;
}

.shop-image {
  flex: 1;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  order: 1;
}

.shop-description {
  margin-top: 3rem;
  text-align: left;
}

.shop-description p {
  font-size: 1.4rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.shop-description p:last-child {
  margin-bottom: 0;
}

.founder-profile {
  margin-top: 6rem;
  padding: 4rem;
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.profile-title {
  font-size: 2.8rem;
  margin-bottom: 3rem;
  text-align: center;
}

.founder-career {
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.profile-image {
  float: left;
  width: 30%;
  margin-right: 4rem;
  margin-bottom: 2rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.career-title {
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.career-list {
  width: 60%;
}

.career-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.career-list li:before {
  content: '';
  position: absolute;
  top: 1rem;
  left: 0;
  width: 0.8rem;
  height: 0.8rem;
  background-color: #ffb89a;
  border-radius: 50%;
}

.founder-message-title {
  font-size: 2.64rem;
  margin-bottom: 1rem;
}

.founder-message-title-large {
  font-size: 3.04rem;
}

.founder-message-title-small {
  font-size: 2.46rem;
}

.founder-message-title .highlight-char {
  font-size: 120%;
  display: inline-block;
}

/* How To セクション */
.how-to {
  background-color: #fff;
}

.steps {
  display: flex;
  gap: 3rem;
}

.step {
  flex: 1;
  background-color: #fafcef;
  padding: 4rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 6rem;
  height: 6rem;
  background-color: #ffb89a;
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 2rem;
}

.step-title {
  font-size: 1.9rem;
  text-align: left;
  margin-bottom: 2rem;
}

.step-image {
  margin-bottom: 2rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.step-description {
  text-align: left;
}

/* QA セクション */
.qa {
  background-color: #fafcef;
}

.qa-list {
  max-width: 90rem;
  margin: 0 auto;
}

.qa-item {
  background-color: #fff;
  border-radius: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.qa-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  cursor: pointer;
  background-color: #fff;
  transition: all 0.3s ease;
}

.qa-question:hover {
  background-color: #f9f9f9;
}

.qa-question-text {
  font-size: 1.8rem;
  font-weight: 600;
}

.qa-icon {
  font-size: 2rem;
  transition: all 0.3s ease;
}

.qa-item.active .qa-icon {
  transform: rotate(180deg);
}

.qa-answer {
  padding: 0 3rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: #fafcef;
}

.qa-item.active .qa-answer {
  padding: 2rem 3rem;
  max-height: 50rem;
}

.qa-answer-text {
  font-size: 1.6rem;
}

/* News一覧ページ */
.page-header {
  padding: 12rem 0 6rem;
  background-color: #fafcef;
  text-align: center;
}

.page-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.page-subtitle {
  font-size: 1.8rem;
  color: #999;
}

.news-archive {
  padding: 6rem 0;
  background-color: #fff;
}

/* News & Activity セクション */
.news {
  background-color: #fff;
}

.news-grid,
.news-grid-archive {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.news-card {
  background-color: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.news-image {
  height: 20rem;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.1);
}

.news-content {
  padding: 2rem;
}

.news-date {
  font-size: 1.4rem;
  color: #999;
  margin-bottom: 1rem;
}

.news-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.news-excerpt {
  font-size: 1.5rem;
  color: #666;
  margin-bottom: 2rem;
}

.news-link {
  font-weight: 600;
  color: #ffb89a;
  text-decoration: none;
  display: inline-block;
}

.view-more {
  text-align: center;
}

/* Related Hospital セクション */
.related-hospital {
  background-color: #fafcef;
}

.hospital-content {
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}

.hospital-text {
  margin-bottom: 4rem;
}

.hospital-contact {
  background-color: #fff;
  padding: 4rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-name {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-phone {
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffb89a;
  margin-bottom: 0;
}

.contact-address {
  font-style: normal;
  margin-bottom: 0;
}

/* Medical Wigs セクション */
.medical-wigs {
  background-color: #fff;
}

.wigs-content {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.wigs-text {
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}

.logo-meaning {
  display: flex;
  align-items: center;
  gap: 4rem;
  background-color: #fafcef;
  padding: 4rem;
  border-radius: 1rem;
}

.logo-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.logo-text {
  flex: 2;
}

.logo-title {
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

/* Project Column セクション */
.column {
  background-color: #fafcef;
}

.column-list {
  max-width: 80rem;
  margin: 0 auto 4rem;
}

.column-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background-color: #fff;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.column-item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.column-info {
  flex: 1;
}

.column-date {
  font-size: 1.4rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.column-title {
  font-size: 1.8rem;
  margin-bottom: 0;
}

.column-link {
  font-size: 2rem;
  color: #ffb89a;
}

/* Contact セクション */
.contact {
  background-color: #fff;
}

.contact-content {
  display: flex;
  gap: 6rem;
}

.contact-info {
  flex: 1;
}

.contact-text {
  margin-bottom: 4rem;
  text-align: center;
}

.contact-details {
  background-color: #fafcef;
  padding: 3rem;
  border-radius: 1rem;
  text-align: center;
}

.contact-name {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-form {
  flex: 1;
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #ffb89a;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 184, 154, 0.3);
}

textarea.form-control {
  height: 15rem;
  resize: none;
}

.submit-button {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.8rem;
}

/* フッター */
footer {
  background-color: #fafcef;
  padding: 2rem 0;
  text-align: center;
}

.footer-logo {
  width: 33rem;
  margin: 0 auto 0;
}

.footer-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.footer-subtitle {
  font-size: 2.1rem;
  color: #999;
  margin-bottom: 4rem;
}

.footer-subtitle img {
  vertical-align: middle;
  margin-left: 0.5rem;
  display: inline;
  width: 230px;
}

.footer-info {
  max-width: 60rem;
  margin: 0 auto 4rem;
}

.footer-name {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-contact {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer-address {
  font-style: normal;
}

.footer-bottom {
  padding-top: 3rem;
  border-top: 1px solid #eee;
}

.copyright {
  font-size: 1.4rem;
  color: #999;
}

/* News詳細ページ */
.single-header {
  padding: 12rem 0 6rem;
  background-color: #fafcef;
}

.single-meta {
  text-align: center;
  margin-bottom: 4rem;
}

.single-date {
  font-size: 1.6rem;
  color: #999;
  margin-bottom: 1rem;
}

.single-title {
  font-size: 3.6rem;
  max-width: 80rem;
  margin: 0 auto 2rem;
}

.single-thumbnail {
  max-width: 90rem;
  margin: 0 auto 4rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.single-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 6rem 0;
}

.single-content h2 {
  font-size: 2.8rem;
  margin: 4rem 0 2rem;
}

.single-content h3 {
  font-size: 2.4rem;
  margin: 3rem 0 1.5rem;
}

.single-content p {
  margin-bottom: 2rem;
}

.single-content img {
  margin: 3rem auto;
  border-radius: 0.5rem;
}

.post-navigation {
  padding: 4rem 0;
  border-top: 1px solid #eee;
}

.post-links {
  display: flex;
  justify-content: space-between;
}

.post-link {
  max-width: 45%;
}

.post-link-title {
  font-size: 1.4rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.post-link-text {
  font-size: 1.8rem;
  font-weight: 600;
}

/* Column一覧ページ */
.column-archive {
  padding: 6rem 0;
}

.column-list-archive {
  max-width: 90rem;
  margin: 0 auto;
}

/* Column詳細ページ */
/* 基本レイアウトはNewsと共通 */

/* 404ページ */
.error-page {
  padding: 12rem 0;
  text-align: center;
}

.error-code {
  font-size: 12rem;
  font-weight: 700;
  color: #ffb89a;
  line-height: 1;
  margin-bottom: 2rem;
}

.error-title {
  font-size: 3.6rem;
  margin-bottom: 2rem;
}

.error-text {
  font-size: 1.8rem;
  max-width: 60rem;
  margin: 0 auto 4rem;
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.zoom-in {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s ease;
}

.zoom-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* レスポンシブデザイン */
@media screen and (max-width: 1200px) {
  .container {
    padding: 0 4rem;
  }
}

@media screen and (max-width: 992px) {
  html {
    font-size: 58%;
  }
  
  .what-project-content,
  .founder-intro,
  .logo-meaning,
  .contact-content {
    flex-direction: column;
    gap: 4rem;
  }
  
  .logo-image {
    order: -1;
  }
  
  .steps {
    flex-direction: column;
  }
  
  .news-grid,
  .news-grid-archive {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 55%;
  }
  
  body {
    letter-spacing: 0.06em;
    line-height: 1.90;
  }

  .menu-toggle {
    display: block;
  }
  
  .main-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background-color: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 0;
    transition: all 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
  }
  
  .section-title {
    font-size: 4.8rem;
  }
  
  .hero-title {
    font-size: 2.22rem;
  }
  
  .hero-logo {
    width: 34rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .single-title {
    font-size: 3rem;
  }
  
  .error-code {
    font-size: 10rem;
  }
  
  .founder-profile {
    width: 100%;
    padding: 3rem;
    margin-top: 4rem;
  }

  .profile-title {
    font-size: 2.4rem;
    margin-bottom: 2rem;
  }

  .profile-image {
    float: none;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 3rem;
    display: block;
  }

  .career-title {
    width: 100%;
  }

  .career-list {
    width: 100%;
  }

  .founder-shop {
    padding: 3rem;
    margin-top: 3rem;
  }

  .shop-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .shop-info {
    flex-direction: column;
    gap: 2rem;
  }

  .shop-details {
    width: 100%;
    order: 2;
  }

  .shop-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .shop-description {
    margin-top: 2rem;
  }

  .shop-description p {
    font-size: 1.3rem;
    line-height: 1.7;
  }

  .what-project-image {
    width: 80%;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-grid .news-card:nth-child(n+3) {
    display: none;
  }

  .news-grid-archive {
    grid-template-columns: 1fr;
  }
}
