@charset "utf-8";

:root {
    -main--color-:"#f5bac2";
  }

/* 
.noto-sans-jp-<uniquifier> {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

*/


.fade-up-target {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-up-active {
  opacity: 1;
  transform: translateY(0);
}

h1.top_logo img {
  display: block;
  margin: 0 auto;
}

.icon-item img {
  display: block;
  margin: 0 auto;
}


/* 右からスライドするアニメーション用 */
.slide-right {
  opacity: 0;
  transform: translateX(80px); /* 少し大きめに右から */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-right-active {
  opacity: 1;
  transform: translateX(0);
}




body,html{
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
}

/* top */
h1.top_logo{
    margin: 10px auto;
    width: 100%;
    text-align: center;
}

h1.top_logo img{
    height: 50px;
}

/* top header */
header{
    width: 100%;
    height: 650px;
    background-image: url(../img/top_1.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: none;
    position: relative;
}

.ttl{
    position: absolute;
    right: 100px;
    top: 50px;
    display: flex;

}

.ttl h1{
    background-color: white;
    writing-mode: vertical-rl;
    display: block;
    font-size: 36px;
    margin: 5px;
    padding: 10px;
}

.ttl img{
    width: 80px;
    height: auto;
    right: -55px;
    top: 0px;
    position: absolute;
}

.ttl h1.ttl_1{
    height: 250px;
}
.ttl h1.ttl_2{
    height: auto;
}

p.catch_sub{
    font-size: 16px;
    color: white;
    line-height: 2;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 5%;
}

/* menu */
ul.menu{
    background-color: #2d5234 ;
    list-style-type: none;
    display: flex;
    justify-content: space-around;
    padding-top: 5px;
    padding-bottom: 5px;
}

li{
    list-style-type: none;
}

ul li a{
    color: white;
}


/* philosophy */

section.philosophy{
    background-image: url(../img/about_bg.png);
    background-position: center;
    background-size: cover;
    background-repeat: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    height: 700px;
}

p.founder{
    margin-top: 20px;
}

.philosophy_image{
    width: 250px;
}

.philosophy_image p{    
    text-align: center;
}

.philosophy_image p img{
    width: 80%;
}

.philosophy_txt{
    padding-left: 200px;
}

.philosophy_txt h2{
    font-size: 16px;
    margin: 20px auto 40px;
}

.philosophy_txt p{
    width: 80%;
    line-height: 1.5;
}

/* philosophy 2 */
    .philosophy_2{
        margin: 100px auto 0;
    }
    .ribbon-container {
      position: relative;
      display: inline-block;
      margin-bottom: 0px;
      transform: translate(-50%, -50%); 
      left: 50%; 
    }

    .ribbon-container img {
      width: 300px;
      height: auto;
      display: block;
    }

    .ribbon-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 1.3em;
      color: white;
      font-weight: bold;
    }

    p.slogan {
      margin-bottom: 50px;
      text-align: center;
      font-size: 16px;
    }

    .icons {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 40px;
      margin: 100px auto;
    }

    .icon-item {
      width: 400px;
      text-align: center;
    }

    .icon-item img {
      width: 100px;
      height: auto;
      margin-bottom: 10px;
    }

    .icon-caption {
      font-size: 1em;
    }

    /* story */
    
.container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  max-width: 1200px;
  margin: 50px auto;
  padding: 40px 20px;
  
}

.text-block {
  flex: 1 1 40%;
  padding: 20px;
  width: 40%;
}

.catch {
  font-size: 16px;
  color: #f5bac2;
  font-weight: bold;
  margin-bottom: 50px;
  position: relative;
}

.catch::after {
    content: '';
    position: absolute;
    left: -12px;
    bottom: -31px;
    width: 300px;
    height: 30px;
    background: url(../img/philosophy_sub.png) no-repeat;
    background-size: contain;
}

.link {
  display: inline-block;
  margin-top: 20px;
  font-size: 16px;
  color: #000;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.image-block {
  flex: 1 1 40%;
  padding: 20px;
  width: 40%;
}

.image-block img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}


/* support */


.support-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.heading {
  text-align: center;
  margin-bottom: 40px;
}

.sub-title {
  font-size: 14px;
  color: #f396b6;
  position: relative;
  text-align: center; /* ← 中央寄せの決め手 */
  display: block;
}

.sub-title img {
  height: 16px;
  margin: 0 5px;
  vertical-align: middle; /* ← テキストと縦位置を揃える */
  display: inline;         /* ← 念のためブロック化解除 */
}


.sub-title span {
  font-weight: bold;
}

.main-title {
  font-weight: bold;
  font-size: 20px;
  margin-top: 10px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0px;
}

.grid-item {
  background-size: cover;
  background-position: center;
  height: 240px;
  position: relative;
  overflow: hidden;
}

.label {
  position: absolute;
  bottom: 30px;
  right: 0;
  background: white;
  color: #000;
  padding: 12px;
  font-size: 14px;
  line-height: 1.4;
  width: 50%;
  box-sizing: border-box;
  text-align: center;
  font-weight: bold;
}

span{
  color: #db923c;
  font-size: 12px;
}

/* message */
    .message-section {
      position: relative;
      padding: 100px 20px 60px;
      text-align: center;
    }

    .message-wrapper {
      position: relative;
      max-width: 800px;
      margin: 0 auto;
    }

    /* Ribbon image and overlaid text */
    .ribbon-wrapper {
      position: relative;
      display: inline-block;
      margin-bottom: 40px;
    }

    .ribbon {
      width: 200px;
      display: block;
    }

    .ribbon-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: white;
      font-size: 16px;
      font-weight: bold;
      pointer-events: none;
    }

    .quote {
      font-size: 16px;
      font-weight: bold;
      margin-bottom: 50px;
    }

    .message-body p {
      margin: 10px 0;
      font-size: 14px;
      line-height: 1.8;
    }

    .message-body p strong {
      font-weight: bold;
    }




    /* footer */
    footer{
      background-color: #fcf5d7;
      text-align: center;
      padding: 50px 20px;
      position: relative;
    }

    footer p:nth-child(1){
      font-size: 16px;
    }

footer p:nth-child(2) {
  text-align: center; /* ← 画像とテキストを中央揃え */
  font-size: 14px;
  margin: 30px;
}

footer p:nth-child(2) img {
  height: 20px;
  vertical-align: middle; /* ← テキストと画像の縦位置を揃える */
  margin-right: 8px; /* ← 画像と文字の間に余白をつける */
  display: inline; /* 念のためブロック化を解除 */
}


footer p:nth-child(3) {
  background-color: white;
  display: inline-flex; /* ← ここを変更 */
  align-items: center;  /* ← アイコンとテキストを縦中央揃え */
  gap: 10px;            /* ← 画像とテキストの間隔を設定 */
  padding: 20px 40px;
  border-radius: 40px;
  font-size: 14px;
}

footer p:nth-child(3) img {
  height: 20px;
  margin: 0 5px 0 0  ; 
}

footer p:nth-child(3) a {
  color: #000;
  text-decoration: none;
  line-height: 1;
  display: flex;
  align-items: center;
}


img.sakura-left {
    position: absolute;
    top: -50px;
    width: 100px;
    right: 100px;
}

.phone{
  display: none;
}

    .gallery_top{
      width: 100%;
    }
    .gallery_top img{
      width: 50%;
      margin-top: 50px;
    }


@media screen and (max-width: 500px) {
    .gallery_top img{
      width: 80%;
      margin-top: 50px;
    }

  header {
    width: 100%;
    height: 600px;
}

  .ttl h1 {
    background-color: white;
    writing-mode: horizontal-tb;
    display: block;
    font-size: 28px;
    margin: 5px;
    padding: 10px;
}

.ttl {
    position: absolute;
    left: 10px;
    top: 100px;
    display: flex;
    flex-direction: column;
    width: 80%;
}

.ttl h1.ttl_1 {
    height: auto;
}

.ttl img {
    width: 50px;
    height: auto;
    right: -25px;
    top: 0px;
    position: absolute;
}

p.catch_sub {
    font-size: 14px;
    color: white;
    line-height: 2;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 30px;
}

.phone{
  display: block;
}

ul.menu {
    background-color: #2d5234;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding-top: 5px;
    padding-bottom: 5px;
}

li {
    padding: 5px;
}

.philosophy_image p img {
    width: 45%;
    margin-top: 100px;
}

.philosophy_txt {
    padding: 30px;
}

.philosophy_txt h2 {
    font-size: 15px;
    margin: 20px auto 40px;
}

.philosophy_txt p {
    width: 100%;
    line-height: 1.5;
    font-size: 13px;
}

section.philosophy {
    height: auto;
}

.icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin: 60px auto;
}
p.slogan {
    margin-bottom: 50px;
    text-align: center;
    font-size: 15px;
}

.icon-caption {
    font-size: 13px;
}

.text-block {
    flex: 1 1 100%;
    padding: 0px;
    width: 40%;
    line-height: 1.3;
}

.catch_space{
  margin-top: 13px;
}
.link {
    display: block;
    margin-top: 20px;
    font-size: 14px;
    color: #000;
    text-decoration: none;
}

.pc{
  display: none;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0px;
}

.label{
  width: 75%;
}

.main-title {
    font-weight: bold;
    font-size: 16px;
    margin-top: 10px;
}
.message-section {
    position: relative;
    padding: 15px 20px 100px;
    text-align: center;
}

.quote {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 50px;
}

.message-body p {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
}

img.sakura-left {
    position: absolute;
    top: -50px;
    width: 100px;
    right: 35px;
}

}

 .wrap{
      max-width:1200px;
      margin:0 auto;
      padding:16px;
    }

    .section{ margin:18px 0 28px; 
      container-type: inline-size;
  container-name: gallery;}
    .section__title{
      margin:0 0 10px;
      font-size:18px;
      font-weight:800;
      letter-spacing:.04em;
      opacity:.95;
      color: #f396b6;
    }

    /* =========================
       GALLERY (container queries)
       条件:
       - .gallery クラス使用
       - media query不使用
       - スマホ 2列（縮小OK）
       - PC 4列（1枚250px固定）
       - 枚数自由
    ========================= */

    .gallery{
  container-type: inline-size;
  container-name: gallery;

  /* ★ここを変えるだけでサイズ変更できる */
  --tile: 250px;   /* 1枚の幅（PC時） */
  --gap: 10px;

  display:grid;
  gap: var(--gap);
  padding: 10px;
  border-radius:14px;
  background: rgba(255,255,255,0.04);

  /* スマホ：2列（縮小OK） */
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 中間：3列（任意） */
@container gallery (min-width: 600px){
  .gallery{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ★PC：4列になる条件を「tile×4 + gap×3」相当に合わせて下げる */
@container gallery (min-width: 1050px){
  .gallery{
    grid-template-columns: repeat(4, var(--tile)); /* ←PC時の写真サイズ */
    justify-content: center;
  }
}



    .gallery__item{
      border:0;
      padding:0;
      margin:0;
      width:100%;
      display:block;
      cursor:pointer;

      background: rgba(255,255,255,0.06);
      border-radius:12px;
      overflow:hidden;
    }

    .gallery__img{
      width:100%;
      height:100%;
      display:block;
      object-fit:contain;
    }

    /* =========================
       MODAL (fullscreen)
    ========================= */
    .modal{
      position:fixed;
      inset:0;
      background: rgba(0,0,0,0.88);
      display:none;
      align-items:center;
      justify-content:center;
      padding:18px;
      z-index:9999;
    }
    .modal.is-open{ display:flex; }

    .modal__inner{
      position:relative;
      width:min(1100px, 100%);
      height:min(85vh, 900px);
      display:grid;
      place-items:center;
    }

    .modal__img{
      max-width:100%;
      max-height:100%;
      object-fit:contain;
      border-radius:14px;
      background: rgba(255,255,255,0.06);
    }

    .modal__close{
      position:absolute;
      top:-6px;
      right:-6px;
      width:44px;
      height:44px;
      border-radius:999px;
      border:1px solid rgba(255,255,255,0.25);
      background: rgba(20,20,20,0.75);
      color:#fff;
      font-size:22px;
      cursor:pointer;
      display:grid;
      place-items:center;
    }
    .modal__close:focus{
      outline:2px solid rgba(255,255,255,0.45);
      outline-offset:2px;
    }

    .sr-only{
      position:absolute;
      width:1px;
      height:1px;
      padding:0;
      margin:-1px;
      overflow:hidden;
      clip: rect(0,0,0,0);
      border:0;
    }