/* style.css */

/* ベース設定 */
html {
  font-size: 14px;
  line-height: 28px;
  font-family: 'Cormorant Garamond', 'Yu Mincho', '游明朝', 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum", "tnum", "palt";
  font-weight: 100;
  letter-spacing: 0.06em;
  color: #222;
  background: #efedec;
  vertical-align: top;
  font-display: swap;
}

body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h2 {
  font-weight: 300;
  font-size: 2.15rem;
  margin-bottom: 50px;
}

a {
  text-decoration: none;
  color: #222;
}

.link{
  transition: color 0.2s ease, border-color 0.2s ease; 
}

.link:hover {
  color: rgb(16, 196, 139);
}

p {
  font-size: 14px;
  line-height: 28px;
}

button {
  font-family: 'Cormorant Garamond', 'Yu Mincho', '游明朝', 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
  font-size: 1rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-weight: 100;
  color: #222;
}

.latin {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15em;
  letter-spacing: 0.03em;
}

.large_text{
  font-size: 1.55rem;
  margin: 0;
}

.lead{
  font-feature-settings: "pkna";
  vertical-align: middle;
  margin: auto;
  letter-spacing: 0.2rem;
  line-height: 2.4rem;
}

table {
  border-collapse: collapse;
}

td {
  height: 30px;
  padding: 0;
  vertical-align: top;
}

td time {
  font-size: 1.15rem;
  width: 120px;
  margin: 0;
}

.year {
  width: 3.5rem;
}

.date {
  width: 6.5rem;
}

/* 隠し見出し */
.visually-hidden {
  position: absolute;
  clip: rect(0,0,0,0);
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ヘッダー */
.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 auto;
  padding: 50px 50px 0px 50px;
  height: auto;
  width: calc(100% - 100px);
  max-width: 1080px;
  z-index: 500;
  background: #efedec;
}

.site-header .logo img {
  display: block;
  margin: 0 0 -10px -5px;
  width: 260px;
  height: auto;
}

.main-nav {
  position: absolute;
  width: 100%;
  padding: 0;
  text-align: left;
}

.main-nav a {
  margin-right: 0.5rem;
  font-weight: 100;
  font-size: 1.2rem;
  display: inline-block;
  vertical-align: middle;
}

/* セクション */
section {
  padding: 0px;
  margin-top: 150px;
  min-height: 200px;
}

.intro .lead {
  font-size: 1rem;
}

/* スライドショー */
.slide {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.7;
  overflow: hidden;
}

.slide figure {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  animation: fadeZoom 18s infinite ease-in-out;
}

.slide figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide figure:nth-child(1) { animation-delay: 0s; }
.slide figure:nth-child(2) { animation-delay: 6s; }
.slide figure:nth-child(3) { animation-delay: 12s; }

@keyframes fadeZoom {
  0%   { opacity: 0; transform: scale(1.1); }
  10%  { opacity: 1; }
  40%  { opacity: 1; }
  60%  { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.1); }
}

/* キャプション */
.caption-box {
  position: relative;
  width: 100%;
  height: 4rem;
  overflow: hidden;
}

.caption {
  position: absolute;
  inset: 0;
  opacity: 0;
  font-size: 0.8rem;
  animation: captionFade 18s infinite;
}

.caption:nth-child(1) { animation-delay: 0s; }
.caption:nth-child(2) { animation-delay: 6s; }
.caption:nth-child(3) { animation-delay: 12s; }

@keyframes captionFade {
  0%,100% { opacity: 0; }
  8%,38%  { opacity: 1; }
  42%     { opacity: 0; }
}

.link_work {
  position: absolute;
  top: 1rem;
  right: 0;
  width: 50%;
  height: 2rem;
  text-align: center;
  border: 0.8px solid #222;
}

/* リスト */
.news ul, .profile ul, .contact ul {
  list-style: none;
  padding: 0;
}

.news li, .profile li, .contact li {
  margin-bottom: 0.5rem;
}

/* フッター */
.site-footer {
  height: auto;
  display: flex;           /* 横並びにする */
  justify-content: space-between; /* 左右に要素を振り分ける */
  align-items: center;   
  text-align: left;
  padding-bottom: 20px;
  font-size: 0.85rem;
  color: #666;
}

.site-footer a{
  float: right;
  text-align: right;
  font-size: 0.7rem ;
  color: #666;
  transition: color 0.2s ease, border-color 0.2s ease; 
}

.site-footer a:hover {
  color: rgb(16, 196, 139);
}

/* レイアウト */
.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  width: 100%;
}

.flexbox {
  width: calc(50% - 20px);
  height: auto;
}

.portrait {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.portrait img {
  width: 100%;
}

.page {
  margin: 50px auto 0px auto;
  padding: 0px 50px;
  max-width: 1080px;
}

.intro_box {
  display: flex;
  height: 50vh;;
  float: right;
  width: calc(50% - 20px);
  align-items: center;
}
.contact{
  width: 100%;
  vertical-align: middle;
}
.contact a{
  display: inline-flex;   /* インライン要素でflex化 */
  align-items: center;
}

.contact img{
  width: 24px;
  margin-right: 0.6rem;
  opacity: 0.2;
}

/* モーダルの背景 */
.modal {
  display: none; /* 初期は非表示 */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5); /* 半透明の背景 */
}

/* モーダル内のボックス */
.modal-content {
  position: relative;
  background: #efedec;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  height: 490px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.form_s, .form_l {
  font-family: 'Cormorant Garamond', 'Yu Mincho', '游明朝', 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum", "tnum", "palt";
  font-weight: 100;
  margin-bottom: 14px;
  width: 100%;
  padding: 8px 0px;
  border: none;                  /* 枠線を消す */
  border-bottom: 0.6px solid #222; /* 下線だけ残す */
  background: transparent;       /* 背景色なし */
  font-size: 16px;
  outline: none;                 /* フォーカス時の青枠を消す */
  box-sizing: border-box;
}

.form_l{
  height: 128px;
}

.form_s::placeholder, .form_l::placeholder {
  font-family: 'Cormorant Garamond', 'Yu Mincho', '游明朝', 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum", "tnum", "palt";
  font-weight: 100;
  color: #c7c7c7;        /* 薄いグレーで表示 */
  font-size: 14px;    /* 少し小さめ */
  transition: color 0.2s ease; /* なめらかに変化 */
}

/* フォーカスしたときに下線を強調 */
.form_s:focus, .form_l:focus {
  border-bottom: 1px solid rgb(16, 196, 139);
}

.form_s:focus::placeholder {
  color: transparent; /* フォーカス時に透明にする */
}

/* 閉じるボタン */
.close {
  float: right;
  font-size: 60px;
  cursor: pointer;
}

.send {
  position: absolute;
  bottom: 0; 
  right: 0;
  cursor: pointer;
}

.view-all-container {
  display: flex;
  justify-content: flex-end; /* 右端に寄せる */
  margin-top: 0px;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  font-weight: 100;
  color: #222;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  position: relative;
}

.circle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: 0.8px solid currentColor;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
  color: #222; /* 矢印の基準色（黒） */
  flex-shrink: 0; /* ← SVG が縮小・拡大されないように */
}

.circle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #222;
  border-radius: 50%;
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.6s ease;
  z-index: 0;
  opacity: 0;
}

.arrow {
  width: 20px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 1;
  fill: none;
  z-index: 1;  /* ← 矢印が必ず前面に出る */
  transition: stroke 0.3s ease;
  display: inline-block; /* transform のために必要 */
}

.view-all-btn:hover .circle {
  border-color: transparent;
  color: #fff; /* ← これで矢印が白に変わる */
}

.view-all-btn:hover .circle::before {
  transform: scale(1);
  opacity: 1;
}

@keyframes arrow-move {
  0%   { transform: translateX(-1.2px); }
  50%  { transform: translateX(1.2px); }
  100% { transform: translateX(-1.2px); }
}

.view-all-btn:hover .arrow {
  animation: arrow-move 1s ease-in-out infinite;
}

.btn {
  display: inline-flex;      /* 横並び + 中央揃え */
  align-items: center;       /* アイコンとテキストを上下中央揃え */
  gap: 8px;                  /* アイコンと文字の間隔 */
  padding: 8px 0px;
  color: #222;
  text-decoration: none;     /* aタグ用 */
  cursor: pointer;           /* buttonでもポインタに */
  transition: background 0.3s, color 0.3s;
}

.btn svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0; 
  opacity: 0.25;
}

.btn:hover {
  color:  rgb(16, 196, 139);
}



/* 781px以上（PC向け） */
@media (min-width: 781px) {

}

/* 780px以下（スマホ向け） */
@media (max-width: 780px) {
    .main-nav {
        display: none;
    }

  .site-header {
  padding: 3.4% 3.4% 0px 3.4%;
    width: calc(100% - 6.8%);
}
.page {
  margin: 3.4% auto;
  padding: 0px 3.4%;
}

.portrait {
  margin-bottom: 50px;
}
.intro_box {
  width: 100%;
}
}