* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ログイン時は管理バーの高さぶんだけヘッダーを下げる */
.admin-bar .header {
  top: 32px;              /* PC */
}
@media (max-width: 782px) {
  .admin-bar .header { top: 46px; }  /* タブレット/スマホ */
}

a { color: white; }
a:hover { text-decoration: none; }
:root {
  --inverted-radius-bg-color: #181818;
  --gold: #d4af37;
  --deep-gold: #b8941f;
  --pale-gold: rgba(212, 175, 55, 0.2);
  --glow-gold: rgba(212, 175, 55, 0.5);
  --container-width: 1280px;
  --gfa-frame-margin: 7.5em;
  --gfa-frame-margin-1280: 2.5em;
  --general-font-color: white;
  --toggle-background1: #151413;
}
@media (max-width: 1280px) {
  :root { --container-width: 980px; }
  header .header-container, footer .footer-container { max-width: 1280px; }
}
body {
  font-family: 'Noto Serif JP', serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  background: var(--inverted-radius-bg-color);
}
p { font-size: 1.1rem; }
/* Background Video */
.video-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; object-fit: cover; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0)); z-index: -1; }
.frontimg-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 0; }
/* Glass Effect */
.glass-effect { background: rgba(255,255,255,0.08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.15); border-left: 0; border-right: 0; }
/* Header */
.header { position: fixed; top:0; left:0; width:100%; z-index:1000; padding:1rem 0; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.2); transition: all 0.3s ease; }
.header-container { max-width: var(--container-width); margin:0 auto; display:flex; justify-content:space-between; align-items:center; position: relative; }
.logo { font-family:'Noto Serif JP', serif; font-size:1.5rem; font-weight:600; color:var(--gold); text-decoration:none; letter-spacing:0.1em; position:relative; z-index:1001; line-height:0; }
.logo img { width:120px; }
.nav { display:flex; gap:3rem; align-items:center; }
.nav-item { position:relative; }
.nav-link { color:white; text-decoration:none; font-weight:400; transition:all 0.3s ease; position:relative; font-size:1.1rem; letter-spacing:0.05em; display:flex; align-items:center; gap:0.5rem; padding:0.5rem 0; }
.nav-link::before { content:''; position:absolute; bottom:0; left:0; width:0; height:2px; background:var(--gold); transition:width 0.3s ease; }
.nav-link:hover::before { width:100%; }
.nav-link:hover { color:var(--gold); }
.nav-arrow { font-size:0.8rem; transition: transform 0.3s ease; color:white; }
.nav-item:hover .nav-arrow { transform: rotate(180deg); color:var(--gold); }
/* Dropdown Menu */
.dropdown { position:absolute; top:100%; left:0; background:rgba(0,0,0,0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius:10px; padding:1rem 0; min-width:260px; opacity:0; visibility:hidden; transform:translateY(-10px); transition:all 0.3s ease; z-index:1002; box-shadow:0 25px 50px rgba(0,0,0,0.3); }
.nav-item:hover .dropdown { opacity:1; visibility:visible; transform:translateY(0); }
.dropdown-link { display:block; color:white; text-decoration:none; padding:0.8rem 1.5rem; transition:all 0.3s ease; border:none; position:relative; font-size:1rem; letter-spacing:0.05em; }
.dropdown-link:hover { color:var(--gold); padding-left:1.8rem; }
/* CTA Button */
.cta-button { background: linear-gradient(135deg, var(--gold), var(--deep-gold)); color:white; padding:0.8rem; border-radius:2rem; text-decoration:none; font-weight:500; transition:all 0.3s ease; border:none; cursor:pointer; font-size:1rem; position:relative; overflow:hidden; font-family:inherit; line-height:0.7; right:0; }
/* Mobile Menu Toggle */
.mobile-menu-toggle { display:none; flex-direction:column; cursor:pointer; gap:4px; background:none; border:none; padding:0.5rem; z-index:1001; position:relative; }
.mobile-menu-toggle span { width:25px; height:3px; background:var(--gold); border-radius:2px; transition:all 0.3s ease; display:block; }
/* Mobile Menu */
.mobile-menu { position:fixed; top:0; left:0; width:100%; max-width:400px; height:100vh; background:rgba(0,0,0,0.5); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transform:translateX(-100%); transition:transform 0.3s ease; z-index:1001; overflow-y:auto; }
.mobile-menu.active { transform:translateX(0); }
.mobile-nav { display:flex; flex-direction:column; gap:0; padding:2rem; min-height:100%; position:relative; }
.mobile-nav .nav-link { font-size:1.3rem; padding:1rem 0; border-bottom:1px solid rgba(212,175,55,0.2); display:block; width:100%; font-weight:400; letter-spacing:0.05em; }
.mobile-nav .nav-link:last-child { border-bottom:none; }
.mobile-nav .nav-item { width:100%; }
.mobile-nav .nav-arrow { float:right; font-size:1rem; }
.mobile-dropdown { max-height:0; overflow:hidden; transition:max-height 0.3s ease; margin-top:1px; }
.mobile-dropdown.active { max-height:1000px; }
.mobile-dropdown .dropdown-link { padding:1rem 1.5rem; font-size:1.3rem; border-bottom:1px solid rgba(212,175,55,0.2); color:rgba(255,255,255,0.9); }
.mobile-dropdown .dropdown-link:hover { color:var(--gold); }
.mobile-dropdown .dropdown-link:last-child { border-bottom:none; }
/* Mobile Close Button */
.mobile-close { position:absolute; top:1rem; right:2rem; background:none; border:none; color:var(--gold); font-size:2rem; cursor:pointer; padding:0.5rem; z-index:1001; transition:all 0.3s ease; }
.mobile-close:hover { transform:rotate(90deg); color:white; }
/* Japanese Hero Section */
.hero { position:relative; z-index:20; min-height:100vh; display:flex; align-items:center; justify-content:center; text-align:center; color:white; padding:0 2rem; }
.hero-content { max-width:1200px; margin:0 auto; position:relative; }

.front-img {
    display: none;
}

/* 縦書きメインタイトル */
.hero-main-title { font-family:'Noto Serif JP', serif; font-size:4rem; font-weight:300; line-height:1.2; letter-spacing:0.2em; writing-mode:vertical-rl; text-orientation:upright; margin:0 auto; position:relative; display:inline-block; text-shadow:2px 2px 8px rgba(0,0,0,0.5); animation:fadeInUp 2s ease-out; }
/* 2行縦書きレイアウト */
.hero-title-container { display:flex; justify-content:center; align-items:center; gap:1rem; }
.hero-title-line { font-family:'Noto Serif JP', serif; font-size:33px; font-weight:300; line-height:1.3; letter-spacing:0.25em; writing-mode:vertical-rl; text-orientation:upright; text-shadow:2px 2px 8px rgba(0,0,0,1); animation:fadeInUp 1s ease-out; position:relative; }
.hero-title-line:nth-child(1) { animation-delay:2.3s; opacity:0; animation-fill-mode:forwards; }
.hero-title-line:nth-child(2) { animation-delay:1s; opacity:0; animation-fill-mode:forwards; }
/* サブタイトル（横書き） */
.hero-subtitle { font-family:'Noto Serif JP', serif; font-size:1.2rem; font-weight:300; color:rgba(255,255,255,0.9); letter-spacing:0.3em; margin-bottom:2rem; animation:fadeIn 2s ease-out 1s both; text-shadow:1px 1px 4px rgba(0,0,0,0.5); }
/* 装飾的な線 */
.hero-decoration { position:absolute; width:1px; height:300px; left:50%; transform:translateX(-50%); opacity:0.7; animation:fadeIn 1s ease-out 4s both; }
.hero-decoration.top { background: linear-gradient(to bottom, #ffffff, #ffffff, transparent); top:-60px; left:-2.5em; }
.hero-decoration.top::before { width:80px; height:1px; content:""; background:white; display:block; }


/* ====== Append: section (iOS16-safe, flat CSS) ====== */
.hero-decoration.bottom {
  background: linear-gradient(to top, #ffffff, #ffffff, transparent);
  bottom: -60px;
  left: calc(100% + 2.5em);
}

.hero-decoration.bottom::after {
  width: 80px;
  height: 1px;
  content: "";
  background: white;
  display: block;
  position: absolute;
  top: 100%;
  left: -79px;
}

/* CTA Buttons */
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  animation: fadeIn 2s ease-out 2s both;
}

.hero-button-primary {
  background: linear-gradient(135deg, var(--gold), var(--deep-gold));
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 2rem;
  text-decoration: none;
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--glow-gold);
}

.hero-button-primary:hover {
  background: linear-gradient(135deg, var(--deep-gold), #9d7a1a);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--glow-gold);
}

.hero-button-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 2rem;
  text-decoration: none;
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero-button-secondary:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold);
  box-shadow: 0 4px 15px var(--glow-gold);
}

br.disp_mobile_tablet {
  display: none;
}

/* Services Section */
.services {
  position: relative;
  z-index: 20;
  padding: 6rem 4rem 4rem;
  background: var(--inverted-radius-bg-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.services#nokotsudo-valiations {
  padding: 0 4rem 4rem;
  background: var(--toggle-background1);
}

.services#gallery {
  background: var(--toggle-background1);
}

.services-container {
  max-width: var(--container-width);
  margin: 0 auto;
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}

.section-title-english {
  font-family: "Cormorant Garamond", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: #4b4b4b;
  text-align: center;
  font-size: 100px;
  line-height: 1;
  margin-top: 0em;
  margin-bottom: -0.5em;
  overflow: hidden;
}

.section-subtitle {
  text-align: center;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 1);
  margin-bottom: 6rem;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

#news .services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.service-card {
  padding: 0;
  border-radius: 0;
  text-align: center;
  color: white;
  padding-bottom: 3em;
}

.service-icon {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.service-icon svg {
  width: 1rem;
  height: 1rem;
  color: white;
}

.service-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

#news .service-card h3 {
  font-size: 1.1rem;
}

.service-card p {
  color: rgba(255, 255, 255, 1);
  line-height: 1.7;
  letter-spacing: 0.02em;
  text-align: left;
}

/* Footer */
.footer {
  position: relative;
  z-index: 10;
  background: #111111;
  color: white;
  padding: 4rem 4rem 2rem;
  border-top: 1px solid rgb(34 34 34);
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
}

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

.footer .footer-section-3 {
  display: block;
}

.footer-section h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.footer-section ul li a:hover {
  color: var(--gold);
}

.footer-social, .mobile-social {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.social-icon:before {
  content: '';
  width: 100%;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--gold), var(--deep-gold));
  border-radius: 2em;
  transition: all 0.3s ease;
  z-index: -1;
  position: absolute;
  opacity: 1;
}

.social-icon:hover::before {
  opacity: 0.8;
  transition: all 0.5s ease;
}

/* .social-icon:hover { transform: translateY(-2px); } */

.social-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.social-icon2, .social-icon3 {
  transition: all 0.3s ease;
}

.social-icon2:hover,  .social-icon3:hover {
  transition: all 0.3s ease;
  opacity: 0.8;
}


.footer-bottom {
  border-top: 1px solid rgba(75, 85, 99, 0.5);
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  justify-content: right;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
}

.footer-links a:hover {
  color: var(--gold);
}

/* Scroll to Top Button (gradient halo via ::before) */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: none;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

.scroll-top::before {
  content: '';
  position: absolute;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--gold), var(--deep-gold));
  border-radius: 50%;
  cursor: pointer;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: -1;
}

.scroll-top:hover::before {
  opacity: 0.8;
  transition: all 0.5s ease;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-2px);
}

.scroll-top svg {
  width: 1.5rem;
  height: 1.5rem;
}

.top-English-title {
  font-family: "Cormorant Garamond", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* Card Container Styles */
.card-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.main-card {
  width: 100%;
  border-radius: 1rem;
  transform: scale(1);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}

@media (min-width: 1024px) {
  .main-card {
    border-radius: 0.6rem;
  }

  #news .main-card {
    border: 2px solid #999999;
    border-radius: 0.6rem;
  }
}

.image-container {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.image-wrapper {
  width: 100%;
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.image-aspect {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 66.7%;
}

.image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 10;
}

.tags-container {
  position: absolute;
  bottom: -1px;
  right: -1px;
  z-index: 20;
  background-color: var(--inverted-radius-bg-color);
  padding-left: 1.05rem;
  padding-top: 0.85rem;
  padding-bottom: 1px;
  transition: transform 0.3s ease;
  transform: translateY(0);
  border-top-left-radius: 2.2rem;
}

.tags-container::before {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 0.5px;
  width: 15px;
  height: 15px;
  background: radial-gradient(circle at top left, transparent 14.5px, var(--inverted-radius-bg-color) 15.2px);
  transform: translateX(-100%);
  z-index: -1;
}

.tags-container::after {
  content: '';
  position: absolute;
  top: 0.5px;
  right: 1px;
  width: 15px;
  height: 14px;
  background: radial-gradient(circle at top left, transparent 14.5px, var(--inverted-radius-bg-color) 15px);
  transform: translateY(-100%);
  z-index: -1;
}


/* ====== Append: converted to flat CSS (iOS16-safe) ====== */
.tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: -0.5rem;
  margin-right: -0.5rem;
}

.inverted-tag,
.inverted-tag::before {
  background: linear-gradient(135deg, var(--gold), var(--deep-gold));
  line-height: 1;
  border-radius: 2em;
  margin-right: 0.6rem;
  margin-bottom: 0.5rem;
  padding: 0.4rem 1rem;
  color: white;
  font-size: 1em;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5em;
  text-shadow: 0 0 4px rgb(0 0 0 / 20%);
  transition: all 0.5s ease;
  opacity: 1;
}

/* background should be on ::before only (as authored), keep none on base */
.inverted-tag {
  background: none;
  position: relative; /* ensure ::before absolute positioning is relative to the tag */
}

.inverted-tag::before {
  content: '';
  width: calc(100%);
  height: calc(100%);
  position: absolute;
  padding: 0.1rem 0;
  margin: 0;
  left: 0em;
  top: 0em;
  z-index: -1;
}

.inverted-tag > .inverted-tag_navtext {
  position: relative;
  top: -0.1rem;
}

.service-icon > .card-container > a:hover .inverted-tag::before {
        opacity: 0.8;
        transition: all 0.5s ease;
}


#news .inverted-tag {
  padding: 1rem;
}

#news .home-blog-date {
  text-align: left;
  font-size: 2em;
}

/* Un-nested pseudo rules */
#news .home-blog-date::before,
#news .home-blog-date::after {
  content: none;
}

#news .service-card {
  text-align: left;
  margin-bottom: 0rem;
  padding-bottom: 0em;
}

#news .service-icon {
    margin: 0 auto 0rem;
}

#news .main-card {
    margin: 1rem 0;
}
image-wrapper{
  position: relative;
  width: 100%;
  overflow: hidden;
}
.image-aspect{
  position: relative;
  width: 100%;
  /* padding-top はショートコードから inline-style で注入 */
}
.image-aspect > img.feature-image{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;  /* デフォルト */
  object-position: center;
}
.image-wrapper.fit-contain .image-aspect > img.feature-image{
  object-fit: contain;
}


.more-count {
  font-size: 0.875rem;
  padding-right: 1.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.header {
  padding: 1rem 0;
}

.feature-image {
  background-image: url(sample.jpg);
  background-size: cover;
  background-position-y: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

.feature-image img {
  width: 100%; 
  height: 100%; 
  position: relative; 
  z-index: 100;
}

.home-enma {
  text-align: center;
  margin-bottom: 1rem;
}

/* Un-nested child rule */
.home-enma > img {
  width: 240px;
}

.service-icon-number {
  position: relative;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  padding: 1rem 0;
  line-height: 1.1;
  font-family: "Antonio", sans-serif;
  font-weight: 200;
  margin-bottom: 0.5rem;
  transition: all 0.5s ease;
}

.service-icon-number::before,
.service-icon-number::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 50px);
  height: 2px;
  background-color: #4b4b4b;
  transform: translateY(-50%);
}

.service-icon-number::before {
  left: 0;
}

.service-icon-number::after {
  right: 0;
}

/* Un-nested hover chains */
.service-icon > .card-container > a {
  text-decoration: none;
}

.service-icon > .card-container > a:hover > .service-icon-number {
  color: #cc0000;
  transition: all 0.5s ease;
}

#sub-blog .info-card.category-information > a:hover > .info-meta > time {
    color: #cc0000;
    transition: all 0.5s ease;
}


.service-icon > .card-container > a:hover .tag::before {
  opacity: 0.8;
  transition: all 0.5s ease;
}

.gsap-fx-section-container {
  height: 340vh;
  position: relative;
  background: var(--toggle-background1);
}

.gsap-fx-section {
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  overflow: hidden;
}

.gsap-fx-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.gsap-fx-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.5);
}

.gsap-fx-section-a {
  background-color: transparent;
  z-index: 1;
}

.gsap-fx-section-b,
.gsap-fx-section-c,
.gsap-fx-section-d {
  border-radius: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 2;
  transform: translateY(100vh);
  margin: 10rem 0;
  width: 100%;
  height: calc(100vh - 20rem);
  border-radius: 0;
}

.gsap-fx-content {
  position: absolute;
  bottom: 25px;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  background: #000000cc;
  color: white;
  padding: 1rem 2rem;
  left: 185px;
  border-radius: 16px;
}

.gsap-fx-content h2 {
  font-size: 2vw;
  font-weight: bold;
}

.gsap-fx-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 600px;
}

.gsap-fx-textimg {
  height: 50px;
  vertical-align: middle;
}

.final-gsap-fx-section {
  height: 100vh;
  background: white;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-top: -100vh;
}

.gsap-fx-debug-info {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,0.8);
  padding: 10px;
  border-radius: 5px;
  font-size: 12px;
  z-index: 1000;
  color: white;
}

.gsap-fx-section-a-frame {
  position: absolute;
  width: 100%;
  height: calc(100% - 10em);
}

.gsap-fx-section-a-frame span {
  width: 100%;
  position: absolute;
}

.gsap-fx-section-a-frame span::before {
  position: relative;
  display: block;
  width: 80px;
  height: 1px;
  content: "";
  background: #4b4b4b;
}

/* fixed invalid 'display: #4b4b4b' and duplicate declarations */
.gsap-fx-section-a-frame span::after {
  position: relative;
  width: 1px;
  height: 80px;
  content: "";
  background: #4b4b4b;
  display: block;
}

#gfa-1::before { top: 0; left: var(--gfa-frame-margin); }
#gfa-1::after  { top: 0; left: var(--gfa-frame-margin); }
#gfa-2::before { top: 0; left: calc(100% - 80px - var(--gfa-frame-margin)); }
#gfa-2::after  { top: 0; left: calc(100% - 1px - var(--gfa-frame-margin)); }
#gfa-3, #gfa-4 { bottom: 0; }
#gfa-3::before { top: 80px; left: var(--gfa-frame-margin); }
#gfa-3::after  { top: calc(100% - 80px); left: var(--gfa-frame-margin); }
#gfa-4::before { top: 80px; left: calc(100% - 80px - var(--gfa-frame-margin)); }
#gfa-4::after  { bottom: 0; left: calc(100% - var(--gfa-frame-margin)); }

/* Pattern 6: medialist Layout */
.pattern-6 {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(184, 148, 31, 0.02) 100%);
}

.medialist-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.medialist-container > h3 {
  text-align: center;
}

.medialist-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.medialist-content {
  padding: 0;
  position: relative;
}

.medialist-content h3 {
  color: var(--general-font-color);
  font-family: 'Noto Serif JP', serif;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.medialist-content p {
  color: var(--general-font-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.medialist-image {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(184, 148, 31, 0.1));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.medialist-number {
  position: absolute;
  top: -1rem;
  left: 2rem;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #d4af37, #b8941f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.25rem;
}

.t-content-container {
  position: relative;
}

.t-content-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.t-content-wrapper:last-child {
  border-bottom: none;
}

.t-content-row {
  display: flex;
  max-width: 1600px;
  width: 100%;
  gap: 60px;
  align-items: center;
}

.t-content-image {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.t-content-image img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 16px;
  transform: scale(1.1);
}

.t-content-content {
  flex: 1;
  padding-left: 0;
}

.t-content-subtitle {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #aaaaaa;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.t-content-title {
  margin: 0 0 1.5rem 0;
}

.t-content-title span {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 0;
  background-clip: text;
}

.t-content-title span img {
  height: 55px;
}

.t-content-copy {
  margin: 1.5rem 0 2rem 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 1);
  max-width: 500px;
}

.t-content-action {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 8px;
  display: inline-block;
  position: relative;
}

.t-content-action.home-btn-type1 {
	translate: none; rotate: none; scale: none; transform: translate(0px, 0px); opacity: 1;
}

.t-content-action:before {
  content: "";
  position: absolute;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--gold), var(--deep-gold));
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 1;
  top: 0;
  left: 0;
}

.t-content-action:hover::before {
  opacity: 0.8;
}

.news_more {
  margin-top: 4em;
  margin-bottom: 2em;
  text-align: center;
}

/* Bento Layout Section */
.bento {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--deep-black) 0%, var(--charcoal-gray) 100%);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 220px);
  gap: 2rem;
  margin-top: 3rem;
}


/* ====== Append: Bento + responsive rules (iOS16-safe) ====== */
.bento-item {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.bento-item:hover {
  transform: translateY(-5px) scale(1.02);
}

.bento-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.bento-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* .bento-item:hover .bento-image img { transform: scale(1.1); } */

/* Overlay (kept commented in source) */
/*
.bento-overlay { ... }
*/

/* Bento Grid Layout */
.bento-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 2; }
.bento-item:nth-child(2) { grid-column: 3 / 4; grid-row: 1 / 3; }
.bento-item:nth-child(3) { grid-column: 4 / 5; grid-row: 1 / 2; }
.bento-item:nth-child(4) { grid-column: 1 / 2; grid-row: 2 / 4; }
.bento-item:nth-child(5) { grid-column: 2 / 3; grid-row: 2 / 3; }
.bento-item:nth-child(6) { grid-column: 4 / 5; grid-row: 2 / 4; }
.bento-item:nth-child(7) { grid-column: 3 / 4; grid-row: 3 / 4; }
.bento-item:nth-child(8) { grid-column: 2 / 3; grid-row: 3 / 4; }

.bento-item:nth-child(5) > .bento-image {
  border-bottom-left-radius: 20em;
}

.sub-pagetitle {
  font-family: 'Noto Serif JP', serif;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}

img.img-nokotsudo-lineup {
  transition: transform 0.2s ease;
}
img.img-nokotsudo-lineup:hover {
  transform: scale(1.05) !important;
}

.t-content-image * { vertical-align: bottom; }

.site-title {
	position: relative;
	display: inline;
	    font-size: initial;
	    top: 4px;
}


/*********/
/** keyframe **/
/*********/

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%      { transform: translateY(-20px) rotate(5deg); }
}

/* Responsive Design */

/*********/
/** max **/
/*********/

@media (max-width: 1600px) {
  .hero-title-container * { font-size: 22px; }
}

@media (max-width: 1280px) {
  p { font-size: 1rem; }

  .cta-button { padding: 0.7rem; font-size: 1rem; }

  .nav-link { font-size: 1rem; }

  .header-container { margin: 0 3em; }

  .dropdown .dropdown-link { font-size: 1rem; }

  .gsap-fx-section-b, .gsap-fx-section-c, .gsap-fx-section-d {
    margin: 5rem 0;
    width: 100%;
    height: calc(100vh - 10rem);
  }

  .nav { gap: 2rem; }

  .section-title-english { font-size: 75px; }

  .section-title { font-size: 2.3rem; }

  .gsap-fx-section-a-frame { height: calc(100% - 5em); }

  #gfa-1::before { top: 0; left: var(--gfa-frame-margin-1280); }
  #gfa-1::after  { top: 0; left: var(--gfa-frame-margin-1280); }
  #gfa-2::before { top: 0; left: calc(100% - 80px - var(--gfa-frame-margin-1280)); }
  #gfa-2::after  { top: 0; left: calc(100% - 1px - var(--gfa-frame-margin-1280)); }
  #gfa-3, #gfa-4 { bottom: 0 }
  #gfa-3::before { top: 80px; left: var(--gfa-frame-margin-1280); }
  #gfa-3::after  { top: calc(100% - 80px); left: var(--gfa-frame-margin-1280); }
  #gfa-4::before { top: 80px; left: calc(100% - 80px - var(--gfa-frame-margin-1280)); }
  #gfa-4::after  { bottom: 0; left: calc(100% - var(--gfa-frame-margin-1280)); }

  .gsap-fx-textimg { height: 50px; }

  .t-content-image img { aspect-ratio: 1.65 / 1 !important; }
  
}

@media (max-width: 1080px) {
  .header-container { margin: 0 2.5em; }
}

@media (max-width: 980px) {
  p, p.section-subtitle { text-align: left; }

  p br { display: none; }
.blog-main-article  p br { display: initial; }
  br.disp_mobile_tablet { display: block; }

  .services-grid, #news .services-grid { grid-template-columns: repeat(2, 1fr); }

  .nav { display: none; }
  .mobile-menu-toggle { display: flex; }

  .footer-grid { grid-template-columns: repeat(1, 1fr); }

  .cta-button { display: none; }

  .hero-main-title { font-size: 2.5rem; }
  .hero-title-line  { font-size: 2rem; }
  .hero-subtitle    { font-size: 1rem; }

  .header { padding: 1rem 0; }

  .services, #nokotsudo-valiations.services, #about.services { padding: 6rem 2rem 4rem; }

  .service-card h3 { font-size: 1.3rem; }

  #news .inverted-tag { padding: 0.8rem; }

  .news_more { margin-top: 1em; margin-bottom: 1em; text-align: center; }

  .footer { padding: 4rem 2rem 2rem; }
  .footer .footer-section-3 { display: none; }

  .t-content-row { flex-direction: column; gap: 40px; text-align: center; }
  .t-content-image { flex: none; width: 100%; max-width: 640px; }
  .t-content-content { padding-left: 0; }
  .t-content-copy { max-width: 640px; text-align: left; }
  .t-content-title span { font-size: 2rem; }

  .gsap-fx-section-b, .gsap-fx-section-c, .gsap-fx-section-d {
    margin: 0;
    width: 100%;
    height: 100vh;
  }

  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 200px);
    gap: 1.2rem;
  }

  .bento-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 2; }
  .bento-item:nth-child(2) { grid-column: 3 / 4; grid-row: 1 / 3; }
  .bento-item:nth-child(3) { grid-column: 1 / 2; grid-row: 2 / 3; }
  .bento-item:nth-child(4) { grid-column: 2 / 3; grid-row: 2 / 4; }
  .bento-item:nth-child(5) { grid-column: 3 / 4; grid-row: 3 / 4; }
  .bento-item:nth-child(6) { grid-column: 1 / 2; grid-row: 3 / 5; }
  .bento-item:nth-child(7) { grid-column: 2 / 3; grid-row: 4 / 5; }
  .bento-item:nth-child(8) { grid-column: 3 / 4; grid-row: 4 / 5; }

  .t-content-image img { aspect-ratio: 2 / 1 !important; }
  

}

@media (max-width: 639px) {
  .footer-container { padding-top: 0rem; }
}

/* Mobile Responsive for Bento */
@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(6, 160px);
    gap: 1rem;
  }

  .bento-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 2; }
  .bento-item:nth-child(2) { grid-column: 1 / 2; grid-row: 2 / 4; }
  .bento-item:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }
  .bento-item:nth-child(4) { grid-column: 2 / 3; grid-row: 3 / 5; }
  .bento-item:nth-child(5) { grid-column: 1 / 2; grid-row: 4 / 5; }
  .bento-item:nth-child(6) { grid-column: 1 / 3; grid-row: 5 / 6; }
  .bento-item:nth-child(7) { grid-column: 1 / 2; grid-row: 6 / 7; }
  .bento-item:nth-child(8) { grid-column: 2 / 3; grid-row: 6 / 7; }
}

@media (max-width: 500px) {
  .logo img { width: 113px; }

  .services, #nokotsudo-valiations.services, #about.services { padding: 6rem 1.5rem 4rem; }

  .footer { padding: 4rem 1.5rem 2rem; }

  .services-grid { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }

  .service-card { padding-bottom: 1em; }

  .news_more { margin-top: 2em; margin-bottom: 0em; }

  .gsap-fx-section-b, .gsap-fx-section-c, .gsap-fx-section-d {
    margin: 0rem 0rem;
    width: calc(100% - 0rem);
    height: calc(100vh - 0rem);
    border-radius: 0rem;
  }

  .gsap-fx-textimg { height: 40px; }

  .header-container { margin: 0 2em; }

  .section-title-english { font-size: 50px; margin-bottom: -0.65em; }

  .section-title { font-size: 1.8rem; }
  .hero-title-line { font-size: 1.6rem; }

  .services-grid, #news .services-grid { grid-template-columns: repeat(1, 1fr); }

  .medialist-content h3 { font-size: 1.45rem; }

  .footer-links { justify-content: center; }

  .t-content-image { width: calc(100% + 3rem); border-radius: 0; }
  .t-content-image img { border-radius: 0; }

  /* mobile bento single column variant remains commented in source */
}

 /*********/
 /** min **/
 /*********/

@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; }
}

@media (min-width: 769px) {
  .hero-main-title { font-size: 5rem; }
  .footer-links { margin-top: 0; }
  .medialist-item { grid-template-columns: repeat(2, 1fr); }
  .medialist-item:nth-child(even) .medialist-image { order: -1; }
}

@media (min-width: 1024px) {
  .hero-main-title { font-size: 6rem; }

  .tags-wrapper { margin-bottom: -0.75rem; margin-right: -0.75rem; }

  .inverted-tag { margin-right: 1rem; margin-bottom: 1.2rem; }

  .more-count { margin-bottom: 0.75rem; }
}

@media (min-width: 1260px) {
  .card-container:hover .image-wrapper { transform: scale(1.15); }
  .information-archive .info-card:hover  .info-thumb img { transform: scale(1.15); transition: all 0.3s ease; }

  .header { padding: 0.7rem 1.5rem; }
  .logo img { width: 100px; }
}

@media (min-width: 1600px) {
  .header { padding: 1rem 0; }
  .logo img { width: 120px; }
}

@media print {

  /* 印刷時はアニメ無効化 */
  * { animation: none !important; transition: none !important; }

.front-img {
    display: block !important;
}

  /* よく隠される要素を見える化 */
  .sub-animate-on-scroll,
  .bento-item,
  .bento-item.fade-in,
  .t-content-row,
  .t-content-image img,
  .t-content-subtitle,
  .t-content-title span,
  .t-content-copy,
  .t-content-action,
  .gsap-fx-section-a,
  .gsap-fx-section-b,
  .gsap-fx-section-c,
  .gsap-fx-section-d,
  .gsap-fx-image,
  [style*="opacity"],
  [style*="transform"] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }
  
  .video-background, .video-overlay {
  	display: none !important;
  }
  
  body .hero-title-line {
    -webkit-print-color-adjust: exact !important; /* Chrome/Safari用 */
    print-color-adjust: exact !important;         /* Firefox用 */
    opacity: 1 !important;
    color: white !important;
  }
  
  .gsap-fx-image-wrapper {
  	display: none !important;
  }
  
  .pin-spacer {
  	height: auto !important;
  	padding: initial !important;
  	display: none !important;
  }
  
  #gsap-spacer-for-top {
  	display: none !important;
  }
  
  .gsap-fx-section-container {
  	display: none !important;
  }
  
  .tags-container {
  	display: none !important;
  }


  /* いらないUIは消す */
  nav, footer, .modal, .drawer, .sticky-header, .video-player, .no-print, .ads {
    display: none !important;
  }
  
  .header {
                position: absolute;
        z-index: 25;
                background: none;
  }
  
  .nokotsudo-plan-name-wrapper { position: relative; }
  .nokotsudo-plan-name { opacity: 0; }
  
  .nokotsudo-plan-name-wrapper::after { content: attr(title); font-size: 2em; position: absolute; color: #999;left:50%; transform:translateX(-50%); }



  body { background: #fff !important; color: #555 !important; }
  p { color: #555 !important; }
  a::after { content: attr(title); font-size: 0.9em; }
}