:root{
  --green:#378b3d;
  --green-dark:#236f2f;
  --green-soft:#6db278;
  --teal:#0b8eaa;
  --teal-dark:#08798f;
  --text:#243128;
  --muted:#5e6a62;
  --line:#dfe8dc;
  --cream:#fff9ef;
  --mint:#f4f9f1;
  --sky:#f1f8fb;
  --shadow:0 12px 34px rgba(44,75,51,.09);
  --shadow-soft:0 8px 24px rgba(44,75,51,.06);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:#fff;
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{font:inherit}
.page-width{width:min(1220px,calc(100% - 48px));margin-inline:auto}
#about,#features,#guide,#facility,#news,#contact,#recruit,#faq{scroll-margin-top:110px}

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position:relative;
  z-index:50;
  height:var(--cms-header-height,86px);
  background:rgba(255,255,255,.97);
  border-bottom:1px solid #edf2ea;
}
.header-inner{
  height:100%;
  display:grid;
  grid-template-columns:clamp(110px,var(--cms-logo-width-pct,10%),var(--cms-logo-width,160px)) minmax(0,1fr) auto;
  align-items:center;
  column-gap:clamp(14px,var(--cms-header-gap,18px),34px);
}
.logo{
  display:flex;
  align-items:center;
  width:100%;
  min-width:0;
}
.logo img{
  width:100%;
  height:auto;
  max-height:66px;
  object-fit:contain;
  object-position:left center;
}
.global-nav{
  min-width:0;
  height:100%;
  display:flex;
  align-items:stretch;
  justify-content:center;
  gap:clamp(12px,var(--cms-nav-gap-pct,1.4%),var(--cms-nav-gap,26px));
  white-space:nowrap;
}
.global-nav a{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding-top:4px;
  font-size:var(--cms-nav-font,15px);
  line-height:1.2;
  font-weight:750;
  letter-spacing:.01em;
}
.global-nav a::after{
  content:"";
  position:absolute;
  left:10%;
  right:10%;
  bottom:13px;
  height:2px;
  border-radius:999px;
  background:var(--cms-green,var(--green));
  transform:scaleX(0);
  transition:transform .2s ease;
}
.global-nav a.active::after,.global-nav a:hover::after{transform:scaleX(1)}
.header-contact{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:max-content;
}
.header-phone{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  line-height:1.12;
  white-space:nowrap;
}
.phone-main{
  font-size:var(--cms-phone-font,17px);
  font-weight:900;
  color:var(--cms-green,var(--green));
  letter-spacing:.01em;
}
.phone-time{
  margin-top:4px;
  color:#48544c;
  font-size:var(--cms-hours-font,9px);
  line-height:1.25;
}
.header-mail{
  min-height:var(--cms-contact-height,40px);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 clamp(12px,var(--cms-contact-pad-pct,1.1%),var(--cms-contact-pad-x,20px));
  border-radius:999px;
  background:var(--cms-green,var(--green));
  color:#fff;
  font-size:var(--cms-contact-font,11px);
  font-weight:800;
  white-space:nowrap;
  box-shadow:0 5px 14px rgba(55,139,61,.15);
}
.header-mail span{font-size:15px}

/* =====================================================================
   V49 Instagram header button
   ---------------------------------------------------------------------
   ・実画像は assets/img/instagram.gif を使用する。
   ・.header-instagram は「クリック領域（白い丸）」、.instagram-icon は画像本体。
   ・PCでは V44 時点の約1.5倍サイズ（外枠57px / アイコン36px）を維持する。
   ・重要：979px以下でもInstagramを消さない。
     以前ここを display:none にしていたため、ブラウザ幅を狭めると
     Instagramだけ突然消える不具合が発生した。
   ・レスポンシブ時は下の @media で外枠サイズだけ縮小する。
   ===================================================================== */
.header-instagram{
  width:57px;
  height:57px;
  flex:0 0 57px;
  display:grid;
  place-items:center;
  border:1px solid #d8e5d7;
  border-radius:50%;
  background:#fff;
}
.instagram-icon{
  display:block;
  width:36px;
  height:36px;
  object-fit:contain;
  border-radius:6px;
}
.menu-button{
  display:none;
  align-items:center;
  justify-content:center;
  width:var(--cms-tablet-menu-button,46px);
  height:var(--cms-tablet-menu-button,46px);
  border:1px solid #d9e5d7;
  border-radius:13px;
  background:#fff;
  color:var(--cms-green,var(--green));
  font-size:23px;
  font-weight:700;
}

/* =========================================================
   HERO — existing visual system kept intact
   ========================================================= */
.hero.gh-hero{
  position:relative;
  width:100%;
  height:clamp(430px,46vw,650px);
  min-height:430px;
  overflow:hidden;
  isolation:isolate;
  background:#76d8ef;
}
.gh-sea{
  position:absolute;
  inset:0;
  z-index:1;
  background-image:url('../hero/sea-bg.jpg?v=20260815');
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center center;
}
.gh-water-motion,.gh-shore-svg,.gh-nearshore{display:none!important}
.gh-cloud{
  position:absolute;
  z-index:2;
  pointer-events:none;
  opacity:.82;
  will-change:transform;
  animation:ghCloudFloat 18s ease-in-out infinite alternate;
}
.gh-cloud img{display:block;width:100%;height:auto}
.gh-cloud-1{left:6%;top:8%;width:13%;animation-duration:22s}
.gh-cloud-2{left:23%;top:4%;width:14%;animation-duration:28s;animation-delay:-7s}
.gh-cloud-3{left:44%;top:10%;width:10%;animation-duration:25s;animation-delay:-13s}
.gh-cloud-4{left:62%;top:5%;width:12%;animation-duration:30s;animation-delay:-5s}
.gh-cloud-5{left:82%;top:11%;width:13%;animation-duration:24s;animation-delay:-16s}
@keyframes ghCloudFloat{from{transform:translate3d(-12px,0,0)}to{transform:translate3d(24px,0,0)}}

/* =====================================================================
   Ferry base animation
   ---------------------------------------------------------------------
   ・通常表示の基準値は「右側から左側へ 46秒」で横断する。
   ・left:74% が基準位置。ここを 7.8% 等の左寄り値にすると、
     translateX(-96vw) と組み合わさって船が早い段階で画面外へ消える。
   ・管理画面で船を保存した場合は hero-editor-overrides.css 側の
     !important 付き設定が優先される。
   ・管理画面では開始/終了補正と秒数を変更できる。
   ===================================================================== */
.gh-ferry{
  position:absolute;
  z-index:3;
  left:74%;
  top:28%;
  width:13%;
  pointer-events:none;
  will-change:transform;
  animation:ghFerryMove 46s linear infinite;
}
.gh-ferry img{display:block;width:100%;height:auto}
@keyframes ghFerryMove{0%{transform:translate3d(12vw,0,0)}100%{transform:translate3d(-96vw,0,0)}}
.hero.gh-hero .gh-coast{
  position:absolute;
  z-index:4;
  left:0;
  bottom:0;
  width:100%;
  height:auto;
  max-width:none;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
}

.gh-white-wave{
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:auto!important;
  max-width:none;
  opacity:.96;
  z-index:7;
  object-fit:contain;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
  transform:none!important;
  animation:none!important;
}
.gh-white-wave-system{image-rendering:auto;shape-rendering:geometricPrecision}
.gh-gull{
  position:absolute;
  z-index:8;
  pointer-events:none;
  will-change:transform;
  animation:ghGullRoam ease-in-out infinite alternate;
}
.gh-gull img{display:block;width:100%;height:auto}
.gh-gull-1{left:82%;top:18%;width:3.4%;animation-duration:16s}
.gh-gull-2{left:70%;top:14%;width:2.8%;animation-duration:20s;animation-delay:-4s}
.gh-gull-3{left:59%;top:21%;width:2.5%;animation-duration:18s;animation-delay:-9s}
.gh-gull-4{left:90%;top:12%;width:2.5%;animation-duration:23s;animation-delay:-12s}
@keyframes ghGullRoam{
  0%{transform:translate3d(-42px,9px,0) rotate(-4deg)}
  45%{transform:translate3d(24px,-18px,0) rotate(1deg)}
  100%{transform:translate3d(88px,12px,0) rotate(4deg)}
}
.hero-copy{
  position:absolute;
  inset:0;
  z-index:20;
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  padding-top:8%;
  pointer-events:none;
}
.hero-copy-inner{
  width:min(500px,48%);
  color:#fff;
  text-align:left;
  text-shadow:0 2px 12px rgba(0,89,130,.28);
}
.hero-copy-inner h1{
  margin:0 0 12px;
  font-size:clamp(28px,3.2vw,50px);
  line-height:1.38;
  letter-spacing:.04em;
}
.hero-copy-inner p{
  margin:0;
  font-size:clamp(12px,1.15vw,17px);
  line-height:1.9;
  font-weight:650;
}
@media(min-width:1025px){
  #ghHero.hero.gh-hero{width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:1485/650!important}
  .hero.gh-hero .gh-white-wave{left:0!important;top:23.9%!important;bottom:auto!important;width:100%!important;height:auto!important}
}

/* =========================================================
   QUICK MENU
   ========================================================= */
.quick-wrap{position:relative;z-index:8;margin-top:-52px}
.quick-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.quick-card{
  min-width:0;
  min-height:168px;
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid #dfe8dc;
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.quick-card:hover{transform:translateY(-4px);box-shadow:0 16px 34px rgba(44,75,51,.12);border-color:#b9d5b7}
.quick-icon{height:122px;display:flex;align-items:center;justify-content:center;padding:12px 10px 4px}
.quick-icon img{
  width:min(var(--cms-quick-icon-pct,78%),130px);
  height:100%;
  object-fit:contain;
}
.quick-label{
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:4px 8px 10px;
  text-align:center;
  font-size:13px;
  font-weight:800;
  line-height:1.35;
}
.quick-label b{font-size:22px;color:var(--cms-green,var(--green));font-weight:700;line-height:1}

/* =========================================================
   SHARED SECTION TYPOGRAPHY
   ========================================================= */
.section-kicker,.eyebrow,.community-kicker,.recruit-kicker{
  margin:0 0 8px;
  font-size:11px;
  line-height:1;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.center-title{margin:0;text-align:center;font-size:clamp(22px,2vw,30px);line-height:1.45;letter-spacing:.035em;font-weight:850}

/* =========================================================
   ABOUT
   ========================================================= */
.about-section{
  position:relative;
  margin-top:34px;
  margin-bottom:30px;
  padding:34px;
  display:grid;
  grid-template-columns:minmax(300px,.9fr) minmax(0,1.45fr);
  gap:38px;
  align-items:center;
  border:1px solid #dfead9;
  border-radius:30px;
  background:linear-gradient(135deg,#f7fbf3 0%,#fffdf7 100%);
  box-shadow:var(--shadow-soft);
  overflow:hidden;
}
.about-section::before,.about-section::after{content:"";position:absolute;border-radius:50%;pointer-events:none}
.about-section::before{width:190px;height:190px;left:-95px;top:-105px;background:rgba(160,205,146,.13)}
.about-section::after{width:130px;height:130px;right:-65px;bottom:-70px;background:rgba(255,210,137,.12)}
.about-copy,.about-photo{position:relative;z-index:1}
.about-section .eyebrow{color:var(--cms-green,var(--green))}
.about-copy h2{
  margin:0 0 16px;
  font-size:clamp(30px,3vw,46px);
  line-height:1.35;
  letter-spacing:.02em;
  color:#26362b;
}
.about-copy h2::after{content:"";display:block;width:56px;height:4px;margin-top:14px;border-radius:999px;background:linear-gradient(90deg,var(--cms-green,var(--green)),#a8cf93)}
.about-text{margin:0;font-size:15px;line-height:2;color:#39473e}
.outline-button,.mini-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  border:1px solid #9ec79d;
  color:var(--green-dark);
  font-weight:800;
  border-radius:999px;
  background:#fff;
}
.outline-button{margin-top:20px;padding:11px 20px;font-size:13px;box-shadow:0 5px 12px rgba(50,88,55,.06)}
.outline-button span,.mini-button span{font-size:20px;line-height:1}
.about-photo{padding:8px;border-radius:25px;background:#fff;box-shadow:0 14px 34px rgba(41,72,47,.12)}
.about-photo img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:18px}

/* =========================================================
   FEATURES — green category
   ========================================================= */
.features-section{
  margin-bottom:30px;
  padding:32px 28px 30px;
  border:1px solid #dfe9dc;
  border-radius:30px;
  background:var(--cms-features-bg,#f4f8f1);
}
.features-section .section-kicker{text-align:center;color:var(--cms-green,var(--green));margin-bottom:10px}
.features-section .center-title{margin-bottom:24px}
.feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:stretch}
.feature-card{
  min-width:0;
  display:grid;
  grid-template-rows:94px 154px auto 1fr;
  gap:0;
  padding:18px;
  background:#fff;
  border:1px solid #dfe7dc;
  border-radius:22px;
  box-shadow:0 7px 20px rgba(44,75,51,.06);
}
.feature-heading{min-height:94px;display:flex;align-items:flex-start;gap:11px;margin:0}
.feature-heading .number,.feature-heading>.number,.number{
  flex:0 0 46px;
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--cms-green,var(--green));
  color:#fff;
  font-size:14px;
  font-weight:900;
  line-height:1;
}
.feature-heading h3{margin:3px 0 0;font-size:var(--cms-feature-title,16px);line-height:1.5;font-weight:850}
.feature-visuals{display:contents}
.feature-illust{
  height:154px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
  background:transparent;
}
.feature-illust img{
  width:min(var(--cms-feature-icon-pct,80%),220px);
  max-height:142px;
  height:auto;
  object-fit:contain;
}
.feature-photo{
  width:100%;
  aspect-ratio:16/10;
  overflow:hidden;
  border-radius:15px;
  background:transparent!important;
  padding:0!important;
  border:0!important;
}
.feature-photo img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;margin:0!important}
/*
 * FEATURE本文レイアウト
 * 本文は写真のすぐ下から上詰め。
 * 矢印は右下固定だが、本文の右側は一切空けない。
 * 矢印との重なり防止は「右余白」ではなく本文の下余白だけで確保する。
 */
.feature-bottom{
  min-height:112px;
  position:relative;
  margin-top:14px;
  padding-right:0;
}
.feature-bottom p{
  width:100%;
  box-sizing:border-box;
  margin:0;
  padding:0 0 48px 0;
  font-size:var(--cms-feature-text,13px);
  line-height:1.75;
  color:#39463d;
}
.feature-bottom a{
  position:absolute;
  right:0;
  bottom:0;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--cms-feature-arrow,#67b875);
  color:#fff;
  font-size:26px;
  line-height:1;
  transition:transform .16s ease,filter .16s ease;
}
.feature-bottom a:hover{transform:translateX(2px);filter:brightness(.96)}

/* =========================================================
   DAILY LIFE — blue category / no horizontal slider
   ========================================================= */
.life-section{
  margin-bottom:30px;
  padding:32px 28px 30px;
  border:1px solid #d9e9ef;
  border-radius:30px;
  background:var(--cms-life-bg,#f1f8fb);
}
.life-section .section-kicker{text-align:center;color:var(--teal);margin-bottom:10px}
.life-section .center-title{margin-bottom:24px;color:#23424a}
.life-carousel-wrap{position:relative;overflow:visible!important}
.life-track{
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
  overflow:visible!important;
  overflow-x:visible!important;
  scroll-snap-type:none!important;
  transform:none!important;
}
.life-item{
  min-width:0!important;
  width:100%!important;
  max-width:none!important;
  flex:none!important;
  padding:10px 10px 13px;
  border:1px solid #dce9ed;
  border-radius:18px;
  background:#fff;
  box-shadow:0 6px 16px rgba(41,86,98,.05);
  scroll-snap-align:none!important;
}
.life-item img{width:100%;aspect-ratio:4/3;height:auto;object-fit:cover;border-radius:12px}
.life-item p{margin:9px 4px 0;font-size:13px;line-height:1.55;text-align:center;font-weight:750;color:#33474d}
.life-arrow,.life-arrow.prev,.life-arrow.next{display:none!important}

/* =========================================================
   COMMUNITY
   ========================================================= */
.community-section{
  margin-bottom:30px;
  padding:26px 28px;
  display:grid;
  grid-template-columns:1.25fr 1fr 1fr .8fr;
  gap:18px;
  align-items:center;
  border:1px solid #e4e8d7;
  border-radius:26px;
  background:linear-gradient(135deg,#fbf9ef 0%,#f6faef 100%);
  overflow:hidden;
}
.community-kicker{color:#b7863b}
.community-copy h2{margin:0 0 10px;color:var(--green-dark);font-size:clamp(23px,2.1vw,32px);line-height:1.4}
.community-copy p{margin:0;color:#4b584f;font-size:14px;line-height:1.85}
.community-photo{height:150px;border-radius:16px;overflow:hidden;box-shadow:0 7px 18px rgba(52,71,43,.08)}
.community-photo img{width:100%;height:100%;object-fit:cover}
.community-illust{height:145px;display:flex;align-items:center;justify-content:center}
.community-illust img{width:100%;height:100%;object-fit:contain}

/* =========================================================
   NEWS + CONSULTATION
   ========================================================= */
.lower-section{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(330px,.9fr);gap:20px;align-items:stretch;padding-bottom:30px}
.news-panel,.consult-panel{border-radius:24px;border:1px solid #e0e8dd;background:#fff;box-shadow:var(--shadow-soft)}
.news-panel{padding:22px 24px}
.news-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px}
.news-head h2{margin:0;font-size:24px;line-height:1.3}
.mini-button{padding:7px 14px;font-size:11px}
.news-list{border-top:1px solid #e4e8e2}
.news-row{display:grid;grid-template-columns:100px 1fr;gap:14px;padding:10px 0;border-bottom:1px dotted #d9dfd6;font-size:13px;line-height:1.55;color:#334038}
.news-row time{color:#68736c;font-variant-numeric:tabular-nums}
.consult-panel{
  padding:24px 22px 20px 24px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(150px,38%);
  align-items:center;
  gap:14px;
  background:linear-gradient(135deg,#f2f8ee,#fffaf2);
}
.consult-copy{min-width:0}
.consult-copy h2{margin:0 0 10px;color:var(--green-dark);font-size:clamp(22px,2vw,28px);line-height:1.4;word-break:keep-all}
.consult-copy p{margin:0;font-size:13px;line-height:1.75;color:#435047}
.consult-panel>img{
  width:min(var(--cms-consult-icon-pct,62%),220px);
  max-width:220px;
  height:auto;
  justify-self:end;
  object-fit:contain;
}

/* =========================================================
   RECRUIT
   ========================================================= */
.recruit-section{
  position:relative;
  margin-bottom:30px;
  padding:28px 32px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 210px;
  gap:28px;
  align-items:center;
  border:1px solid #f0dec1;
  border-radius:26px;
  background:linear-gradient(135deg,#fff9ee 0%,#fffdf7 100%);
  overflow:hidden;
}
.recruit-section::after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;right:-50px;top:-60px;background:rgba(242,184,91,.10)}
.recruit-copy,.recruit-illust{position:relative;z-index:1}
.recruit-kicker{color:#d18a27}
.recruit-copy h2{margin:0 0 8px;color:#7f5723;font-size:28px;line-height:1.35}
.recruit-copy p{margin:0;font-size:14px;line-height:1.85;color:#574d40}
.recruit-button{margin-top:16px;display:inline-flex;align-items:center;gap:10px;padding:10px 18px;border-radius:999px;background:#e59a31;color:#fff;font-size:13px;font-weight:850;box-shadow:0 6px 15px rgba(209,138,39,.18)}
.recruit-button span{font-size:20px;line-height:1}
.recruit-illust{height:150px;display:flex;align-items:center;justify-content:center}
.recruit-illust img{width:100%;height:100%;object-fit:contain}

/* =========================================================
   CONTACT BAR
   ========================================================= */
.contact-bar-wrap{padding:0 0 18px}
.contact-bar{
  min-height:68px;
  display:grid;
  grid-template-columns:.9fr 1.45fr 1fr 1.2fr;
  align-items:stretch;
  overflow:hidden;
  border-radius:20px;
  background:linear-gradient(90deg,var(--teal),#16a4bc);
  color:#fff;
  box-shadow:0 10px 22px rgba(10,138,166,.12);
}
.contact-bar>div,.contact-bar>a{display:flex;align-items:center;justify-content:center;padding:10px 16px;border-right:1px dotted rgba(255,255,255,.48);font-size:12px;font-weight:800;text-align:center}
.contact-bar>*:last-child{border-right:0}
.contact-label{white-space:nowrap}
.contact-phone{display:grid!important;grid-template-columns:24px 1fr;grid-template-rows:auto auto;column-gap:7px}
.contact-phone span{grid-row:1/3;align-self:center;font-size:22px}
.contact-phone strong{font-size:24px;line-height:1.05;letter-spacing:.02em}
.contact-phone small{margin-top:5px;font-size:8px;line-height:1.2;font-weight:600}
.contact-mail span,.contact-form span{font-size:20px;margin-right:7px}
.contact-form span{margin-right:0;margin-left:8px}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{background:#fff;border-top:1px solid #edf1eb}
.footer-main{
  display:grid;
  grid-template-columns:1.3fr .8fr .8fr .9fr 1.45fr;
  gap:28px;
  align-items:start;
  padding:26px 0 24px;
  color:#2f3a33;
  font-size:var(--cms-footer-font,13px);
  line-height:1.8;
}
.footer-logo img{width:180px;height:auto;object-fit:contain;object-position:left top}
.footer-links{display:flex;flex-direction:column;gap:4px}
.footer-links a{font-size:inherit}
.footer-links a:hover{color:var(--cms-green,var(--green))}
.footer-address{font-size:inherit;line-height:1.75}
.copyright{min-height:34px;display:flex;align-items:center;justify-content:center;padding:8px 16px;background:#0b8c77;color:#fff;font-size:10px;text-align:center}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media(max-width:1279px){
  .page-width{width:min(1120px,calc(100% - 32px))}
  .site-header{height:var(--cms-compact-header-height,78px)}
  .header-inner{grid-template-columns:clamp(105px,var(--cms-logo-width-pct,10%),var(--cms-compact-logo-width,125px)) minmax(0,1fr) auto;column-gap:var(--cms-compact-header-gap,10px)}
  .global-nav{gap:clamp(7px,var(--cms-nav-gap-pct,1%),var(--cms-compact-nav-gap,14px))}
  .global-nav a{font-size:var(--cms-compact-nav-font,12px);letter-spacing:-.01em}
  .phone-main{font-size:var(--cms-compact-phone-font,14px)}
  .phone-time{display:none}
  .header-mail{min-height:var(--cms-compact-contact-height,38px);padding-inline:var(--cms-compact-contact-pad-x,12px);font-size:var(--cms-compact-contact-font,10px)}
  /* V49: 1280px未満では1.5倍版の見た目を保ちながら少しだけ縮小。
     display は変更しないため、ここではサイズだけを調整する。 */
  .header-instagram{width:51px;height:51px;flex-basis:51px}
  .quick-nav{gap:10px}
  .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .feature-card{grid-template-rows:82px 160px auto 1fr}
  .feature-heading{min-height:82px}
  .feature-illust{height:160px}
  .feature-illust img{max-height:150px}
}

@media(max-width:979px){
  .site-header{height:var(--cms-tablet-header-height,74px)}
  .header-inner{grid-template-columns:var(--cms-tablet-logo-width,120px) minmax(0,1fr) auto;gap:12px}
  .global-nav{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:100%;
    height:auto;
    padding:10px 20px 14px;
    flex-direction:column;
    gap:0;
    background:#fff;
    border-top:1px solid #eef2ec;
    box-shadow:0 14px 30px rgba(35,58,40,.12);
  }
  .global-nav.open{display:flex}
  .global-nav a{justify-content:flex-start;padding:12px 4px;border-bottom:1px solid #eef2ec;font-size:var(--cms-tablet-menu-font,15px)}
  .global-nav a::after{display:none}
  .header-contact{justify-self:end}
  .header-phone{display:flex}
  .phone-main{font-size:var(--cms-tablet-phone-font,14px)}
  .header-mail{min-height:36px;padding-inline:11px;font-size:10px}
  /* =================================================================
     V49 IMPORTANT: Instagramはタブレット幅でも常時表示する。
     旧設定の .header-instagram{display:none} は使用しないこと。
     979px以下ではハンバーガーメニューが出るため、ヘッダー幅を圧迫しない
     よう外枠を32pxへ縮小する。アイコン画像自体は既存36px指定だが、
     親要素のサイズに収まるよう max-width / max-height をここで制限する。
     ================================================================= */
  .header-instagram{display:grid;width:32px;height:32px;flex:0 0 32px}
  .header-instagram .instagram-icon{width:26px;height:26px;max-width:26px;max-height:26px}
  .menu-button{display:flex}
  .quick-wrap{margin-top:-38px}
  .quick-nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .quick-card{min-height:158px}
  .about-section{grid-template-columns:1fr 1.2fr;padding:28px;gap:28px}
  .about-copy h2{font-size:clamp(28px,4vw,38px)}
  .life-track{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .community-section{grid-template-columns:1fr 1fr}
  .community-copy{grid-column:1/-1}
  .community-photo{height:180px}
  .community-illust{grid-column:1/-1;height:130px}
  .lower-section{grid-template-columns:1fr}
  .consult-panel{grid-template-columns:minmax(0,1fr) minmax(150px,32%)}
  .contact-bar{grid-template-columns:1fr 1.4fr}
  .contact-mail,.contact-form{border-top:1px dotted rgba(255,255,255,.4)}
  .footer-main{grid-template-columns:1.2fr 1fr 1fr}
  .footer-address{grid-column:1/-1}
}

@media(max-width:700px){
  .page-width{width:calc(100% - 22px)}
  .site-header{height:var(--cms-mobile-header-height,68px)}
  .header-inner{grid-template-columns:var(--cms-mobile-logo-width,105px) minmax(0,1fr) auto;gap:8px}
  .global-nav a{font-size:var(--cms-mobile-menu-font,15px)}
  .header-contact{gap:6px}
  .phone-main{font-size:var(--cms-mobile-phone-font,12px)}
  .header-mail{width:38px;min-width:38px;height:38px;min-height:38px;padding:0;font-size:0;border-radius:50%}
  .header-mail span{font-size:16px;margin:0}
  .menu-button{width:var(--cms-mobile-menu-button,44px);height:var(--cms-mobile-menu-button,44px)}
  .hero.gh-hero{height:430px;min-height:430px}
  .hero.gh-hero .gh-coast,.hero.gh-hero .gh-white-wave{width:150%!important;left:0!important}
  .hero.gh-hero .gh-white-wave{top:auto!important;bottom:0!important;height:auto!important}
  .gh-ferry{width:20%;top:28%}
  .gh-cloud-1{width:18%}.gh-cloud-2{width:19%}.gh-cloud-3{width:15%}.gh-cloud-4{width:16%}.gh-cloud-5{width:18%}
  .hero-copy{padding-top:28px;justify-content:flex-end}
  .hero-copy-inner{width:58%}
  .hero-copy-inner h1{font-size:clamp(23px,6vw,31px);line-height:1.45}
  .hero-copy-inner p{font-size:11px;line-height:1.75}
  .quick-wrap{margin-top:-24px}
  .quick-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .quick-card{min-height:145px;border-radius:18px}
  .quick-icon{height:102px;padding-top:8px}
  .quick-icon img{width:min(var(--cms-quick-icon-pct,78%),112px)}
  .quick-label{min-height:43px;font-size:12px;padding-bottom:8px}
  .about-section{margin-top:26px;padding:24px 20px;grid-template-columns:1fr;gap:22px;border-radius:24px}
  .about-copy h2{font-size:30px}
  .about-text{font-size:14px;line-height:1.9}
  .about-photo{padding:6px;border-radius:20px}
  .about-photo img{border-radius:14px}
  .features-section,.life-section{padding:26px 16px 22px;border-radius:24px}
  .features-section .center-title,.life-section .center-title{font-size:21px;margin-bottom:20px}
  .feature-grid{grid-template-columns:1fr;gap:16px}
  .feature-card{grid-template-rows:auto 145px auto auto;padding:18px;border-radius:20px}
  .feature-heading{min-height:0;margin-bottom:8px}
  .feature-heading h3{font-size:18px}
  .feature-illust{height:145px}
  .feature-illust img{width:min(var(--cms-feature-icon-pct,80%),190px);max-height:135px}
  .feature-photo{aspect-ratio:16/10;border-radius:14px}
  .feature-bottom{min-height:0;margin-top:13px}
  .feature-bottom p{font-size:14px;line-height:1.75}
  .life-track{grid-template-columns:1fr!important;gap:14px!important}
  .life-item{padding:9px 9px 12px}
  .life-item p{font-size:13px}
  .community-section{grid-template-columns:1fr;padding:22px 18px;border-radius:22px}
  .community-copy{grid-column:auto}
  .community-photo{height:auto;aspect-ratio:16/10}
  .community-illust{grid-column:auto;height:130px}
  .lower-section{gap:16px;padding-bottom:24px}
  .news-panel{padding:20px 18px}
  .news-head h2{font-size:22px}
  .news-row{grid-template-columns:86px 1fr;gap:10px;font-size:12px;padding:9px 0}
  .consult-panel{grid-template-columns:minmax(0,1fr) 120px;padding:20px 16px;gap:10px}
  .consult-copy h2{font-size:22px}
  .consult-copy p{font-size:12.5px}
  .consult-panel>img{width:min(var(--cms-consult-icon-pct,62%),135px)}
  .recruit-section{grid-template-columns:1fr 125px;padding:22px 18px;gap:12px;border-radius:22px}
  .recruit-copy h2{font-size:24px}
  .recruit-copy p{font-size:13px}
  .recruit-illust{height:120px}
  .contact-bar{grid-template-columns:1fr;border-radius:18px}
  .contact-bar>div,.contact-bar>a{min-height:54px;border-right:0;border-bottom:1px dotted rgba(255,255,255,.42);font-size:12px}
  .contact-bar>*:last-child{border-bottom:0}
  .contact-phone strong{font-size:24px}
  .footer-main{grid-template-columns:1fr 1fr;gap:18px;padding:22px 0;font-size:var(--cms-footer-font,13px)}
  .footer-logo,.footer-address{grid-column:1/-1}
  .footer-logo img{width:165px}
}

@media(max-width:430px){
  .header-inner{grid-template-columns:minmax(88px,var(--cms-mobile-logo-width,100px)) minmax(0,1fr) auto;gap:6px}
  .header-contact{gap:5px}
  .phone-main{font-size:min(var(--cms-mobile-phone-font,12px),11.5px)}
  .header-mail{width:36px;min-width:36px;height:36px;min-height:36px}
  .menu-button{width:42px;height:42px}
  .hero-copy-inner{width:60%}
  .hero-copy-inner h1{font-size:22px}
  .about-copy h2{font-size:27px}
  .feature-heading h3{font-size:17px}
  .news-row{grid-template-columns:78px 1fr;font-size:11.5px}
  .consult-panel{grid-template-columns:minmax(0,1fr) 105px}
  .consult-copy h2{font-size:20px}
  .consult-panel>img{width:105px}
  .recruit-section{grid-template-columns:1fr}
  .recruit-illust{height:120px}
}

@media(prefers-reduced-motion:reduce){
  .gh-cloud,.gh-ferry,.gh-gull{animation-duration:60s}
  .quick-card,.feature-bottom a{transition:none}
}

/* 1100〜1279pxでも特徴カードは4枚横並びを維持 */
@media(min-width:1100px) and (max-width:1279px){
  .feature-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .feature-card{grid-template-rows:88px 150px auto 1fr;padding:16px}
  .feature-heading{min-height:88px}
  .feature-heading h3{font-size:15px}
  .feature-illust{height:150px}
  .feature-illust img{max-height:140px}
  .feature-bottom p{font-size:12.5px}
}

/* =========================================================
   V37 MOTION — hero / sea scene intentionally unchanged
   下層コンテンツだけに、やさしいスクロール・ホバー演出を追加
   ========================================================= */

/* JSで対象化した要素だけ、表示前は少し下げて透明にする */
.motion-reveal{
  opacity:0;
  transform:translate3d(0,18px,0);
  transition:
    opacity .72s cubic-bezier(.22,.61,.36,1),
    transform .72s cubic-bezier(.22,.61,.36,1);
  transition-delay:var(--motion-delay,0ms);
  will-change:opacity,transform;
}
.motion-reveal.motion-visible{
  opacity:1;
  transform:translate3d(0,0,0);
}

/* 主要メニューは少し軽めに順番表示 */
.quick-card.motion-reveal{
  transform:translate3d(0,14px,0) scale(.985);
}
.quick-card.motion-reveal.motion-visible{
  transform:translate3d(0,0,0) scale(1);
}

/* カード：触れたときだけ少し浮く */
@media (hover:hover) and (pointer:fine){
  .quick-card,
  .feature-card,
  .life-item,
  .news-panel,
  .consult-panel,
  .recruit-section{
    transition:
      transform .28s cubic-bezier(.22,.61,.36,1),
      box-shadow .28s ease,
      border-color .28s ease;
  }

  .quick-card:hover{transform:translateY(-6px)}
  .feature-card:hover,
  .life-item:hover{transform:translateY(-5px);box-shadow:0 16px 34px rgba(44,75,51,.11)}
  .news-panel:hover,
  .consult-panel:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(44,75,51,.09)}
  .recruit-section:hover{transform:translateY(-3px);box-shadow:0 15px 32px rgba(162,111,38,.10)}

  /* 写真は枠を動かさず、中の写真だけごく小さくズーム */
  .about-photo img,
  .feature-photo img,
  .life-item img,
  .community-photo img{
    transition:transform .65s cubic-bezier(.22,.61,.36,1),filter .35s ease;
    transform-origin:center center;
  }
  .about-photo:hover img,
  .feature-card:hover .feature-photo img,
  .life-item:hover img,
  .community-photo:hover img{
    transform:scale(1.035);
  }

  /* イラストも1〜2%だけ反応 */
  .quick-icon img,
  .feature-illust img,
  .consult-panel>img,
  .recruit-illust img{
    transition:transform .35s cubic-bezier(.22,.61,.36,1);
  }
  .quick-card:hover .quick-icon img,
  .feature-card:hover .feature-illust img,
  .consult-panel:hover>img,
  .recruit-section:hover .recruit-illust img{
    transform:translateY(-2px) scale(1.025);
  }

  /* 丸ボタン・矢印は視線誘導だけ */
  .outline-button,
  .mini-button,
  .recruit-button,
  .contact-mail,
  .contact-form{
    transition:transform .22s ease,box-shadow .22s ease,filter .22s ease;
  }
  .outline-button:hover,
  .mini-button:hover,
  .recruit-button:hover{
    transform:translateY(-2px);
  }
  .outline-button:hover span,
  .mini-button:hover span,
  .recruit-button:hover span,
  .quick-card:hover .quick-label b{
    transform:translateX(3px);
  }
  .outline-button span,
  .mini-button span,
  .recruit-button span,
  .quick-label b{
    display:inline-block;
    transition:transform .22s ease;
  }
}

/* スクロール位置が分かりやすい程度の見出しアクセント */
.features-section .center-title,
.life-section .center-title,
.news-head h2,
.recruit-copy h2{
  text-wrap:balance;
}

/* 動きを減らす設定では、最初から通常表示 */
@media (prefers-reduced-motion:reduce){
  .motion-reveal,
  .motion-reveal.motion-visible{
    opacity:1!important;
    transform:none!important;
    transition:none!important;
    animation:none!important;
  }
  .about-photo img,
  .feature-photo img,
  .life-item img,
  .community-photo img,
  .quick-icon img,
  .feature-illust img,
  .consult-panel>img,
  .recruit-illust img{
    transform:none!important;
    transition:none!important;
  }
}

/* =========================================================
   V38 ICON ANIMATION — hero / sea scene intentionally unchanged
   PNGアイコンだけに、やさしい1回アニメーション＋ホバー再生を追加。
   海・波・島・家・船・雲・カモメには一切適用しない。
   ========================================================= */

/* 初回表示：主要メニュー6アイコンをそれぞれ少し違う動きに */
.quick-card.motion-visible:nth-child(1) .quick-icon img{
  animation:v38AboutHello .95s cubic-bezier(.22,.61,.36,1) calc(var(--motion-delay,0ms) + 120ms) both;
}
.quick-card.motion-visible:nth-child(2) .quick-icon img{
  animation:v38GuideSway 1s cubic-bezier(.22,.61,.36,1) calc(var(--motion-delay,0ms) + 120ms) both;
}
.quick-card.motion-visible:nth-child(3) .quick-icon img{
  animation:v38WalkBob 1.05s cubic-bezier(.22,.61,.36,1) calc(var(--motion-delay,0ms) + 120ms) both;
}
.quick-card.motion-visible:nth-child(4) .quick-icon img{
  animation:v38Megaphone .9s cubic-bezier(.22,.61,.36,1) calc(var(--motion-delay,0ms) + 120ms) both;
}
.quick-card.motion-visible:nth-child(5) .quick-icon img{
  animation:v38ThinkTilt 1s cubic-bezier(.22,.61,.36,1) calc(var(--motion-delay,0ms) + 120ms) both;
}
.quick-card.motion-visible:nth-child(6) .quick-icon img{
  animation:v38ContactNudge 1.05s cubic-bezier(.22,.61,.36,1) calc(var(--motion-delay,0ms) + 120ms) both;
}

/* 01〜04：表示時にふわっと少し弾む。写真位置・カード寸法は変更しない */
.feature-card.motion-visible .feature-illust img{
  animation:v38FeaturePop .9s cubic-bezier(.2,.75,.3,1.15) calc(var(--motion-delay,0ms) + 150ms) both;
}

/* 見学・ご相談 / スタッフ募集中 */
.consult-panel.motion-visible>img{
  animation:v38ConsultHello 1s cubic-bezier(.22,.61,.36,1) 180ms both;
}
.recruit-section.motion-visible .recruit-illust img{
  animation:v38RecruitType 1s cubic-bezier(.22,.61,.36,1) 180ms both;
}

@keyframes v38AboutHello{
  0%{transform:translateY(8px) scale(.94);opacity:.55}
  55%{transform:translateY(-5px) scale(1.025);opacity:1}
  78%{transform:translateY(2px) scale(.995)}
  100%{transform:translateY(0) scale(1)}
}
@keyframes v38GuideSway{
  0%{transform:translateX(-5px) rotate(-2.2deg);opacity:.6}
  45%{transform:translateX(4px) rotate(1.6deg);opacity:1}
  72%{transform:translateX(-2px) rotate(-.8deg)}
  100%{transform:translateX(0) rotate(0)}
}
@keyframes v38WalkBob{
  0%{transform:translateX(-7px) translateY(3px);opacity:.55}
  35%{transform:translateX(-1px) translateY(-4px);opacity:1}
  68%{transform:translateX(4px) translateY(1px)}
  100%{transform:translateX(0) translateY(0)}
}
@keyframes v38Megaphone{
  0%{transform:rotate(0) scale(.96);opacity:.6}
  28%{transform:rotate(-4deg) scale(1.015);opacity:1}
  50%{transform:rotate(3deg)}
  70%{transform:rotate(-2deg)}
  100%{transform:rotate(0) scale(1)}
}
@keyframes v38ThinkTilt{
  0%{transform:translateY(4px) rotate(0) scale(.96);opacity:.6}
  35%{transform:translateY(-3px) rotate(-3deg) scale(1.015);opacity:1}
  65%{transform:translateY(0) rotate(2deg)}
  100%{transform:translateY(0) rotate(0) scale(1)}
}
@keyframes v38ContactNudge{
  0%{transform:translateX(-6px) scale(.965);opacity:.6}
  45%{transform:translateX(5px) scale(1.012);opacity:1}
  70%{transform:translateX(-2px)}
  100%{transform:translateX(0) scale(1)}
}
@keyframes v38FeaturePop{
  0%{transform:translateY(9px) scale(.9);opacity:.4}
  62%{transform:translateY(-4px) scale(1.035);opacity:1}
  82%{transform:translateY(1px) scale(.99)}
  100%{transform:translateY(0) scale(1)}
}
@keyframes v38ConsultHello{
  0%{transform:translateX(8px) rotate(1deg) scale(.96);opacity:.5}
  48%{transform:translateX(-4px) rotate(-1.5deg) scale(1.015);opacity:1}
  72%{transform:translateX(2px) rotate(.7deg)}
  100%{transform:translateX(0) rotate(0) scale(1)}
}
@keyframes v38RecruitType{
  0%{transform:translateY(7px) scale(.96);opacity:.5}
  42%{transform:translateY(-3px) rotate(-1deg);opacity:1}
  68%{transform:translateY(1px) rotate(1deg)}
  100%{transform:translateY(0) rotate(0) scale(1)}
}

/* PC：触ったアイコンだけ、もう一度小さく動く */
@media (hover:hover) and (pointer:fine){
  .quick-card:nth-child(1):hover .quick-icon img{animation:v38AboutHover .72s ease both}
  .quick-card:nth-child(2):hover .quick-icon img{animation:v38GuideHover .72s ease both}
  .quick-card:nth-child(3):hover .quick-icon img{animation:v38WalkHover .78s ease both}
  .quick-card:nth-child(4):hover .quick-icon img{animation:v38MegaphoneHover .66s ease both}
  .quick-card:nth-child(5):hover .quick-icon img{animation:v38ThinkHover .72s ease both}
  .quick-card:nth-child(6):hover .quick-icon img{animation:v38ContactHover .75s ease both}

  .feature-card:hover .feature-illust img{animation:v38FeatureHover .72s ease both}
  .consult-panel:hover>img{animation:v38ConsultHover .78s ease both}
  .recruit-section:hover .recruit-illust img{animation:v38RecruitHover .78s ease both}
}

@keyframes v38AboutHover{0%,100%{transform:translateY(0)}45%{transform:translateY(-6px)}70%{transform:translateY(1px)}}
@keyframes v38GuideHover{0%,100%{transform:rotate(0)}35%{transform:rotate(-2.4deg)}68%{transform:rotate(1.8deg)}}
@keyframes v38WalkHover{0%,100%{transform:translate(0,0)}28%{transform:translate(3px,-4px)}56%{transform:translate(6px,0)}78%{transform:translate(3px,-2px)}}
@keyframes v38MegaphoneHover{0%,100%{transform:rotate(0)}25%{transform:rotate(-4deg)}50%{transform:rotate(3deg)}75%{transform:rotate(-2deg)}}
@keyframes v38ThinkHover{0%,100%{transform:rotate(0) translateY(0)}42%{transform:rotate(-3deg) translateY(-3px)}72%{transform:rotate(1.5deg) translateY(0)}}
@keyframes v38ContactHover{0%,100%{transform:translateX(0)}42%{transform:translateX(6px)}72%{transform:translateX(-2px)}}
@keyframes v38FeatureHover{0%,100%{transform:translateY(0) scale(1)}45%{transform:translateY(-5px) scale(1.025)}72%{transform:translateY(1px) scale(.995)}}
@keyframes v38ConsultHover{0%,100%{transform:rotate(0) translateY(0)}42%{transform:rotate(-1.8deg) translateY(-4px)}72%{transform:rotate(1deg) translateY(1px)}}
@keyframes v38RecruitHover{0%,100%{transform:translateY(0)}35%{transform:translateY(-4px)}58%{transform:translateY(1px)}78%{transform:translateY(-2px)}}

/* タッチ端末：ホバーがないので、スクロール時の1回だけにする */
@media (hover:none){
  .quick-card .quick-icon img,
  .feature-card .feature-illust img,
  .consult-panel>img,
  .recruit-section .recruit-illust img{
    transform-origin:center center;
  }
}

/* アクセシビリティ：動きを減らす設定ではアイコンアニメーションも停止 */
@media (prefers-reduced-motion:reduce){
  .quick-card .quick-icon img,
  .feature-card .feature-illust img,
  .consult-panel>img,
  .recruit-section .recruit-illust img{
    animation:none!important;
    transform:none!important;
  }
}

/* =====================================================================
   V59 READABILITY TUNING 2026-08-20
   ---------------------------------------------------------------------
   ・高齢者施設サイトとして本文の可読性を優先し、本文/補足文字を1〜2px拡大。
   ・薄いグレー文字を一段濃くし、白背景でのコントラストを改善。
   ・見出し/HERO/画像/Instagram連携などの機能・レイアウトは変更しない。
   ===================================================================== */
:root{
  --muted:#38443c;
}

/* Header small copy */
.phone-time{color:#3f4b43;font-size:max(var(--cms-hours-font,9px),10px)}

/* HERO / quick navigation */
.hero-copy-inner p{font-size:clamp(14px,1.2vw,18px);color:#344139}
.quick-label{font-size:14px;color:#2f3b34}
.quick-label small{font-size:12px;color:#4a574f}

/* Main body copy */
.about-text{font-size:18px;line-height:2;color:#27342c}
.feature-heading h3{font-size:max(var(--cms-feature-title,16px),18px)}
.feature-bottom p{font-size:max(var(--cms-feature-text,13px),16px);color:#2c3931}
.life-item p{font-size:16px;color:#2d3d42}
.community-copy p{font-size:17px;color:#344139}
.news-row{font-size:15px;color:#2c3831}
.news-row time{color:#505d54}
.consult-copy p{font-size:16px;color:#303d35}
.recruit-copy p{font-size:17px;color:#41382f}
.footer-main{font-size:max(var(--cms-footer-font,13px),14px);color:#29352e}
.copyright{font-size:11px}

@media(max-width:760px){
  .hero-copy-inner p{font-size:13.5px;line-height:1.8}
  .quick-label{font-size:13.5px}
  .about-text{font-size:17px;line-height:1.95}
  .feature-bottom p{font-size:15.5px}
  .life-item p{font-size:15px}
  .community-copy p{font-size:15.5px}
  .news-row{font-size:14px}
  .consult-copy p{font-size:15px}
  .recruit-copy p{font-size:15.5px}
  .footer-main{font-size:14px}
}

@media(max-width:420px){
  .news-row{font-size:13px}
}


/* ==========================================================================
   TOP PAGE / 画像サイズ管理（旧 top-image-sizes.css を統合）
   画像そのものを加工せず、ここで表示サイズを変更します。
   ========================================================================== */
/* ==========================================================================
   グループホーム あいあい / トップページ画像サイズ管理
   --------------------------------------------------------------------------
   【このCSSの役割】
   トップページにある画像の「表示サイズ」だけを、分かりやすく管理します。
   PNG/JPG自体を縮小し直さなくても、下の数値を変更すれば表示サイズが変わります。

   width : 画像の横幅
   height: auto にして画像の縦横比を維持します。

   ★画像を大きくしたい → width の px を大きくする
   ★画像を小さくしたい → width の px を小さくする
   ========================================================================== */

/* ==================== PC / タブレット ==================== */
/* 01 あいあいについて / assets/icons/about.gif */
.quick-icon--about img { width:130px; height:auto; max-height:100%; }

/* 02 ご利用案内 / assets/icons/top_guide.png */
.quick-icon--guide img { width:150px; height:auto; max-height:100%; }

.quick-icon--facility img { width:130px; height:auto; max-height:100%; }

/* 04 お知らせ / assets/icons/news.gif */
.quick-icon--news img { width:130px; height:auto; max-height:100%; }

/* 05 よくある質問 / assets/icons/faq.gif */
.quick-icon--faq img { width:130px; height:auto; max-height:100%; }

/* 06 お問い合わせ / assets/icons/top_contact.png */
.quick-icon--contact img { width:130px; height:auto; max-height:100%; }

/* ==================== スマートフォン ==================== */
@media (max-width:768px) {
  /* 01 あいあいについて */
  .quick-icon--about img { width:105px; }
  /* 02 ご利用案内 */
  .quick-icon--guide img { width:120px; }
  .quick-icon--facility img { width:105px; }
  /* 04 お知らせ */
  .quick-icon--news img { width:105px; }
  /* 05 よくある質問 */
  .quick-icon--faq img { width:105px; }
  /* 06 お問い合わせ */
  .quick-icon--contact img { width:105px; }
}


/* ==========================================================================
   ABOUT写真スライドショー / V4.5
   --------------------------------------------------------------------------
   ・文章は固定。右側の写真だけをクロスフェード。
   ・画像の縦横比が違っても 16:9 の枠内へ object-fit:cover で統一。
   ・下の丸ボタンで任意の写真へ切替可能。
   ========================================================================== */
.about-slideshow{
  position:relative;
  aspect-ratio:16/9;
  overflow:hidden;
  isolation:isolate;
}
.about-slideshow .about-slide{
  position:absolute;
  inset:8px;
  width:calc(100% - 16px);
  height:calc(100% - 16px);
  aspect-ratio:auto;
  object-fit:cover;
  border-radius:18px;
  opacity:0;
  transform:scale(1.015);
  transition:opacity .9s ease,transform 4.8s ease;
  pointer-events:none;
}
.about-slideshow .about-slide.is-active{
  opacity:1;
  transform:scale(1);
  z-index:1;
}
.about-slider-dots{
  position:absolute;
  z-index:3;
  left:50%;
  bottom:18px;
  display:flex;
  gap:8px;
  transform:translateX(-50%);
  padding:7px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.78);
  box-shadow:0 4px 14px rgba(25,51,32,.10);
  backdrop-filter:blur(5px);
}
.about-slider-dot{
  width:9px;
  height:9px;
  min-width:9px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#aab5ad;
  cursor:pointer;
  transition:transform .2s ease,background .2s ease;
}
.about-slider-dot.is-active{
  background:var(--cms-green,var(--green));
  transform:scale(1.35);
}
.about-slider-dot:focus-visible{
  outline:2px solid var(--cms-green,var(--green));
  outline-offset:3px;
}
@media(max-width:760px){
  .about-slideshow .about-slide{
    inset:6px;
    width:calc(100% - 12px);
    height:calc(100% - 12px);
    border-radius:14px;
  }
  .about-slider-dots{bottom:14px;gap:7px;padding:6px 9px}
  .about-slider-dot{width:8px;height:8px;min-width:8px}
}
@media(prefers-reduced-motion:reduce){
  .about-slideshow .about-slide{transition:none;transform:none}
}

/* =====================================================================
   V4.6 2026-08-25 / HERO・相談カード調整
   ・HEROの白いキャッチコピーを一段小さくして海の見え方を優先。
   ・見学・相談カードは文章の不自然な折返しを抑え、イラストを大きく表示。
   ※PC/タブレットのみ。スマホ既存レイアウトは維持。
   ===================================================================== */
@media (min-width:781px){
  .hero-copy-inner h1{
    font-size:clamp(27px,2.35vw,40px);
    line-height:1.42;
    letter-spacing:.035em;
  }

  .consult-panel{
    grid-template-columns:minmax(0,1fr) minmax(180px,44%);
    gap:10px;
  }
  .consult-copy h2{
    font-size:clamp(21px,1.65vw,25px);
    line-height:1.42;
  }
  .consult-copy p{
    font-size:14px;
    line-height:1.7;
    word-break:keep-all;
  }
  .consult-panel>img{
    width:min(100%,250px);
    max-width:250px;
    justify-self:center;
  }
}


/* =====================================================================
   V17 / 全ページ共通「上へ」ボタン
   ・縦に長いページでも常に右下へ固定表示
   ・クリックでページ最上部へスムーズに戻る
   ===================================================================== */
.page-top-button{
  position:fixed;
  right:max(20px,env(safe-area-inset-right));
  bottom:max(20px,env(safe-area-inset-bottom));
  z-index:90;
  width:60px;
  height:60px;
  padding:4px 0 5px;
  border:1px solid rgba(55,139,61,.24);
  border-radius:50%;
  background:rgba(255,255,255,.94);
  color:var(--cms-green,var(--green));
  box-shadow:0 8px 24px rgba(36,49,40,.18);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0;
  cursor:pointer;
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.page-top-arrow{display:block;margin-top:-2px;font-size:25px;line-height:1;font-weight:800}
.page-top-label{display:block;margin-top:2px;font-size:10px;line-height:1;font-weight:800;letter-spacing:.04em}
.page-top-button:hover{transform:translateY(-3px);background:#fff;box-shadow:0 11px 28px rgba(36,49,40,.22)}
.page-top-button:active{transform:translateY(0)}
.page-top-button:focus-visible{outline:3px solid rgba(55,139,61,.30);outline-offset:3px}
@media(max-width:780px){
  .page-top-button{right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));width:54px;height:54px}
  .page-top-arrow{font-size:23px}
  .page-top-label{font-size:9px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .page-top-button{transition:none}
}


/* =====================================================================
   V38 2026-08-26 / HERO・スマホ表示・スクロール安定化
   ===================================================================== */

/* 船の後ろに動く航跡を追加。船本体と一緒に横断する。 */
.gh-ferry{overflow:visible}
.gh-ferry img{position:relative;z-index:2}
.gh-ferry-wake{
  position:absolute;
  z-index:1;
  left:72%;
  top:57%;
  width:86%;
  height:34%;
  pointer-events:none;
  opacity:.82;
  transform-origin:left center;
  background:
    linear-gradient(172deg,transparent 0 18%,rgba(255,255,255,.92) 19% 24%,transparent 25% 43%,rgba(236,252,255,.76) 44% 49%,transparent 50% 100%);
  filter:blur(.25px);
  animation:ghFerryWakeV38 1.9s ease-in-out infinite alternate;
}
.gh-ferry-wake::after{
  content:"";
  position:absolute;
  left:5%;top:45%;
  width:105%;height:40%;
  border-top:2px solid rgba(255,255,255,.82);
  border-radius:50%;
  transform:skewX(-18deg);
  opacity:.76;
}
@keyframes ghFerryWakeV38{
  from{transform:scaleX(.82) translateY(-1px);opacity:.48}
  to{transform:scaleX(1.14) translateY(2px);opacity:.92}
}

/* スマホ：船を大きく・少し下へ、カモメを大きくして左寄せ */
@media(max-width:600px){
  .hero.gh-hero .gh-ferry{
    width:31% !important;
    top:32.5% !important;
  }
  .hero.gh-hero .gh-gull-1{left:12% !important;top:21% !important;width:8.4% !important}
  .hero.gh-hero .gh-gull-2{left:30% !important;top:15% !important;width:7.2% !important}
  .hero.gh-hero .gh-gull-3{left:47% !important;top:24% !important;width:6.4% !important}
  .hero.gh-hero .gh-gull-4{left:63% !important;top:18% !important;width:6.8% !important}
  .gh-gull{animation-name:ghGullRoamMobileV38 !important}
}
@keyframes ghGullRoamMobileV38{
  0%{transform:translate3d(-24px,8px,0) rotate(-4deg)}
  48%{transform:translate3d(15px,-14px,0) rotate(1deg)}
  100%{transform:translate3d(52px,9px,0) rotate(4deg)}
}

/* スマホで高速スクロールしても、スクロール演出待ちで白く抜けないようにする */
@media(max-width:767px){
  html,body{max-width:100%;overflow-x:hidden !important}
  .motion-reveal,
  .motion-reveal.motion-visible{
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
  }
}

@media(prefers-reduced-motion:reduce){
  .gh-ferry-wake{animation:none}
}
