@charset "utf-8";

/* ==========================================================================
   Import Fonts & Variables
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

:root {
  /* Works Section Variables */
  --c-mint: #bcdbdf;
  --c-yellow: #e8cb6e;
  --c-text: #546e7a;
  --c-white: #ffffff;
  --radius-card: 20px;
  --radius-img: 12px;
  
  /* Scroll Infinity Variables */
  --size-48: 48px;
  --size-24: 24px;
}

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

body {
  color: #333;
  font-family: "Zen Maru Gothic", sans-serif;
  line-height: 1.5;
  font-size: 16px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 全要素のbox-sizingを統一 */
*, *::before, *::after {
  box-sizing: border-box;
}

h1, h2, h3, p, ul, dl, dd {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   Background Animation (Circles)
   ========================================================================== */
.circles {
  position: relative;
  height: 13vh;
  width: 100%;
  background-color: #a6ddcb;
  z-index: -100;
  overflow: hidden;
}

.circle {
  position: absolute;
  border-radius: 50%;
}

.circle1 {
  background-color: #e48485;
  width: 650px;
  height: 650px;
  margin: -325px 0 0 -325px;
  z-index: -1;
}

.circle2 {
  background-color: #e8cb6e;
  width: 440px;
  height: 440px;
  margin: -220px 0 0 -220px;
  z-index: -1;
}

.circle3 {
  background-color: #54c0c8;
  width: 270px;
  height: 270px;
  margin: -135px 0 0 -135px;
  z-index: -1;
}

.content {
  height: 13vh;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  mix-blend-mode: screen;
  z-index: 1000;
}

.content h1 {
  font-size: 66px;
  font-weight: bold;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  display: none; /* PCでは非表示 */
}

.header_container {
  max-width: 1000px;
  width: 100%;
  display: flex;
  margin: 0 auto;
}

.header_logo {
  margin: 0px auto 0px 20px;
}

.header_logo img {
  max-width: 80px;
  max-height: 80px;
}

.header #gnav {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-right: 2%;
  margin-bottom: 2%;
}

.header #gnav .nav_flex {
  display: flex;
}

.header li {
  border-right: 1px dashed #a6937c;
}
.header li:first-child { color: #54c0c8; }
.header li:nth-child(2n) { color: #e48485; }
.header li:nth-child(3n) { color: #eec148; }
.header li:last-child { color: #6cae98; }

.header #gnav li:last-child {
  border-right: none;
}

.header #gnav li a {
  padding: 0 20px;
  text-decoration: transparent;
  transition: 0.5s;
}

.header #gnav li:last-child a {
  padding-right: 0;
}

.header #gnav li a:hover {
  text-decoration: underline;
}

/* ドロワーメニューボタン */
#btn_open {
  display: none;
}

/* ==========================================================================
   First View / Hero
   ========================================================================== */
.FirstView_container {
  max-width: 1000px;
  margin: 0 auto;
}

.FirstView {
  background-color: #bcdbdf;
  padding-top: 55px;
  margin-bottom: 100px;
}

.FirstView .flex {
  display: flex;
  justify-content: center;
  margin-bottom: 270px;
  max-width: calc(100% - 10%);
  margin: 0 auto;
}

.FirstView .name,
.FirstView .portfolio {
  font-weight: bold;
  margin: auto 0;
  font-size: 200%;
}

.main-img {
  width: 520px;
  margin: 0 auto;
}

.scroll {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.scroll::before {
  content: "";
  position: absolute;
  top: 70%;
  bottom: 0;
  width: 14px;
  height: 14px;
  border-top: 1px solid #121212;
  border-right: 1px solid #121212;
  transform: rotate(135deg);
}

/* ==========================================================================
   Profile Section (PC Default)
   ========================================================================== */
#profile-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 10% 0;
}

.profile-img {
  flex: 0 0 320px; /* 幅を固定してバランスを保つ */
  margin-right: 60px;
  position: relative;
  z-index: 1;
}

.profile-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1; /* 正円を維持 */
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 
    0 0 0 2px #bcdbdf,
    0 15px 25px rgba(139, 187, 176, 0.2);
}

.profile-section {
  flex: 1;
  z-index: 1;
  text-align: left;
  padding-top: 20px;
}

.profile-section .title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
  margin-top: 40px;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
}

.profile-section .title:first-child {
  margin-top: 0;
}

.profile-section .title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #e8cb6e;
  border-radius: 50%;
  margin-right: 12px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e8cb6e;
}

.profile-section .name {
  font-weight: 700;
  color: #4a5c5a;
  letter-spacing: 0.15em;
  margin-bottom: 25px;
  line-height: 1.2;
}

.profile-section p.name {
  font-size: 22px;
}

.profile-text,
.skill-text {
  font-size: 1rem;
  line-height: 2;
  color: #60706e;
  letter-spacing: 0.02em;
}

.profile-text {
  margin-bottom: 30px;
}

/* ==========================================================================
   Hobby Section
   ========================================================================== */
.hobby {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 50px;
}

.hobby .hobby_contents {
  width: 26%;
  margin: 0 auto;
  margin-top: -50px;
}

.hobby_contents_img {
  height: 50%;
}

.hobby_contents_img img {
  object-fit: cover;
  width: 100%;
  height: 90%;
  border-radius: 12px;
}
.hobby_contents .hobby_contents_img:first-child img { border: 3px solid #e8cb6e; }
.hobby_contents:nth-child(2n) .hobby_contents_img img { border: 3px solid #54c0c8; }
.hobby_contents:nth-of-type(3n) .hobby_contents_img img { border: 3px solid #e48485; }

.hobby_contents_text {
  font-size: 15px;
  text-align: center;
}

.hobby_contents_text h2 {
  font-size: 20px;
  text-align: center;
  margin-bottom: 8px;
  font-weight: 500;
}

/* ==========================================================================
   Old Contents / Headings
   ========================================================================== */
h1 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 20px;
}

h3 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: bold;
  margin-bottom: 20px;
}

.contents_box {
  position: relative;
  background: #bcdbdf;
  padding-top: 50px;
  padding-bottom: 50px;
  margin-bottom: 50px;
}

.contents_box h2.title {
  font-size: 80px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 70px;
  color: #e48485;
  background-image: linear-gradient(45deg, #e48485 0%, #a6ddcb 50%, #eec148 90%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation-name: gradationTextAnimation;
  animation-duration: 8s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes gradationTextAnimation {
  0% { background-position: 0 0; }
  50% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.contents {
  display: flex;
  max-width: 1000px;
  width: calc(100% - 40px);
  margin: 0 auto;
  padding-bottom: 100px;
}

.contents_pic {
  width: 20%;
  margin-right: 50px;
  margin-left: 20px;
}

.contents_pic img {
  max-height: 400px;
  object-fit: contain;
  width: 100%;
}

.contents_text {
  color: #333;
  width: calc(100% - 20% - 9%);
  margin: auto 0;
  margin-right: 10px;
  background-image: url(../images/bg_icon.png);
  background-repeat: no-repeat;
  background-position: right bottom;
}

.title_canva {
  padding-top: 100px;
}
/* ==========================================================================
   Scroll Infinity Animation
   ========================================================================== */
.scroll-infinity {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-bottom: 50px;
}

.scroll-infinity .loop_wrap {
  display: flex;
  width: max-content;
  animation: loopimage 100s linear infinite;
}

.scroll-infinity__list {
  display: flex;
  gap: var(--size-48);
  padding: 20px var(--size-48) 20px 0;
  margin: 0;
}

.scroll-infinity__item {
  flex: 0 0 auto;
  width: auto;
}

.scroll-infinity__item img {
  width: 250px;
  height: auto;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@keyframes loopimage {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Works / Portfolio Section
   ========================================================================== */
.works-container {
  background-color: var(--c-mint);
  display: flex;
  flex-direction: column;
  gap: 60px;
  color: var(--c-text);
  box-sizing: border-box;
}

.work-card {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  background: var(--c-white);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(86, 126, 134, 0.15);
  display: flex;
  gap: 50px;
  align-items: stretch;
  transition: transform 0.3s ease;
}

.work-card:hover {
  transform: translateY(-3px);
}

.work-visual {
  flex: 0 0 300px;
  width: 300px;
}

.img-frame {
  display: block;
  width: 100%;
  border-radius: var(--radius-img);
  overflow: hidden;
  background: transparent;
  border: none;
  aspect-ratio: 4 / 5;
  position: relative;
  transition: all 0.3s ease;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}

.img-frame:hover img {
  transform: scale(1.05);
}

.work-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: #333;
  line-height: 1.4;
  border-bottom: 3px dotted var(--c-mint);
  padding-bottom: 10px;
  width: 100%;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0 0 25px;
  padding: 0;
}

.meta-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.95rem;
}

.meta-row dt {
  font-weight: 700;
  color: var(--c-yellow);
  font-size: 0.85rem;
  background: #fff8e1;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.work-desc {
  font-size: 1rem;
  line-height: 1.9;
  margin: 0 0 30px;
  text-align: justify;
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  width: 100%;
}

.btn-link {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--c-white);
  border: 2px solid var(--c-mint);
  color: var(--c-text);
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-link .arrow {
  margin-left: 8px;
  color: var(--c-mint);
  font-weight: bold;
}

.btn-link:hover {
  background: var(--c-yellow);
  border-color: var(--c-yellow);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(232, 203, 110, 0.5);
}

.btn-link:hover .arrow {
  color: #fff;
}

/* --- ロゴとタイトルを横並びにするエリア --- */
.partner-header {
  display: flex;
  justify-content: center; /* 中央寄せ */
  align-items: center;     /* 上下中央揃え */
  gap: 20px;               /* ロゴと文字の間隔 */
  margin-bottom: 25px;     /* 下の説明文との余白 */
}

/* ロゴのデザイン（横並び用にサイズ調整） */
.partner-logo {
  width: 80px;  /* 文字とのバランスを見て少し小さめに */
  height: 80px;
  flex-shrink: 0; /* ロゴが潰れないように固定 */
  position: relative;
  z-index: 1;
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  border: 4px solid #fff; /* 枠線も少し細く */
  background-color: #fff;
  
  /* トンマナ合わせ（ミント枠＋影） */
  box-shadow: 
    0 0 0 2px var(--c-mint-accent), 
    0 5px 15px rgba(139, 187, 176, 0.2);
}


/* スマホ表示時の微調整 */
@media screen and (max-width: 600px) {
  .partner-header {
    gap: 15px;
  }
  
  .partner-logo {
    width: 60px; /* スマホではもう少し小さく */
    height: 60px;
  }
}

/* ==========================================================================
   Contact Form Section
   ========================================================================== */
/* =========================================
   アニメーション定義
   ========================================= */
   @keyframes gradationTextAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* =========================================
     レイアウトエリア
     ========================================= */
  #contact {
    width: 100%;
    padding: 100px 20px;
    background-color: #f9fafb; /* 全体の背景色（カードを目立たせるため薄いグレーに） */
    box-sizing: border-box;
  }
  
  /* 左右分割のコンテナ */
  .contact-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 上端揃え */
    gap: 60px; /* 左テキストと右フォームの間の余白 */
    max-width: 1100px;
    margin: 0 auto;
  }
  
  /* =========================================
     左側：テキストエリア
     ========================================= */
  .contact-text {
    flex: 1; /* 幅の比率 1 */
    position: sticky; /* スクロール追従（PCのみ有効） */
    top: 50px;
    left: 100px;
    padding-top: 20px;
  }
  
  .contact-h2 {
    /* 元のデザインを継承しつつ配置を修正 */
    font-size: 64px;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 30px;
    text-align: left; /* 左寄せ */
    
    /* グラデーションテキスト */
    color: rgba(255, 127, 127, 0.4);
    background-image: linear-gradient(45deg, #e48485 0%, #a6ddcb 50%, #eec148 90%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradationTextAnimation 8s linear infinite;
  }
  
  .contact-description {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.8;
    margin: 0;
  }
  
  /* =========================================
     右側：フォームエリア
     ========================================= */
  .contact-form {
    flex: 1.2; /* 幅の比率 1.2（少し広め） */
    width: 100%;
  }
  
  .card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.05); /* 柔らかい影 */
    overflow: hidden;
    padding: 40px 0; /* 上下の内側余白 */
  }
  
  .card-content {
    padding: 0 2.5rem;
  }
  
  /* =========================================
     フォームパーツ
     ========================================= */
  .form-group {
    margin-bottom: 24px;
  }
  
  .label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
  }
  
  .required {
    color: #ef4444;
    font-size: 0.8em;
  }
  
  .input, .textarea {
    width: 100%;
    padding: 14px 16px; /* 少し広げて入力しやすく */
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #f9fafb; /* 薄いグレー背景 */
    font-size: 1rem;
    color: #333;
    transition: all 0.2s ease;
    box-sizing: border-box; /* レイアウト崩れ防止 */
  }
  
  /* フォーカス時のデザイン */
  .input:focus, .textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
  }
  
  .textarea {
    resize: vertical; /* 縦方向のみリサイズ許可 */
    min-height: 160px;
    font-family: inherit;
  }
  
  /* =========================================
     ボタン & メッセージ
     ========================================= */
  .submit-btn {
    width: 100%;
    background: #e8cb6e;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    letter-spacing: 0.05em;
  }
  
  .submit-btn:hover {
    background: #0f766e;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
  }
  
  .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
  }
  
  .spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  .success-message {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 20px;
    text-align: center;
    font-size: 0.95rem;
  }
  
  /* =========================================
     レスポンシブ対応（スマホ・タブレット）
     ========================================= */
  @media (max-width: 900px) {
    .contact-layout {
      flex-direction: column; /* 縦並びに変更 */
      gap: 40px;
      max-width: 600px; /* スマホで見やすい幅に */
    }
  
    .contact-text {
      text-align: center;
      position: static; /* 追従を解除 */
      width: 100%;
    }
  
    .contact-h2 {
      text-align: center;
      font-size: 48px; /* スマホ用に少し小さく */
      margin-bottom: 16px;
    }
  
    .card-content {
      padding: 0 1.5rem;
    }
  }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: #6a6a6a;
}

.footer_container {
  color: #fff;
  display: flex;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 70px;
  justify-content: space-between;
}

.footer .footer_nav ul {
  display: flex;
  margin: 20px 0 50px 20px;
}

.footer_nav li {
  margin-right: 20px;
  width: 30%;
}

.footer_nav li:nth-child(1n) a { color: #54c0c8; }
.footer_nav li:nth-child(2n) a { color: #e48485; }
.footer_nav li:nth-child(3n) a { color: #e8cb6e; }
.footer_nav li:nth-child(4n) a { color: #a6ddcb; }

.footer-text {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #f3f4f6;
  margin-top: 1.5rem;
}

.footer-text p {
  font-size: 0.875rem;
  color: #6b7280;
}

/* ==========================================================================
   Legacy Buttons (button_line001)
   ========================================================================== */
.button_line001 a {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  max-width: 200px;
  padding: 10px 25px;
  transition: 0.3s ease-in-out;
  font-weight: 600;
}

.button_line001 a:before {
  position: absolute;
  bottom: 0px;
  left: 50%;
  content: "";
  width: 100%;
  height: 2px;
  background: rgba(0, 0, 0, 0.1);
  transform: translateX(-50%);
}
.button_line001 a:after {
  position: absolute;
  bottom: 0px;
  left: 0;
  content: "";
  width: 100%;
  height: 2px;
  background: #000;
  transform: scale(0, 1);
  transform-origin: left top;
  transition: transform 0.3s;
}
.button_line001 a:hover {
  opacity: 0.7;
}
.button_line001 a:hover:after {
  transform: scale(1, 1);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

/* Max Width 850px (Works Section Breakpoint) */
@media (max-width: 850px) {
  .works-container {
    padding: 40px 15px;
    gap: 40px;
  }

  .work-card {
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 25px;
  }
  
  .work-visual {
    width: 100%;
    max-width: 320px;
    flex: auto;
  }
  
  /* スマホ表示では正方形(1:1) */
  .img-frame {
    aspect-ratio: 1 / 1;
  }

  .work-body {
    width: 100%;
    justify-content: flex-start; 
  }

  /* ボタンを縦並び & 横幅いっぱい */
  .work-links {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-link {
    width: 100%;
    padding: 12px 20px;
  }
}

/* Max Width 800px (Legacy Layout Breakpoint) */
@media screen and (max-width: 800px) {
  .circles,
  .circle,
  .content,
  .cursor {
    display: none;
  }

  .header { display: block; }
  .header_container { display: block; }
  .header_logo { margin: 50px auto; text-align: center; }
  .header #gnav { width: 100%; }
  .header #gnav nav { width: 100%; margin: 0 auto; }
  .header #gnav .nav_flex { margin: 0 auto; justify-content: center; align-items: center; }

  .FirstView .name,
  .FirstView .portfolio { font-size: 150%; }

  .profile-img { max-height: 300px; }
  .main_container { max-width: 800px; width: 100%; margin: 0 auto; }

  .hobby { display: block; }
  .hobby .hobby_contents {
    display: flex;
    margin-top: 0px;
    width: 80%;
    padding-top: 30px;
    padding-bottom: 50px;
  }

  .hobby_contents_text {
    margin: auto 50px;
    width: 65%;
    text-shadow: 1px 1px 0px #fff, -1px -1px 0px #fff, -1px 1px 0px #fff,
      1px -1px 0px #fff, 1px 0px 0px #fff, -1px 0px 0px #fff, 0px 1px 0px #fff,
      0px -1px 0px #fff;
  }

  .hobby_contents_img {
    width: 30%;
    height: 130px;
    padding: 0;
  }

  .hobby_contents_img img { height: 100%; }

  .contents {
    width: 95%;
    margin: 0 auto 100px;
    padding-bottom: 0;
  }

  .contents_pic { width: 50%; }
  .contents_pic img { width: 100%; max-height: 300px; object-fit: contain; }
  .contents_text .br { display: none; }

  #contact { display: block; }
  #contact .contact-text { width: 100%; margin: 0 auto; inline-size: fit-content; }
  #contact .line_qr { width: 150px; margin: 0 auto; }
}

/* Max Width 768px (Scroll Infinity Breakpoint) */
@media (max-width: 768px) {
  .scroll-infinity__item img {
    width: 200px;
  }
  .scroll-infinity__list {
    gap: var(--size-24);
    padding: 20px var(--size-24) 20px 0;
  }
}

/* Max Width 640px (Contact Form Breakpoint) */
@media (max-width: 640px) {
  body { padding: 1rem 0.5rem; }
  .card-header { padding: 1.5rem 1.5rem 0; }
  .card-content { padding: 0 1.5rem 1.5rem; }
  .card-title { font-size: 1.5rem; }
  .card-description { font-size: 1rem; }
}

/* Max Width 500px (Mobile Layout Breakpoint) */
@media screen and (max-width: 500px) {
  /* ... (Other existing styles) ... */
  .header_logo { min-width: 160px; margin: 20px auto; text-align: center; }
  #gnav { width: 100%; }
  #gnav nav { margin: 0 auto; width: 100%; position: absolute; top: 50%; transform: translateY(-50%); }
  .nav_flex { width: 100%; display: flex; }
  .nav_flex li { width: calc(100% / 6); text-align: center; border-right: 1px solid #fff; }
  .nav_flex li:last-child { border-right: none; }
  .nav_flex a { display: block; padding: 10px 0; color: #fff; transition: 0.6s; }
  #gnav .nav_flex li:first-child a { background-color: #bcdbdf; }
  #gnav .nav_flex li:nth-of-type(2n) a { background-color: #e48485; }
  #gnav .nav_flex li:nth-child(3n) a { background-color: #eec148; }
  #gnav .nav_flex li:last-child a { background-color: #54c0c8; }
  .nav_flex a:hover { transform: scale(1.2); }
  .FirstView_container .flex { display: block; }
  .FirstView_container .main-img { width: 200px; margin: 50px auto; }
  .FirstView .name, .FirstView .portfolio { font-size: 150%; }
  .profile-text { margin-bottom: 50px; }
  .hobby .hobby_contents { display: block; }
  .hobby .hobby_contents:first-child { border-bottom: 2px solid #e48485; }
  .hobby .hobby_contents:nth-child(2n) { border-bottom: 2px solid #e8cb6e; }
  .hobby .hobby_contents:last-child { border-bottom: 2px solid #54c0c8; }
  .hobby_contents_img { width: 50%; margin: 0 auto; padding-bottom: 20px; }
  .hobby_contents_text { width: 90%; margin: 0 auto; text-align: center; text-shadow: 1px 1px 0px #fff, -1px -1px 0px #fff, -1px 1px 0px #fff, 1px -1px 0px #fff, 1px 0px 0px #fff, -1px 0px 0px #fff, 0px 1px 0px #fff, 0px -1px 0px #fff; }
  .contents_box h2.title { font-size: 50px; margin-bottom: 0;}
  .contents_box { margin-bottom: 0; }
  .contents { display: block; margin: 0 auto; width: 100%; max-width: 600px; }
  .contents_pic { margin: 0 auto; padding-bottom: 30px; }
  .contents_pic img { width: 100%; margin: 0 auto; }
  .contents_text { width: 90%; margin: 0 auto; margin-bottom: 100px; }
  .contents_text .br { display: none; }
  h3 { font-size: 20px; }
  .contact-h2 { font-size: 70px; top:3%;}
  .card { margin-top: 20px; }
  #contact { padding: 0 0 70px; }
  .footer .footer_nav ul { width: 60%; flex-wrap: wrap; }
  .btn_menu { display: block; width: 40px; height: 40px; position: fixed; top: 20px; right: 10px; z-index: 1000; }
  .btn_menu span { width: 60%; height: 2px; display: block; background-color: #000; position: absolute; left: 20%; transition: all 0.2s linear; }
  .btn_menu span:nth-of-type(1) { top: 8.5px; transform: rotate(0); }
  .btn_menu span:nth-of-type(2) { top: 19px; transform: scale(1); }
  .btn_menu span:nth-of-type(3) { bottom: 8.5px; transform: rotate(0); }
  #btn_open:checked + .btn_menu span:nth-of-type(1) { top: 19px; transform: rotate(-45deg); }
  #btn_open:checked + .btn_menu span:nth-of-type(2) { transform: scale(0); }
  #btn_open:checked + .btn_menu span:nth-of-type(3) { bottom: 19px; transform: rotate(45deg); }
  .header #gnav { width: 100%; background-color: rgba(77, 77, 77, 0.5); overflow: hidden; position: fixed; top: 0; right: -100%; z-index: 100; transition: top 0.5s, right 0.5s, bottom 0.5s, left 0.5s; height: 100vh; padding: 0; margin-right: 0; }
  #btn_open:checked ~ #gnav { right: 0; }
  .header #gnav .nav_flex { display: block; }
  .header #gnav li a { padding: 10px; margin: 10px; border-radius: 50px 10px 50px 10px; width: 270px; margin: 20px auto; }
  .header #gnav li:last-child a { padding-right: 20px; padding: 10px; }
  .header #gnav li a:hover { text-decoration: none; }
  .nav_flex li { width: 100%; border: none; }
  .nav_flex a { padding: 20px; }

  /* プロフィール修正: 500px以下 */
  #profile-container {
    display: flex;
    flex-direction: column; /* 縦並び */
    align-items: center;    /* 画像を中央に */
    padding-bottom: 50px;
  }

  .profile-img {
    flex: 0 0 auto;       /* PCのflex設定を解除 */
    width: 200px;         /* スマホ用サイズ */
    height: 200px;
    margin: 0 auto 30px;  /* 左右中央・下余白 */
  }

  .profile-section {
    width: 90%;           /* 幅を制限 */
    text-align: left;     /* テキスト左揃え */
    padding-top: 0;
  }

  .profile-section .title {
    justify-content: flex-start; /* 左寄せ */
    margin-top: 30px;
  }

  .profile-text,
  .skill-text {
    text-align: left;
  }
}

/* ==========================================================================
   Lightbox カスタマイズ
   ========================================================================== */
.lb-outerContainer {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 90vw !important;
  height: 80vh !important;
  max-width: none !important;
  max-height: none !important;
  background-color: #fff;
  border-radius: 4px;
  margin: 0 !important;
}

.lb-container {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
}

.lb-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important; 
  margin: 0 !important;
  padding: 0 !important;
}

.lb-dataContainer {
  position: fixed !important;
  bottom: 5vh !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 90vw !important;
  min-height: auto !important;
}

.lb-nav {
  height: 100% !important;
}

/* --- Partner Section --- */
.partner-wrapper {
  width: 100%;
  padding: 60px 0 100px;
}

.partner-heading {
  font-size: 24px;
  text-align: center;
  font-weight: 700;
  margin-bottom: 40px;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.partner-heading::before,
.partner-heading::after {
  content: '';
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--c-mint);
  border-radius: 2px;
}

.partner-card {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 30px;
  padding: 50px;
  box-shadow: 0 15px 40px rgba(166, 221, 203, 0.15);
  border: 1px solid rgba(166, 221, 203, 0.3);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-3px);
}

.partner-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}

.partner-header {
  gap: 10px;
}

.partner-logo {
  width: 55px;
  height: 55px;
}

.partner-desc {
  font-size: 1rem;
  line-height: 2;
  color: #60706e;
  margin-bottom: 35px;
  position: relative;
  z-index: 1;
}

.partner-features {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 35px;
  padding: 0;
  list-style: none;
  width: 100%;
}

.partner-features li {
  white-space: nowrap;
  font-size: 0.9rem;
  color: #546e7a;
  background-color: #fff9c4;
  border: 1px solid #ffe082;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.partner-features li::before {
  content: '✔';
  color: #eec148;
  font-weight: bold;
}

.partner-link-area {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

@media screen and (max-width: 850px) {
  .partner-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 全体は中央寄せ */
    gap: 8px; 
    max-width: 600px;
    margin: 0 auto 35px;
  }

  .partner-features li {
    flex: 1 1 calc(45%);   /* 45%をベースにしつつ、伸び縮みを許可 */
    white-space: normal;   /* 文字の折り返しを許可する（見切れ防止の重要設定） */
    word-break: break-all; /* 単語の途中でも改行させる */
    min-width: 140px;      /* これ以上小さくなると1列に落ちる */
    font-size: 0.85rem;
    padding: 8px 12px;
    display: flex;
    align-items: flex-start; /* チェックアイコンと複数行テキストを綺麗に並べる */
  }
}

/* --- Responsive (スマホ対応) --- */
@media screen and (max-width: 600px) {
  .partner-card {
    padding: 40px 25px;
    width: 90%;
  }

  .partner-desc {
    font-size: 0.95rem;
    text-align: justify;
    text-align-last: left;
  }

  .partner-link-area .btn-link {
    width: 100%;
    max-width: 300px;
  }

  .partner-logo {
    width: 50px;
    height: 50px;
  }

  .partner-header {
    gap: 6px;
  }
}